snaptrade-typescript-sdk 7.0.0 → 8.0.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.
@@ -1 +1 @@
1
- 4174766a-a000-448d-907d-7b028d62bca9
1
+ 00ef5794-51d6-46ef-99cc-cd54502667c1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## snaptrade-typescript-sdk@7.0.0
1
+ ## snaptrade-typescript-sdk@8.0.0
2
2
  Connect brokerage accounts to your app for live positions and trading
3
3
 
4
4
 
package/configuration.ts CHANGED
@@ -110,7 +110,7 @@ export class Configuration {
110
110
  this.accessToken = param.accessToken;
111
111
  this.basePath = param.basePath;
112
112
  this.baseOptions = param.baseOptions ?? {};
113
- this.userAgent = param.userAgent === undefined ? "Konfig/7.0.0/typescript" : param.userAgent;
113
+ this.userAgent = param.userAgent === undefined ? "Konfig/8.0.0/typescript" : param.userAgent;
114
114
  this.formDataCtor = param.formDataCtor;
115
115
  }
116
116
 
@@ -34,7 +34,7 @@ var Configuration = /** @class */ (function () {
34
34
  this.accessToken = param.accessToken;
35
35
  this.basePath = param.basePath;
36
36
  this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
37
- this.userAgent = param.userAgent === undefined ? "Konfig/7.0.0/typescript" : param.userAgent;
37
+ this.userAgent = param.userAgent === undefined ? "Konfig/8.0.0/typescript" : param.userAgent;
38
38
  this.formDataCtor = param.formDataCtor;
39
39
  }
40
40
  /**
@@ -82,13 +82,13 @@ export interface Brokerage {
82
82
  * @type {boolean}
83
83
  * @memberof Brokerage
84
84
  */
85
- 'allows_trading'?: boolean;
85
+ 'allows_trading'?: boolean | null;
86
86
  /**
87
87
  *
88
88
  * @type {boolean}
89
89
  * @memberof Brokerage
90
90
  */
91
- 'has_reporting'?: boolean;
91
+ 'has_reporting'?: boolean | null;
92
92
  /**
93
93
  *
94
94
  * @type {boolean}
@@ -99,11 +99,11 @@ export interface UniversalActivity {
99
99
  */
100
100
  'trade_date'?: string | null;
101
101
  /**
102
- *
102
+ * Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
103
103
  * @type {string}
104
104
  * @memberof UniversalActivity
105
105
  */
106
- 'type'?: UniversalActivityTypeEnum;
106
+ 'type'?: string;
107
107
  /**
108
108
  * Usually but not necessarily an integer
109
109
  * @type {number}
@@ -111,24 +111,3 @@ export interface UniversalActivity {
111
111
  */
112
112
  'units'?: number;
113
113
  }
114
- export declare const UniversalActivityTypeEnum: {
115
- readonly Dividend: "DIVIDEND";
116
- readonly Buy: "BUY";
117
- readonly Sell: "SELL";
118
- readonly Contribution: "CONTRIBUTION";
119
- readonly Withdrawal: "WITHDRAWAL";
120
- readonly ExternalAssetTransferIn: "EXTERNAL_ASSET_TRANSFER_IN";
121
- readonly ExternalAssetTransferOut: "EXTERNAL_ASSET_TRANSFER_OUT";
122
- readonly InternalCashTransferIn: "INTERNAL_CASH_TRANSFER_IN";
123
- readonly InternalCashTransferOut: "INTERNAL_CASH_TRANSFER_OUT";
124
- readonly InternalAssetTransferIn: "INTERNAL_ASSET_TRANSFER_IN";
125
- readonly InternalAssetTransferOut: "INTERNAL_ASSET_TRANSFER_OUT";
126
- readonly Interest: "INTEREST";
127
- readonly Rebate: "REBATE";
128
- readonly GovGrant: "GOV_GRANT";
129
- readonly Tax: "TAX";
130
- readonly Fee: "FEE";
131
- readonly Rei: "REI";
132
- readonly Fxt: "FXT";
133
- };
134
- export type UniversalActivityTypeEnum = typeof UniversalActivityTypeEnum[keyof typeof UniversalActivityTypeEnum];
@@ -13,24 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UniversalActivityTypeEnum = void 0;
17
- exports.UniversalActivityTypeEnum = {
18
- Dividend: 'DIVIDEND',
19
- Buy: 'BUY',
20
- Sell: 'SELL',
21
- Contribution: 'CONTRIBUTION',
22
- Withdrawal: 'WITHDRAWAL',
23
- ExternalAssetTransferIn: 'EXTERNAL_ASSET_TRANSFER_IN',
24
- ExternalAssetTransferOut: 'EXTERNAL_ASSET_TRANSFER_OUT',
25
- InternalCashTransferIn: 'INTERNAL_CASH_TRANSFER_IN',
26
- InternalCashTransferOut: 'INTERNAL_CASH_TRANSFER_OUT',
27
- InternalAssetTransferIn: 'INTERNAL_ASSET_TRANSFER_IN',
28
- InternalAssetTransferOut: 'INTERNAL_ASSET_TRANSFER_OUT',
29
- Interest: 'INTEREST',
30
- Rebate: 'REBATE',
31
- GovGrant: 'GOV_GRANT',
32
- Tax: 'TAX',
33
- Fee: 'FEE',
34
- Rei: 'REI',
35
- Fxt: 'FXT'
36
- };
@@ -89,13 +89,13 @@ export interface Brokerage {
89
89
  * @type {boolean}
90
90
  * @memberof Brokerage
91
91
  */
92
- 'allows_trading'?: boolean;
92
+ 'allows_trading'?: boolean | null;
93
93
  /**
94
94
  *
95
95
  * @type {boolean}
96
96
  * @memberof Brokerage
97
97
  */
98
- 'has_reporting'?: boolean;
98
+ 'has_reporting'?: boolean | null;
99
99
  /**
100
100
  *
101
101
  * @type {boolean}
@@ -112,11 +112,11 @@ export interface UniversalActivity {
112
112
  */
113
113
  'trade_date'?: string | null;
114
114
  /**
115
- *
115
+ * Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
116
116
  * @type {string}
117
117
  * @memberof UniversalActivity
118
118
  */
119
- 'type'?: UniversalActivityTypeEnum;
119
+ 'type'?: string;
120
120
  /**
121
121
  * Usually but not necessarily an integer
122
122
  * @type {number}
@@ -125,27 +125,3 @@ export interface UniversalActivity {
125
125
  'units'?: number;
126
126
  }
127
127
 
128
- export const UniversalActivityTypeEnum = {
129
- Dividend: 'DIVIDEND',
130
- Buy: 'BUY',
131
- Sell: 'SELL',
132
- Contribution: 'CONTRIBUTION',
133
- Withdrawal: 'WITHDRAWAL',
134
- ExternalAssetTransferIn: 'EXTERNAL_ASSET_TRANSFER_IN',
135
- ExternalAssetTransferOut: 'EXTERNAL_ASSET_TRANSFER_OUT',
136
- InternalCashTransferIn: 'INTERNAL_CASH_TRANSFER_IN',
137
- InternalCashTransferOut: 'INTERNAL_CASH_TRANSFER_OUT',
138
- InternalAssetTransferIn: 'INTERNAL_ASSET_TRANSFER_IN',
139
- InternalAssetTransferOut: 'INTERNAL_ASSET_TRANSFER_OUT',
140
- Interest: 'INTEREST',
141
- Rebate: 'REBATE',
142
- GovGrant: 'GOV_GRANT',
143
- Tax: 'TAX',
144
- Fee: 'FEE',
145
- Rei: 'REI',
146
- Fxt: 'FXT'
147
- } as const;
148
-
149
- export type UniversalActivityTypeEnum = typeof UniversalActivityTypeEnum[keyof typeof UniversalActivityTypeEnum];
150
-
151
-
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "7.0.0",
3
+ "version": "8.0.0",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
+ "engines": {
7
+ "node": ">=10"
8
+ },
6
9
  "repository": {
7
10
  "type": "git",
8
11
  "url": "https://github.com/passiv/snaptrade-sdks/tree/master/sdks/typescript"