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/README.md +2 -2
- package/beta/api.ts +608 -414
- package/beta/common.ts +3 -3
- package/beta/package.json +1 -1
- package/configuration.ts +5 -1
- package/dist/beta/api.d.ts +538 -382
- package/dist/beta/api.js +222 -139
- package/dist/beta/api.js.map +1 -1
- package/dist/beta/common.js +2 -2
- package/dist/beta/common.js.map +1 -1
- package/dist/configuration.js +6 -2
- package/dist/configuration.js.map +1 -1
- package/dist/v2024/api.d.ts +1872 -1642
- package/dist/v2024/api.js +815 -442
- package/dist/v2024/api.js.map +1 -1
- package/dist/v2024/common.js +2 -2
- package/dist/v2024/common.js.map +1 -1
- package/dist/v3/api.d.ts +492 -168
- package/dist/v3/api.js +117 -69
- package/dist/v3/api.js.map +1 -1
- package/dist/v3/common.js +2 -2
- package/dist/v3/common.js.map +1 -1
- package/package.json +9 -3
- package/v2024/README.md +2 -2
- package/v2024/api.ts +2307 -1902
- package/v2024/common.ts +3 -3
- package/v2024/package.json +1 -1
- package/v3/README.md +2 -2
- package/v3/api.ts +531 -175
- package/v3/common.ts +3 -3
- package/v3/package.json +1 -1
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(
|
|
148
|
+
axiosRetry(axios, configuration.retriesConfig)
|
|
149
149
|
const headers = {
|
|
150
|
-
...{'User-Agent':'OpenAPI-Generator/1.4.
|
|
150
|
+
...{'User-Agent':'OpenAPI-Generator/1.4.16/ts'},
|
|
151
151
|
...axiosArgs.axiosOptions.headers,
|
|
152
|
-
...{'X-SailPoint-SDK':'typescript-1.4.
|
|
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
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
|
|
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 {
|