snaptrade-typescript-sdk 9.0.55 → 9.0.56

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.55/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.56/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -71,6 +71,8 @@ export * from './past-value';
71
71
  export * from './performance-custom';
72
72
  export * from './position';
73
73
  export * from './position-symbol';
74
+ export * from './rate-of-return-object';
75
+ export * from './rate-of-return-response';
74
76
  export * from './recent-orders-response';
75
77
  export * from './security-type';
76
78
  export * from './session-event';
@@ -87,6 +87,8 @@ __exportStar(require("./past-value"), exports);
87
87
  __exportStar(require("./performance-custom"), exports);
88
88
  __exportStar(require("./position"), exports);
89
89
  __exportStar(require("./position-symbol"), exports);
90
+ __exportStar(require("./rate-of-return-object"), exports);
91
+ __exportStar(require("./rate-of-return-response"), exports);
90
92
  __exportStar(require("./recent-orders-response"), exports);
91
93
  __exportStar(require("./security-type"), exports);
92
94
  __exportStar(require("./session-event"), exports);
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Individual rate of return object with return percent and timeframe
3
+ * @export
4
+ * @interface RateOfReturnObject
5
+ */
6
+ export interface RateOfReturnObject {
7
+ [key: string]: any;
8
+ /**
9
+ * The timeframe this return percent is reflecting
10
+ * @type {string}
11
+ * @memberof RateOfReturnObject
12
+ */
13
+ 'timeframe'?: RateOfReturnObjectTimeframeEnum;
14
+ /**
15
+ * The percent return of the portfolio, directly from the brokerage. 5.97 indicates a 5.97% return over the timeframe
16
+ * @type {number}
17
+ * @memberof RateOfReturnObject
18
+ */
19
+ 'return_percent'?: number;
20
+ /**
21
+ * The date this was fetched
22
+ * @type {string}
23
+ * @memberof RateOfReturnObject
24
+ */
25
+ 'created_date'?: string;
26
+ }
27
+ type RateOfReturnObjectTimeframeEnum = 'ALL' | '1Y' | '6M' | '3M' | '1M';
28
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { RateOfReturnObject } from './rate-of-return-object';
2
+ /**
3
+ * List of return rates with their timeframe
4
+ * @export
5
+ * @interface RateOfReturnResponse
6
+ */
7
+ export interface RateOfReturnResponse {
8
+ [key: string]: any;
9
+ /**
10
+ * List of return percentages
11
+ * @type {Array<RateOfReturnObject>}
12
+ * @memberof RateOfReturnResponse
13
+ */
14
+ 'data'?: Array<RateOfReturnObject>;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -86,6 +86,19 @@ exports.operationParameterMap = {
86
86
  },
87
87
  ]
88
88
  },
89
+ '/accounts/{accountId}/returnRates-GET': {
90
+ parameters: [
91
+ {
92
+ name: 'userId'
93
+ },
94
+ {
95
+ name: 'userSecret'
96
+ },
97
+ {
98
+ name: 'accountId'
99
+ },
100
+ ]
101
+ },
89
102
  '/accounts/{accountId}/holdings-GET': {
90
103
  parameters: [
91
104
  {
@@ -242,6 +255,19 @@ exports.operationParameterMap = {
242
255
  },
243
256
  ]
244
257
  },
258
+ '/authorizations/{authorizationId}/returnRates-GET': {
259
+ parameters: [
260
+ {
261
+ name: 'userId'
262
+ },
263
+ {
264
+ name: 'userSecret'
265
+ },
266
+ {
267
+ name: 'authorizationId'
268
+ },
269
+ ]
270
+ },
245
271
  '/sessionEvents-GET': {
246
272
  parameters: [
247
273
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.55",
3
+ "version": "9.0.56",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {