snaptrade-typescript-sdk 6.1.0 → 6.3.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.
- package/.konfig/generate-id.txt +1 -1
- package/README.md +3 -2
- package/api/account-information-api.ts +57 -89
- package/api/api-disclaimer-api.ts +10 -13
- package/api/api-status-api.ts +5 -6
- package/api/authentication-api.ts +40 -58
- package/api/connections-api.ts +133 -33
- package/api/error-logs-api.ts +8 -12
- package/api/options-api.ts +40 -58
- package/api/portfolio-management-api.ts +248 -372
- package/api/reference-data-api.ts +82 -124
- package/api/trading-api.ts +81 -116
- package/api/transactions-and-reporting-api.ts +29 -25
- package/common.ts +35 -15
- package/configuration.ts +3 -2
- package/dist/api/account-information-api.js +24 -24
- package/dist/api/api-disclaimer-api.js +5 -4
- package/dist/api/authentication-api.js +19 -17
- package/dist/api/connections-api.d.ts +54 -0
- package/dist/api/connections-api.js +118 -9
- package/dist/api/error-logs-api.js +3 -3
- package/dist/api/options-api.js +19 -17
- package/dist/api/portfolio-management-api.js +115 -107
- package/dist/api/reference-data-api.js +37 -35
- package/dist/api/trading-api.js +40 -35
- package/dist/api/transactions-and-reporting-api.d.ts +8 -1
- package/dist/api/transactions-and-reporting-api.js +12 -8
- package/dist/common.d.ts +8 -1
- package/dist/common.js +21 -14
- package/dist/configuration.js +3 -2
- package/dist/models/account-order-record.d.ts +7 -0
- package/dist/models/connections-session-events200-response-inner.d.ts +17 -0
- package/dist/models/connections-session-events200-response-inner.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/session-event.d.ts +59 -0
- package/dist/models/session-event.js +25 -0
- package/dist/requestBeforeHook.d.ts +1 -0
- package/docs/ConnectionsApi.md +55 -0
- package/docs/TransactionsAndReportingApi.md +2 -0
- package/models/account-order-record.ts +9 -0
- package/models/connections-session-events200-response-inner.ts +25 -0
- package/models/index.ts +2 -0
- package/models/session-event.ts +68 -0
- package/package.json +1 -1
- package/requestBeforeHook.ts +1 -0
package/.konfig/generate-id.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
504fdfa5-370d-417d-ade0-2892f3f574d2
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## snaptrade-typescript-sdk@6.
|
|
1
|
+
## snaptrade-typescript-sdk@6.3.0
|
|
2
2
|
|
|
3
3
|
This library that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ npm run build
|
|
|
28
28
|
navigate to the folder of your consuming project and run the following command.
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
-
npm install snaptrade-typescript-sdk@6.
|
|
31
|
+
npm install snaptrade-typescript-sdk@6.3.0 --save
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Getting Started
|
|
@@ -133,6 +133,7 @@ Class | Method | HTTP request | Description
|
|
|
133
133
|
*ConnectionsApi* | [**detailBrokerageAuthorization**](docs/ConnectionsApi.md#detailBrokerageAuthorization) | **GET** /authorizations/{authorizationId} | Get detail of a specific brokerage authorizations for the user
|
|
134
134
|
*ConnectionsApi* | [**listBrokerageAuthorizations**](docs/ConnectionsApi.md#listBrokerageAuthorizations) | **GET** /authorizations | List all brokerage authorizations for the user
|
|
135
135
|
*ConnectionsApi* | [**removeBrokerageAuthorization**](docs/ConnectionsApi.md#removeBrokerageAuthorization) | **DELETE** /authorizations/{authorizationId} | Remove a brokerage authorization.
|
|
136
|
+
*ConnectionsApi* | [**sessionEvents**](docs/ConnectionsApi.md#sessionEvents) | **GET** /sessionEvents | List all session events for the partner
|
|
136
137
|
*ErrorLogsApi* | [**listUserErrors**](docs/ErrorLogsApi.md#listUserErrors) | **GET** /snapTrade/listUserErrors | Retrieve error logs on behalf of your SnapTrade users
|
|
137
138
|
*OptionsApi* | [**getOptionStrategy**](docs/OptionsApi.md#getOptionStrategy) | **POST** /accounts/{accountId}/optionStrategy | Creates an option strategy object that will be used to place an option strategy order
|
|
138
139
|
*OptionsApi* | [**getOptionsChain**](docs/OptionsApi.md#getOptionsChain) | **GET** /accounts/{accountId}/optionsChain | Get the options chain
|
|
@@ -16,7 +16,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'ax
|
|
|
16
16
|
import { Configuration } from '../configuration';
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject,
|
|
19
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
22
22
|
// @ts-ignore
|
|
@@ -68,14 +68,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
68
68
|
const localVarQueryParameter = {} as any;
|
|
69
69
|
|
|
70
70
|
// authentication PartnerClientId required
|
|
71
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
72
|
-
|
|
71
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
73
72
|
// authentication PartnerSignature required
|
|
74
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
75
|
-
|
|
73
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
76
74
|
// authentication PartnerTimestamp required
|
|
77
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
78
|
-
|
|
75
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
79
76
|
if (userId !== undefined) {
|
|
80
77
|
localVarQueryParameter['userId'] = userId;
|
|
81
78
|
}
|
|
@@ -92,12 +89,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
92
89
|
|
|
93
90
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
91
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
-
|
|
96
92
|
requestBeforeHook({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
queryParameters: localVarQueryParameter,
|
|
94
|
+
requestConfig: localVarRequestOptions,
|
|
95
|
+
path: localVarPath,
|
|
96
|
+
configuration
|
|
101
97
|
});
|
|
102
98
|
|
|
103
99
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -136,14 +132,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
136
132
|
const localVarQueryParameter = {} as any;
|
|
137
133
|
|
|
138
134
|
// authentication PartnerClientId required
|
|
139
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
140
|
-
|
|
135
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
141
136
|
// authentication PartnerSignature required
|
|
142
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
143
|
-
|
|
137
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
144
138
|
// authentication PartnerTimestamp required
|
|
145
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
146
|
-
|
|
139
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
147
140
|
if (userId !== undefined) {
|
|
148
141
|
localVarQueryParameter['userId'] = userId;
|
|
149
142
|
}
|
|
@@ -156,12 +149,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
156
149
|
|
|
157
150
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
158
151
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
159
|
-
|
|
160
152
|
requestBeforeHook({
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
153
|
+
queryParameters: localVarQueryParameter,
|
|
154
|
+
requestConfig: localVarRequestOptions,
|
|
155
|
+
path: localVarPath,
|
|
156
|
+
configuration
|
|
165
157
|
});
|
|
166
158
|
|
|
167
159
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -200,14 +192,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
200
192
|
const localVarQueryParameter = {} as any;
|
|
201
193
|
|
|
202
194
|
// authentication PartnerClientId required
|
|
203
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
204
|
-
|
|
195
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
205
196
|
// authentication PartnerSignature required
|
|
206
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
207
|
-
|
|
197
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
208
198
|
// authentication PartnerTimestamp required
|
|
209
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
210
|
-
|
|
199
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
211
200
|
if (userId !== undefined) {
|
|
212
201
|
localVarQueryParameter['userId'] = userId;
|
|
213
202
|
}
|
|
@@ -220,12 +209,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
220
209
|
|
|
221
210
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
211
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
223
|
-
|
|
224
212
|
requestBeforeHook({
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
213
|
+
queryParameters: localVarQueryParameter,
|
|
214
|
+
requestConfig: localVarRequestOptions,
|
|
215
|
+
path: localVarPath,
|
|
216
|
+
configuration
|
|
229
217
|
});
|
|
230
218
|
|
|
231
219
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -265,14 +253,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
265
253
|
const localVarQueryParameter = {} as any;
|
|
266
254
|
|
|
267
255
|
// authentication PartnerClientId required
|
|
268
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
269
|
-
|
|
256
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
270
257
|
// authentication PartnerSignature required
|
|
271
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
272
|
-
|
|
258
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
273
259
|
// authentication PartnerTimestamp required
|
|
274
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
275
|
-
|
|
260
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
276
261
|
if (userId !== undefined) {
|
|
277
262
|
localVarQueryParameter['userId'] = userId;
|
|
278
263
|
}
|
|
@@ -289,12 +274,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
289
274
|
|
|
290
275
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
291
276
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
292
|
-
|
|
293
277
|
requestBeforeHook({
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
278
|
+
queryParameters: localVarQueryParameter,
|
|
279
|
+
requestConfig: localVarRequestOptions,
|
|
280
|
+
path: localVarPath,
|
|
281
|
+
configuration
|
|
298
282
|
});
|
|
299
283
|
|
|
300
284
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -333,14 +317,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
333
317
|
const localVarQueryParameter = {} as any;
|
|
334
318
|
|
|
335
319
|
// authentication PartnerClientId required
|
|
336
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
337
|
-
|
|
320
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
338
321
|
// authentication PartnerSignature required
|
|
339
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
340
|
-
|
|
322
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
341
323
|
// authentication PartnerTimestamp required
|
|
342
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
343
|
-
|
|
324
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
344
325
|
if (userId !== undefined) {
|
|
345
326
|
localVarQueryParameter['userId'] = userId;
|
|
346
327
|
}
|
|
@@ -353,12 +334,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
353
334
|
|
|
354
335
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
336
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
356
|
-
|
|
357
337
|
requestBeforeHook({
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
338
|
+
queryParameters: localVarQueryParameter,
|
|
339
|
+
requestConfig: localVarRequestOptions,
|
|
340
|
+
path: localVarPath,
|
|
341
|
+
configuration
|
|
362
342
|
});
|
|
363
343
|
|
|
364
344
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -397,14 +377,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
397
377
|
const localVarQueryParameter = {} as any;
|
|
398
378
|
|
|
399
379
|
// authentication PartnerClientId required
|
|
400
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
401
|
-
|
|
380
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
402
381
|
// authentication PartnerSignature required
|
|
403
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
404
|
-
|
|
382
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
405
383
|
// authentication PartnerTimestamp required
|
|
406
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
407
|
-
|
|
384
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
408
385
|
if (userId !== undefined) {
|
|
409
386
|
localVarQueryParameter['userId'] = userId;
|
|
410
387
|
}
|
|
@@ -417,12 +394,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
417
394
|
|
|
418
395
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
419
396
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
420
|
-
|
|
421
397
|
requestBeforeHook({
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
398
|
+
queryParameters: localVarQueryParameter,
|
|
399
|
+
requestConfig: localVarRequestOptions,
|
|
400
|
+
path: localVarPath,
|
|
401
|
+
configuration
|
|
426
402
|
});
|
|
427
403
|
|
|
428
404
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -457,14 +433,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
457
433
|
const localVarQueryParameter = {} as any;
|
|
458
434
|
|
|
459
435
|
// authentication PartnerClientId required
|
|
460
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
461
|
-
|
|
436
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
462
437
|
// authentication PartnerSignature required
|
|
463
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
464
|
-
|
|
438
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
465
439
|
// authentication PartnerTimestamp required
|
|
466
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
467
|
-
|
|
440
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
468
441
|
if (userId !== undefined) {
|
|
469
442
|
localVarQueryParameter['userId'] = userId;
|
|
470
443
|
}
|
|
@@ -477,12 +450,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
477
450
|
|
|
478
451
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
479
452
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
480
|
-
|
|
481
453
|
requestBeforeHook({
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
454
|
+
queryParameters: localVarQueryParameter,
|
|
455
|
+
requestConfig: localVarRequestOptions,
|
|
456
|
+
path: localVarPath,
|
|
457
|
+
configuration
|
|
486
458
|
});
|
|
487
459
|
|
|
488
460
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -521,14 +493,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
521
493
|
const localVarQueryParameter = {} as any;
|
|
522
494
|
|
|
523
495
|
// authentication PartnerClientId required
|
|
524
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
525
|
-
|
|
496
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
526
497
|
// authentication PartnerSignature required
|
|
527
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
528
|
-
|
|
498
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
529
499
|
// authentication PartnerTimestamp required
|
|
530
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
531
|
-
|
|
500
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
532
501
|
if (userId !== undefined) {
|
|
533
502
|
localVarQueryParameter['userId'] = userId;
|
|
534
503
|
}
|
|
@@ -541,12 +510,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
541
510
|
|
|
542
511
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
543
512
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
544
|
-
|
|
545
513
|
requestBeforeHook({
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
514
|
+
queryParameters: localVarQueryParameter,
|
|
515
|
+
requestConfig: localVarRequestOptions,
|
|
516
|
+
path: localVarPath,
|
|
517
|
+
configuration
|
|
550
518
|
});
|
|
551
519
|
|
|
552
520
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16,7 +16,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'ax
|
|
|
16
16
|
import { Configuration } from '../configuration';
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject,
|
|
19
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
22
22
|
// @ts-ignore
|
|
@@ -60,14 +60,11 @@ export const ApiDisclaimerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
60
60
|
const localVarQueryParameter = {} as any;
|
|
61
61
|
|
|
62
62
|
// authentication PartnerClientId required
|
|
63
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
64
|
-
|
|
63
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
65
64
|
// authentication PartnerSignature required
|
|
66
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
67
|
-
|
|
65
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
68
66
|
// authentication PartnerTimestamp required
|
|
69
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
70
|
-
|
|
67
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
71
68
|
if (userId !== undefined) {
|
|
72
69
|
localVarQueryParameter['userId'] = userId;
|
|
73
70
|
}
|
|
@@ -82,14 +79,14 @@ export const ApiDisclaimerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
82
79
|
|
|
83
80
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
81
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIDisclaimerAcceptRequest, localVarRequestOptions, configuration)
|
|
86
|
-
|
|
87
82
|
requestBeforeHook({
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
requestBody: aPIDisclaimerAcceptRequest,
|
|
84
|
+
queryParameters: localVarQueryParameter,
|
|
85
|
+
requestConfig: localVarRequestOptions,
|
|
86
|
+
path: localVarPath,
|
|
87
|
+
configuration
|
|
92
88
|
});
|
|
89
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIDisclaimerAcceptRequest, localVarRequestOptions, configuration)
|
|
93
90
|
|
|
94
91
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
95
92
|
return {
|
package/api/api-status-api.ts
CHANGED
|
@@ -16,7 +16,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'ax
|
|
|
16
16
|
import { Configuration } from '../configuration';
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject,
|
|
19
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
22
22
|
// @ts-ignore
|
|
@@ -52,12 +52,11 @@ export const ApiStatusApiAxiosParamCreator = function (configuration?: Configura
|
|
|
52
52
|
|
|
53
53
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
54
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55
|
-
|
|
56
55
|
requestBeforeHook({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
queryParameters: localVarQueryParameter,
|
|
57
|
+
requestConfig: localVarRequestOptions,
|
|
58
|
+
path: localVarPath,
|
|
59
|
+
configuration
|
|
61
60
|
});
|
|
62
61
|
|
|
63
62
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16,7 +16,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'ax
|
|
|
16
16
|
import { Configuration } from '../configuration';
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject,
|
|
19
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
22
22
|
// @ts-ignore
|
|
@@ -68,14 +68,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
68
68
|
const localVarQueryParameter = {} as any;
|
|
69
69
|
|
|
70
70
|
// authentication PartnerClientId required
|
|
71
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
72
|
-
|
|
71
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
73
72
|
// authentication PartnerSignature required
|
|
74
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
75
|
-
|
|
73
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
76
74
|
// authentication PartnerTimestamp required
|
|
77
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
78
|
-
|
|
75
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
79
76
|
if (userId !== undefined) {
|
|
80
77
|
localVarQueryParameter['userId'] = userId;
|
|
81
78
|
}
|
|
@@ -84,12 +81,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
84
81
|
|
|
85
82
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
83
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
87
|
-
|
|
88
84
|
requestBeforeHook({
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
queryParameters: localVarQueryParameter,
|
|
86
|
+
requestConfig: localVarRequestOptions,
|
|
87
|
+
path: localVarPath,
|
|
88
|
+
configuration
|
|
93
89
|
});
|
|
94
90
|
|
|
95
91
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -124,14 +120,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
124
120
|
const localVarQueryParameter = {} as any;
|
|
125
121
|
|
|
126
122
|
// authentication PartnerClientId required
|
|
127
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
128
|
-
|
|
123
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
129
124
|
// authentication PartnerSignature required
|
|
130
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
131
|
-
|
|
125
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
132
126
|
// authentication PartnerTimestamp required
|
|
133
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
134
|
-
|
|
127
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
135
128
|
if (userId !== undefined) {
|
|
136
129
|
localVarQueryParameter['userId'] = userId;
|
|
137
130
|
}
|
|
@@ -144,12 +137,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
144
137
|
|
|
145
138
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
139
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147
|
-
|
|
148
140
|
requestBeforeHook({
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
141
|
+
queryParameters: localVarQueryParameter,
|
|
142
|
+
requestConfig: localVarRequestOptions,
|
|
143
|
+
path: localVarPath,
|
|
144
|
+
configuration
|
|
153
145
|
});
|
|
154
146
|
|
|
155
147
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -178,24 +170,20 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
178
170
|
const localVarQueryParameter = {} as any;
|
|
179
171
|
|
|
180
172
|
// authentication PartnerClientId required
|
|
181
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
182
|
-
|
|
173
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
183
174
|
// authentication PartnerSignature required
|
|
184
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
185
|
-
|
|
175
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
186
176
|
// authentication PartnerTimestamp required
|
|
187
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
188
|
-
|
|
177
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
189
178
|
|
|
190
179
|
|
|
191
180
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
181
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
193
|
-
|
|
194
182
|
requestBeforeHook({
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
183
|
+
queryParameters: localVarQueryParameter,
|
|
184
|
+
requestConfig: localVarRequestOptions,
|
|
185
|
+
path: localVarPath,
|
|
186
|
+
configuration
|
|
199
187
|
});
|
|
200
188
|
|
|
201
189
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -231,14 +219,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
231
219
|
const localVarQueryParameter = {} as any;
|
|
232
220
|
|
|
233
221
|
// authentication PartnerClientId required
|
|
234
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
235
|
-
|
|
222
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
236
223
|
// authentication PartnerSignature required
|
|
237
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
238
|
-
|
|
224
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
239
225
|
// authentication PartnerTimestamp required
|
|
240
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
241
|
-
|
|
226
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
242
227
|
if (userId !== undefined) {
|
|
243
228
|
localVarQueryParameter['userId'] = userId;
|
|
244
229
|
}
|
|
@@ -253,14 +238,14 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
253
238
|
|
|
254
239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
240
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
256
|
-
localVarRequestOptions.data = serializeDataIfNeeded(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration)
|
|
257
|
-
|
|
258
241
|
requestBeforeHook({
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
242
|
+
requestBody: snapTradeLoginUserRequestBody,
|
|
243
|
+
queryParameters: localVarQueryParameter,
|
|
244
|
+
requestConfig: localVarRequestOptions,
|
|
245
|
+
path: localVarPath,
|
|
246
|
+
configuration
|
|
263
247
|
});
|
|
248
|
+
localVarRequestOptions.data = serializeDataIfNeeded(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration)
|
|
264
249
|
|
|
265
250
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
266
251
|
return {
|
|
@@ -291,28 +276,25 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
291
276
|
const localVarQueryParameter = {} as any;
|
|
292
277
|
|
|
293
278
|
// authentication PartnerClientId required
|
|
294
|
-
await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
|
|
295
|
-
|
|
279
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
296
280
|
// authentication PartnerSignature required
|
|
297
|
-
await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
|
|
298
|
-
|
|
281
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
299
282
|
// authentication PartnerTimestamp required
|
|
300
|
-
await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
|
|
301
|
-
|
|
283
|
+
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
302
284
|
|
|
303
285
|
|
|
304
286
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
305
287
|
|
|
306
288
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
289
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
308
|
-
localVarRequestOptions.data = serializeDataIfNeeded(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration)
|
|
309
|
-
|
|
310
290
|
requestBeforeHook({
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
291
|
+
requestBody: snapTradeRegisterUserRequestBody,
|
|
292
|
+
queryParameters: localVarQueryParameter,
|
|
293
|
+
requestConfig: localVarRequestOptions,
|
|
294
|
+
path: localVarPath,
|
|
295
|
+
configuration
|
|
315
296
|
});
|
|
297
|
+
localVarRequestOptions.data = serializeDataIfNeeded(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration)
|
|
316
298
|
|
|
317
299
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
318
300
|
return {
|