snaptrade-typescript-sdk 9.0.181 → 9.0.187

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.
@@ -32,7 +32,7 @@ class Configuration {
32
32
  this.accessToken = param.accessToken;
33
33
  this.basePath = param.basePath;
34
34
  this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
35
- this.userAgent = param.userAgent === undefined ? "Konfig/9.0.181/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.187/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -85,6 +85,12 @@ export interface Account {
85
85
  * @memberof Account
86
86
  */
87
87
  'raw_type'?: string | null;
88
+ /**
89
+ * The category of the account, normalized across institutions. Returns `null` if the category could not be determined. Use this field to filter out non-investment accounts if your integration only supports trading / holdings flows. See [Filtering Accounts by Category](https://docs.snaptrade.com/docs/filtering-accounts-by-category) for more information. - `INVESTMENT`: A brokerage / investment account (equities, options, crypto, etc.). - `DEPOSIT`: A bank deposit account (checking, savings). - `LOC`: A line of credit account.
90
+ * @type {string}
91
+ * @memberof Account
92
+ */
93
+ 'account_category'?: AccountAccountCategoryEnum;
88
94
  /**
89
95
  * Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there\'s no standard format for this data. This field is deprecated and subject to removal in a future version.
90
96
  * @type {{ [key: string]: any; }}
@@ -116,4 +122,5 @@ export interface Account {
116
122
  'is_paper': boolean;
117
123
  }
118
124
  type AccountStatusEnum = 'open' | 'closed' | 'archived' | 'unavailable';
125
+ type AccountAccountCategoryEnum = 'INVESTMENT' | 'DEPOSIT' | 'LOC';
119
126
  export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Confirmation that the transaction syncs have been scheduled.
3
+ * @export
4
+ * @interface BrokerageAuthorizationTransactionsSyncConfirmation
5
+ */
6
+ export interface BrokerageAuthorizationTransactionsSyncConfirmation {
7
+ [key: string]: any;
8
+ /**
9
+ * Transactions sync confirmation details
10
+ * @type {string}
11
+ * @memberof BrokerageAuthorizationTransactionsSyncConfirmation
12
+ */
13
+ 'detail'?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -34,6 +34,7 @@ export * from './brokerage';
34
34
  export * from './brokerage-authorization';
35
35
  export * from './brokerage-authorization-disabled-confirmation';
36
36
  export * from './brokerage-authorization-refresh-confirmation';
37
+ export * from './brokerage-authorization-transactions-sync-confirmation';
37
38
  export * from './brokerage-authorization-type-read-only';
38
39
  export * from './brokerage-authorization-type-read-only-brokerage';
39
40
  export * from './brokerage-instrument';
@@ -50,6 +50,7 @@ __exportStar(require("./brokerage"), exports);
50
50
  __exportStar(require("./brokerage-authorization"), exports);
51
51
  __exportStar(require("./brokerage-authorization-disabled-confirmation"), exports);
52
52
  __exportStar(require("./brokerage-authorization-refresh-confirmation"), exports);
53
+ __exportStar(require("./brokerage-authorization-transactions-sync-confirmation"), exports);
53
54
  __exportStar(require("./brokerage-authorization-type-read-only"), exports);
54
55
  __exportStar(require("./brokerage-authorization-type-read-only-brokerage"), exports);
55
56
  __exportStar(require("./brokerage-instrument"), exports);
@@ -24,5 +24,5 @@ export interface RateOfReturnObject {
24
24
  */
25
25
  'created_date'?: string;
26
26
  }
27
- type RateOfReturnObjectTimeframeEnum = 'ALL' | '1Y' | '6M' | '3M' | '1M';
27
+ type RateOfReturnObjectTimeframeEnum = 'ALL' | '1Y' | 'YTD' | '1M' | '1W' | '1D';
28
28
  export {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Status of account transaction sync. SnapTrade syncs transactions from the brokerage under the following conditions: 1. Initial connection - SnapTrade syncs all transactions from the brokerage account as far back as the brokerage allows. Check [our integrations doc](https://support.snaptrade.com/brokerages-table?v=6fab8012ade6441fa0c6d9af9c55ce3a) for details on how far back we sync for each brokerage. 2. Daily sync - Once a day SnapTrade syncs new transactions from the brokerage. 3. Manual sync - You can retrigger an incremental sync of transactions with the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
2
+ * Status of account transaction sync. SnapTrade syncs transactions from the brokerage under the following conditions: 1. Initial connection - SnapTrade syncs all transactions from the brokerage account as far back as the brokerage allows. Check [our integrations doc](https://support.snaptrade.com/brokerages-table?v=6fab8012ade6441fa0c6d9af9c55ce3a) for details on how far back we sync for each brokerage. 2. Daily sync - Once a day SnapTrade syncs new transactions from the brokerage. 3. Manual sync - You can trigger an incremental sync of transactions with the [transactions sync](/reference/Experimental%20endpoints/Connections_syncBrokerageAuthorizationTransactions) endpoint.
3
3
  * @export
4
4
  * @interface TransactionsStatus
5
5
  */
@@ -144,6 +144,9 @@ exports.operationParameterMap = {
144
144
  {
145
145
  name: 'accountId'
146
146
  },
147
+ {
148
+ name: 'timeframes'
149
+ },
147
150
  ]
148
151
  },
149
152
  '/accounts/{accountId}/holdings-GET': {
@@ -332,6 +335,9 @@ exports.operationParameterMap = {
332
335
  {
333
336
  name: 'authorizationId'
334
337
  },
338
+ {
339
+ name: 'timeframes'
340
+ },
335
341
  ]
336
342
  },
337
343
  '/sessionEvents-GET': {
@@ -411,6 +417,19 @@ exports.operationParameterMap = {
411
417
  },
412
418
  ]
413
419
  },
420
+ '/authorizations/{authorizationId}/transactions/sync-POST': {
421
+ parameters: [
422
+ {
423
+ name: 'authorizationId'
424
+ },
425
+ {
426
+ name: 'userId'
427
+ },
428
+ {
429
+ name: 'userSecret'
430
+ },
431
+ ]
432
+ },
414
433
  '/accounts/{accountId}/options-GET': {
415
434
  parameters: [
416
435
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.181",
3
+ "version": "9.0.187",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {