snaptrade-typescript-sdk 8.7.0 → 8.8.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 (167) hide show
  1. package/README.md +1 -2
  2. package/dist/api/portfolio-management-api.d.ts +0 -47
  3. package/dist/api/portfolio-management-api.js +0 -103
  4. package/dist/configuration.js +1 -1
  5. package/package.json +4 -1
  6. package/.konfig/generate-id.txt +0 -1
  7. package/.konfigignore +0 -3
  8. package/api/account-information-api-custom.ts +0 -3
  9. package/api/account-information-api.ts +0 -1062
  10. package/api/api-disclaimer-api-custom.ts +0 -3
  11. package/api/api-disclaimer-api.ts +0 -183
  12. package/api/api-status-api-custom.ts +0 -3
  13. package/api/api-status-api.ts +0 -128
  14. package/api/authentication-api-custom.ts +0 -3
  15. package/api/authentication-api.ts +0 -568
  16. package/api/connections-api-custom.ts +0 -3
  17. package/api/connections-api.ts +0 -544
  18. package/api/error-logs-api-custom.ts +0 -3
  19. package/api/error-logs-api.ts +0 -174
  20. package/api/options-api-custom.ts +0 -3
  21. package/api/options-api.ts +0 -739
  22. package/api/portfolio-management-api-custom.ts +0 -3
  23. package/api/portfolio-management-api.ts +0 -3301
  24. package/api/reference-data-api-custom.ts +0 -3
  25. package/api/reference-data-api.ts +0 -1031
  26. package/api/trading-api-custom.ts +0 -3
  27. package/api/trading-api.ts +0 -1304
  28. package/api/transactions-and-reporting-api-custom.ts +0 -3
  29. package/api/transactions-and-reporting-api.ts +0 -408
  30. package/api.ts +0 -27
  31. package/base.ts +0 -70
  32. package/client-custom.ts +0 -5
  33. package/client.ts +0 -59
  34. package/common.ts +0 -163
  35. package/configuration.ts +0 -131
  36. package/docs/AccountInformationApi.md +0 -469
  37. package/docs/ApiDisclaimerApi.md +0 -64
  38. package/docs/ApiStatusApi.md +0 -58
  39. package/docs/AuthenticationApi.md +0 -293
  40. package/docs/ConnectionsApi.md +0 -238
  41. package/docs/ErrorLogsApi.md +0 -62
  42. package/docs/OptionsApi.md +0 -312
  43. package/docs/PortfolioManagementApi.md +0 -1785
  44. package/docs/ReferenceDataApi.md +0 -568
  45. package/docs/TradingApi.md +0 -596
  46. package/docs/TransactionsAndReportingApi.md +0 -144
  47. package/index.test.ts +0 -177
  48. package/index.ts +0 -18
  49. package/jest.config.ts +0 -11
  50. package/models/account-holdings-account.ts +0 -61
  51. package/models/account-holdings.ts +0 -61
  52. package/models/account-order-record-status.ts +0 -48
  53. package/models/account-order-record.ts +0 -151
  54. package/models/account-simple.ts +0 -52
  55. package/models/account-sync-status.ts +0 -32
  56. package/models/account.ts +0 -91
  57. package/models/action.ts +0 -30
  58. package/models/apidisclaimer-accept-request.ts +0 -29
  59. package/models/authentication-login-snap-trade-user200-response.ts +0 -31
  60. package/models/balance.ts +0 -40
  61. package/models/brokerage-authorization-type-read-only-brokerage.ts +0 -43
  62. package/models/brokerage-authorization-type-read-only.ts +0 -68
  63. package/models/brokerage-authorization-type.ts +0 -39
  64. package/models/brokerage-authorization.ts +0 -82
  65. package/models/brokerage-symbol.ts +0 -61
  66. package/models/brokerage-type.ts +0 -37
  67. package/models/brokerage.ts +0 -136
  68. package/models/calculated-trade.ts +0 -40
  69. package/models/cash-restriction.ts +0 -63
  70. package/models/connections-session-events200-response-inner.ts +0 -25
  71. package/models/currency.ts +0 -43
  72. package/models/delete-user-response.ts +0 -37
  73. package/models/dividend-at-date.ts +0 -43
  74. package/models/encrypted-response-encrypted-message-data.ts +0 -43
  75. package/models/encrypted-response.ts +0 -38
  76. package/models/exchange-rate-pairs.ts +0 -46
  77. package/models/exchange.ts +0 -73
  78. package/models/excluded-asset.ts +0 -34
  79. package/models/index.ts +0 -109
  80. package/models/jwt.ts +0 -31
  81. package/models/login-redirect-uri.ts +0 -35
  82. package/models/manual-trade-and-impact.ts +0 -49
  83. package/models/manual-trade-balance.ts +0 -49
  84. package/models/manual-trade-form.ts +0 -80
  85. package/models/manual-trade-symbol.ts +0 -64
  86. package/models/manual-trade.ts +0 -88
  87. package/models/model-asset-class-details.ts +0 -41
  88. package/models/model-asset-class-target.ts +0 -34
  89. package/models/model-asset-class.ts +0 -37
  90. package/models/model-portfolio-asset-class.ts +0 -40
  91. package/models/model-portfolio-details.ts +0 -50
  92. package/models/model-portfolio-security.ts +0 -40
  93. package/models/model-portfolio.ts +0 -52
  94. package/models/model400-failed-request-response.ts +0 -37
  95. package/models/model401-failed-request-response.ts +0 -37
  96. package/models/model403-failed-request-response.ts +0 -37
  97. package/models/model404-failed-request-response.ts +0 -37
  98. package/models/monthly-dividends.ts +0 -40
  99. package/models/net-contributions.ts +0 -43
  100. package/models/net-dividend.ts +0 -46
  101. package/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.ts +0 -43
  102. package/models/option-chain-inner-chain-per-root-inner.ts +0 -46
  103. package/models/option-chain-inner.ts +0 -58
  104. package/models/option-leg.ts +0 -53
  105. package/models/option-strategy-legs-inner.ts +0 -47
  106. package/models/option-strategy.ts +0 -61
  107. package/models/options-get-option-strategy-request.ts +0 -51
  108. package/models/options-holdings.ts +0 -67
  109. package/models/options-place-option-strategy-request.ts +0 -57
  110. package/models/options-position.ts +0 -73
  111. package/models/options-symbol.ts +0 -94
  112. package/models/order-type.ts +0 -32
  113. package/models/partner-data.ts +0 -100
  114. package/models/past-value.ts +0 -43
  115. package/models/performance-custom.ts +0 -154
  116. package/models/portfolio-group-info.ts +0 -115
  117. package/models/portfolio-group-position.ts +0 -46
  118. package/models/portfolio-group-settings.ts +0 -58
  119. package/models/portfolio-group.ts +0 -37
  120. package/models/position-symbol.ts +0 -64
  121. package/models/position.ts +0 -64
  122. package/models/redirect-tokenand-pin.ts +0 -37
  123. package/models/security-type.ts +0 -49
  124. package/models/session-event.ts +0 -80
  125. package/models/snap-trade-apidisclaimer-accept-status.ts +0 -37
  126. package/models/snap-trade-holdings-account-account-id.ts +0 -82
  127. package/models/snap-trade-holdings-account.ts +0 -79
  128. package/models/snap-trade-holdings-total-value.ts +0 -37
  129. package/models/snap-trade-login-user-request-body.ts +0 -61
  130. package/models/snap-trade-register-user-request-body.ts +0 -35
  131. package/models/status.ts +0 -43
  132. package/models/strategy-impact-legs-inner.ts +0 -67
  133. package/models/strategy-impact.ts +0 -94
  134. package/models/strategy-order-place-orders-inner-legs-inner.ts +0 -67
  135. package/models/strategy-order-place-orders-inner.ts +0 -286
  136. package/models/strategy-order-place.ts +0 -40
  137. package/models/strategy-order-record.ts +0 -133
  138. package/models/strategy-quotes-greek.ts +0 -55
  139. package/models/strategy-quotes.ts +0 -67
  140. package/models/sub-period-return-rate.ts +0 -43
  141. package/models/symbol-query.ts +0 -29
  142. package/models/symbol.ts +0 -76
  143. package/models/symbols-quotes.ts +0 -64
  144. package/models/target-asset.ts +0 -62
  145. package/models/time-in-force.ts +0 -31
  146. package/models/trade-execution-status.ts +0 -105
  147. package/models/trade-impact.ts +0 -61
  148. package/models/trade.ts +0 -88
  149. package/models/trading-cancel-user-account-order-request.ts +0 -29
  150. package/models/trading-place-ocoorder-request.ts +0 -35
  151. package/models/transactions-status.ts +0 -35
  152. package/models/underlying-symbol.ts +0 -76
  153. package/models/universal-activity.ts +0 -127
  154. package/models/universal-symbol-ticker.ts +0 -82
  155. package/models/universal-symbol.ts +0 -80
  156. package/models/user-error-log.ts +0 -61
  157. package/models/user-idand-secret.ts +0 -37
  158. package/models/user-settings.ts +0 -88
  159. package/models/usexchange.ts +0 -79
  160. package/pagination/page-types.ts +0 -34
  161. package/pagination/page.ts +0 -58
  162. package/pagination/pageable.ts +0 -113
  163. package/pagination/paginate.ts +0 -41
  164. package/requestAfterHook.ts +0 -53
  165. package/requestBeforeHook.ts +0 -15
  166. package/tsconfig.json +0 -22
  167. package/tsconfig.test.json +0 -6
