snaptrade-typescript-sdk 6.2.0 → 6.4.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 (95) hide show
  1. package/.konfig/generate-id.txt +1 -1
  2. package/README.md +12 -24
  3. package/api/account-information-api-custom.ts +3 -0
  4. package/api/account-information-api.ts +42 -73
  5. package/api/api-disclaimer-api-custom.ts +3 -0
  6. package/api/api-disclaimer-api.ts +9 -11
  7. package/api/api-status-api-custom.ts +3 -0
  8. package/api/api-status-api.ts +6 -6
  9. package/api/authentication-api-custom.ts +3 -0
  10. package/api/authentication-api.ts +31 -48
  11. package/api/connections-api-custom.ts +3 -0
  12. package/api/connections-api.ts +128 -27
  13. package/api/error-logs-api-custom.ts +3 -0
  14. package/api/error-logs-api.ts +7 -10
  15. package/api/options-api-custom.ts +3 -0
  16. package/api/options-api.ts +31 -48
  17. package/api/portfolio-management-api-custom.ts +3 -0
  18. package/api/portfolio-management-api.ts +183 -306
  19. package/api/reference-data-api-custom.ts +3 -0
  20. package/api/reference-data-api.ts +61 -102
  21. package/api/trading-api-custom.ts +3 -0
  22. package/api/trading-api.ts +62 -96
  23. package/api/transactions-and-reporting-api-custom.ts +3 -0
  24. package/api/transactions-and-reporting-api.ts +26 -21
  25. package/client-custom.ts +5 -0
  26. package/client.ts +3 -1
  27. package/common.ts +9 -4
  28. package/configuration.ts +3 -2
  29. package/dist/api/account-information-api-custom.d.ts +3 -0
  30. package/dist/api/account-information-api-custom.js +27 -0
  31. package/dist/api/account-information-api.d.ts +3 -2
  32. package/dist/api/account-information-api.js +2 -1
  33. package/dist/api/api-disclaimer-api-custom.d.ts +3 -0
  34. package/dist/api/api-disclaimer-api-custom.js +27 -0
  35. package/dist/api/api-disclaimer-api.d.ts +3 -2
  36. package/dist/api/api-disclaimer-api.js +4 -2
  37. package/dist/api/api-status-api-custom.d.ts +3 -0
  38. package/dist/api/api-status-api-custom.js +27 -0
  39. package/dist/api/api-status-api.d.ts +3 -2
  40. package/dist/api/api-status-api.js +2 -1
  41. package/dist/api/authentication-api-custom.d.ts +3 -0
  42. package/dist/api/authentication-api-custom.js +27 -0
  43. package/dist/api/authentication-api.d.ts +3 -2
  44. package/dist/api/authentication-api.js +6 -3
  45. package/dist/api/connections-api-custom.d.ts +3 -0
  46. package/dist/api/connections-api-custom.js +27 -0
  47. package/dist/api/connections-api.d.ts +57 -2
  48. package/dist/api/connections-api.js +111 -1
  49. package/dist/api/error-logs-api-custom.d.ts +3 -0
  50. package/dist/api/error-logs-api-custom.js +27 -0
  51. package/dist/api/error-logs-api.d.ts +3 -2
  52. package/dist/api/error-logs-api.js +2 -1
  53. package/dist/api/options-api-custom.d.ts +3 -0
  54. package/dist/api/options-api-custom.js +27 -0
  55. package/dist/api/options-api.d.ts +3 -2
  56. package/dist/api/options-api.js +6 -3
  57. package/dist/api/portfolio-management-api-custom.d.ts +3 -0
  58. package/dist/api/portfolio-management-api-custom.js +27 -0
  59. package/dist/api/portfolio-management-api.d.ts +3 -2
  60. package/dist/api/portfolio-management-api.js +18 -9
  61. package/dist/api/reference-data-api-custom.d.ts +3 -0
  62. package/dist/api/reference-data-api-custom.js +27 -0
  63. package/dist/api/reference-data-api.d.ts +3 -2
  64. package/dist/api/reference-data-api.js +6 -3
  65. package/dist/api/trading-api-custom.d.ts +3 -0
  66. package/dist/api/trading-api-custom.js +27 -0
  67. package/dist/api/trading-api.d.ts +3 -2
  68. package/dist/api/trading-api.js +12 -6
  69. package/dist/api/transactions-and-reporting-api-custom.d.ts +3 -0
  70. package/dist/api/transactions-and-reporting-api-custom.js +27 -0
  71. package/dist/api/transactions-and-reporting-api.d.ts +11 -3
  72. package/dist/api/transactions-and-reporting-api.js +8 -3
  73. package/dist/client-custom.d.ts +4 -0
  74. package/dist/client-custom.js +9 -0
  75. package/dist/client.d.ts +2 -1
  76. package/dist/client.js +32 -13
  77. package/dist/common.d.ts +2 -1
  78. package/dist/common.js +12 -10
  79. package/dist/configuration.js +3 -2
  80. package/dist/models/connections-session-events200-response-inner.d.ts +17 -0
  81. package/dist/models/connections-session-events200-response-inner.js +15 -0
  82. package/dist/models/index.d.ts +2 -0
  83. package/dist/models/index.js +2 -0
  84. package/dist/models/session-event.d.ts +59 -0
  85. package/dist/models/session-event.js +25 -0
  86. package/dist/models/symbol.d.ts +6 -0
  87. package/dist/requestBeforeHook.d.ts +1 -0
  88. package/docs/ConnectionsApi.md +55 -0
  89. package/docs/TransactionsAndReportingApi.md +2 -0
  90. package/models/connections-session-events200-response-inner.ts +25 -0
  91. package/models/index.ts +2 -0
  92. package/models/session-event.ts +68 -0
  93. package/models/symbol.ts +6 -0
  94. package/package.json +1 -1
  95. package/requestBeforeHook.ts +1 -0
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ApiDisclaimerApiCustom = void 0;
19
+ var base_1 = require("../base");
20
+ var ApiDisclaimerApiCustom = /** @class */ (function (_super) {
21
+ __extends(ApiDisclaimerApiCustom, _super);
22
+ function ApiDisclaimerApiCustom() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ return ApiDisclaimerApiCustom;
26
+ }(base_1.BaseAPI));
27
+ exports.ApiDisclaimerApiCustom = ApiDisclaimerApiCustom;
@@ -11,9 +11,10 @@
11
11
  */
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs } from '../base';
15
15
  import { APIDisclaimerAcceptRequest } from '../models';
