@brokerize/client 1.9.0 → 1.10.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.
@@ -124,6 +124,7 @@ export { PortfoliosResponse } from "./swagger/models/PortfoliosResponse";
124
124
  export { Position } from "./swagger/models/Position";
125
125
  export { PositionValuation } from "./swagger/models/PositionValuation";
126
126
  export { PrepareOAuthRedirectParams } from "./swagger/models/PrepareOAuthRedirectParams";
127
+ export { PrepareOAuthRedirectParamsAppearanceEnum } from "./swagger/models/PrepareOAuthRedirectParams";
127
128
  export { PrepareOAuthRedirectResponse } from "./swagger/models/PrepareOAuthRedirectResponse";
128
129
  export { PrepareTradeResponse } from "./swagger/models/PrepareTradeResponse";
129
130
  export { PreparedTrade } from "./swagger/models/PreparedTrade";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* tslint:disable */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.OrderIntent = exports.TrailingDistanceModeEnum = exports.SessionSyncInfoStatus = exports.PortfolioSyncInfoStatus = exports.OrderValidityType = exports.OrderStatus = exports.OrderModel = exports.OrderExtension = exports.LoginResponseState = exports.GenericTableRowValueType = exports.GenericTableRowValueLinkValueType = exports.GenericTableRowType = exports.EnableSessionTanParamsKind = exports.Direction = exports.DecoupledOperationState = exports.CashQuotation = exports.CancelOrderParamsMode = exports.BrokerEnvFilterType = exports.AuthMethodFlow = void 0;
4
+ exports.OrderIntent = exports.TrailingDistanceModeEnum = exports.SessionSyncInfoStatus = exports.PrepareOAuthRedirectParamsAppearanceEnum = exports.PortfolioSyncInfoStatus = exports.OrderValidityType = exports.OrderStatus = exports.OrderModel = exports.OrderExtension = exports.LoginResponseState = exports.GenericTableRowValueType = exports.GenericTableRowValueLinkValueType = exports.GenericTableRowType = exports.EnableSessionTanParamsKind = exports.Direction = exports.DecoupledOperationState = exports.CashQuotation = exports.CancelOrderParamsMode = exports.BrokerEnvFilterType = exports.AuthMethodFlow = void 0;
5
5
  var AuthMethodFlow_1 = require("./swagger/models/AuthMethodFlow");
6
6
  Object.defineProperty(exports, "AuthMethodFlow", { enumerable: true, get: function () { return AuthMethodFlow_1.AuthMethodFlow; } });
7
7
  var BrokerEnvFilterType_1 = require("./swagger/models/BrokerEnvFilterType");
@@ -34,6 +34,8 @@ var OrderValidityType_1 = require("./swagger/models/OrderValidityType");
34
34
  Object.defineProperty(exports, "OrderValidityType", { enumerable: true, get: function () { return OrderValidityType_1.OrderValidityType; } });
35
35
  var PortfolioSyncInfoStatus_1 = require("./swagger/models/PortfolioSyncInfoStatus");
36
36
  Object.defineProperty(exports, "PortfolioSyncInfoStatus", { enumerable: true, get: function () { return PortfolioSyncInfoStatus_1.PortfolioSyncInfoStatus; } });
37
+ var PrepareOAuthRedirectParams_1 = require("./swagger/models/PrepareOAuthRedirectParams");
38
+ Object.defineProperty(exports, "PrepareOAuthRedirectParamsAppearanceEnum", { enumerable: true, get: function () { return PrepareOAuthRedirectParams_1.PrepareOAuthRedirectParamsAppearanceEnum; } });
37
39
  var SessionSyncInfoStatus_1 = require("./swagger/models/SessionSyncInfoStatus");
38
40
  Object.defineProperty(exports, "SessionSyncInfoStatus", { enumerable: true, get: function () { return SessionSyncInfoStatus_1.SessionSyncInfoStatus; } });
39
41
  var TrailingDistance_1 = require("./swagger/models/TrailingDistance");
@@ -14,6 +14,13 @@
14
14
  * @interface PrepareOAuthRedirectParams
15
15
  */