@@ -1,544 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * SnapTrade
5
- * Connect brokerage accounts to your app for live positions and trading
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: api@snaptrade.com
9
- *
10
- * NOTE: This file is auto generated by Konfig (https://konfigthis.com).
11
- * https://konfigthis.com
12
- * Do not edit the class manually.
13
- */
14
-
15
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
16
- import { Configuration } from '../configuration';
17
- // Some imports not used depending on template conditions
18
- // @ts-ignore
19
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
20
- // @ts-ignore
21
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
22
- // @ts-ignore
23
- import { BrokerageAuthorization } from '../models';
24
- // @ts-ignore
25
- import { ConnectionsSessionEvents200ResponseInner } from '../models';
26
- import { paginate } from "../pagination/paginate";
27
- import { requestBeforeHook } from '../requestBeforeHook';
28
- import { ConnectionsApiCustom } from "./connections-api-custom";
29
- /**
30
- * ConnectionsApi - axios parameter creator
31
- * @export
32
- */
33
- export const ConnectionsApiAxiosParamCreator = function (configuration?: Configuration) {
34
- return {
35
- /**
36
- *
37
- * @summary Get detail of a specific brokerage authorizations for the user
38
- * @param {string} authorizationId The ID of a brokerage authorization object.
39
- * @param {string} userId
40
- * @param {string} userSecret
41
- * @param {*} [options] Override http request option.
42
- * @throws {RequiredError}
43
- */
44
- detailBrokerageAuthorization: async (authorizationId: string, userId: string, userSecret: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45
- // verify required parameter 'authorizationId' is not null or undefined
46
- assertParamExists('detailBrokerageAuthorization', 'authorizationId', authorizationId)
47
- // verify required parameter 'userId' is not null or undefined
48
- assertParamExists('detailBrokerageAuthorization', 'userId', userId)
49
- // verify required parameter 'userSecret' is not null or undefined
50
- assertParamExists('detailBrokerageAuthorization', 'userSecret', userSecret)
51
- const localVarPath = `/authorizations/{authorizationId}`
52
- .replace(`{${"authorizationId"}}`, encodeURIComponent(String(authorizationId)));
53
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
- let baseOptions;
56
- if (configuration) {
57
- baseOptions = configuration.baseOptions;
58
- }
59
-
60
- const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
61
- const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
62
- const localVarQueryParameter = {} as any;
63
-
64
- // authentication PartnerClientId required
65
- await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
66
- // authentication PartnerSignature required
67
- await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
68
- // authentication PartnerTimestamp required
69
- await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
70
- if (userId !== undefined) {
71
- localVarQueryParameter['userId'] = userId;
72
- }
73
-
74
- if (userSecret !== undefined) {
75
- localVarQueryParameter['userSecret'] = userSecret;
76
- }
77
-
78
-
79
-
80
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
82
- requestBeforeHook({
83
- queryParameters: localVarQueryParameter,
84
- requestConfig: localVarRequestOptions,
85
- path: localVarPath,
86
- configuration
87
- });
88
-
89
- setSearchParams(localVarUrlObj, localVarQueryParameter);
90
- return {
91
- url: toPathString(localVarUrlObj),
92
- options: localVarRequestOptions,
93
- };
94
- },
95
- /**
96
- *
97
- * @summary List all brokerage authorizations for the user
98
- * @param {string} userId
99
- * @param {string} userSecret
100
- * @param {*} [options] Override http request option.
101
- * @throws {RequiredError}
102
- */
103
- listBrokerageAuthorizations: async (userId: string, userSecret: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
104
- // verify required parameter 'userId' is not null or undefined
105
- assertParamExists('listBrokerageAuthorizations', 'userId', userId)
106
- // verify required parameter 'userSecret' is not null or undefined
107
- assertParamExists('listBrokerageAuthorizations', 'userSecret', userSecret)
108
- const localVarPath = `/authorizations`;
109
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
111
- let baseOptions;
112
- if (configuration) {
113
- baseOptions = configuration.baseOptions;
114
- }
115
-
116
- const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
117
- const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
118
- const localVarQueryParameter = {} as any;
119
-
120
- // authentication PartnerClientId required
121
- await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
122
- // authentication PartnerSignature required
123
- await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
124
- // authentication PartnerTimestamp required
125
- await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
126
- if (userId !== undefined) {
127
- localVarQueryParameter['userId'] = userId;
128
- }
129
-
130
- if (userSecret !== undefined) {
131
- localVarQueryParameter['userSecret'] = userSecret;
132
- }
133
-
134
-
135
-
136
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
138
- requestBeforeHook({
139
- queryParameters: localVarQueryParameter,
140
- requestConfig: localVarRequestOptions,
141
- path: localVarPath,
142
- configuration
143
- });
144
-
145
- setSearchParams(localVarUrlObj, localVarQueryParameter);
146
- return {
147
- url: toPathString(localVarUrlObj),
148
- options: localVarRequestOptions,
149
- };
150
- },
151
- /**
152
- *
153
- * @summary Remove a brokerage authorization.
154
- * @param {string} authorizationId The ID of the Authorization to delete.
155
- * @param {string} userId
156
- * @param {string} userSecret
157
- * @param {*} [options] Override http request option.
158
- * @throws {RequiredError}
159
- */
160
- removeBrokerageAuthorization: async (authorizationId: string, userId: string, userSecret: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
161
- // verify required parameter 'authorizationId' is not null or undefined
162
- assertParamExists('removeBrokerageAuthorization', 'authorizationId', authorizationId)
163
- // verify required parameter 'userId' is not null or undefined
164
- assertParamExists('removeBrokerageAuthorization', 'userId', userId)
165
- // verify required parameter 'userSecret' is not null or undefined
166
- assertParamExists('removeBrokerageAuthorization', 'userSecret', userSecret)
167
- const localVarPath = `/authorizations/{authorizationId}`
168
- .replace(`{${"authorizationId"}}`, encodeURIComponent(String(authorizationId)));
169
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
171
- let baseOptions;
172
- if (configuration) {
173
- baseOptions = configuration.baseOptions;
174
- }
175
-
176
- const localVarRequestOptions: AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options};
177
- const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
178
- const localVarQueryParameter = {} as any;
179
-
180
- // authentication PartnerClientId required
181
- await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
182
- // authentication PartnerSignature required
183
- await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
184
- // authentication PartnerTimestamp required
185
- await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
186
- if (userId !== undefined) {
187
- localVarQueryParameter['userId'] = userId;
188
- }
189
-
190
- if (userSecret !== undefined) {
191
- localVarQueryParameter['userSecret'] = userSecret;
192
- }
193
-
194
-
195
-
196
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
197
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
198
- requestBeforeHook({
199
- queryParameters: localVarQueryParameter,
200
- requestConfig: localVarRequestOptions,
201
- path: localVarPath,
202
- configuration
203
- });
204
-
205
- setSearchParams(localVarUrlObj, localVarQueryParameter);
206
- return {
207
- url: toPathString(localVarUrlObj),
208
- options: localVarRequestOptions,
209
- };
210
- },
211
- /**
212
- *
213
- * @summary List all session events for the partner
214
- * @param {string} partnerClientId
215
- * @param {string} [userId] Optional comma seperated list of user IDs used to filter the request on specific users
216
- * @param {string} [sessionId] Optional comma seperated list of session IDs used to filter the request on specific users
217
- * @param {*} [options] Override http request option.
218
- * @throws {RequiredError}
219
- */
220
- sessionEvents: async (partnerClientId: string, userId?: string, sessionId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
221
- // verify required parameter 'partnerClientId' is not null or undefined
222
- assertParamExists('sessionEvents', 'partnerClientId', partnerClientId)
223
- const localVarPath = `/sessionEvents`;
224
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
225
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
226
- let baseOptions;
227
- if (configuration) {
228
- baseOptions = configuration.baseOptions;
229
- }
230
-
231
- const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
232
- const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
233
- const localVarQueryParameter = {} as any;
234
-
235
- // authentication PartnerClientId required
236
- await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
237
- // authentication PartnerSignature required
238
- await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
239
- // authentication PartnerTimestamp required
240
- await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
241
- if (partnerClientId !== undefined) {
242
- localVarQueryParameter['PartnerClientId'] = partnerClientId;
243
- }
244
-
245
- if (userId !== undefined) {
246
- localVarQueryParameter['userId'] = userId;
247
- }
248
-
249
- if (sessionId !== undefined) {
250
- localVarQueryParameter['sessionId'] = sessionId;
251
- }
252
-
253
-
254
-
255
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
257
- requestBeforeHook({
258
- queryParameters: localVarQueryParameter,
259
- requestConfig: localVarRequestOptions,
260
- path: localVarPath,
261
- configuration
262
- });
263
-
264
- setSearchParams(localVarUrlObj, localVarQueryParameter);
265
- return {
266
- url: toPathString(localVarUrlObj),
267
- options: localVarRequestOptions,
268
- };
269
- },
270
- }
271
- };
272
-
273
- /**
274
- * ConnectionsApi - functional programming interface
275
- * @export
276
- */
277
- export const ConnectionsApiFp = function(configuration?: Configuration) {
278
- const localVarAxiosParamCreator = ConnectionsApiAxiosParamCreator(configuration)
279
- return {
280
- /**
281
- *
282
- * @summary Get detail of a specific brokerage authorizations for the user
283
- * @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
284
- * @param {*} [options] Override http request option.
285
- * @throws {RequiredError}
286
- */
287
- async detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrokerageAuthorization>> {
288
- const localVarAxiosArgs = await localVarAxiosParamCreator.detailBrokerageAuthorization(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options);
289
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
290
- },
291
- /**
292
- *
293
- * @summary List all brokerage authorizations for the user
294
- * @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
295
- * @param {*} [options] Override http request option.
296
- * @throws {RequiredError}
297
- */
298
- async listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BrokerageAuthorization>>> {
299
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBrokerageAuthorizations(requestParameters.userId, requestParameters.userSecret, options);
300
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
301
- },
302
- /**
303
- *
304
- * @summary Remove a brokerage authorization.
305
- * @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
306
- * @param {*} [options] Override http request option.
307
- * @throws {RequiredError}
308
- */
309
- async removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
310
- const localVarAxiosArgs = await localVarAxiosParamCreator.removeBrokerageAuthorization(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options);
311
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
312
- },
313
- /**
314
- *
315
- * @summary List all session events for the partner
316
- * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
317
- * @param {*} [options] Override http request option.
318
- * @throws {RequiredError}
319
- */
320
- async sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ConnectionsSessionEvents200ResponseInner>>> {
321
- const localVarAxiosArgs = await localVarAxiosParamCreator.sessionEvents(requestParameters.partnerClientId, requestParameters.userId, requestParameters.sessionId, options);
322
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
323
- },
324
- }
325
- };
326
-
327
- /**
328
- * ConnectionsApi - factory interface
329
- * @export
330
- */
331
- export const ConnectionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
332
- const localVarFp = ConnectionsApiFp(configuration)
333
- return {
334
- /**
335
- *
336
- * @summary Get detail of a specific brokerage authorizations for the user
337
- * @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
338
- * @param {*} [options] Override http request option.
339
- * @throws {RequiredError}
340
- */
341
- detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<BrokerageAuthorization> {
342
- return localVarFp.detailBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
343
- },
344
- /**
345
- *
346
- * @summary List all brokerage authorizations for the user
347
- * @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
348
- * @param {*} [options] Override http request option.
349
- * @throws {RequiredError}
350
- */
351
- listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BrokerageAuthorization>> {
352
- return localVarFp.listBrokerageAuthorizations(requestParameters, options).then((request) => request(axios, basePath));
353
- },
354
- /**
355
- *
356
- * @summary Remove a brokerage authorization.
357
- * @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
358
- * @param {*} [options] Override http request option.
359
- * @throws {RequiredError}
360
- */
361
- removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
362
- return localVarFp.removeBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
363
- },
364
- /**
365
- *
366
- * @summary List all session events for the partner
367
- * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
368
- * @param {*} [options] Override http request option.
369
- * @throws {RequiredError}
370
- */
371
- sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ConnectionsSessionEvents200ResponseInner>> {
372
- return localVarFp.sessionEvents(requestParameters, options).then((request) => request(axios, basePath));
373
- },
374
- };
375
- };
376
-
377
- /**
378
- * Request parameters for detailBrokerageAuthorization operation in ConnectionsApi.
379
- * @export
380
- * @interface ConnectionsApiDetailBrokerageAuthorizationRequest
381
- */
382
- export type ConnectionsApiDetailBrokerageAuthorizationRequest = {
383
-
384
- /**
385
- * The ID of a brokerage authorization object.
386
- * @type {string}
387
- * @memberof ConnectionsApiDetailBrokerageAuthorization
388
- */
389
- readonly authorizationId: string
390
-
391
- /**
392
- *
393
- * @type {string}
394
- * @memberof ConnectionsApiDetailBrokerageAuthorization
395
- */
396
- readonly userId: string
397
-
398
- /**
399
- *
400
- * @type {string}
401
- * @memberof ConnectionsApiDetailBrokerageAuthorization
402
- */
403
- readonly userSecret: string
404
-
405
- }
406
-
407
- /**
408
- * Request parameters for listBrokerageAuthorizations operation in ConnectionsApi.
409
- * @export
410
- * @interface ConnectionsApiListBrokerageAuthorizationsRequest
411
- */
412
- export type ConnectionsApiListBrokerageAuthorizationsRequest = {
413
-
414
- /**
415
- *
416
- * @type {string}
417
- * @memberof ConnectionsApiListBrokerageAuthorizations
418
- */
419
- readonly userId: string
420
-
421
- /**
422
- *
423
- * @type {string}
424
- * @memberof ConnectionsApiListBrokerageAuthorizations
425
- */
426
- readonly userSecret: string
427
-
428
- }
429
-
430
- /**
431
- * Request parameters for removeBrokerageAuthorization operation in ConnectionsApi.
432
- * @export
433
- * @interface ConnectionsApiRemoveBrokerageAuthorizationRequest
434
- */
435
- export type ConnectionsApiRemoveBrokerageAuthorizationRequest = {
436
-
437
- /**
438
- * The ID of the Authorization to delete.
439
- * @type {string}
440
- * @memberof ConnectionsApiRemoveBrokerageAuthorization
441
- */
442
- readonly authorizationId: string
443
-
444
- /**
445
- *
446
- * @type {string}
447
- * @memberof ConnectionsApiRemoveBrokerageAuthorization
448
- */
449
- readonly userId: string
450
-
451
- /**
452
- *
453
- * @type {string}
454
- * @memberof ConnectionsApiRemoveBrokerageAuthorization
455
- */
456
- readonly userSecret: string
457
-
458
- }
459
-
460
- /**
461
- * Request parameters for sessionEvents operation in ConnectionsApi.
462
- * @export
463
- * @interface ConnectionsApiSessionEventsRequest
464
- */
465
- export type ConnectionsApiSessionEventsRequest = {
466
-
467
- /**
468
- *
469
- * @type {string}
470
- * @memberof ConnectionsApiSessionEvents
471
- */
472
- readonly partnerClientId: string
473
-
474
- /**
475
- * Optional comma seperated list of user IDs used to filter the request on specific users
476
- * @type {string}
477
- * @memberof ConnectionsApiSessionEvents
478
- */
479
- readonly userId?: string
480
-
481
- /**
482
- * Optional comma seperated list of session IDs used to filter the request on specific users
483
- * @type {string}
484
- * @memberof ConnectionsApiSessionEvents
485
- */
486
- readonly sessionId?: string
487
-
488
- }
489
-
490
- /**
491
- * ConnectionsApi - object-oriented interface
492
- * @export
493
- * @class ConnectionsApi
494
- * @extends {BaseAPI}
495
- */
496
- export class ConnectionsApi extends ConnectionsApiCustom {
497
- /**
498
- *
499
- * @summary Get detail of a specific brokerage authorizations for the user
500
- * @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
501
- * @param {*} [options] Override http request option.
502
- * @throws {RequiredError}
503
- * @memberof ConnectionsApi
504
- */
505
- public detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig) {
506
- return ConnectionsApiFp(this.configuration).detailBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
507
- }
508
-
509
- /**
510
- *
511
- * @summary List all brokerage authorizations for the user
512
- * @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
513
- * @param {*} [options] Override http request option.
514
- * @throws {RequiredError}
515
- * @memberof ConnectionsApi
516
- */
517
- public listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig) {
518
- return ConnectionsApiFp(this.configuration).listBrokerageAuthorizations(requestParameters, options).then((request) => request(this.axios, this.basePath));
519
- }
520
-
521
- /**
522
- *
523
- * @summary Remove a brokerage authorization.
524
- * @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
525
- * @param {*} [options] Override http request option.
526
- * @throws {RequiredError}
527
- * @memberof ConnectionsApi
528
- */
529
- public removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig) {
530
- return ConnectionsApiFp(this.configuration).removeBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
531
- }
532
-
533
- /**
534
- *
535
- * @summary List all session events for the partner
536
- * @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
537
- * @param {*} [options] Override http request option.
538
- * @throws {RequiredError}
539
- * @memberof ConnectionsApi
540
- */
541
- public sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig) {
542
- return ConnectionsApiFp(this.configuration).sessionEvents(requestParameters, options).then((request) => request(this.axios, this.basePath));
543
- }
544
- }
@@ -1,3 +0,0 @@
1
- import { BaseAPI } from "../base";
2
-
3
- export class ErrorLogsApiCustom extends BaseAPI {}