16
16
  import { SnapTradeAPIDisclaimerAcceptStatus } from '../models';
17
+ import { ApiDisclaimerApiCustom } from "./api-disclaimer-api-custom";
17
18
  /**
18
19
  * ApiDisclaimerApi - axios parameter creator
19
20
  * @export
@@ -83,7 +84,7 @@ export type ApiDisclaimerApiAcceptRequest = {
83
84
  * @class ApiDisclaimerApi
84
85
  * @extends {BaseAPI}
85
86
  */
86
- export declare class ApiDisclaimerApi extends BaseAPI {
87
+ export declare class ApiDisclaimerApi extends ApiDisclaimerApiCustom {
87
88
  /**
88
89
  *
89
90
  * @summary Accept or Reject SnapTrade disclaimer agreement
@@ -83,6 +83,7 @@ var common_1 = require("../common");
83
83
  // @ts-ignore
84
84
  var base_1 = require("../base");
85
85
  var requestBeforeHook_1 = require("../requestBeforeHook");
86
+ var api_disclaimer_api_custom_1 = require("./api-disclaimer-api-custom");
86
87
  /**
87
88
  * ApiDisclaimerApi - axios parameter creator
88
89
  * @export
@@ -148,13 +149,14 @@ var ApiDisclaimerApiAxiosParamCreator = function (configuration) {
148
149
  localVarHeaderParameter['Content-Type'] = 'application/json';
149
150
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
151
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aPIDisclaimerAcceptRequest, localVarRequestOptions, configuration);
152
152
  (0, requestBeforeHook_1.requestBeforeHook)({
153
+ requestBody: aPIDisclaimerAcceptRequest,
153
154
  queryParameters: localVarQueryParameter,
154
155
  requestConfig: localVarRequestOptions,
155
156
  path: localVarPath,
156
157
  configuration: configuration
157
158
  });
159
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aPIDisclaimerAcceptRequest, localVarRequestOptions, configuration);
158
160
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
159
161
  return [2 /*return*/, {
160
162
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -241,5 +243,5 @@ var ApiDisclaimerApi = /** @class */ (function (_super) {
241
243
  return (0, exports.ApiDisclaimerApiFp)(this.configuration).accept(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
242
244
  };
243
245
  return ApiDisclaimerApi;
244
- }(base_1.BaseAPI));
246
+ }(api_disclaimer_api_custom_1.ApiDisclaimerApiCustom));
245
247
  exports.ApiDisclaimerApi = ApiDisclaimerApi;
@@ -0,0 +1,3 @@
1
+ import { BaseAPI } from "../base";
2
+ export declare class ApiStatusApiCustom extends BaseAPI {
3
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ApiStatusApiCustom = void 0;
19
+ var base_1 = require("../base");
20
+ var ApiStatusApiCustom = /** @class */ (function (_super) {
21
+ __extends(ApiStatusApiCustom, _super);
22
+ function ApiStatusApiCustom() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ return ApiStatusApiCustom;
26
+ }(base_1.BaseAPI));
27
+ exports.ApiStatusApiCustom = ApiStatusApiCustom;
@@ -11,8 +11,9 @@
11
11
  */
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs } from '../base';
15
15
  import { Status } from '../models';
16
+ import { ApiStatusApiCustom } from "./api-status-api-custom";
16
17
  /**
17
18
  * ApiStatusApi - axios parameter creator
18
19
  * @export
@@ -58,7 +59,7 @@ export declare const ApiStatusApiFactory: (configuration?: Configuration, basePa
58
59
  * @class ApiStatusApi
59
60
  * @extends {BaseAPI}
60
61
  */
61
- export declare class ApiStatusApi extends BaseAPI {
62
+ export declare class ApiStatusApi extends ApiStatusApiCustom {
62
63
  /**
63
64
  * Check whether the API is operational and verify timestamps.
64
65
  * @summary Get API Status
@@ -83,6 +83,7 @@ var common_1 = require("../common");
83
83
  // @ts-ignore
84
84
  var base_1 = require("../base");
85
85
  var requestBeforeHook_1 = require("../requestBeforeHook");
86
+ var api_status_api_custom_1 = require("./api-status-api-custom");
86
87
  /**
87
88
  * ApiStatusApi - axios parameter creator
88
89
  * @export
@@ -199,5 +200,5 @@ var ApiStatusApi = /** @class */ (function (_super) {
199
200
  return (0, exports.ApiStatusApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
200
201
  };
201
202
  return ApiStatusApi;
202
- }(base_1.BaseAPI));
203
+ }(api_status_api_custom_1.ApiStatusApiCustom));
203
204
  exports.ApiStatusApi = ApiStatusApi;
@@ -0,0 +1,3 @@
1
+ import { BaseAPI } from "../base";
2
+ export declare class AuthenticationApiCustom extends BaseAPI {
3
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.AuthenticationApiCustom = void 0;
19
+ var base_1 = require("../base");
20
+ var AuthenticationApiCustom = /** @class */ (function (_super) {
21
+ __extends(AuthenticationApiCustom, _super);
22
+ function AuthenticationApiCustom() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ return AuthenticationApiCustom;
26
+ }(base_1.BaseAPI));
27
+ exports.AuthenticationApiCustom = AuthenticationApiCustom;
@@ -11,13 +11,14 @@
11
11
  */
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs } from '../base';
15
15
  import { AuthenticationLoginSnapTradeUser200Response } from '../models';
16
16
  import { DeleteUserResponse } from '../models';
17
17
  import { EncryptedResponse } from '../models';
18
18
  import { SnapTradeLoginUserRequestBody } from '../models';
19
19
  import { SnapTradeRegisterUserRequestBody } from '../models';
20
20
  import { UserIDandSecret } from '../models';
21
+ import { AuthenticationApiCustom } from "./authentication-api-custom";
21
22
  /**
22
23
  * AuthenticationApi - axios parameter creator
23
24
  * @export
@@ -219,7 +220,7 @@ export type AuthenticationApiRegisterSnapTradeUserRequest = {} & SnapTradeRegist
219
220
  * @class AuthenticationApi
220
221
  * @extends {BaseAPI}
221
222
  */
222
- export declare class AuthenticationApi extends BaseAPI {
223
+ export declare class AuthenticationApi extends AuthenticationApiCustom {
223
224
  /**
224
225
  *
225
226
  * @summary Delete user from SnapTrade, disabling all brokerage authorizations and permanently deleting all data associated with the user
@@ -83,6 +83,7 @@ var common_1 = require("../common");
83
83
  // @ts-ignore
84
84
  var base_1 = require("../base");
85
85
  var requestBeforeHook_1 = require("../requestBeforeHook");
86
+ var authentication_api_custom_1 = require("./authentication-api-custom");
86
87
  /**
87
88
  * AuthenticationApi - axios parameter creator
88
89
  * @export
@@ -335,13 +336,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
335
336
  localVarHeaderParameter['Content-Type'] = 'application/json';
336
337
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
338
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
338
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration);
339
339
  (0, requestBeforeHook_1.requestBeforeHook)({
340
+ requestBody: snapTradeLoginUserRequestBody,
340
341
  queryParameters: localVarQueryParameter,
341
342
  requestConfig: localVarRequestOptions,
342
343
  path: localVarPath,
343
344
  configuration: configuration
344
345
  });
346
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration);
345
347
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
346
348
  return [2 /*return*/, {
347
349
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -397,13 +399,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
397
399
  localVarHeaderParameter['Content-Type'] = 'application/json';
398
400
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
399
401
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
400
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration);
401
402
  (0, requestBeforeHook_1.requestBeforeHook)({
403
+ requestBody: snapTradeRegisterUserRequestBody,
402
404
  queryParameters: localVarQueryParameter,
403
405
  requestConfig: localVarRequestOptions,
404
406
  path: localVarPath,
405
407
  configuration: configuration
406
408
  });
409
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration);
407
410
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
408
411
  return [2 /*return*/, {
409
412
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -655,5 +658,5 @@ var AuthenticationApi = /** @class */ (function (_super) {
655
658
  return (0, exports.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
656
659
  };
657
660
  return AuthenticationApi;
658
- }(base_1.BaseAPI));
661
+ }(authentication_api_custom_1.AuthenticationApiCustom));
659
662
  exports.AuthenticationApi = AuthenticationApi;
@@ -0,0 +1,3 @@
1
+ import { BaseAPI } from "../base";
2
+ export declare class ConnectionsApiCustom extends BaseAPI {
3
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ConnectionsApiCustom = void 0;
19
+ var base_1 = require("../base");
20
+ var ConnectionsApiCustom = /** @class */ (function (_super) {
21
+ __extends(ConnectionsApiCustom, _super);
22
+ function ConnectionsApiCustom() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ return ConnectionsApiCustom;
26
+ }(base_1.BaseAPI));
27
+ exports.ConnectionsApiCustom = ConnectionsApiCustom;
@@ -11,8 +11,10 @@
11
11
  */
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs } from '../base';
15
15
  import { BrokerageAuthorization } from '../models';
16
+ import { ConnectionsSessionEvents200ResponseInner } from '../models';
17
+ import { ConnectionsApiCustom } from "./connections-api-custom";
16
18
  /**
17
19
  * ConnectionsApi - axios parameter creator
18
20
  * @export
@@ -47,6 +49,15 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
47
49
  * @throws {RequiredError}
48
50
  */
49
51
  removeBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ /**
53
+ *
54
+ * @summary List all session events for the partner
55
+ * @param {string} partnerClientId
56
+ * @param {string} [userId] Optional comma seperated list of user IDs used to filter the request on specific users
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ sessionEvents: (partnerClientId: string, userId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
61
  };
51
62
  /**
52
63
  * ConnectionsApi - functional programming interface
@@ -77,6 +88,14 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
77
88
  * @throws {RequiredError}
78
89
  */
79
90
  removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
91
+ /**
92
+ *
93
+ * @summary List all session events for the partner
94
+ * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ConnectionsSessionEvents200ResponseInner>>>;
80
99
  };
81
100
  /**
82
101
  * ConnectionsApi - factory interface
@@ -107,6 +126,14 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
107
126
  * @throws {RequiredError}
108
127
  */
109
128
  removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
129
+ /**
130
+ *
131
+ * @summary List all session events for the partner
132
+ * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ConnectionsSessionEvents200ResponseInner>>;
110
137
  };
111
138
  /**
112
139
  * Request parameters for detailBrokerageAuthorization operation in ConnectionsApi.
@@ -177,13 +204,32 @@ export type ConnectionsApiRemoveBrokerageAuthorizationRequest = {
177
204
  */
178
205
  readonly userSecret: string;
179
206
  };
207
+ /**
208
+ * Request parameters for sessionEvents operation in ConnectionsApi.
209
+ * @export
210
+ * @interface ConnectionsApiSessionEventsRequest
211
+ */
212
+ export type ConnectionsApiSessionEventsRequest = {
213
+ /**
214
+ *
215
+ * @type {string}
216
+ * @memberof ConnectionsApiSessionEvents
217
+ */
218
+ readonly partnerClientId: string;
219
+ /**
220
+ * Optional comma seperated list of user IDs used to filter the request on specific users
221
+ * @type {string}
222
+ * @memberof ConnectionsApiSessionEvents
223
+ */
224
+ readonly userId?: string;
225
+ };
180
226
  /**
181
227
  * ConnectionsApi - object-oriented interface
182
228
  * @export
183
229
  * @class ConnectionsApi
184
230
  * @extends {BaseAPI}
185
231
  */
186
- export declare class ConnectionsApi extends BaseAPI {
232
+ export declare class ConnectionsApi extends ConnectionsApiCustom {
187
233
  /**
188
234
  *
189
235
  * @summary Get detail of a specific brokerage authorizations for the user
@@ -211,4 +257,13 @@ export declare class ConnectionsApi extends BaseAPI {
211
257
  * @memberof ConnectionsApi
212
258
  */
213
259
  removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
260
+ /**
261
+ *
262
+ * @summary List all session events for the partner
263
+ * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ * @memberof ConnectionsApi
267
+ */
268
+ sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<import("../models").SessionEvent[], any>>;
214
269
  }
@@ -83,6 +83,7 @@ var common_1 = require("../common");
83
83
  // @ts-ignore
84
84
  var base_1 = require("../base");
85
85
  var requestBeforeHook_1 = require("../requestBeforeHook");
86
+ var connections_api_custom_1 = require("./connections-api-custom");
86
87
  /**
87
88
  * ConnectionsApi - axios parameter creator
88
89
  * @export
@@ -305,6 +306,73 @@ var ConnectionsApiAxiosParamCreator = function (configuration) {
305
306
  });
306
307
  });
307
308
  },
309
+ /**
310
+ *
311
+ * @summary List all session events for the partner
312
+ * @param {string} partnerClientId
313
+ * @param {string} [userId] Optional comma seperated list of user IDs used to filter the request on specific users
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ sessionEvents: function (partnerClientId, userId, options) {
318
+ if (options === void 0) { options = {}; }
319
+ return __awaiter(_this, void 0, void 0, function () {
320
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
321
+ return __generator(this, function (_a) {
322
+ switch (_a.label) {
323
+ case 0:
324
+ // verify required parameter 'partnerClientId' is not null or undefined
325
+ (0, common_1.assertParamExists)('sessionEvents', 'partnerClientId', partnerClientId);
326
+ localVarPath = "/sessionEvents";
327
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
328
+ if (configuration) {
329
+ baseOptions = configuration.baseOptions;
330
+ }
331
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
332
+ localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
333
+ localVarQueryParameter = {};
334
+ // authentication PartnerClientId required
335
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
336
+ // authentication PartnerSignature required
337
+ ];
338
+ case 1:
339
+ // authentication PartnerClientId required
340
+ _a.sent();
341
+ // authentication PartnerSignature required
342
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
343
+ // authentication PartnerTimestamp required
344
+ ];
345
+ case 2:
346
+ // authentication PartnerSignature required
347
+ _a.sent();
348
+ // authentication PartnerTimestamp required
349
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
350
+ case 3:
351
+ // authentication PartnerTimestamp required
352
+ _a.sent();
353
+ if (partnerClientId !== undefined) {
354
+ localVarQueryParameter['PartnerClientId'] = partnerClientId;
355
+ }
356
+ if (userId !== undefined) {
357
+ localVarQueryParameter['userId'] = userId;
358
+ }
359
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
361
+ (0, requestBeforeHook_1.requestBeforeHook)({
362
+ queryParameters: localVarQueryParameter,
363
+ requestConfig: localVarRequestOptions,
364
+ path: localVarPath,
365
+ configuration: configuration
366
+ });
367
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
368
+ return [2 /*return*/, {
369
+ url: (0, common_1.toPathString)(localVarUrlObj),
370
+ options: localVarRequestOptions,
371
+ }];
372
+ }
373
+ });
374
+ });
375
+ },
308
376
  };
