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
|
@@ -119,21 +119,21 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
119
119
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
120
120
|
localVarQueryParameter = {};
|
|
121
121
|
// authentication PartnerClientId required
|
|
122
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
122
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
123
123
|
// authentication PartnerSignature required
|
|
124
124
|
];
|
|
125
125
|
case 1:
|
|
126
126
|
// authentication PartnerClientId required
|
|
127
127
|
_a.sent();
|
|
128
128
|
// authentication PartnerSignature required
|
|
129
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
129
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
130
130
|
// authentication PartnerTimestamp required
|
|
131
131
|
];
|
|
132
132
|
case 2:
|
|
133
133
|
// authentication PartnerSignature required
|
|
134
134
|
_a.sent();
|
|
135
135
|
// authentication PartnerTimestamp required
|
|
136
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
136
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
137
137
|
case 3:
|
|
138
138
|
// authentication PartnerTimestamp required
|
|
139
139
|
_a.sent();
|
|
@@ -195,21 +195,21 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
195
195
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
196
196
|
localVarQueryParameter = {};
|
|
197
197
|
// authentication PartnerClientId required
|
|
198
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
198
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
199
199
|
// authentication PartnerSignature required
|
|
200
200
|
];
|
|
201
201
|
case 1:
|
|
202
202
|
// authentication PartnerClientId required
|
|
203
203
|
_a.sent();
|
|
204
204
|
// authentication PartnerSignature required
|
|
205
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
205
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
206
206
|
// authentication PartnerTimestamp required
|
|
207
207
|
];
|
|
208
208
|
case 2:
|
|
209
209
|
// authentication PartnerSignature required
|
|
210
210
|
_a.sent();
|
|
211
211
|
// authentication PartnerTimestamp required
|
|
212
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
212
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
213
213
|
case 3:
|
|
214
214
|
// authentication PartnerTimestamp required
|
|
215
215
|
_a.sent();
|
|
@@ -268,21 +268,21 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
268
268
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
269
269
|
localVarQueryParameter = {};
|
|
270
270
|
// authentication PartnerClientId required
|
|
271
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
271
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
272
272
|
// authentication PartnerSignature required
|
|
273
273
|
];
|
|
274
274
|
case 1:
|
|
275
275
|
// authentication PartnerClientId required
|
|
276
276
|
_a.sent();
|
|
277
277
|
// authentication PartnerSignature required
|
|
278
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
278
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
279
279
|
// authentication PartnerTimestamp required
|
|
280
280
|
];
|
|
281
281
|
case 2:
|
|
282
282
|
// authentication PartnerSignature required
|
|
283
283
|
_a.sent();
|
|
284
284
|
// authentication PartnerTimestamp required
|
|
285
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
285
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
286
286
|
case 3:
|
|
287
287
|
// authentication PartnerTimestamp required
|
|
288
288
|
_a.sent();
|
|
@@ -342,21 +342,21 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
342
342
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
343
343
|
localVarQueryParameter = {};
|
|
344
344
|
// authentication PartnerClientId required
|
|
345
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
345
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
346
346
|
// authentication PartnerSignature required
|
|
347
347
|
];
|
|
348
348
|
case 1:
|
|
349
349
|
// authentication PartnerClientId required
|
|
350
350
|
_a.sent();
|
|
351
351
|
// authentication PartnerSignature required
|
|
352
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
352
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
353
353
|
// authentication PartnerTimestamp required
|
|
354
354
|
];
|
|
355
355
|
case 2:
|
|
356
356
|
// authentication PartnerSignature required
|
|
357
357
|
_a.sent();
|
|
358
358
|
// authentication PartnerTimestamp required
|
|
359
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
359
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
360
360
|
case 3:
|
|
361
361
|
// authentication PartnerTimestamp required
|
|
362
362
|
_a.sent();
|
|
@@ -418,21 +418,21 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
418
418
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
419
419
|
localVarQueryParameter = {};
|
|
420
420
|
// authentication PartnerClientId required
|
|
421
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
421
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
422
422
|
// authentication PartnerSignature required
|
|
423
423
|
];
|
|
424
424
|
case 1:
|
|
425
425
|
// authentication PartnerClientId required
|
|
426
426
|
_a.sent();
|
|
427
427
|
// authentication PartnerSignature required
|
|
428
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
428
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
429
429
|
// authentication PartnerTimestamp required
|
|
430
430
|
];
|
|
431
431
|
case 2:
|
|
432
432
|
// authentication PartnerSignature required
|
|
433
433
|
_a.sent();
|
|
434
434
|
// authentication PartnerTimestamp required
|
|
435
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
435
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
436
436
|
case 3:
|
|
437
437
|
// authentication PartnerTimestamp required
|
|
438
438
|
_a.sent();
|
|
@@ -491,21 +491,21 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
491
491
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
492
492
|
localVarQueryParameter = {};
|
|
493
493
|
// authentication PartnerClientId required
|
|
494
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
494
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
495
495
|
// authentication PartnerSignature required
|
|
496
496
|
];
|
|
497
497
|
case 1:
|
|
498
498
|
// authentication PartnerClientId required
|
|
499
499
|
_a.sent();
|
|
500
500
|
// authentication PartnerSignature required
|
|
501
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
501
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
502
502
|
// authentication PartnerTimestamp required
|
|
503
503
|
];
|
|
504
504
|
case 2:
|
|
505
505
|
// authentication PartnerSignature required
|
|
506
506
|
_a.sent();
|
|
507
507
|
// authentication PartnerTimestamp required
|
|
508
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
508
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
509
509
|
case 3:
|
|
510
510
|
// authentication PartnerTimestamp required
|
|
511
511
|
_a.sent();
|
|
@@ -560,21 +560,21 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
560
560
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
561
561
|
localVarQueryParameter = {};
|
|
562
562
|
// authentication PartnerClientId required
|
|
563
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
563
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
564
564
|
// authentication PartnerSignature required
|
|
565
565
|
];
|
|
566
566
|
case 1:
|
|
567
567
|
// authentication PartnerClientId required
|
|
568
568
|
_a.sent();
|
|
569
569
|
// authentication PartnerSignature required
|
|
570
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
570
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
571
571
|
// authentication PartnerTimestamp required
|
|
572
572
|
];
|
|
573
573
|
case 2:
|
|
574
574
|
// authentication PartnerSignature required
|
|
575
575
|
_a.sent();
|
|
576
576
|
// authentication PartnerTimestamp required
|
|
577
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
577
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
578
578
|
case 3:
|
|
579
579
|
// authentication PartnerTimestamp required
|
|
580
580
|
_a.sent();
|
|
@@ -633,21 +633,21 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
633
633
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
634
634
|
localVarQueryParameter = {};
|
|
635
635
|
// authentication PartnerClientId required
|
|
636
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
636
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
637
637
|
// authentication PartnerSignature required
|
|
638
638
|
];
|
|
639
639
|
case 1:
|
|
640
640
|
// authentication PartnerClientId required
|
|
641
641
|
_a.sent();
|
|
642
642
|
// authentication PartnerSignature required
|
|
643
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
643
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
644
644
|
// authentication PartnerTimestamp required
|
|
645
645
|
];
|
|
646
646
|
case 2:
|
|
647
647
|
// authentication PartnerSignature required
|
|
648
648
|
_a.sent();
|
|
649
649
|
// authentication PartnerTimestamp required
|
|
650
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
650
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
651
651
|
case 3:
|
|
652
652
|
// authentication PartnerTimestamp required
|
|
653
653
|
_a.sent();
|
|
@@ -121,21 +121,21 @@ var ApiDisclaimerApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
122
122
|
localVarQueryParameter = {};
|
|
123
123
|
// authentication PartnerClientId required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
125
125
|
// authentication PartnerSignature required
|
|
126
126
|
];
|
|
127
127
|
case 1:
|
|
128
128
|
// authentication PartnerClientId required
|
|
129
129
|
_a.sent();
|
|
130
130
|
// authentication PartnerSignature required
|
|
131
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
131
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
132
132
|
// authentication PartnerTimestamp required
|
|
133
133
|
];
|
|
134
134
|
case 2:
|
|
135
135
|
// authentication PartnerSignature required
|
|
136
136
|
_a.sent();
|
|
137
137
|
// authentication PartnerTimestamp required
|
|
138
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
138
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
139
139
|
case 3:
|
|
140
140
|
// authentication PartnerTimestamp required
|
|
141
141
|
_a.sent();
|
|
@@ -148,13 +148,14 @@ var ApiDisclaimerApiAxiosParamCreator = function (configuration) {
|
|
|
148
148
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
149
149
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
150
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
151
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aPIDisclaimerAcceptRequest, localVarRequestOptions, configuration);
|
|
152
151
|
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
152
|
+
requestBody: aPIDisclaimerAcceptRequest,
|
|
153
153
|
queryParameters: localVarQueryParameter,
|
|
154
154
|
requestConfig: localVarRequestOptions,
|
|
155
155
|
path: localVarPath,
|
|
156
156
|
configuration: configuration
|
|
157
157
|
});
|
|
158
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aPIDisclaimerAcceptRequest, localVarRequestOptions, configuration);
|
|
158
159
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
159
160
|
return [2 /*return*/, {
|
|
160
161
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -115,21 +115,21 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
115
115
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
116
116
|
localVarQueryParameter = {};
|
|
117
117
|
// authentication PartnerClientId required
|
|
118
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
118
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
119
119
|
// authentication PartnerSignature required
|
|
120
120
|
];
|
|
121
121
|
case 1:
|
|
122
122
|
// authentication PartnerClientId required
|
|
123
123
|
_a.sent();
|
|
124
124
|
// authentication PartnerSignature required
|
|
125
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
125
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
126
126
|
// authentication PartnerTimestamp required
|
|
127
127
|
];
|
|
128
128
|
case 2:
|
|
129
129
|
// authentication PartnerSignature required
|
|
130
130
|
_a.sent();
|
|
131
131
|
// authentication PartnerTimestamp required
|
|
132
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
132
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
133
133
|
case 3:
|
|
134
134
|
// authentication PartnerTimestamp required
|
|
135
135
|
_a.sent();
|
|
@@ -181,21 +181,21 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
181
181
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
182
182
|
localVarQueryParameter = {};
|
|
183
183
|
// authentication PartnerClientId required
|
|
184
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
184
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
185
185
|
// authentication PartnerSignature required
|
|
186
186
|
];
|
|
187
187
|
case 1:
|
|
188
188
|
// authentication PartnerClientId required
|
|
189
189
|
_a.sent();
|
|
190
190
|
// authentication PartnerSignature required
|
|
191
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
191
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
192
192
|
// authentication PartnerTimestamp required
|
|
193
193
|
];
|
|
194
194
|
case 2:
|
|
195
195
|
// authentication PartnerSignature required
|
|
196
196
|
_a.sent();
|
|
197
197
|
// authentication PartnerTimestamp required
|
|
198
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
198
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
199
199
|
case 3:
|
|
200
200
|
// authentication PartnerTimestamp required
|
|
201
201
|
_a.sent();
|
|
@@ -244,21 +244,21 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
244
244
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
245
245
|
localVarQueryParameter = {};
|
|
246
246
|
// authentication PartnerClientId required
|
|
247
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
247
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
248
248
|
// authentication PartnerSignature required
|
|
249
249
|
];
|
|
250
250
|
case 1:
|
|
251
251
|
// authentication PartnerClientId required
|
|
252
252
|
_a.sent();
|
|
253
253
|
// authentication PartnerSignature required
|
|
254
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
254
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
255
255
|
// authentication PartnerTimestamp required
|
|
256
256
|
];
|
|
257
257
|
case 2:
|
|
258
258
|
// authentication PartnerSignature required
|
|
259
259
|
_a.sent();
|
|
260
260
|
// authentication PartnerTimestamp required
|
|
261
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
261
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
262
262
|
case 3:
|
|
263
263
|
// authentication PartnerTimestamp required
|
|
264
264
|
_a.sent();
|
|
@@ -308,21 +308,21 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
308
308
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
309
309
|
localVarQueryParameter = {};
|
|
310
310
|
// authentication PartnerClientId required
|
|
311
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
311
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
312
312
|
// authentication PartnerSignature required
|
|
313
313
|
];
|
|
314
314
|
case 1:
|
|
315
315
|
// authentication PartnerClientId required
|
|
316
316
|
_a.sent();
|
|
317
317
|
// authentication PartnerSignature required
|
|
318
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
318
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
319
319
|
// authentication PartnerTimestamp required
|
|
320
320
|
];
|
|
321
321
|
case 2:
|
|
322
322
|
// authentication PartnerSignature required
|
|
323
323
|
_a.sent();
|
|
324
324
|
// authentication PartnerTimestamp required
|
|
325
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
325
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
326
326
|
case 3:
|
|
327
327
|
// authentication PartnerTimestamp required
|
|
328
328
|
_a.sent();
|
|
@@ -335,13 +335,14 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
335
335
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
336
336
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
337
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
338
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration);
|
|
339
338
|
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
339
|
+
requestBody: snapTradeLoginUserRequestBody,
|
|
340
340
|
queryParameters: localVarQueryParameter,
|
|
341
341
|
requestConfig: localVarRequestOptions,
|
|
342
342
|
path: localVarPath,
|
|
343
343
|
configuration: configuration
|
|
344
344
|
});
|
|
345
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration);
|
|
345
346
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
346
347
|
return [2 /*return*/, {
|
|
347
348
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -376,34 +377,35 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
376
377
|
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
377
378
|
localVarQueryParameter = {};
|
|
378
379
|
// authentication PartnerClientId required
|
|
379
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "clientId", configuration)
|
|
380
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
380
381
|
// authentication PartnerSignature required
|
|
381
382
|
];
|
|
382
383
|
case 1:
|
|
383
384
|
// authentication PartnerClientId required
|
|
384
385
|
_a.sent();
|
|
385
386
|
// authentication PartnerSignature required
|
|
386
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Signature", configuration)
|
|
387
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
387
388
|
// authentication PartnerTimestamp required
|
|
388
389
|
];
|
|
389
390
|
case 2:
|
|
390
391
|
// authentication PartnerSignature required
|
|
391
392
|
_a.sent();
|
|
392
393
|
// authentication PartnerTimestamp required
|
|
393
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "timestamp", configuration)];
|
|
394
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
394
395
|
case 3:
|
|
395
396
|
// authentication PartnerTimestamp required
|
|
396
397
|
_a.sent();
|
|
397
398
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
398
399
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
399
400
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
400
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration);
|
|
401
401
|
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
402
|
+
requestBody: snapTradeRegisterUserRequestBody,
|
|
402
403
|
queryParameters: localVarQueryParameter,
|
|
403
404
|
requestConfig: localVarRequestOptions,
|
|
404
405
|
path: localVarPath,
|
|
405
406
|
configuration: configuration
|
|
406
407
|
});
|
|
408
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration);
|
|
407
409
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
408
410
|
return [2 /*return*/, {
|
|
409
411
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -13,6 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { BrokerageAuthorization } from '../models';
|
|
16
|
+
import { ConnectionsSessionEvents200ResponseInner } from '../models';
|
|
16
17
|
/**
|
|
17
18
|
* ConnectionsApi - axios parameter creator
|
|
18
19
|
* @export
|
|
@@ -47,6 +48,15 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
47
48
|
* @throws {RequiredError}
|
|
48
49
|
*/
|
|
49
50
|
removeBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @summary List all session events for the partner
|
|
54
|
+
* @param {string} partnerClientId
|
|
55
|
+
* @param {string} [userId] Optional comma seperated list of user IDs used to filter the request on specific users
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
sessionEvents: (partnerClientId: string, userId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
60
|
};
|
|
51
61
|
/**
|
|
52
62
|
* ConnectionsApi - functional programming interface
|
|
@@ -77,6 +87,14 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
77
87
|
* @throws {RequiredError}
|
|
78
88
|
*/
|
|
79
89
|
removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary List all session events for the partner
|
|
93
|
+
* @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ConnectionsSessionEvents200ResponseInner>>>;
|
|
80
98
|
};
|
|
81
99
|
/**
|
|
82
100
|
* ConnectionsApi - factory interface
|
|
@@ -107,6 +125,14 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
107
125
|
* @throws {RequiredError}
|
|
108
126
|
*/
|
|
109
127
|
removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @summary List all session events for the partner
|
|
131
|
+
* @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ConnectionsSessionEvents200ResponseInner>>;
|
|
110
136
|
};
|
|
111
137
|
/**
|
|
112
138
|
* Request parameters for detailBrokerageAuthorization operation in ConnectionsApi.
|
|
@@ -177,6 +203,25 @@ export type ConnectionsApiRemoveBrokerageAuthorizationRequest = {
|
|
|
177
203
|
*/
|
|
178
204
|
readonly userSecret: string;
|
|
179
205
|
};
|
|
206
|
+
/**
|
|
207
|
+
* Request parameters for sessionEvents operation in ConnectionsApi.
|
|
208
|
+
* @export
|
|
209
|
+
* @interface ConnectionsApiSessionEventsRequest
|
|
210
|
+
*/
|
|
211
|
+
export type ConnectionsApiSessionEventsRequest = {
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {string}
|
|
215
|
+
* @memberof ConnectionsApiSessionEvents
|
|
216
|
+
*/
|
|
217
|
+
readonly partnerClientId: string;
|
|
218
|
+
/**
|
|
219
|
+
* Optional comma seperated list of user IDs used to filter the request on specific users
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof ConnectionsApiSessionEvents
|
|
222
|
+
*/
|
|
223
|
+
readonly userId?: string;
|
|
224
|
+
};
|
|
180
225
|
/**
|
|
181
226
|
* ConnectionsApi - object-oriented interface
|
|
182
227
|
* @export
|
|
@@ -211,4 +256,13 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
211
256
|
* @memberof ConnectionsApi
|
|
212
257
|
*/
|
|
213
258
|
removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @summary List all session events for the partner
|
|
262
|
+
* @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
* @memberof ConnectionsApi
|
|
266
|
+
*/
|
|
267
|
+
sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<import("../models").SessionEvent[], any>>;
|
|
214
268
|
}
|