@reacon-io/sdk 0.5.0-beta.1 → 0.6.0-beta.1
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 +4 -3
- package/dist/esm/runtime.d.ts +0 -1
- package/dist/esm/runtime.js +3 -1
- package/dist/runtime.d.ts +0 -1
- package/dist/runtime.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @reacon-io/sdk@0.
|
|
1
|
+
# @reacon-io/sdk@0.6.0-beta.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.reacon.io API.
|
|
4
4
|
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
|
|
16
16
|
const client = new DomainsApi(new Configuration({
|
|
17
17
|
apiKey: 'YOUR_API_KEY',
|
|
18
|
-
basePath: 'https://api.reacon.io',
|
|
19
18
|
requestTimeoutMs: 30_000,
|
|
20
19
|
}));
|
|
21
20
|
const cancellation = new AbortController();
|
|
@@ -931,7 +930,7 @@ and is automatically generated by the
|
|
|
931
930
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
932
931
|
|
|
933
932
|
- API version: `0.1.0`
|
|
934
|
-
- Package version: `0.
|
|
933
|
+
- Package version: `0.6.0-beta.1`
|
|
935
934
|
- Generator version: `7.25.0`
|
|
936
935
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
937
936
|
|
|
@@ -972,3 +971,5 @@ npm publish
|
|
|
972
971
|
## License
|
|
973
972
|
|
|
974
973
|
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0.html)
|
|
974
|
+
|
|
975
|
+
The service URL is fixed to https://api.reacon.io. SDKs do not accept a service URL override.
|
package/dist/esm/runtime.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export interface ConfigurationParameters {
|
|
|
17
17
|
safeRetries?: RetryOptions;
|
|
18
18
|
/** Total network deadline through body reads; defaults to 30000 milliseconds. */
|
|
19
19
|
requestTimeoutMs?: number;
|
|
20
|
-
basePath?: string;
|
|
21
20
|
fetchApi?: FetchAPI;
|
|
22
21
|
middleware?: Middleware[];
|
|
23
22
|
queryParamsStringify?: (params: HTTPQuery) => string;
|
package/dist/esm/runtime.js
CHANGED
|
@@ -17,12 +17,14 @@ export const BASE_PATH = "https://api.reacon.io".replace(/\/+$/, "");
|
|
|
17
17
|
export class Configuration {
|
|
18
18
|
constructor(configuration = {}) {
|
|
19
19
|
this.configuration = configuration;
|
|
20
|
+
if ('basePath' in configuration)
|
|
21
|
+
throw new TypeError('The Reacon API URL is fixed.');
|
|
20
22
|
}
|
|
21
23
|
set config(configuration) {
|
|
22
24
|
this.configuration = configuration;
|
|
23
25
|
}
|
|
24
26
|
get basePath() {
|
|
25
|
-
return
|
|
27
|
+
return BASE_PATH;
|
|
26
28
|
}
|
|
27
29
|
get requestTimeoutMs() { return this.configuration.requestTimeoutMs ?? 30000; }
|
|
28
30
|
get safeRetries() { return this.configuration.safeRetries; }
|
package/dist/runtime.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export interface ConfigurationParameters {
|
|
|
17
17
|
safeRetries?: RetryOptions;
|
|
18
18
|
/** Total network deadline through body reads; defaults to 30000 milliseconds. */
|
|
19
19
|
requestTimeoutMs?: number;
|
|
20
|
-
basePath?: string;
|
|
21
20
|
fetchApi?: FetchAPI;
|
|
22
21
|
middleware?: Middleware[];
|
|
23
22
|
queryParamsStringify?: (params: HTTPQuery) => string;
|
package/dist/runtime.js
CHANGED
|
@@ -31,12 +31,14 @@ exports.BASE_PATH = "https://api.reacon.io".replace(/\/+$/, "");
|
|
|
31
31
|
class Configuration {
|
|
32
32
|
constructor(configuration = {}) {
|
|
33
33
|
this.configuration = configuration;
|
|
34
|
+
if ('basePath' in configuration)
|
|
35
|
+
throw new TypeError('The Reacon API URL is fixed.');
|
|
34
36
|
}
|
|
35
37
|
set config(configuration) {
|
|
36
38
|
this.configuration = configuration;
|
|
37
39
|
}
|
|
38
40
|
get basePath() {
|
|
39
|
-
return
|
|
41
|
+
return exports.BASE_PATH;
|
|
40
42
|
}
|
|
41
43
|
get requestTimeoutMs() { return this.configuration.requestTimeoutMs ?? 30000; }
|
|
42
44
|
get safeRetries() { return this.configuration.safeRetries; }
|