@connectreport/connectreport-js 2.36.5 → 2.38.2
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 +3 -3
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +5 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +3 -1
- package/dist/configuration.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -4
- package/index.ts +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
## @connectreport/connectreport-js@2.
|
|
1
|
+
## @connectreport/connectreport-js@2.38.2
|
|
2
2
|
|
|
3
3
|
- View the [Library Docs](https://connectreport.com/docs/classes/_index_.connectreport.html)
|
|
4
4
|
- View the [ConnectReport HTTP API Reference](https://connectreport.com/api-reference.html)
|
|
5
|
-
- [Download bundle](https://connectreport.com/docs/assets/2.
|
|
5
|
+
- [Download bundle](https://connectreport.com/docs/assets/2.38.2/connectreport.js) for use in client side applications
|
|
6
6
|
|
|
7
7
|
Environment
|
|
8
8
|
* Node.js
|
|
@@ -38,7 +38,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
38
38
|
_published:_
|
|
39
39
|
|
|
40
40
|
```
|
|
41
|
-
npm install @connectreport/connectreport-js@2.
|
|
41
|
+
npm install @connectreport/connectreport-js@2.38.2 --save
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ConnectReport Core API
|
|
5
5
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.38.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ConnectReport Core API
|
|
5
5
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.38.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ConnectReport Core API
|
|
5
5
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.38.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ConnectReport Core API
|
|
5
5
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.
|
|
7
|
+
* The version of the OpenAPI document: 2.38.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
export interface ConfigurationParameters {
|
|
17
17
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
|
+
httpsAgent?: any;
|
|
18
19
|
username?: string;
|
|
19
20
|
password?: string;
|
|
20
21
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
@@ -74,6 +75,8 @@ export class Configuration {
|
|
|
74
75
|
*/
|
|
75
76
|
formDataCtor?: new () => any;
|
|
76
77
|
|
|
78
|
+
httpsAgent?: any;
|
|
79
|
+
|
|
77
80
|
constructor(param: ConfigurationParameters = {}) {
|
|
78
81
|
this.apiKey = param.apiKey;
|
|
79
82
|
this.username = param.username;
|
|
@@ -82,6 +85,7 @@ export class Configuration {
|
|
|
82
85
|
this.basePath = param.basePath;
|
|
83
86
|
this.baseOptions = param.baseOptions;
|
|
84
87
|
this.formDataCtor = param.formDataCtor;
|
|
88
|
+
this.httpsAgent = param.httpsAgent;
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ConnectReport Core API
|
|
3
3
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.38.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ConnectReport Core API
|
|
6
6
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.
|
|
8
|
+
* The version of the OpenAPI document: 2.38.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ConnectReport Core API
|
|
3
3
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.38.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ConnectReport Core API
|
|
6
6
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.
|
|
8
|
+
* The version of the OpenAPI document: 2.38.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ConnectReport Core API
|
|
3
3
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.38.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ConnectReport Core API
|
|
6
6
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.
|
|
8
|
+
* The version of the OpenAPI document: 2.38.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ConnectReport Core API
|
|
3
3
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.38.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export interface ConfigurationParameters {
|
|
13
13
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
httpsAgent?: any;
|
|
14
15
|
username?: string;
|
|
15
16
|
password?: string;
|
|
16
17
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
@@ -68,6 +69,7 @@ export declare class Configuration {
|
|
|
68
69
|
* @type {new () => FormData}
|
|
69
70
|
*/
|
|
70
71
|
formDataCtor?: new () => any;
|
|
72
|
+
httpsAgent?: any;
|
|
71
73
|
constructor(param?: ConfigurationParameters);
|
|
72
74
|
/**
|
|
73
75
|
* Check if the given MIME is a JSON MIME.
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ConnectReport Core API
|
|
6
6
|
* Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.
|
|
8
|
+
* The version of the OpenAPI document: 2.38.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,6 +24,7 @@ var Configuration = /** @class */ (function () {
|
|
|
24
24
|
this.basePath = param.basePath;
|
|
25
25
|
this.baseOptions = param.baseOptions;
|
|
26
26
|
this.formDataCtor = param.formDataCtor;
|
|
27
|
+
this.httpsAgent = param.httpsAgent;
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* Check if the given MIME is a JSON MIME.
|
package/dist/index.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export declare class ConnectReport {
|
|
|
12
12
|
filterCycles: FilterCyclesApi;
|
|
13
13
|
config: Configuration;
|
|
14
14
|
client: AxiosInstance;
|
|
15
|
-
constructor(config: Pick<Configuration, "apiKey" | "basePath" | "formDataCtor">);
|
|
15
|
+
constructor(config: Pick<Configuration, "apiKey" | "basePath" | "formDataCtor" | "httpsAgent">);
|
|
16
16
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.ConnectReport = void 0;
|
|
4
15
|
var api_1 = require("./api");
|
|
5
16
|
var configuration_1 = require("./configuration");
|
|
6
17
|
var axios_1 = require("axios");
|
|
18
|
+
var axios_retry_1 = require("axios-retry");
|
|
7
19
|
var ConnectReport = /** @class */ (function () {
|
|
8
20
|
function ConnectReport(config) {
|
|
9
21
|
var IS_BROWSER = false;
|
|
@@ -27,13 +39,14 @@ var ConnectReport = /** @class */ (function () {
|
|
|
27
39
|
this.documents = new api_1.DocumentsApi(this.config);
|
|
28
40
|
this.jobs = new api_1.JobsApi(this.config);
|
|
29
41
|
this.filterCycles = new api_1.FilterCyclesApi(this.config);
|
|
30
|
-
this.client = axios_1.default.create({
|
|
31
|
-
baseURL: serverUrl,
|
|
32
|
-
headers: {
|
|
42
|
+
this.client = axios_1.default.create(__assign({ baseURL: serverUrl, headers: {
|
|
33
43
|
"Content-Type": "application/json",
|
|
34
44
|
Accept: "application/json",
|
|
35
45
|
"X-API-KEY": this.config.apiKey,
|
|
36
|
-
},
|
|
46
|
+
} }, (this.config.httpsAgent && { httpsAgent: this.config.httpsAgent })));
|
|
47
|
+
axios_retry_1.default(this.client, {
|
|
48
|
+
retries: 3,
|
|
49
|
+
retryDelay: axios_retry_1.default.exponentialDelay,
|
|
37
50
|
});
|
|
38
51
|
}
|
|
39
52
|
return ConnectReport;
|
package/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
} from "./api";
|
|
11
11
|
import { Configuration } from "./configuration";
|
|
12
12
|
import Axios, { AxiosInstance } from "axios";
|
|
13
|
+
import axiosRetry from "axios-retry";
|
|
13
14
|
export class ConnectReport {
|
|
14
15
|
public templates: TemplatesApi;
|
|
15
16
|
public images: ImagesApi;
|
|
@@ -22,7 +23,12 @@ export class ConnectReport {
|
|
|
22
23
|
public config: Configuration;
|
|
23
24
|
public client: AxiosInstance;
|
|
24
25
|
|
|
25
|
-
constructor(
|
|
26
|
+
constructor(
|
|
27
|
+
config: Pick<
|
|
28
|
+
Configuration,
|
|
29
|
+
"apiKey" | "basePath" | "formDataCtor" | "httpsAgent"
|
|
30
|
+
>
|
|
31
|
+
) {
|
|
26
32
|
let IS_BROWSER: boolean = false;
|
|
27
33
|
|
|
28
34
|
if (typeof self !== "undefined" && self.location) {
|
|
@@ -55,6 +61,11 @@ export class ConnectReport {
|
|
|
55
61
|
Accept: "application/json",
|
|
56
62
|
"X-API-KEY": this.config.apiKey,
|
|
57
63
|
},
|
|
64
|
+
...(this.config.httpsAgent && { httpsAgent: this.config.httpsAgent }),
|
|
65
|
+
});
|
|
66
|
+
axiosRetry(this.client, {
|
|
67
|
+
retries: 3,
|
|
68
|
+
retryDelay: axiosRetry.exponentialDelay,
|
|
58
69
|
});
|
|
59
70
|
}
|
|
60
71
|
}
|