snaptrade-typescript-sdk 12.1.5 → 12.1.7
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 +6 -6
- package/dist/browser.umd.js +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.d.cts +193 -78
- package/dist/index.d.mts +193 -78
- package/dist/index.d.ts +193 -78
- package/dist/index.mjs +11 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3864,17 +3864,17 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
3864
3864
|
};
|
|
3865
3865
|
},
|
|
3866
3866
|
/**
|
|
3867
|
-
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (currently `investment` and `deposit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total
|
|
3867
|
+
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (currently `investment` and `deposit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
3868
3868
|
* @summary List accounts for a connection (discriminated union)
|
|
3869
|
-
* @param {string}
|
|
3869
|
+
* @param {string} connectionId
|
|
3870
3870
|
* @param {string} [userId]
|
|
3871
3871
|
* @param {string} [userSecret]
|
|
3872
3872
|
* @param {*} [options] Override http request option.
|
|
3873
3873
|
* @throws {RequiredError}
|
|
3874
3874
|
*/
|
|
3875
|
-
listConnectionAccounts: async (
|
|
3876
|
-
assertParamExists("listConnectionAccounts", "
|
|
3877
|
-
const localVarPath = `/connections/{
|
|
3875
|
+
listConnectionAccounts: async (connectionId, userId, userSecret, options = {}) => {
|
|
3876
|
+
assertParamExists("listConnectionAccounts", "connectionId", connectionId);
|
|
3877
|
+
const localVarPath = `/connections/{connectionId}/accounts`.replace(`{connectionId}`, encodeURIComponent(String(connectionId !== void 0 ? connectionId : `-connectionId-`)));
|
|
3878
3878
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3879
3879
|
let baseOptions;
|
|
3880
3880
|
if (configuration) baseOptions = configuration.baseOptions;
|
|
@@ -3926,7 +3926,7 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
3926
3926
|
requestConfig: localVarRequestOptions,
|
|
3927
3927
|
path: localVarPath,
|
|
3928
3928
|
configuration,
|
|
3929
|
-
pathTemplate: "/connections/{
|
|
3929
|
+
pathTemplate: "/connections/{connectionId}/accounts",
|
|
3930
3930
|
httpMethod: "GET",
|
|
3931
3931
|
operationAuth: localVarOperationAuth
|
|
3932
3932
|
});
|
|
@@ -4126,14 +4126,14 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
4126
4126
|
});
|
|
4127
4127
|
},
|
|
4128
4128
|
/**
|
|
4129
|
-
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (currently `investment` and `deposit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total
|
|
4129
|
+
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (currently `investment` and `deposit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
4130
4130
|
* @summary List accounts for a connection (discriminated union)
|
|
4131
4131
|
* @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4132
4132
|
* @param {*} [options] Override http request option.
|
|
4133
4133
|
* @throws {RequiredError}
|
|
4134
4134
|
*/
|
|
4135
4135
|
async listConnectionAccounts(requestParameters, options) {
|
|
4136
|
-
return createRequestFunction(await localVarAxiosParamCreator.listConnectionAccounts(requestParameters.
|
|
4136
|
+
return createRequestFunction(await localVarAxiosParamCreator.listConnectionAccounts(requestParameters.connectionId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
4137
4137
|
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4138
4138
|
requestSigningByAuthMode: {
|
|
4139
4139
|
"commercialApiKey": {
|
|
@@ -4229,7 +4229,7 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4229
4229
|
return localVarFp.getUserAccountRecentOrdersV2(requestParameters, options).then((request) => request(axios$3, basePath));
|
|
4230
4230
|
},
|
|
4231
4231
|
/**
|
|
4232
|
-
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (currently `investment` and `deposit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total
|
|
4232
|
+
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (currently `investment` and `deposit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
4233
4233
|
* @summary List accounts for a connection (discriminated union)
|
|
4234
4234
|
* @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4235
4235
|
* @param {*} [options] Override http request option.
|
|
@@ -4312,7 +4312,7 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4312
4312
|
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountRecentOrdersV2(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
4313
4313
|
}
|
|
4314
4314
|
/**
|
|
4315
|
-
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (currently `investment` and `deposit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total
|
|
4315
|
+
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (currently `investment` and `deposit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
4316
4316
|
* @summary List accounts for a connection (discriminated union)
|
|
4317
4317
|
* @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4318
4318
|
* @param {*} [options] Override http request option.
|
|
@@ -7111,7 +7111,7 @@ var Configuration = class {
|
|
|
7111
7111
|
}
|
|
7112
7112
|
this.basePath = param.basePath;
|
|
7113
7113
|
this.baseOptions = param.baseOptions ?? {};
|
|
7114
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/12.1.
|
|
7114
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/12.1.7/typescript" : param.userAgent;
|
|
7115
7115
|
this.formDataCtor = param.formDataCtor;
|
|
7116
7116
|
}
|
|
7117
7117
|
/**
|