@brokerize/client 1.9.0 → 1.11.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.
Files changed (60) hide show
  1. package/dist/authorizedApiContext.js +2 -3
  2. package/dist/cjs/authorizedApiContext.js +1 -2
  3. package/dist/cjs/errors.d.ts +14 -0
  4. package/dist/cjs/errors.js +48 -1
  5. package/dist/cjs/index.d.ts +2 -2
  6. package/dist/cjs/index.js +3 -4
  7. package/dist/cjs/modelExports.d.ts +2 -0
  8. package/dist/cjs/modelExports.js +5 -1
  9. package/dist/cjs/swagger/models/BrokerClientCfg.d.ts +7 -0
  10. package/dist/cjs/swagger/models/BrokerClientCfg.js +5 -0
  11. package/dist/cjs/swagger/models/BrokerMeta.d.ts +15 -0
  12. package/dist/cjs/swagger/models/BrokerMeta.js +2 -0
  13. package/dist/cjs/swagger/models/ClientConfigUpdateOAuthLoginForm.d.ts +12 -1
  14. package/dist/cjs/swagger/models/ClientConfigUpdateOAuthLoginForm.js +2 -0
  15. package/dist/cjs/swagger/models/OAuthLoginFormConfig.d.ts +12 -1
  16. package/dist/cjs/swagger/models/OAuthLoginFormConfig.js +2 -0
  17. package/dist/cjs/swagger/models/Order.d.ts +9 -1
  18. package/dist/cjs/swagger/models/OrderCreate.d.ts +2 -1
  19. package/dist/cjs/swagger/models/PrepareOAuthRedirectParams.d.ts +15 -0
  20. package/dist/cjs/swagger/models/PrepareOAuthRedirectParams.js +11 -0
  21. package/dist/cjs/swagger/models/SmartbrokerClientCfg.d.ts +27 -0
  22. package/dist/cjs/swagger/models/SmartbrokerClientCfg.js +46 -0
  23. package/dist/cjs/swagger/models/SummarizedTrade.d.ts +14 -0
  24. package/dist/cjs/swagger/models/SummarizedTrade.js +4 -0
  25. package/dist/cjs/swagger/models/TradeWarning.d.ts +31 -1
  26. package/dist/cjs/swagger/models/TradeWarning.js +13 -0
  27. package/dist/cjs/swagger/models/TradeWarningReason.d.ts +45 -0
  28. package/dist/cjs/swagger/models/TradeWarningReason.js +58 -0
  29. package/dist/cjs/swagger/models/index.d.ts +2 -0
  30. package/dist/cjs/swagger/models/index.js +2 -0
  31. package/dist/client.d.ts +209 -15
  32. package/dist/errors.d.ts +14 -0
  33. package/dist/errors.js +45 -0
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +3 -5
  36. package/dist/modelExports.d.ts +2 -0
  37. package/dist/modelExports.js +2 -0
  38. package/dist/swagger/models/BrokerClientCfg.d.ts +7 -0
  39. package/dist/swagger/models/BrokerClientCfg.js +5 -0
  40. package/dist/swagger/models/BrokerMeta.d.ts +15 -0
  41. package/dist/swagger/models/BrokerMeta.js +2 -0
  42. package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.d.ts +12 -1
  43. package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.js +2 -0
  44. package/dist/swagger/models/OAuthLoginFormConfig.d.ts +12 -1
  45. package/dist/swagger/models/OAuthLoginFormConfig.js +2 -0
  46. package/dist/swagger/models/Order.d.ts +9 -1
  47. package/dist/swagger/models/OrderCreate.d.ts +2 -1
  48. package/dist/swagger/models/PrepareOAuthRedirectParams.d.ts +15 -0
  49. package/dist/swagger/models/PrepareOAuthRedirectParams.js +10 -0
  50. package/dist/swagger/models/SmartbrokerClientCfg.d.ts +27 -0
  51. package/dist/swagger/models/SmartbrokerClientCfg.js +40 -0
  52. package/dist/swagger/models/SummarizedTrade.d.ts +14 -0
  53. package/dist/swagger/models/SummarizedTrade.js +4 -0
  54. package/dist/swagger/models/TradeWarning.d.ts +31 -1
  55. package/dist/swagger/models/TradeWarning.js +13 -0
  56. package/dist/swagger/models/TradeWarningReason.d.ts +45 -0
  57. package/dist/swagger/models/TradeWarningReason.js +52 -0
  58. package/dist/swagger/models/index.d.ts +2 -0
  59. package/dist/swagger/models/index.js +2 -0
  60. package/package.json +4 -4
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ /**
14
+ * Why a trade or portfolio-history computation could not give a complete answer. Clients switch on
15
+ * this instead of parsing `TradeWarning.message`, which is free text and may change at any time.
16
+ *
17
+ * - `executionsWithoutTimestamp`: order executions carry no execution time, so they cannot be placed
18
+ * on a timeline and were ignored altogether.
19
+ * - `inconsistentOrderHistory`: the executions of one security contradict each other or the reported
20
+ * holding (more sold than ever bought, a quantity that goes negative). Nothing can be reconstructed
21
+ * from them, so the security is left out of the value history and its trades are not reported.
22
+ * - `positionNotFullyExplained`: the order archive covers only part of a position — typical for
23
+ * brokers that return just the most recent weeks. What is held today is known, but its history
24
+ * reaches further back than the executions do.
25
+ * - `missingEodPrice`: no closing price was available for the security on some days; it was valued
26
+ * with the last price known before them.
27
+ * - `missingFxRate`: no exchange rate to the portfolio currency exists for the security's currency, so
28
+ * its amounts are *not* converted and the totals they enter are off by the conversion.
29
+ * - `unknownBuyPrice`: no purchase price could be determined for a position, so it is missing from the
30
+ * buy value (and from the profit it implies).
31
+ * - `realizedPnlUnavailable`: the completed trades could not be computed at all, which leaves the
32
+ * realized profit/loss empty rather than wrong.
33
+ * @export
34
+ */
35
+ export const TradeWarningReason = {
36
+ ExecutionsWithoutTimestamp: "executionsWithoutTimestamp",
37
+ InconsistentOrderHistory: "inconsistentOrderHistory",
38
+ PositionNotFullyExplained: "positionNotFullyExplained",
39
+ MissingEodPrice: "missingEodPrice",
40
+ MissingFxRate: "missingFxRate",
41
+ UnknownBuyPrice: "unknownBuyPrice",
42
+ RealizedPnlUnavailable: "realizedPnlUnavailable",
43
+ };
44
+ export function TradeWarningReasonFromJSON(json) {
45
+ return TradeWarningReasonFromJSONTyped(json, false);
46
+ }
47
+ export function TradeWarningReasonFromJSONTyped(json, ignoreDiscriminator) {
48
+ return json;
49
+ }
50
+ export function TradeWarningReasonToJSON(value) {
51
+ return value;
52
+ }
@@ -230,6 +230,7 @@ export * from "./SessionSyncInfoSyncedAllOf";
230
230
  export * from "./SessionSyncInfoSyncedSpecifics";
