@loopstack/hub-client 0.13.0 → 0.13.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 +13 -9
- package/api.ts +7085 -3848
- package/base.ts +33 -29
- package/common.ts +88 -75
- package/configuration.ts +103 -96
- package/dist/api.d.ts +2957 -1433
- package/dist/api.js +1410 -259
- package/dist/base.d.ts +1 -1
- package/dist/base.js +6 -20
- package/dist/common.d.ts +2 -2
- package/dist/common.js +9 -24
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +2957 -1433
- package/dist/esm/api.js +1397 -259
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +6 -20
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +10 -25
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +0 -1
- package/index.ts +3 -6
- package/package.json +6 -9
- package/tsconfig.json +2 -7
- package/CHANGELOG.md +0 -49
- package/LICENSE +0 -19
package/dist/esm/base.d.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from './configuration';
|
|
13
12
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import type { Configuration } from './configuration';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
package/dist/esm/base.js
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Loopstack Hub
|
|
5
|
-
* Loopstack Hub Documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
1
|
import globalAxios from 'axios';
|
|
15
|
-
export const BASE_PATH =
|
|
2
|
+
export const BASE_PATH = 'http://localhost'.replace(/\/+$/, '');
|
|
16
3
|
/**
|
|
17
4
|
*
|
|
18
5
|
* @export
|
|
19
6
|
*/
|
|
20
7
|
export const COLLECTION_FORMATS = {
|
|
21
|
-
csv:
|
|
22
|
-
ssv:
|
|
23
|
-
tsv:
|
|
24
|
-
pipes:
|
|
8
|
+
csv: ',',
|
|
9
|
+
ssv: ' ',
|
|
10
|
+
tsv: '\t',
|
|
11
|
+
pipes: '|',
|
|
25
12
|
};
|
|
26
13
|
/**
|
|
27
14
|
*
|
|
@@ -39,7 +26,6 @@ export class BaseAPI {
|
|
|
39
26
|
}
|
|
40
27
|
}
|
|
41
28
|
}
|
|
42
|
-
;
|
|
43
29
|
/**
|
|
44
30
|
*
|
|
45
31
|
* @export
|
|
@@ -50,7 +36,7 @@ export class RequiredError extends Error {
|
|
|
50
36
|
constructor(field, msg) {
|
|
51
37
|
super(msg);
|
|
52
38
|
this.field = field;
|
|
53
|
-
this.name =
|
|
39
|
+
this.name = 'RequiredError';
|
|
54
40
|
}
|
|
55
41
|
}
|
|
56
42
|
/**
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from "./configuration";
|
|
13
|
-
import type { RequestArgs } from "./base";
|
|
14
12
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
13
|
+
import type { RequestArgs } from './base';
|
|
14
|
+
import type { Configuration } from './configuration';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
package/dist/esm/common.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Loopstack Hub
|
|
5
|
-
* Loopstack Hub Documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -20,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
8
|
});
|
|
22
9
|
};
|
|
23
|
-
import { RequiredError } from
|
|
10
|
+
import { RequiredError } from './base';
|
|
24
11
|
/**
|
|
25
12
|
*
|
|
26
13
|
* @export
|
|
@@ -56,7 +43,7 @@ export const setApiKeyToObject = function (object, keyParamName, configuration)
|
|
|
56
43
|
*/
|
|
57
44
|
export const setBasicAuthToObject = function (object, configuration) {
|
|
58
45
|
if (configuration && (configuration.username || configuration.password)) {
|
|
59
|
-
object[
|
|
46
|
+
object['auth'] = { username: configuration.username, password: configuration.password };
|
|
60
47
|
}
|
|
61
48
|
};
|
|
62
49
|
/**
|
|
@@ -69,7 +56,7 @@ export const setBearerAuthToObject = function (object, configuration) {
|
|
|
69
56
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
70
57
|
? yield configuration.accessToken()
|
|
71
58
|
: yield configuration.accessToken;
|
|
72
|
-
object[
|
|
59
|
+
object['Authorization'] = 'Bearer ' + accessToken;
|
|
73
60
|
}
|
|
74
61
|
});
|
|
75
62
|
};
|
|
@@ -83,19 +70,19 @@ export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
83
70
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
84
71
|
? yield configuration.accessToken(name, scopes)
|
|
85
72
|
: yield configuration.accessToken;
|
|
86
|
-
object[
|
|
73
|
+
object['Authorization'] = 'Bearer ' + localVarAccessTokenValue;
|
|
87
74
|
}
|
|
88
75
|
});
|
|
89
76
|
};
|
|
90
|
-
function setFlattenedQueryParams(urlSearchParams, parameter, key =
|
|
77
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = '') {
|
|
91
78
|
if (parameter == null)
|
|
92
79
|
return;
|
|
93
|
-
if (typeof parameter ===
|
|
80
|
+
if (typeof parameter === 'object') {
|
|
94
81
|
if (Array.isArray(parameter)) {
|
|
95
|
-
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
82
|
+
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
96
83
|
}
|
|
97
84
|
else {
|
|
98
|
-
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
85
|
+
Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
99
86
|
}
|
|
100
87
|
}
|
|
101
88
|
else {
|
|
@@ -125,9 +112,7 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
125
112
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
113
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
114
|
: nonString;
|
|
128
|
-
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
130
|
-
: (value || "");
|
|
115
|
+
return needsSerialization ? JSON.stringify(value !== undefined ? value : {}) : value || '';
|
|
131
116
|
};
|
|
132
117
|
/**
|
|
133
118
|
*
|
|
@@ -143,7 +128,7 @@ export const toPathString = function (url) {
|
|
|
143
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
144
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
145
130
|
var _a;
|
|
146
|
-
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
131
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : ((_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath)) + axiosArgs.url });
|
|
147
132
|
return axios.request(axiosRequestArgs);
|
|
148
133
|
};
|
|
149
134
|
};
|
|
@@ -20,7 +20,7 @@ export class Configuration {
|
|
|
20
20
|
this.accessToken = param.accessToken;
|
|
21
21
|
this.basePath = param.basePath;
|
|
22
22
|
this.serverIndex = param.serverIndex;
|
|
23
|
-
this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent':
|
|
23
|
+
this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'OpenAPI-Generator/1.0/typescript-axios' }) }, param.baseOptions);
|
|
24
24
|
this.formDataCtor = param.formDataCtor;
|
|
25
25
|
}
|
|
26
26
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Loopstack Hub
|
|
5
4
|
* Loopstack Hub Documentation
|
|
@@ -11,5 +10,5 @@
|
|
|
11
10
|
* https://openapi-generator.tech
|
|
12
11
|
* Do not edit the class manually.
|
|
13
12
|
*/
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
13
|
+
export * from './api';
|
|
14
|
+
export * from './configuration';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/index.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Loopstack Hub
|
|
5
4
|
* Loopstack Hub Documentation
|
|
6
5
|
*
|
|
7
6
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
7
|
+
*
|
|
9
8
|
*
|
|
10
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
10
|
* https://openapi-generator.tech
|
|
12
11
|
* Do not edit the class manually.
|
|
13
12
|
*/
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
export * from
|
|
17
|
-
export * from "./configuration";
|
|
18
|
-
|
|
14
|
+
export * from './api';
|
|
15
|
+
export * from './configuration';
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopstack/hub-client",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "OpenAPI client for @loopstack/hub-client",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
-
},
|
|
10
6
|
"keywords": [
|
|
11
7
|
"axios",
|
|
12
8
|
"typescript",
|
|
@@ -19,14 +15,15 @@
|
|
|
19
15
|
"typings": "./dist/index.d.ts",
|
|
20
16
|
"module": "./dist/esm/index.js",
|
|
21
17
|
"sideEffects": false,
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
20
|
+
"prepare": "npm run build"
|
|
21
|
+
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"axios": "^1.6.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "12.11.5 - 12.20.42",
|
|
27
27
|
"typescript": "^4.0 || ^5.0"
|
|
28
|
-
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build": "tsc && tsc -p tsconfig.esm.json"
|
|
31
28
|
}
|
|
32
|
-
}
|
|
29
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -7,12 +7,7 @@
|
|
|
7
7
|
"outDir": "dist",
|
|
8
8
|
"rootDir": ".",
|
|
9
9
|
"moduleResolution": "node",
|
|
10
|
-
"typeRoots": [
|
|
11
|
-
"node_modules/@types"
|
|
12
|
-
]
|
|
10
|
+
"typeRoots": ["node_modules/@types"]
|
|
13
11
|
},
|
|
14
|
-
"exclude": [
|
|
15
|
-
"dist",
|
|
16
|
-
"node_modules"
|
|
17
|
-
]
|
|
12
|
+
"exclude": ["dist", "node_modules"]
|
|
18
13
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# @loopstack/hub-client
|
|
2
|
-
|
|
3
|
-
## 0.13.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 41aabbf: Use local frontend without authentication
|
|
8
|
-
|
|
9
|
-
## 0.12.2
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 1b88ec2: Bump version
|
|
14
|
-
|
|
15
|
-
## 0.12.1
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- 228674f: Minor changes, Use Client Secret fallback
|
|
20
|
-
|
|
21
|
-
## 0.12.0
|
|
22
|
-
|
|
23
|
-
### Minor Changes
|
|
24
|
-
|
|
25
|
-
- 04b6c66: Beta Release
|
|
26
|
-
|
|
27
|
-
## 0.11.1
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- fb1600e: Various fixes and improvements
|
|
32
|
-
|
|
33
|
-
## 0.11.0
|
|
34
|
-
|
|
35
|
-
### Minor Changes
|
|
36
|
-
|
|
37
|
-
- f1db120: Implement Block Wrapper for Typescript services
|
|
38
|
-
|
|
39
|
-
## 0.10.0
|
|
40
|
-
|
|
41
|
-
### Minor Changes
|
|
42
|
-
|
|
43
|
-
- Implement Block Processing
|
|
44
|
-
|
|
45
|
-
## 0.9.0
|
|
46
|
-
|
|
47
|
-
### Minor Changes
|
|
48
|
-
|
|
49
|
-
- Implement block scopes for automation components
|
package/LICENSE
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
Copyright 2025 Loopstack GmbH
|
|
8
|
-
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
you may not use this skeleton application except in compliance with the License.
|
|
11
|
-
You may obtain a copy of the License at
|
|
12
|
-
|
|
13
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
-
|
|
15
|
-
Unless required by applicable law or agreed to in writing, software
|
|
16
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
-
See the License for the specific language governing permissions and
|
|
19
|
-
limitations under the License.
|