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/dist/index.mjs CHANGED
@@ -3840,17 +3840,17 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
3840
3840
  };
3841
3841
  },
3842
3842
  /**
3843
- * 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 balance (`market_value` for `investment`, `balance` for `deposit`) live from the brokerage 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 brokerage. 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.
3843
+ * 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.
3844
3844
  * @summary List accounts for a connection (discriminated union)
3845
- * @param {string} authorizationId
3845
+ * @param {string} connectionId
3846
3846
  * @param {string} [userId]
3847
3847
  * @param {string} [userSecret]
3848
3848
  * @param {*} [options] Override http request option.
3849
3849
  * @throws {RequiredError}
3850
3850
  */
3851
- listConnectionAccounts: async (authorizationId, userId, userSecret, options = {}) => {
3852
- assertParamExists("listConnectionAccounts", "authorizationId", authorizationId);
3853
- const localVarPath = `/connections/{authorizationId}/accounts`.replace(`{authorizationId}`, encodeURIComponent(String(authorizationId !== void 0 ? authorizationId : `-authorizationId-`)));
3851
+ listConnectionAccounts: async (connectionId, userId, userSecret, options = {}) => {
3852
+ assertParamExists("listConnectionAccounts", "connectionId", connectionId);
3853
+ const localVarPath = `/connections/{connectionId}/accounts`.replace(`{connectionId}`, encodeURIComponent(String(connectionId !== void 0 ? connectionId : `-connectionId-`)));
3854
3854
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3855
3855
  let baseOptions;
3856
3856
  if (configuration) baseOptions = configuration.baseOptions;
@@ -3902,7 +3902,7 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
3902
3902
  requestConfig: localVarRequestOptions,
3903
3903
  path: localVarPath,
3904
3904
  configuration,
3905
- pathTemplate: "/connections/{authorizationId}/accounts",
3905
+ pathTemplate: "/connections/{connectionId}/accounts",
3906
3906
  httpMethod: "GET",
3907
3907
  operationAuth: localVarOperationAuth
3908
3908
  });
@@ -4102,14 +4102,14 @@ const ExperimentalEndpointsApiFp = function(configuration) {
4102
4102
  });
4103
4103
  },
4104
4104
  /**
4105
- * 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 balance (`market_value` for `investment`, `balance` for `deposit`) live from the brokerage 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 brokerage. 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.
4105
+ * 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.
4106
4106
  * @summary List accounts for a connection (discriminated union)
4107
4107
  * @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
4108
4108
  * @param {*} [options] Override http request option.
4109
4109
  * @throws {RequiredError}
4110
4110
  */
4111
4111
  async listConnectionAccounts(requestParameters, options) {
4112
- return createRequestFunction(await localVarAxiosParamCreator.listConnectionAccounts(requestParameters.authorizationId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
4112
+ return createRequestFunction(await localVarAxiosParamCreator.listConnectionAccounts(requestParameters.connectionId, requestParameters.userId, requestParameters.userSecret, options), globalAxios, BASE_PATH, configuration, {
4113
4113
  authModes: ["commercialApiKey", "personalApiKey"],
4114
4114
  requestSigningByAuthMode: {
4115
4115
  "commercialApiKey": {
@@ -4205,7 +4205,7 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios)
4205
4205
  return localVarFp.getUserAccountRecentOrdersV2(requestParameters, options).then((request) => request(axios, basePath));
4206
4206
  },
4207
4207
  /**
4208
- * 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 balance (`market_value` for `investment`, `balance` for `deposit`) live from the brokerage 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 brokerage. 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.
4208
+ * 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.
4209
4209
  * @summary List accounts for a connection (discriminated union)
4210
4210
  * @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
4211
4211
  * @param {*} [options] Override http request option.
@@ -4288,7 +4288,7 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
4288
4288
  return ExperimentalEndpointsApiFp(this.configuration).getUserAccountRecentOrdersV2(requestParameters, options).then((request) => request(this.axios, this.basePath));
4289
4289
  }
4290
4290
  /**
4291
- * 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 balance (`market_value` for `investment`, `balance` for `deposit`) live from the brokerage 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 brokerage. 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.
4291
+ * 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.
4292
4292
  * @summary List accounts for a connection (discriminated union)
4293
4293
  * @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
4294
4294
  * @param {*} [options] Override http request option.
@@ -7087,7 +7087,7 @@ var Configuration = class {
7087
7087
  }
7088
7088
  this.basePath = param.basePath;
7089
7089
  this.baseOptions = param.baseOptions ?? {};
7090
- this.userAgent = param.userAgent === void 0 ? "Konfig/12.1.5/typescript" : param.userAgent;
7090
+ this.userAgent = param.userAgent === void 0 ? "Konfig/12.1.7/typescript" : param.userAgent;
7091
7091
  this.formDataCtor = param.formDataCtor;
7092
7092
  }
7093
7093
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "12.1.5",
3
+ "version": "12.1.7",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {