@api-client/core 0.19.33 → 0.19.34

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@api-client/core",
3
3
  "description": "The API Client's core client library. Works in NodeJS and in a ES enabled browser.",
4
- "version": "0.19.33",
4
+ "version": "0.19.34",
5
5
  "license": "UNLICENSED",
6
6
  "exports": {
7
7
  "./browser.js": {
@@ -141,13 +141,15 @@ export class DeploymentsSdk extends SdkBase {
141
141
  return this.processListResponse<DeploymentSchema>(result, 'Unable to list environment deployments for an API. ')
142
142
  },
143
143
 
144
- listAllForEnvironment: async (
144
+ listForEnvironment: async (
145
145
  oid: string,
146
146
  apiId: string,
147
147
  env: DeploymentEnvironment,
148
+ options: ContextListOptions = {},
148
149
  request: SdkOptions = {}
149
150
  ): Promise<ContextListResult<DeploymentSchema>> => {
150
151
  const url = this.sdk.getUrl(RouteBuilder.deploymentsApisForEnv(oid, apiId, env))
152
+ this.sdk.appendListOptions(url, options)
151
153
  const { token = this.sdk.token } = request
152
154
  const result = await this.sdk.http.get(url.toString(), { token })
153
155
  return this.processListResponse<DeploymentSchema>(result, 'Unable to list environment deployments for an API. ')