231
231
  export * from "./SetClientConfigRequest";
232
232
  export * from "./SizeUnitConstraint";
233
+ export * from "./SmartbrokerClientCfg";
233
234
  export * from "./StringMapByOrderModel";
234
235
  export * from "./SummarizedTrade";
235
236
  export * from "./SyncError";
@@ -256,6 +257,7 @@ export * from "./TradeStatisticsDateRange";
256
257
  export * from "./TradeStatisticsHoldingPeriodInDays";
257
258
  export * from "./TradeStatisticsItem";
258
259
  export * from "./TradeWarning";
260
+ export * from "./TradeWarningReason";
259
261
  export * from "./TradingSessionLifetime";
260
262
  export * from "./TrailingDistance";
261
263
  export * from "./TriggerSync200Response";
@@ -232,6 +232,7 @@ export * from "./SessionSyncInfoSyncedAllOf.js";
232
232
  export * from "./SessionSyncInfoSyncedSpecifics.js";
233
233
  export * from "./SetClientConfigRequest.js";
234
234
  export * from "./SizeUnitConstraint.js";
235
+ export * from "./SmartbrokerClientCfg.js";
235
236
  export * from "./StringMapByOrderModel.js";
236
237
  export * from "./SummarizedTrade.js";
237
238
  export * from "./SyncError.js";
@@ -258,6 +259,7 @@ export * from "./TradeStatisticsDateRange.js";
258
259
  export * from "./TradeStatisticsHoldingPeriodInDays.js";
259
260
  export * from "./TradeStatisticsItem.js";
260
261
  export * from "./TradeWarning.js";
262
+ export * from "./TradeWarningReason.js";
261
263
  export * from "./TradingSessionLifetime.js";
262
264
  export * from "./TrailingDistance.js";
263
265
  export * from "./TriggerSync200Response.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brokerize/client",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "Client for the brokerize.com API",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/brokerize/client-js#readme",
@@ -62,13 +62,13 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@microsoft/api-extractor": "7.58.11",
65
- "@openapitools/openapi-generator-cli": "2.39.1",
65
+ "@openapitools/openapi-generator-cli": "2.41.0",
66
66
  "@types/node": "24.13.3",
67
- "@typescript-eslint/eslint-plugin": "8.64.0",
67
+ "@typescript-eslint/eslint-plugin": "8.71.0",
68
68
  "eslint": "10.7.0",
69
69
  "eslint-config-prettier": "10.1.8",
70
70
  "husky": "9.1.7",
71
- "lint-staged": "17.0.8",
71
+ "lint-staged": "17.6.0",
72
72
  "prettier": "3.9.5",
73
73
  "sort-package-json": "4.0.0",
74
74
  "typescript": "6.0.3"