snaptrade-typescript-sdk 5.0.0 → 6.1.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 (52) hide show
  1. package/.konfig/generate-id.txt +1 -1
  2. package/README.md +3 -5
  3. package/api/account-information-api.ts +136 -120
  4. package/api/api-disclaimer-api.ts +14 -19
  5. package/api/authentication-api.ts +37 -43
  6. package/api/connections-api.ts +46 -40
  7. package/api/error-logs-api.ts +12 -10
  8. package/api/options-api.ts +104 -108
  9. package/api/portfolio-management-api.ts +259 -253
  10. package/api/reference-data-api.ts +49 -53
  11. package/api/trading-api.ts +172 -185
  12. package/api/transactions-and-reporting-api.ts +64 -60
  13. package/client.ts +2 -0
  14. package/configuration.ts +1 -1
  15. package/dist/api/account-information-api.d.ts +112 -112
  16. package/dist/api/api-disclaimer-api.d.ts +10 -16
  17. package/dist/api/api-disclaimer-api.js +1 -1
  18. package/dist/api/authentication-api.d.ts +27 -40
  19. package/dist/api/authentication-api.js +2 -2
  20. package/dist/api/connections-api.d.ts +38 -38
  21. package/dist/api/error-logs-api.d.ts +10 -10
  22. package/dist/api/options-api.d.ts +82 -94
  23. package/dist/api/options-api.js +2 -2
  24. package/dist/api/portfolio-management-api.d.ts +214 -256
  25. package/dist/api/portfolio-management-api.js +7 -7
  26. package/dist/api/reference-data-api.d.ts +37 -50
  27. package/dist/api/reference-data-api.js +2 -2
  28. package/dist/api/trading-api.d.ts +131 -160
  29. package/dist/api/trading-api.js +10 -10
  30. package/dist/api/transactions-and-reporting-api.d.ts +52 -52
  31. package/dist/configuration.js +1 -1
  32. package/dist/models/index.d.ts +1 -0
  33. package/dist/models/index.js +1 -0
  34. package/dist/models/target-asset.d.ts +4 -2
  35. package/dist/models/trading-cancel-user-account-order-request.d.ts +24 -0
  36. package/dist/models/trading-cancel-user-account-order-request.js +15 -0
  37. package/docs/AccountInformationApi.md +72 -88
  38. package/docs/ApiDisclaimerApi.md +8 -12
  39. package/docs/ApiStatusApi.md +6 -7
  40. package/docs/AuthenticationApi.md +34 -48
  41. package/docs/ConnectionsApi.md +26 -32
  42. package/docs/ErrorLogsApi.md +8 -10
  43. package/docs/OptionsApi.md +55 -62
  44. package/docs/PortfolioManagementApi.md +229 -309
  45. package/docs/ReferenceDataApi.md +66 -93
  46. package/docs/TradingApi.md +88 -117
  47. package/docs/TransactionsAndReportingApi.md +26 -28
  48. package/index.test.ts +2 -4
  49. package/models/index.ts +1 -0
  50. package/models/target-asset.ts +2 -2
  51. package/models/trading-cancel-user-account-order-request.ts +29 -0
  52. package/package.json +1 -1
@@ -265,41 +265,43 @@ export const TransactionsAndReportingApiFactory = function (configuration?: Conf
265
265
  * @export
266
266
  * @interface TransactionsAndReportingApiGetActivitiesRequest
267
267
  */
268
- export interface TransactionsAndReportingApiGetActivitiesRequest {
268
+ export type TransactionsAndReportingApiGetActivitiesRequest = {
269
+
269
270
  /**
270
- *
271
- * @type {string}
272
- * @memberof TransactionsAndReportingApiGetActivities
273
- */
271
+ *
272
+ * @type {string}
273
+ * @memberof TransactionsAndReportingApiGetActivities
274
+ */
274
275
  readonly userId: string
275
-
276
+
276
277
  /**
277
- *
278
- * @type {string}
279
- * @memberof TransactionsAndReportingApiGetActivities
280
- */
278
+ *
279
+ * @type {string}
280
+ * @memberof TransactionsAndReportingApiGetActivities
281
+ */
281
282
  readonly userSecret: string
282
-
283
+
283
284
  /**
284
- *
285
- * @type {string}
286
- * @memberof TransactionsAndReportingApiGetActivities
287
- */
285
+ *
286
+ * @type {string}
287
+ * @memberof TransactionsAndReportingApiGetActivities
288
+ */
288
289
  readonly startDate?: string
289
-
290
+
290
291
  /**
291
- *
292
- * @type {string}
293
- * @memberof TransactionsAndReportingApiGetActivities
294
- */
292
+ *
293
+ * @type {string}
294
+ * @memberof TransactionsAndReportingApiGetActivities
295
+ */
295
296
  readonly endDate?: string
296
-
297
+
297
298
  /**
298
- * Optional comma seperated list of account IDs used to filter the request on specific accounts
299
- * @type {string}
300
- * @memberof TransactionsAndReportingApiGetActivities
301
- */
299
+ * Optional comma seperated list of account IDs used to filter the request on specific accounts
300
+ * @type {string}
301
+ * @memberof TransactionsAndReportingApiGetActivities
302
+ */
302
303
  readonly accounts?: string
304
+
303
305
  }
304
306
 
305
307
  /**
@@ -307,55 +309,57 @@ export interface TransactionsAndReportingApiGetActivitiesRequest {
307
309
  * @export
308
310
  * @interface TransactionsAndReportingApiGetReportingCustomRangeRequest
309
311
  */
310
- export interface TransactionsAndReportingApiGetReportingCustomRangeRequest {
312
+ export type TransactionsAndReportingApiGetReportingCustomRangeRequest = {
313
+
311
314
  /**
312
- *
313
- * @type {string}
314
- * @memberof TransactionsAndReportingApiGetReportingCustomRange
315
- */
315
+ *
316
+ * @type {string}
317
+ * @memberof TransactionsAndReportingApiGetReportingCustomRange
318
+ */
316
319
  readonly startDate: string
317
-
320
+
318
321
  /**
319
- *
320
- * @type {string}
321
- * @memberof TransactionsAndReportingApiGetReportingCustomRange
322
- */
322
+ *
323
+ * @type {string}
324
+ * @memberof TransactionsAndReportingApiGetReportingCustomRange
325
+ */
323
326
  readonly endDate: string
324
-
327
+
325
328
  /**
326
- *
327
- * @type {string}
328
- * @memberof TransactionsAndReportingApiGetReportingCustomRange
329
- */
329
+ *
330
+ * @type {string}
331
+ * @memberof TransactionsAndReportingApiGetReportingCustomRange
332
+ */
330
333
  readonly userId: string
331
-
334
+
332
335
  /**
333
- *
334
- * @type {string}
335
- * @memberof TransactionsAndReportingApiGetReportingCustomRange
336
- */
336
+ *
337
+ * @type {string}
338
+ * @memberof TransactionsAndReportingApiGetReportingCustomRange
339
+ */
337
340
  readonly userSecret: string
338
-
341
+
339
342
  /**
340
- * Optional comma seperated list of account IDs used to filter the request on specific accounts
341
- * @type {string}
342
- * @memberof TransactionsAndReportingApiGetReportingCustomRange
343
- */
343
+ * Optional comma seperated list of account IDs used to filter the request on specific accounts
344
+ * @type {string}
345
+ * @memberof TransactionsAndReportingApiGetReportingCustomRange
346
+ */
344
347
  readonly accounts?: string
345
-
348
+
346
349
  /**
347
- * Optional, increases frequency of data points for the total value and contribution charts if set to true
348
- * @type {boolean}
349
- * @memberof TransactionsAndReportingApiGetReportingCustomRange
350
- */
350
+ * Optional, increases frequency of data points for the total value and contribution charts if set to true
351
+ * @type {boolean}
352
+ * @memberof TransactionsAndReportingApiGetReportingCustomRange
353
+ */
351
354
  readonly detailed?: boolean
352
-
355
+
353
356
  /**
354
- * Optional frequency for the rate of return chart (defaults to monthly). Possible values are daily, weekly, monthly, quarterly, yearly.
355
- * @type {string}
356
- * @memberof TransactionsAndReportingApiGetReportingCustomRange
357
- */
357
+ * Optional frequency for the rate of return chart (defaults to monthly). Possible values are daily, weekly, monthly, quarterly, yearly.
358
+ * @type {string}
359
+ * @memberof TransactionsAndReportingApiGetReportingCustomRange
360
+ */
358
361
  readonly frequency?: string
362
+
359
363
  }
360
364
 
361
365
  /**
package/client.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
 
13
+ import { AxiosRequestConfig } from "axios";
13
14
  import {
14
15
  AccountInformationApi,
15
16
  ApiDisclaimerApi,
@@ -52,4 +53,5 @@ export class Snaptrade {
52
53
  this.trading = new TradingApi(configuration);
53
54
  this.transactionsAndReporting = new TransactionsAndReportingApi(configuration);
54
55
  }
56
+
55
57
  }
package/configuration.ts CHANGED
@@ -109,7 +109,7 @@ export class Configuration {
109
109
  this.accessToken = param.accessToken;
110
110
  this.basePath = param.basePath;
111
111
  this.baseOptions = param.baseOptions;
112
- this.userAgent = param.userAgent === undefined ? "Konfig/5.0.0/typescript" : param.userAgent;
112
+ this.userAgent = param.userAgent === undefined ? "Konfig/6.1.0/typescript" : param.userAgent;
113
113
  this.formDataCtor = param.formDataCtor;
114
114
  }
115
115
 
@@ -248,201 +248,201 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
248
248
  * @export
249
249
  * @interface AccountInformationApiGetAllUserHoldingsRequest
250
250
  */
251
- export interface AccountInformationApiGetAllUserHoldingsRequest {
251
+ export type AccountInformationApiGetAllUserHoldingsRequest = {
252
252
  /**
253
- *
254
- * @type {string}
255
- * @memberof AccountInformationApiGetAllUserHoldings
256
- */
253
+ *
254
+ * @type {string}
255
+ * @memberof AccountInformationApiGetAllUserHoldings
256
+ */
257
257
  readonly userId: string;
258
258
  /**
259
- *
260
- * @type {string}
261
- * @memberof AccountInformationApiGetAllUserHoldings
262
- */
259
+ *
260
+ * @type {string}
261
+ * @memberof AccountInformationApiGetAllUserHoldings
262
+ */
263
263
  readonly userSecret: string;
264
264
  /**
265
- * Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
266
- * @type {string}
267
- * @memberof AccountInformationApiGetAllUserHoldings
268
- */
265
+ * Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
266
+ * @type {string}
267
+ * @memberof AccountInformationApiGetAllUserHoldings
268
+ */
269
269
  readonly brokerageAuthorizations?: string;
270
- }
270
+ };
271
271
  /**
272
272
  * Request parameters for getUserAccountBalance operation in AccountInformationApi.
273
273
  * @export
274
274
  * @interface AccountInformationApiGetUserAccountBalanceRequest
275
275
  */
276
- export interface AccountInformationApiGetUserAccountBalanceRequest {
276
+ export type AccountInformationApiGetUserAccountBalanceRequest = {
277
277
  /**
278
- *
279
- * @type {string}
280
- * @memberof AccountInformationApiGetUserAccountBalance
281
- */
278
+ *
279
+ * @type {string}
280
+ * @memberof AccountInformationApiGetUserAccountBalance
281
+ */
282
282
  readonly userId: string;
283
283
  /**
284
- *
285
- * @type {string}
286
- * @memberof AccountInformationApiGetUserAccountBalance
287
- */
284
+ *
285
+ * @type {string}
286
+ * @memberof AccountInformationApiGetUserAccountBalance
287
+ */
288
288
  readonly userSecret: string;
289
289
  /**
290
- * The ID of the account get positions.
291
- * @type {string}
292
- * @memberof AccountInformationApiGetUserAccountBalance
293
- */
290
+ * The ID of the account get positions.
291
+ * @type {string}
292
+ * @memberof AccountInformationApiGetUserAccountBalance
293
+ */
294
294
  readonly accountId: string;
295
- }
295
+ };
296
296
  /**
297
297
  * Request parameters for getUserAccountDetails operation in AccountInformationApi.
298
298
  * @export
299
299
  * @interface AccountInformationApiGetUserAccountDetailsRequest
300
300
  */
301
- export interface AccountInformationApiGetUserAccountDetailsRequest {
301
+ export type AccountInformationApiGetUserAccountDetailsRequest = {
302
302
  /**
303
- *
304
- * @type {string}
305
- * @memberof AccountInformationApiGetUserAccountDetails
306
- */
303
+ *
304
+ * @type {string}
305
+ * @memberof AccountInformationApiGetUserAccountDetails
306
+ */
307
307
  readonly userId: string;
308
308
  /**
309
- *
310
- * @type {string}
311
- * @memberof AccountInformationApiGetUserAccountDetails
312
- */
309
+ *
310
+ * @type {string}
311
+ * @memberof AccountInformationApiGetUserAccountDetails
312
+ */
313
313
  readonly userSecret: string;
314
314
  /**
315
- * The ID of the account to get detail of.
316
- * @type {string}
317
- * @memberof AccountInformationApiGetUserAccountDetails
318
- */
315
+ * The ID of the account to get detail of.
316
+ * @type {string}
317
+ * @memberof AccountInformationApiGetUserAccountDetails
318
+ */
319
319
  readonly accountId: string;
320
- }
320
+ };
321
321
  /**
322
322
  * Request parameters for getUserAccountOrders operation in AccountInformationApi.
323
323
  * @export
324
324
  * @interface AccountInformationApiGetUserAccountOrdersRequest
325
325
  */
326
- export interface AccountInformationApiGetUserAccountOrdersRequest {
326
+ export type AccountInformationApiGetUserAccountOrdersRequest = {
327
327
  /**
328
- *
329
- * @type {string}
330
- * @memberof AccountInformationApiGetUserAccountOrders
331
- */
328
+ *
329
+ * @type {string}
330
+ * @memberof AccountInformationApiGetUserAccountOrders
331
+ */
332
332
  readonly userId: string;
333
333
  /**
334
- *
335
- * @type {string}
336
- * @memberof AccountInformationApiGetUserAccountOrders
337
- */
334
+ *
335
+ * @type {string}
336
+ * @memberof AccountInformationApiGetUserAccountOrders
337
+ */
338
338
  readonly userSecret: string;
339
339
  /**
340
- * The ID of the account get positions.
341
- * @type {string}
342
- * @memberof AccountInformationApiGetUserAccountOrders
343
- */
340
+ * The ID of the account get positions.
341
+ * @type {string}
342
+ * @memberof AccountInformationApiGetUserAccountOrders
343
+ */
344
344
  readonly accountId: string;
345
345
  /**
346
- * defaults value is set to \"all\"
347
- * @type {'all' | 'open' | 'executed'}
348
- * @memberof AccountInformationApiGetUserAccountOrders
349
- */
346
+ * defaults value is set to \"all\"
347
+ * @type {'all' | 'open' | 'executed'}
348
+ * @memberof AccountInformationApiGetUserAccountOrders
349
+ */
350
350
  readonly state?: 'all' | 'open' | 'executed';
351
- }
351
+ };
352
352
  /**
353
353
  * Request parameters for getUserAccountPositions operation in AccountInformationApi.
354
354
  * @export
355
355
  * @interface AccountInformationApiGetUserAccountPositionsRequest
356
356
  */
357
- export interface AccountInformationApiGetUserAccountPositionsRequest {
357
+ export type AccountInformationApiGetUserAccountPositionsRequest = {
358
358
  /**
359
- *
360
- * @type {string}
361
- * @memberof AccountInformationApiGetUserAccountPositions
362
- */
359
+ *
360
+ * @type {string}
361
+ * @memberof AccountInformationApiGetUserAccountPositions
362
+ */
363
363
  readonly userId: string;
364
364
  /**
365
- *
366
- * @type {string}
367
- * @memberof AccountInformationApiGetUserAccountPositions
368
- */
365
+ *
366
+ * @type {string}
367
+ * @memberof AccountInformationApiGetUserAccountPositions
368
+ */
369
369
  readonly userSecret: string;
370
370
  /**
371
- * The ID of the account get positions.
372
- * @type {string}
373
- * @memberof AccountInformationApiGetUserAccountPositions
374
- */
371
+ * The ID of the account get positions.
372
+ * @type {string}
373
+ * @memberof AccountInformationApiGetUserAccountPositions
374
+ */
375
375
  readonly accountId: string;
376
- }
376
+ };
377
377
  /**
378
378
  * Request parameters for getUserHoldings operation in AccountInformationApi.
379
379
  * @export
380
380
  * @interface AccountInformationApiGetUserHoldingsRequest
381
381
  */
382
- export interface AccountInformationApiGetUserHoldingsRequest {
382
+ export type AccountInformationApiGetUserHoldingsRequest = {
383
383
  /**
384
- * The ID of the account to fetch holdings for.
385
- * @type {string}
386
- * @memberof AccountInformationApiGetUserHoldings
387
- */
384
+ * The ID of the account to fetch holdings for.
385
+ * @type {string}
386
+ * @memberof AccountInformationApiGetUserHoldings
387
+ */
388
388
  readonly accountId: string;
389
389
  /**
390
- *
391
- * @type {string}
392
- * @memberof AccountInformationApiGetUserHoldings
393
- */
390
+ *
391
+ * @type {string}
392
+ * @memberof AccountInformationApiGetUserHoldings
393
+ */
394
394
  readonly userId: string;
395
395
  /**
396
- *
397
- * @type {string}
398
- * @memberof AccountInformationApiGetUserHoldings
399
- */
396
+ *
397
+ * @type {string}
398
+ * @memberof AccountInformationApiGetUserHoldings
399
+ */
400
400
  readonly userSecret: string;
401
- }
401
+ };
402
402
  /**
403
403
  * Request parameters for listUserAccounts operation in AccountInformationApi.
404
404
  * @export
405
405
  * @interface AccountInformationApiListUserAccountsRequest
406
406
  */
407
- export interface AccountInformationApiListUserAccountsRequest {
407
+ export type AccountInformationApiListUserAccountsRequest = {
408
408
  /**
409
- *
410
- * @type {string}
411
- * @memberof AccountInformationApiListUserAccounts
412
- */
409
+ *
410
+ * @type {string}
411
+ * @memberof AccountInformationApiListUserAccounts
412
+ */
413
413
  readonly userId: string;
414
414
  /**
415
- *
416
- * @type {string}
417
- * @memberof AccountInformationApiListUserAccounts
418
- */
415
+ *
416
+ * @type {string}
417
+ * @memberof AccountInformationApiListUserAccounts
418
+ */
419
419
  readonly userSecret: string;
420
- }
420
+ };
421
421
  /**
422
422
  * Request parameters for updateUserAccount operation in AccountInformationApi.
423
423
  * @export
424
424
  * @interface AccountInformationApiUpdateUserAccountRequest
425
425
  */
426
- export interface AccountInformationApiUpdateUserAccountRequest {
426
+ export type AccountInformationApiUpdateUserAccountRequest = {
427
427
  /**
428
- *
429
- * @type {string}
430
- * @memberof AccountInformationApiUpdateUserAccount
431
- */
428
+ *
429
+ * @type {string}
430
+ * @memberof AccountInformationApiUpdateUserAccount
431
+ */
432
432
  readonly userId: string;
433
433
  /**
434
- *
435
- * @type {string}
436
- * @memberof AccountInformationApiUpdateUserAccount
437
- */
434
+ *
435
+ * @type {string}
436
+ * @memberof AccountInformationApiUpdateUserAccount
437
+ */
438
438
  readonly userSecret: string;
439
439
  /**
440
- * The ID of the account to update.
441
- * @type {string}
442
- * @memberof AccountInformationApiUpdateUserAccount
443
- */
440
+ * The ID of the account to update.
441
+ * @type {string}
442
+ * @memberof AccountInformationApiUpdateUserAccount
443
+ */
444
444
  readonly accountId: string;
445
- }
445
+ };
446
446
  /**
447
447
  * AccountInformationApi - object-oriented interface
448
448
  * @export
@@ -63,26 +63,20 @@ export declare const ApiDisclaimerApiFactory: (configuration?: Configuration, ba
63
63
  * @export
64
64
  * @interface ApiDisclaimerApiAcceptRequest
65
65
  */
66
- export interface ApiDisclaimerApiAcceptRequest {
66
+ export type ApiDisclaimerApiAcceptRequest = {
67
67
  /**
68
- *
69
- * @type {string}
70
- * @memberof ApiDisclaimerApiAccept
71
- */
68
+ *
69
+ * @type {string}
70
+ * @memberof ApiDisclaimerApiAccept
71
+ */
72
72
  readonly userId: string;
73
73
  /**
74
- *
75
- * @type {string}
76
- * @memberof ApiDisclaimerApiAccept
77
- */
74
+ *
75
+ * @type {string}
76
+ * @memberof ApiDisclaimerApiAccept
77
+ */
78
78
  readonly userSecret: string;
79
- /**
80
- *
81
- * @type {APIDisclaimerAcceptRequest}
82
- * @memberof ApiDisclaimerApiAccept
83
- */
84
- readonly requestBody: APIDisclaimerAcceptRequest;
85
- }
79
+ } & APIDisclaimerAcceptRequest;
86
80
  /**
87
81
  * ApiDisclaimerApi - object-oriented interface
88
82
  * @export
@@ -186,7 +186,7 @@ var ApiDisclaimerApiFp = function (configuration) {
186
186
  var localVarAxiosArgs;
187
187
  return __generator(this, function (_a) {
188
188
  switch (_a.label) {
189
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.accept(requestParameters.userId, requestParameters.userSecret, requestParameters.requestBody, options)];
189
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.accept(requestParameters.userId, requestParameters.userSecret, requestParameters, options)];
190
190
  case 1:
191
191
  localVarAxiosArgs = _a.sent();
192
192
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -161,71 +161,58 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
161
161
  * @export
162
162
  * @interface AuthenticationApiDeleteSnapTradeUserRequest
163
163
  */
164
- export interface AuthenticationApiDeleteSnapTradeUserRequest {
164
+ export type AuthenticationApiDeleteSnapTradeUserRequest = {
165
165
  /**
166
- *
167
- * @type {string}
168
- * @memberof AuthenticationApiDeleteSnapTradeUser
169
- */
166
+ *
167
+ * @type {string}
168
+ * @memberof AuthenticationApiDeleteSnapTradeUser
169
+ */
170
170
  readonly userId: string;
171
- }
171
+ };
172
172
  /**
173
173
  * Request parameters for getUserJWT operation in AuthenticationApi.
174
174
  * @export
175
175
  * @interface AuthenticationApiGetUserJWTRequest
176
176
  */
177
- export interface AuthenticationApiGetUserJWTRequest {
177
+ export type AuthenticationApiGetUserJWTRequest = {
178
178
  /**
179
- *
180
- * @type {string}
181
- * @memberof AuthenticationApiGetUserJWT
182
- */
179
+ *
180
+ * @type {string}
181
+ * @memberof AuthenticationApiGetUserJWT
182
+ */
183
183
  readonly userId: string;
184
184
  /**
185
- *
186
- * @type {string}
187
- * @memberof AuthenticationApiGetUserJWT
188
- */
185
+ *
186
+ * @type {string}
187
+ * @memberof AuthenticationApiGetUserJWT
188
+ */
189
189
  readonly userSecret: string;
190
- }
190
+ };
191
191
  /**
192
192
  * Request parameters for loginSnapTradeUser operation in AuthenticationApi.
193
193
  * @export
194
194
  * @interface AuthenticationApiLoginSnapTradeUserRequest
195
195
  */
196
- export interface AuthenticationApiLoginSnapTradeUserRequest {
196
+ export type AuthenticationApiLoginSnapTradeUserRequest = {
197
197
  /**
198
- *
199
- * @type {string}
200
- * @memberof AuthenticationApiLoginSnapTradeUser
201
- */
198
+ *
199
+ * @type {string}
200
+ * @memberof AuthenticationApiLoginSnapTradeUser
201
+ */
202
202
  readonly userId: string;
203
203
  /**
204
- *
205
- * @type {string}
206
- * @memberof AuthenticationApiLoginSnapTradeUser
207
- */
204
+ *
205
+ * @type {string}
206
+ * @memberof AuthenticationApiLoginSnapTradeUser
207
+ */
208
208
  readonly userSecret: string;
209
- /**
210
- *
211
- * @type {SnapTradeLoginUserRequestBody}
212
- * @memberof AuthenticationApiLoginSnapTradeUser
213
- */
214
- readonly requestBody?: SnapTradeLoginUserRequestBody;
215
- }
209
+ } & SnapTradeLoginUserRequestBody;
216
210
  /**
217
211
  * Request parameters for registerSnapTradeUser operation in AuthenticationApi.
218
212
  * @export
219
213
  * @interface AuthenticationApiRegisterSnapTradeUserRequest
220
214
  */
221
- export interface AuthenticationApiRegisterSnapTradeUserRequest {
222
- /**
223
- *
224
- * @type {SnapTradeRegisterUserRequestBody}
225
- * @memberof AuthenticationApiRegisterSnapTradeUser
226
- */
227
- readonly requestBody: SnapTradeRegisterUserRequestBody;
228
- }
215
+ export type AuthenticationApiRegisterSnapTradeUserRequest = {} & SnapTradeRegisterUserRequestBody;
229
216
  /**
230
217
  * AuthenticationApi - object-oriented interface
231
218
  * @export
@@ -494,7 +494,7 @@ var AuthenticationApiFp = function (configuration) {
494
494
  var localVarAxiosArgs;
495
495
  return __generator(this, function (_a) {
496
496
  switch (_a.label) {
497
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.loginSnapTradeUser(requestParameters.userId, requestParameters.userSecret, requestParameters.requestBody, options)];
497
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.loginSnapTradeUser(requestParameters.userId, requestParameters.userSecret, requestParameters, options)];
498
498
  case 1:
499
499
  localVarAxiosArgs = _a.sent();
500
500
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -514,7 +514,7 @@ var AuthenticationApiFp = function (configuration) {
514
514
  var localVarAxiosArgs;
515
515
  return __generator(this, function (_a) {
516
516
  switch (_a.label) {
517
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerSnapTradeUser(requestParameters.requestBody, options)];
517
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerSnapTradeUser(requestParameters, options)];
518
518
  case 1:
519
519
  localVarAxiosArgs = _a.sent();
520
520
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];