309
377
  };
310
378
  exports.ConnectionsApiAxiosParamCreator = ConnectionsApiAxiosParamCreator;
@@ -375,6 +443,26 @@ var ConnectionsApiFp = function (configuration) {
375
443
  });
376
444
  });
377
445
  },
446
+ /**
447
+ *
448
+ * @summary List all session events for the partner
449
+ * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ sessionEvents: function (requestParameters, options) {
454
+ return __awaiter(this, void 0, void 0, function () {
455
+ var localVarAxiosArgs;
456
+ return __generator(this, function (_a) {
457
+ switch (_a.label) {
458
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sessionEvents(requestParameters.partnerClientId, requestParameters.userId, options)];
459
+ case 1:
460
+ localVarAxiosArgs = _a.sent();
461
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
462
+ }
463
+ });
464
+ });
465
+ },
378
466
  };
379
467
  };
380
468
  exports.ConnectionsApiFp = ConnectionsApiFp;
@@ -415,6 +503,16 @@ var ConnectionsApiFactory = function (configuration, basePath, axios) {
415
503
  removeBrokerageAuthorization: function (requestParameters, options) {
416
504
  return localVarFp.removeBrokerageAuthorization(requestParameters, options).then(function (request) { return request(axios, basePath); });
417
505
  },
506
+ /**
507
+ *
508
+ * @summary List all session events for the partner
509
+ * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ sessionEvents: function (requestParameters, options) {
514
+ return localVarFp.sessionEvents(requestParameters, options).then(function (request) { return request(axios, basePath); });
515
+ },
418
516
  };
419
517
  };
420
518
  exports.ConnectionsApiFactory = ConnectionsApiFactory;
@@ -465,6 +563,18 @@ var ConnectionsApi = /** @class */ (function (_super) {
465
563
  var _this = this;
466
564
  return (0, exports.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
467
565
  };
566
+ /**
567
+ *
568
+ * @summary List all session events for the partner
569
+ * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
570
+ * @param {*} [options] Override http request option.
571
+ * @throws {RequiredError}
572
+ * @memberof ConnectionsApi
573
+ */
574
+ ConnectionsApi.prototype.sessionEvents = function (requestParameters, options) {
575
+ var _this = this;
576
+ return (0, exports.ConnectionsApiFp)(this.configuration).sessionEvents(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
577
+ };
468
578
  return ConnectionsApi;
469
- }(base_1.BaseAPI));
579
+ }(connections_api_custom_1.ConnectionsApiCustom));
470
580
  exports.ConnectionsApi = ConnectionsApi;