16
16
  export interface PrepareOAuthRedirectParams {
17
+ /**
18
+ * Preferred appearance for login screens. Note that this can only be set explicitly for some selected brokers.
19
+ * If the broker does not support it, this is silently ignored and the default broker appearance is used.
20
+ * @type {string}
21
+ * @memberof PrepareOAuthRedirectParams
22
+ */
23
+ appearance?: PrepareOAuthRedirectParamsAppearanceEnum;
17
24
  /**
18
25
  *
19
26
  * @type {string}
@@ -33,6 +40,14 @@ export interface PrepareOAuthRedirectParams {
33
40
  */
34
41
  returnToUrl: string;
35
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const PrepareOAuthRedirectParamsAppearanceEnum: {
47
+ readonly Light: "light";
48
+ readonly Dark: "dark";
49
+ };
50
+ export type PrepareOAuthRedirectParamsAppearanceEnum = (typeof PrepareOAuthRedirectParamsAppearanceEnum)[keyof typeof PrepareOAuthRedirectParamsAppearanceEnum];
36
51
  export declare function PrepareOAuthRedirectParamsFromJSON(json: any): PrepareOAuthRedirectParams;
37
52
  export declare function PrepareOAuthRedirectParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrepareOAuthRedirectParams;
38
53
  export declare function PrepareOAuthRedirectParamsToJSONRecursive(value?: PrepareOAuthRedirectParams | null, ignoreParent?: boolean): any;
@@ -12,10 +12,19 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PrepareOAuthRedirectParamsAppearanceEnum = void 0;
15
16
  exports.PrepareOAuthRedirectParamsFromJSON = PrepareOAuthRedirectParamsFromJSON;
16
17
  exports.PrepareOAuthRedirectParamsFromJSONTyped = PrepareOAuthRedirectParamsFromJSONTyped;
17
18
  exports.PrepareOAuthRedirectParamsToJSONRecursive = PrepareOAuthRedirectParamsToJSONRecursive;
18
19
  exports.PrepareOAuthRedirectParamsToJSON = PrepareOAuthRedirectParamsToJSON;
20
+ const runtime_1 = require("../runtime");
21
+ /**
22
+ * @export
23
+ */
24
+ exports.PrepareOAuthRedirectParamsAppearanceEnum = {
25
+ Light: "light",
26
+ Dark: "dark",
27
+ };
19
28
  function PrepareOAuthRedirectParamsFromJSON(json) {
20
29
  return PrepareOAuthRedirectParamsFromJSONTyped(json, false);
21
30
  }
@@ -24,6 +33,7 @@ function PrepareOAuthRedirectParamsFromJSONTyped(json, ignoreDiscriminator) {
24
33
  return json;
25
34
  }
26
35
  return {
36
+ appearance: !(0, runtime_1.exists)(json, "appearance") ? undefined : json["appearance"],
27
37
  brokerName: json["brokerName"],
28
38
  env: json["env"],
29
39
  returnToUrl: json["returnToUrl"],
@@ -37,6 +47,7 @@ function PrepareOAuthRedirectParamsToJSONRecursive(value, ignoreParent = false)
37
47
  return null;
38
48
  }
39
49
  return {
50
+ appearance: value.appearance,
40
51
  brokerName: value.brokerName,
41
52
  env: value.env,
42
53
  returnToUrl: value.returnToUrl,
package/dist/client.d.ts CHANGED
@@ -7894,6 +7894,7 @@ declare namespace Models {
7894
7894
  Position,
7895
7895
  PositionValuation,
7896
7896
  PrepareOAuthRedirectParams,
7897
+ PrepareOAuthRedirectParamsAppearanceEnum,
7897
7898
  PrepareOAuthRedirectResponse,
7898
7899
  PrepareTradeResponse,
7899
7900
  PreparedTrade,
@@ -9254,6 +9255,7 @@ declare namespace openApiClient {
9254
9255
  PrepareOAuthRedirectParamsToJSONRecursive,
9255
9256
  PrepareOAuthRedirectParamsToJSON,
9256
9257
  PrepareOAuthRedirectParams,
9258
+ PrepareOAuthRedirectParamsAppearanceEnum,
9257
9259
  PrepareOAuthRedirectResponseFromJSON,
9258
9260
  PrepareOAuthRedirectResponseFromJSONTyped,
9259
9261
  PrepareOAuthRedirectResponseToJSONRecursive,
@@ -12109,6 +12111,13 @@ declare function PreparedTradeToJSONRecursive(value?: PreparedTrade | null, igno
12109
12111
  * @interface PrepareOAuthRedirectParams
12110
12112
  */
12111
12113
  declare interface PrepareOAuthRedirectParams {
12114
+ /**
12115
+ * Preferred appearance for login screens. Note that this can only be set explicitly for some selected brokers.
12116
+ * If the broker does not support it, this is silently ignored and the default broker appearance is used.
12117
+ * @type {string}
12118
+ * @memberof PrepareOAuthRedirectParams
12119
+ */
12120
+ appearance?: PrepareOAuthRedirectParamsAppearanceEnum;
12112
12121
  /**
12113
12122
  *
12114
12123
  * @type {string}
@@ -12129,6 +12138,16 @@ declare interface PrepareOAuthRedirectParams {
12129
12138
  returnToUrl: string;
12130
12139
  }
12131
12140
 
12141
+ /**
12142
+ * @export
12143
+ */
12144
+ declare const PrepareOAuthRedirectParamsAppearanceEnum: {
12145
+ readonly Light: "light";
12146
+ readonly Dark: "dark";
12147
+ };
12148
+
12149
+ declare type PrepareOAuthRedirectParamsAppearanceEnum = (typeof PrepareOAuthRedirectParamsAppearanceEnum)[keyof typeof PrepareOAuthRedirectParamsAppearanceEnum];
12150
+
12132
12151
  declare function PrepareOAuthRedirectParamsFromJSON(json: any): PrepareOAuthRedirectParams;
12133
12152
 
12134
12153
  declare function PrepareOAuthRedirectParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrepareOAuthRedirectParams;
@@ -124,6 +124,7 @@ export { PortfoliosResponse } from "./swagger/models/PortfoliosResponse";
124
124
  export { Position } from "./swagger/models/Position";
125
125
  export { PositionValuation } from "./swagger/models/PositionValuation";
126
126
  export { PrepareOAuthRedirectParams } from "./swagger/models/PrepareOAuthRedirectParams";
127
+ export { PrepareOAuthRedirectParamsAppearanceEnum } from "./swagger/models/PrepareOAuthRedirectParams";
127
128
  export { PrepareOAuthRedirectResponse } from "./swagger/models/PrepareOAuthRedirectResponse";
128
129
  export { PrepareTradeResponse } from "./swagger/models/PrepareTradeResponse";
129
130
  export { PreparedTrade } from "./swagger/models/PreparedTrade";
@@ -15,6 +15,7 @@ export { OrderModel } from "./swagger/models/OrderModel.js";
15
15
  export { OrderStatus } from "./swagger/models/OrderStatus.js";
16
16
  export { OrderValidityType } from "./swagger/models/OrderValidityType.js";
17
17
  export { PortfolioSyncInfoStatus } from "./swagger/models/PortfolioSyncInfoStatus.js";
18
+ export { PrepareOAuthRedirectParamsAppearanceEnum } from "./swagger/models/PrepareOAuthRedirectParams.js";
18
19
  export { SessionSyncInfoStatus } from "./swagger/models/SessionSyncInfoStatus.js";
19
20
  export { TrailingDistanceModeEnum, } from "./swagger/models/TrailingDistance.js";
20
21
  export { OrderIntent } from "./swagger/models/OrderIntent.js";
@@ -14,6 +14,13 @@
14
14
  * @interface PrepareOAuthRedirectParams
15
15
  */
16
16
  export interface PrepareOAuthRedirectParams {
17
+ /**
18
+ * Preferred appearance for login screens. Note that this can only be set explicitly for some selected brokers.
19
+ * If the broker does not support it, this is silently ignored and the default broker appearance is used.
20
+ * @type {string}
21
+ * @memberof PrepareOAuthRedirectParams
22
+ */
23
+ appearance?: PrepareOAuthRedirectParamsAppearanceEnum;
17
24
  /**
18
25
  *
19
26
  * @type {string}
@@ -33,6 +40,14 @@ export interface PrepareOAuthRedirectParams {
33
40
  */
34
41
  returnToUrl: string;
35
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const PrepareOAuthRedirectParamsAppearanceEnum: {
47
+ readonly Light: "light";
48
+ readonly Dark: "dark";
49
+ };
50
+ export type PrepareOAuthRedirectParamsAppearanceEnum = (typeof PrepareOAuthRedirectParamsAppearanceEnum)[keyof typeof PrepareOAuthRedirectParamsAppearanceEnum];
36
51
  export declare function PrepareOAuthRedirectParamsFromJSON(json: any): PrepareOAuthRedirectParams;
37
52
  export declare function PrepareOAuthRedirectParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrepareOAuthRedirectParams;
38
53
  export declare function PrepareOAuthRedirectParamsToJSONRecursive(value?: PrepareOAuthRedirectParams | null, ignoreParent?: boolean): any;
@@ -10,6 +10,14 @@
10
10
  * https://openapi-generator.tech
11
11
  * Do not edit the class manually.
12
12
  */
13
+ import { exists } from "../runtime.js";
14
+ /**
15
+ * @export
16
+ */
17
+ export const PrepareOAuthRedirectParamsAppearanceEnum = {
18
+ Light: "light",
19
+ Dark: "dark",
20
+ };
13
21
  export function PrepareOAuthRedirectParamsFromJSON(json) {
14
22
  return PrepareOAuthRedirectParamsFromJSONTyped(json, false);
15
23
  }
@@ -18,6 +26,7 @@ export function PrepareOAuthRedirectParamsFromJSONTyped(json, ignoreDiscriminato
18
26
  return json;
19
27
  }
20
28
  return {
29
+ appearance: !exists(json, "appearance") ? undefined : json["appearance"],
21
30
  brokerName: json["brokerName"],
22
31
  env: json["env"],
23
32
  returnToUrl: json["returnToUrl"],
@@ -31,6 +40,7 @@ export function PrepareOAuthRedirectParamsToJSONRecursive(value, ignoreParent =
31
40
  return null;
32
41
  }
33
42
  return {
43
+ appearance: value.appearance,
34
44
  brokerName: value.brokerName,
35
45
  env: value.env,
36
46
  returnToUrl: value.returnToUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brokerize/client",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Client for the brokerize.com API",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/brokerize/client-js#readme",