@platzio/sdk 0.5.3-beta.4 → 0.6.0-beta.0
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/.github/workflows/release.yaml +19 -8
- package/dist/api.d.ts +7831 -0
- package/dist/api.js +4987 -0
- package/dist/api.js.map +1 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +69 -0
- package/dist/base.js.map +1 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +147 -0
- package/dist/common.js.map +1 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/configuration.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/openapi.yaml +213 -2
- package/package.json +3 -3
- package/src/.openapi-generator/VERSION +1 -0
- package/{api.ts → src/api.ts} +674 -523
- package/{base.ts → src/base.ts} +2 -2
- package/{common.ts → src/common.ts} +1 -1
- package/.openapi-generator/VERSION +0 -1
- package/openapitools.json +0 -7
- /package/{.openapi-generator → src/.openapi-generator}/FILES +0 -0
- /package/{.openapi-generator-ignore → src/.openapi-generator-ignore} +0 -0
- /package/{configuration.ts → src/configuration.ts} +0 -0
- /package/{git_push.sh → src/git_push.sh} +0 -0
- /package/{index.ts → src/index.ts} +0 -0
package/{base.ts → src/base.ts}
RENAMED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import type { Configuration } from './configuration';
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import type { AxiosPromise, AxiosInstance,
|
|
19
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
20
|
import globalAxios from 'axios';
|
|
21
21
|
|
|
22
22
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
@@ -39,7 +39,7 @@ export const COLLECTION_FORMATS = {
|
|
|
39
39
|
*/
|
|
40
40
|
export interface RequestArgs {
|
|
41
41
|
url: string;
|
|
42
|
-
options:
|
|
42
|
+
options: RawAxiosRequestConfig;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -144,7 +144,7 @@ export const toPathString = function (url: URL) {
|
|
|
144
144
|
*/
|
|
145
145
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
146
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
147
|
-
const axiosRequestArgs = {...axiosArgs.options, url: (
|
|
147
|
+
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
148
148
|
return axios.request<T, R>(axiosRequestArgs);
|
|
149
149
|
};
|
|
150
150
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7.1.0
|
package/openapitools.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|