@@ -0,0 +1,3 @@
1
+ import { BaseAPI } from "../base";
2
+ export declare class ErrorLogsApiCustom extends BaseAPI {
3
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ErrorLogsApiCustom = void 0;
19
+ var base_1 = require("../base");
20
+ var ErrorLogsApiCustom = /** @class */ (function (_super) {
21
+ __extends(ErrorLogsApiCustom, _super);
22
+ function ErrorLogsApiCustom() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ return ErrorLogsApiCustom;
26
+ }(base_1.BaseAPI));
27
+ exports.ErrorLogsApiCustom = ErrorLogsApiCustom;
@@ -11,8 +11,9 @@
11
11
  */
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
14
+ import { RequestArgs } from '../base';
15
15
  import { UserErrorLog } from '../models';
16
+ import { ErrorLogsApiCustom } from "./error-logs-api-custom";
16
17
  /**
17
18
  * ErrorLogsApi - axios parameter creator
18
19
  * @export
@@ -81,7 +82,7 @@ export type ErrorLogsApiListUserErrorsRequest = {
81
82
  * @class ErrorLogsApi
82
83
  * @extends {BaseAPI}
83
84
  */
84
- export declare class ErrorLogsApi extends BaseAPI {
85
+ export declare class ErrorLogsApi extends ErrorLogsApiCustom {
85
86
  /**
86
87
  *
87
88
  * @summary Retrieve error logs on behalf of your SnapTrade users
@@ -83,6 +83,7 @@ var common_1 = require("../common");
83
83
  // @ts-ignore
84
84
  var base_1 = require("../base");
85
85
  var requestBeforeHook_1 = require("../requestBeforeHook");
86
+ var error_logs_api_custom_1 = require("./error-logs-api-custom");
86
87
  /**
87
88
  * ErrorLogsApi - axios parameter creator
88
89
  * @export
@@ -236,5 +237,5 @@ var ErrorLogsApi = /** @class */ (function (_super) {
236
237
  return (0, exports.ErrorLogsApiFp)(this.configuration).listUserErrors(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
237
238
  };
238
239
  return ErrorLogsApi;
239
- }(base_1.BaseAPI));
240
+ }(error_logs_api_custom_1.ErrorLogsApiCustom));
240
241
  exports.ErrorLogsApi = ErrorLogsApi;
@@ -0,0 +1,3 @@
1
+ import { BaseAPI } from "../base";
2
+ export declare class OptionsApiCustom extends BaseAPI {
3
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.OptionsApiCustom = void 0;
19
+ var base_1 = require("../base");
20
+ var OptionsApiCustom = /** @class */ (function (_super) {
21
+ __extends(OptionsApiCustom, _super);
22
+ function OptionsApiCustom() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ return OptionsApiCustom;
26
+ }(base_1.BaseAPI));
27
+ exports.OptionsApiCustom = OptionsApiCustom;