sailpoint-api-client 1.4.14 → 1.4.16

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/beta/common.ts CHANGED
@@ -145,11 +145,11 @@ export const toPathString = function (url: URL) {
145
145
  */
146
146
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
147
147
  return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
148
- axiosRetry(globalAxios, configuration.retriesConfig)
148
+ axiosRetry(axios, configuration.retriesConfig)
149
149
  const headers = {
150
- ...{'User-Agent':'OpenAPI-Generator/1.4.14/ts'},
150
+ ...{'User-Agent':'OpenAPI-Generator/1.4.16/ts'},
151
151
  ...axiosArgs.axiosOptions.headers,
152
- ...{'X-SailPoint-SDK':'typescript-1.4.14'}
152
+ ...{'X-SailPoint-SDK':'typescript-1.4.16'}
153
153
  }
154
154
 
155
155
  if(!configuration.experimental && ("X-SailPoint-Experimental" in headers)) {
package/beta/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sailpoint-sdk",
3
- "version": "1.4.14",
3
+ "version": "1.4.16",
4
4
  "description": "OpenAPI client for sailpoint-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
package/configuration.ts CHANGED
@@ -5,6 +5,7 @@ import * as yaml from "js-yaml";
5
5
  import * as fs from "fs";
6
6
  import FormData from "form-data";
7
7
  import { IAxiosRetryConfig } from "axios-retry";
8
+ import { ProxyAgent } from "proxy-agent";
8
9
 
9
10
  export interface ConfigurationParameters {
10
11
  baseurl?: string;
@@ -238,7 +239,10 @@ export class Configuration {
238
239
  formData: FormData
239
240
  ): Promise<string> {
240
241
  try {
241
- const { data, status } = await axios.post(url, formData);
242
+ const agent = new ProxyAgent();
243
+ const { data, status } = await axios.post(url, formData, {
244
+ httpsAgent: agent,
245
+ });
242
246
  if (status === 200) {
243
247
  return data.access_token;
244
248
  } else {