snaptrade-typescript-sdk 8.9.0 → 8.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # snaptrade-typescript-sdk@8.9.0
1
+ # snaptrade-typescript-sdk@8.11.0
2
2
 
3
3
  Connect brokerage accounts to your app for live positions and trading
4
4
  ## Installing
@@ -29,10 +29,11 @@ export declare const TransactionsAndReportingApiAxiosParamCreator: (configuratio
29
29
  * @param {string | Date} [endDate]
30
30
  * @param {string} [accounts] Optional comma seperated list of account IDs used to filter the request on specific accounts
31
31
  * @param {string} [brokerageAuthorizations] Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
32
+ * @param {string} [type] Optional comma seperated list of types to filter activities by. 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
32
33
  * @param {*} [options] Override http request option.
33
34
  * @throws {RequiredError}
34
35
  */
35
- getActivities: (userId: string, userSecret: string, startDate?: string | Date, endDate?: string | Date, accounts?: string, brokerageAuthorizations?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ getActivities: (userId: string, userSecret: string, startDate?: string | Date, endDate?: string | Date, accounts?: string, brokerageAuthorizations?: string, type?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
37
  /**
37
38
  * Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Total Equity Timeframe and Rate of Returns are experimental and should not be trusted to be 100% accurate
38
39
  * @summary Get performance information for a specific timeframe
@@ -134,6 +135,12 @@ export type TransactionsAndReportingApiGetActivitiesRequest = {
134
135
  * @memberof TransactionsAndReportingApiGetActivities
135
136
  */
136
137
  readonly brokerageAuthorizations?: string;
138
+ /**
139
+ * Optional comma seperated list of types to filter activities by. 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
140
+ * @type {string}
141
+ * @memberof TransactionsAndReportingApiGetActivities
142
+ */
143
+ readonly type?: string;
137
144
  };
138
145
  /**
139
146
  * Request parameters for getReportingCustomRange operation in TransactionsAndReportingApi.
@@ -100,10 +100,11 @@ var TransactionsAndReportingApiAxiosParamCreator = function (configuration) {
100
100
  * @param {string | Date} [endDate]
101
101
  * @param {string} [accounts] Optional comma seperated list of account IDs used to filter the request on specific accounts
102
102
  * @param {string} [brokerageAuthorizations] Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
103
+ * @param {string} [type] Optional comma seperated list of types to filter activities by. 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
104
  * @param {*} [options] Override http request option.
104
105
  * @throws {RequiredError}
105
106
  */
106
- getActivities: function (userId, userSecret, startDate, endDate, accounts, brokerageAuthorizations, options) {
107
+ getActivities: function (userId, userSecret, startDate, endDate, accounts, brokerageAuthorizations, type, options) {
107
108
  if (options === void 0) { options = {}; }
108
109
  return __awaiter(_this, void 0, void 0, function () {
109
110
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -157,6 +158,9 @@ var TransactionsAndReportingApiAxiosParamCreator = function (configuration) {
157
158
  if (brokerageAuthorizations !== undefined) {
158
159
  localVarQueryParameter['brokerageAuthorizations'] = brokerageAuthorizations;
159
160
  }
161
+ if (type !== undefined) {
162
+ localVarQueryParameter['type'] = type;
163
+ }
160
164
  if (userId !== undefined) {
161
165
  localVarQueryParameter['userId'] = userId;
162
166
  }
@@ -299,7 +303,7 @@ var TransactionsAndReportingApiFp = function (configuration) {
299
303
  var localVarAxiosArgs;
300
304
  return __generator(this, function (_a) {
301
305
  switch (_a.label) {
302
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivities(requestParameters.userId, requestParameters.userSecret, requestParameters.startDate, requestParameters.endDate, requestParameters.accounts, requestParameters.brokerageAuthorizations, options)];
306
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivities(requestParameters.userId, requestParameters.userSecret, requestParameters.startDate, requestParameters.endDate, requestParameters.accounts, requestParameters.brokerageAuthorizations, requestParameters.type, options)];
303
307
  case 1:
304
308
  localVarAxiosArgs = _a.sent();
305
309
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -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/8.9.0/typescript" : param.userAgent;
37
+ this.userAgent = param.userAgent === undefined ? "Konfig/8.11.0/typescript" : param.userAgent;
38
38
  this.formDataCtor = param.formDataCtor;
39
39
  }
40
40
  /**
@@ -9,6 +9,7 @@
9
9
  * https://konfigthis.com
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { AccountOrderRecord } from './account-order-record';
12
13
  import { Balance } from './balance';
13
14
  import { Position } from './position';
14
15
  import { SnapTradeHoldingsAccountAccountId } from './snap-trade-holdings-account-account-id';
@@ -38,6 +39,12 @@ export interface AccountHoldingsAccount {
38
39
  * @memberof AccountHoldingsAccount
39
40
  */
40
41
  'positions'?: Array<Position>;
42
+ /**
43
+ *
44
+ * @type {Array<AccountOrderRecord>}
45
+ * @memberof AccountHoldingsAccount
46
+ */
47
+ 'orders'?: Array<AccountOrderRecord>;
41
48
  /**
42
49
  *
43
50
  * @type {SnapTradeHoldingsTotalValue}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "8.9.0",
3
+ "version": "8.11.0",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {