snaptrade-typescript-sdk 8.19.0 → 8.20.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/README.md +2 -2
- package/dist/api/account-information-api-generated.d.ts +525 -0
- package/dist/api/account-information-api-generated.js +765 -0
- package/dist/api/account-information-api.d.ts +3 -525
- package/dist/api/account-information-api.js +17 -1044
- package/dist/api/api-status-api-generated.d.ts +69 -0
- package/dist/api/api-status-api-generated.js +131 -0
- package/dist/api/api-status-api.d.ts +3 -69
- package/dist/api/api-status-api.js +17 -198
- package/dist/api/authentication-api-generated.d.ts +266 -0
- package/dist/api/authentication-api-generated.js +461 -0
- package/dist/api/authentication-api.d.ts +3 -266
- package/dist/api/authentication-api.js +17 -656
- package/dist/api/connections-api-generated.d.ts +274 -0
- package/dist/api/connections-api-generated.js +411 -0
- package/dist/api/connections-api.d.ts +3 -274
- package/dist/api/connections-api.js +17 -578
- package/dist/api/error-logs-api-generated.d.ts +93 -0
- package/dist/api/error-logs-api-generated.js +152 -0
- package/dist/api/error-logs-api.d.ts +3 -93
- package/dist/api/error-logs-api.js +17 -235
- package/dist/api/options-api-generated.d.ts +368 -0
- package/dist/api/options-api-generated.js +530 -0
- package/dist/api/options-api.d.ts +3 -368
- package/dist/api/options-api.js +17 -725
- package/dist/api/reference-data-api-generated.d.ts +467 -0
- package/dist/api/reference-data-api-generated.js +872 -0
- package/dist/api/reference-data-api.d.ts +3 -467
- package/dist/api/reference-data-api.js +17 -1241
- package/dist/api/trading-api-generated.d.ts +402 -0
- package/dist/api/trading-api-generated.js +613 -0
- package/dist/api/trading-api.d.ts +3 -402
- package/dist/api/trading-api.js +17 -836
- package/dist/api/transactions-and-reporting-api-generated.d.ts +217 -0
- package/dist/api/transactions-and-reporting-api-generated.js +287 -0
- package/dist/api/transactions-and-reporting-api.d.ts +3 -217
- package/dist/api/transactions-and-reporting-api.js +17 -398
- package/dist/base.js +10 -31
- package/dist/client-custom.js +3 -5
- package/dist/client.d.ts +1 -1
- package/dist/client.js +17 -35
- package/dist/common.js +64 -123
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +9 -11
- package/dist/error.d.ts +56 -0
- package/dist/error.js +104 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/jest.config.js +1 -1
- package/dist/pagination/page.js +15 -43
- package/dist/pagination/pageable.js +32 -88
- package/dist/pagination/paginate.js +15 -53
- package/dist/requestAfterHook.js +14 -14
- package/dist/requestBeforeHook.js +1 -1
- package/dist/requestBeforeUrlHook.d.ts +7 -0
- package/dist/requestBeforeUrlHook.js +5 -0
- package/package.json +2 -2
- package/dist/api/account-information-api-custom.d.ts +0 -3
- package/dist/api/account-information-api-custom.js +0 -27
- package/dist/api/api-status-api-custom.d.ts +0 -3
- package/dist/api/api-status-api-custom.js +0 -27
- package/dist/api/authentication-api-custom.d.ts +0 -3
- package/dist/api/authentication-api-custom.js +0 -27
- package/dist/api/connections-api-custom.d.ts +0 -3
- package/dist/api/connections-api-custom.js +0 -27
- package/dist/api/error-logs-api-custom.d.ts +0 -3
- package/dist/api/error-logs-api-custom.js +0 -27
- package/dist/api/options-api-custom.d.ts +0 -3
- package/dist/api/options-api-custom.js +0 -27
- package/dist/api/reference-data-api-custom.d.ts +0 -3
- package/dist/api/reference-data-api-custom.js +0 -27
- package/dist/api/trading-api-custom.d.ts +0 -3
- package/dist/api/trading-api-custom.js +0 -27
- package/dist/api/transactions-and-reporting-api-custom.d.ts +0 -3
- package/dist/api/transactions-and-reporting-api-custom.js +0 -27
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SnapTrade
|
|
3
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: api@snaptrade.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
12
|
+
import { Configuration } from '../configuration';
|
|
13
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import { UserErrorLog } from '../models';
|
|
15
|
+
/**
|
|
16
|
+
* ErrorLogsApi - axios parameter creator
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const ErrorLogsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
23
|
+
* @param {string} userId
|
|
24
|
+
* @param {string} userSecret
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
listUserErrors: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* ErrorLogsApi - functional programming interface
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ErrorLogsApiFp: (configuration?: Configuration) => {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
38
|
+
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
listUserErrors(requestParameters: ErrorLogsApiListUserErrorsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserErrorLog>>>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* ErrorLogsApi - factory interface
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const ErrorLogsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
52
|
+
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
listUserErrors(requestParameters: ErrorLogsApiListUserErrorsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserErrorLog>>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Request parameters for listUserErrors operation in ErrorLogsApi.
|
|
60
|
+
* @export
|
|
61
|
+
* @interface ErrorLogsApiListUserErrorsRequest
|
|
62
|
+
*/
|
|
63
|
+
export type ErrorLogsApiListUserErrorsRequest = {
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ErrorLogsApiListUserErrors
|
|
68
|
+
*/
|
|
69
|
+
readonly userId: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ErrorLogsApiListUserErrors
|
|
74
|
+
*/
|
|
75
|
+
readonly userSecret: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* ErrorLogsApiGenerated - object-oriented interface
|
|
79
|
+
* @export
|
|
80
|
+
* @class ErrorLogsApiGenerated
|
|
81
|
+
* @extends {BaseAPI}
|
|
82
|
+
*/
|
|
83
|
+
export declare class ErrorLogsApiGenerated extends BaseAPI {
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
87
|
+
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
* @memberof ErrorLogsApiGenerated
|
|
91
|
+
*/
|
|
92
|
+
listUserErrors(requestParameters: ErrorLogsApiListUserErrorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserErrorLog[], any>>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnapTrade
|
|
6
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: api@snaptrade.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.ErrorLogsApiGenerated = exports.ErrorLogsApiFactory = exports.ErrorLogsApiFp = exports.ErrorLogsApiAxiosParamCreator = void 0;
|
|
25
|
+
const axios_1 = require("axios");
|
|
26
|
+
// Some imports not used depending on template conditions
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
const common_1 = require("../common");
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
const base_1 = require("../base");
|
|
31
|
+
const requestBeforeHook_1 = require("../requestBeforeHook");
|
|
32
|
+
/**
|
|
33
|
+
* ErrorLogsApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const ErrorLogsApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
41
|
+
* @param {string} userId
|
|
42
|
+
* @param {string} userSecret
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
listUserErrors: (userId, userSecret, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
// verify required parameter 'userId' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('listUserErrors', 'userId', userId);
|
|
49
|
+
// verify required parameter 'userSecret' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('listUserErrors', 'userSecret', userSecret);
|
|
51
|
+
const localVarPath = `/snapTrade/listUserErrors`;
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
}
|
|
58
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
59
|
+
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
60
|
+
const localVarQueryParameter = {};
|
|
61
|
+
// authentication PartnerClientId required
|
|
62
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
63
|
+
// authentication PartnerSignature required
|
|
64
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration });
|
|
65
|
+
// authentication PartnerTimestamp required
|
|
66
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
67
|
+
if (userId !== undefined) {
|
|
68
|
+
localVarQueryParameter['userId'] = userId;
|
|
69
|
+
}
|
|
70
|
+
if (userSecret !== undefined) {
|
|
71
|
+
localVarQueryParameter['userSecret'] = userSecret;
|
|
72
|
+
}
|
|
73
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
74
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
75
|
+
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
76
|
+
queryParameters: localVarQueryParameter,
|
|
77
|
+
requestConfig: localVarRequestOptions,
|
|
78
|
+
path: localVarPath,
|
|
79
|
+
configuration
|
|
80
|
+
});
|
|
81
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
return {
|
|
83
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
84
|
+
options: localVarRequestOptions,
|
|
85
|
+
};
|
|
86
|
+
}),
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
exports.ErrorLogsApiAxiosParamCreator = ErrorLogsApiAxiosParamCreator;
|
|
90
|
+
/**
|
|
91
|
+
* ErrorLogsApi - functional programming interface
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
const ErrorLogsApiFp = function (configuration) {
|
|
95
|
+
const localVarAxiosParamCreator = (0, exports.ErrorLogsApiAxiosParamCreator)(configuration);
|
|
96
|
+
return {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
100
|
+
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
listUserErrors(requestParameters, options) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserErrors(requestParameters.userId, requestParameters.userSecret, options);
|
|
107
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
exports.ErrorLogsApiFp = ErrorLogsApiFp;
|
|
113
|
+
/**
|
|
114
|
+
* ErrorLogsApi - factory interface
|
|
115
|
+
* @export
|
|
116
|
+
*/
|
|
117
|
+
const ErrorLogsApiFactory = function (configuration, basePath, axios) {
|
|
118
|
+
const localVarFp = (0, exports.ErrorLogsApiFp)(configuration);
|
|
119
|
+
return {
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
123
|
+
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
listUserErrors(requestParameters, options) {
|
|
128
|
+
return localVarFp.listUserErrors(requestParameters, options).then((request) => request(axios, basePath));
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
exports.ErrorLogsApiFactory = ErrorLogsApiFactory;
|
|
133
|
+
/**
|
|
134
|
+
* ErrorLogsApiGenerated - object-oriented interface
|
|
135
|
+
* @export
|
|
136
|
+
* @class ErrorLogsApiGenerated
|
|
137
|
+
* @extends {BaseAPI}
|
|
138
|
+
*/
|
|
139
|
+
class ErrorLogsApiGenerated extends base_1.BaseAPI {
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
143
|
+
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
* @memberof ErrorLogsApiGenerated
|
|
147
|
+
*/
|
|
148
|
+
listUserErrors(requestParameters, options) {
|
|
149
|
+
return (0, exports.ErrorLogsApiFp)(this.configuration).listUserErrors(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
exports.ErrorLogsApiGenerated = ErrorLogsApiGenerated;
|
|
@@ -1,94 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: api@snaptrade.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
9
|
-
* Do not edit the class manually.
|
|
10
|
-
*/
|
|
11
|
-
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
12
|
-
import { Configuration } from '../configuration';
|
|
13
|
-
import { RequestArgs } from '../base';
|
|
14
|
-
import { UserErrorLog } from '../models';
|
|
15
|
-
import { ErrorLogsApiCustom } from "./error-logs-api-custom";
|
|
16
|
-
/**
|
|
17
|
-
* ErrorLogsApi - axios parameter creator
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export declare const ErrorLogsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
24
|
-
* @param {string} userId
|
|
25
|
-
* @param {string} userSecret
|
|
26
|
-
* @param {*} [options] Override http request option.
|
|
27
|
-
* @throws {RequiredError}
|
|
28
|
-
*/
|
|
29
|
-
listUserErrors: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* ErrorLogsApi - functional programming interface
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
|
-
export declare const ErrorLogsApiFp: (configuration?: Configuration) => {
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
39
|
-
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
*/
|
|
43
|
-
listUserErrors(requestParameters: ErrorLogsApiListUserErrorsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserErrorLog>>>;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* ErrorLogsApi - factory interface
|
|
47
|
-
* @export
|
|
48
|
-
*/
|
|
49
|
-
export declare const ErrorLogsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
53
|
-
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
54
|
-
* @param {*} [options] Override http request option.
|
|
55
|
-
* @throws {RequiredError}
|
|
56
|
-
*/
|
|
57
|
-
listUserErrors(requestParameters: ErrorLogsApiListUserErrorsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserErrorLog>>;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Request parameters for listUserErrors operation in ErrorLogsApi.
|
|
61
|
-
* @export
|
|
62
|
-
* @interface ErrorLogsApiListUserErrorsRequest
|
|
63
|
-
*/
|
|
64
|
-
export type ErrorLogsApiListUserErrorsRequest = {
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof ErrorLogsApiListUserErrors
|
|
69
|
-
*/
|
|
70
|
-
readonly userId: string;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof ErrorLogsApiListUserErrors
|
|
75
|
-
*/
|
|
76
|
-
readonly userSecret: string;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* ErrorLogsApi - object-oriented interface
|
|
80
|
-
* @export
|
|
81
|
-
* @class ErrorLogsApi
|
|
82
|
-
* @extends {BaseAPI}
|
|
83
|
-
*/
|
|
84
|
-
export declare class ErrorLogsApi extends ErrorLogsApiCustom {
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
88
|
-
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
89
|
-
* @param {*} [options] Override http request option.
|
|
90
|
-
* @throws {RequiredError}
|
|
91
|
-
* @memberof ErrorLogsApi
|
|
92
|
-
*/
|
|
93
|
-
listUserErrors(requestParameters: ErrorLogsApiListUserErrorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserErrorLog[], any>>;
|
|
1
|
+
import { ErrorLogsApiGenerated } from "./error-logs-api-generated";
|
|
2
|
+
export * from "./error-logs-api-generated";
|
|
3
|
+
export declare class ErrorLogsApi extends ErrorLogsApiGenerated {
|
|
94
4
|
}
|
|
@@ -1,240 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: api@snaptrade.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
var __extends = (this && this.__extends) || (function () {
|
|
15
|
-
var extendStatics = function (d, b) {
|
|
16
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
-
return extendStatics(d, b);
|
|
20
|
-
};
|
|
21
|
-
return function (d, b) {
|
|
22
|
-
if (typeof b !== "function" && b !== null)
|
|
23
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
-
extendStatics(d, b);
|
|
25
|
-
function __() { this.constructor = d; }
|
|
26
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
-
};
|
|
28
|
-
})();
|
|
29
|
-
var __assign = (this && this.__assign) || function () {
|
|
30
|
-
__assign = Object.assign || function(t) {
|
|
31
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32
|
-
s = arguments[i];
|
|
33
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
34
|
-
t[p] = s[p];
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
|
-
return __assign.apply(this, arguments);
|
|
39
|
-
};
|
|
40
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
-
function step(op) {
|
|
54
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
56
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
-
switch (op[0]) {
|
|
59
|
-
case 0: case 1: t = op; break;
|
|
60
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
-
default:
|
|
64
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
-
if (t[2]) _.ops.pop();
|
|
69
|
-
_.trys.pop(); continue;
|
|
70
|
-
}
|
|
71
|
-
op = body.call(thisArg, _);
|
|
72
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
74
7
|
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
75
15
|
};
|
|
76
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
-
exports.ErrorLogsApi =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
// @ts-ignore
|
|
83
|
-
var base_1 = require("../base");
|
|
84
|
-
var requestBeforeHook_1 = require("../requestBeforeHook");
|
|
85
|
-
var error_logs_api_custom_1 = require("./error-logs-api-custom");
|
|
86
|
-
/**
|
|
87
|
-
* ErrorLogsApi - axios parameter creator
|
|
88
|
-
* @export
|
|
89
|
-
*/
|
|
90
|
-
var ErrorLogsApiAxiosParamCreator = function (configuration) {
|
|
91
|
-
var _this = this;
|
|
92
|
-
return {
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
96
|
-
* @param {string} userId
|
|
97
|
-
* @param {string} userSecret
|
|
98
|
-
* @param {*} [options] Override http request option.
|
|
99
|
-
* @throws {RequiredError}
|
|
100
|
-
*/
|
|
101
|
-
listUserErrors: function (userId, userSecret, options) {
|
|
102
|
-
if (options === void 0) { options = {}; }
|
|
103
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
104
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
105
|
-
return __generator(this, function (_a) {
|
|
106
|
-
switch (_a.label) {
|
|
107
|
-
case 0:
|
|
108
|
-
// verify required parameter 'userId' is not null or undefined
|
|
109
|
-
(0, common_1.assertParamExists)('listUserErrors', 'userId', userId);
|
|
110
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
111
|
-
(0, common_1.assertParamExists)('listUserErrors', 'userSecret', userSecret);
|
|
112
|
-
localVarPath = "/snapTrade/listUserErrors";
|
|
113
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
-
if (configuration) {
|
|
115
|
-
baseOptions = configuration.baseOptions;
|
|
116
|
-
}
|
|
117
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
118
|
-
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
119
|
-
localVarQueryParameter = {};
|
|
120
|
-
// authentication PartnerClientId required
|
|
121
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
122
|
-
// authentication PartnerSignature required
|
|
123
|
-
];
|
|
124
|
-
case 1:
|
|
125
|
-
// authentication PartnerClientId required
|
|
126
|
-
_a.sent();
|
|
127
|
-
// authentication PartnerSignature required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
129
|
-
// authentication PartnerTimestamp required
|
|
130
|
-
];
|
|
131
|
-
case 2:
|
|
132
|
-
// authentication PartnerSignature required
|
|
133
|
-
_a.sent();
|
|
134
|
-
// authentication PartnerTimestamp required
|
|
135
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
136
|
-
case 3:
|
|
137
|
-
// authentication PartnerTimestamp required
|
|
138
|
-
_a.sent();
|
|
139
|
-
if (userId !== undefined) {
|
|
140
|
-
localVarQueryParameter['userId'] = userId;
|
|
141
|
-
}
|
|
142
|
-
if (userSecret !== undefined) {
|
|
143
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
144
|
-
}
|
|
145
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
148
|
-
queryParameters: localVarQueryParameter,
|
|
149
|
-
requestConfig: localVarRequestOptions,
|
|
150
|
-
path: localVarPath,
|
|
151
|
-
configuration: configuration
|
|
152
|
-
});
|
|
153
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
154
|
-
return [2 /*return*/, {
|
|
155
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
|
-
options: localVarRequestOptions,
|
|
157
|
-
}];
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
},
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
exports.ErrorLogsApiAxiosParamCreator = ErrorLogsApiAxiosParamCreator;
|
|
165
|
-
/**
|
|
166
|
-
* ErrorLogsApi - functional programming interface
|
|
167
|
-
* @export
|
|
168
|
-
*/
|
|
169
|
-
var ErrorLogsApiFp = function (configuration) {
|
|
170
|
-
var localVarAxiosParamCreator = (0, exports.ErrorLogsApiAxiosParamCreator)(configuration);
|
|
171
|
-
return {
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
175
|
-
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
176
|
-
* @param {*} [options] Override http request option.
|
|
177
|
-
* @throws {RequiredError}
|
|
178
|
-
*/
|
|
179
|
-
listUserErrors: function (requestParameters, options) {
|
|
180
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
181
|
-
var localVarAxiosArgs;
|
|
182
|
-
return __generator(this, function (_a) {
|
|
183
|
-
switch (_a.label) {
|
|
184
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUserErrors(requestParameters.userId, requestParameters.userSecret, options)];
|
|
185
|
-
case 1:
|
|
186
|
-
localVarAxiosArgs = _a.sent();
|
|
187
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
},
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
exports.ErrorLogsApiFp = ErrorLogsApiFp;
|
|
195
|
-
/**
|
|
196
|
-
* ErrorLogsApi - factory interface
|
|
197
|
-
* @export
|
|
198
|
-
*/
|
|
199
|
-
var ErrorLogsApiFactory = function (configuration, basePath, axios) {
|
|
200
|
-
var localVarFp = (0, exports.ErrorLogsApiFp)(configuration);
|
|
201
|
-
return {
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
205
|
-
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
206
|
-
* @param {*} [options] Override http request option.
|
|
207
|
-
* @throws {RequiredError}
|
|
208
|
-
*/
|
|
209
|
-
listUserErrors: function (requestParameters, options) {
|
|
210
|
-
return localVarFp.listUserErrors(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
211
|
-
},
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
exports.ErrorLogsApiFactory = ErrorLogsApiFactory;
|
|
215
|
-
/**
|
|
216
|
-
* ErrorLogsApi - object-oriented interface
|
|
217
|
-
* @export
|
|
218
|
-
* @class ErrorLogsApi
|
|
219
|
-
* @extends {BaseAPI}
|
|
220
|
-
*/
|
|
221
|
-
var ErrorLogsApi = /** @class */ (function (_super) {
|
|
222
|
-
__extends(ErrorLogsApi, _super);
|
|
223
|
-
function ErrorLogsApi() {
|
|
224
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @summary Retrieve error logs on behalf of your SnapTrade users
|
|
229
|
-
* @param {ErrorLogsApiListUserErrorsRequest} requestParameters Request parameters.
|
|
230
|
-
* @param {*} [options] Override http request option.
|
|
231
|
-
* @throws {RequiredError}
|
|
232
|
-
* @memberof ErrorLogsApi
|
|
233
|
-
*/
|
|
234
|
-
ErrorLogsApi.prototype.listUserErrors = function (requestParameters, options) {
|
|
235
|
-
var _this = this;
|
|
236
|
-
return (0, exports.ErrorLogsApiFp)(this.configuration).listUserErrors(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
237
|
-
};
|
|
238
|
-
return ErrorLogsApi;
|
|
239
|
-
}(error_logs_api_custom_1.ErrorLogsApiCustom));
|
|
17
|
+
exports.ErrorLogsApi = void 0;
|
|
18
|
+
const error_logs_api_generated_1 = require("./error-logs-api-generated");
|
|
19
|
+
__exportStar(require("./error-logs-api-generated"), exports);
|
|
20
|
+
class ErrorLogsApi extends error_logs_api_generated_1.ErrorLogsApiGenerated {
|
|
21
|
+
}
|
|
240
22
|
exports.ErrorLogsApi = ErrorLogsApi;
|