@wandelbots/nova-api 25.9.0-dev.9 → 25.10.0-dev.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/dist/defineProperty-CQ_RnIQg.js +43 -0
- package/dist/defineProperty-CWzmgFYR.cjs +97 -0
- package/dist/v1/index.cjs +10881 -0
- package/dist/v1/index.d.cts +15429 -0
- package/dist/v1/index.d.ts +15429 -0
- package/dist/v1/index.js +10695 -0
- package/dist/v2/index.cjs +8146 -0
- package/dist/v2/index.d.cts +11520 -0
- package/dist/v2/index.d.ts +11520 -0
- package/dist/v2/index.js +7947 -0
- package/package.json +20 -16
- package/.npmignore +0 -9
- package/index.d.ts +0 -2
- package/index.js +0 -3
- package/index.js.map +0 -1
- package/index.ts +0 -2
- package/tsconfig.json +0 -111
- package/v1/api.d.ts +0 -15287
- package/v1/api.js +0 -15591
- package/v1/api.js.map +0 -1
- package/v1/api.ts +0 -24367
- package/v1/base.d.ts +0 -66
- package/v1/base.js +0 -64
- package/v1/base.js.map +0 -1
- package/v1/base.ts +0 -86
- package/v1/common.d.ts +0 -65
- package/v1/common.js +0 -134
- package/v1/common.js.map +0 -1
- package/v1/common.ts +0 -150
- package/v1/configuration.d.ts +0 -91
- package/v1/configuration.js +0 -102
- package/v1/configuration.js.map +0 -1
- package/v1/configuration.ts +0 -116
- package/v1/index.d.ts +0 -14
- package/v1/index.js +0 -17
- package/v1/index.js.map +0 -1
- package/v1/index.ts +0 -19
- package/v2/api.d.ts +0 -10875
- package/v2/api.js +0 -10944
- package/v2/api.js.map +0 -1
- package/v2/api.ts +0 -17300
- package/v2/base.d.ts +0 -66
- package/v2/base.js +0 -64
- package/v2/base.js.map +0 -1
- package/v2/base.ts +0 -86
- package/v2/common.d.ts +0 -65
- package/v2/common.js +0 -134
- package/v2/common.js.map +0 -1
- package/v2/common.ts +0 -150
- package/v2/configuration.d.ts +0 -91
- package/v2/configuration.js +0 -102
- package/v2/configuration.js.map +0 -1
- package/v2/configuration.ts +0 -116
- package/v2/index.d.ts +0 -14
- package/v2/index.js +0 -17
- package/v2/index.js.map +0 -1
- package/v2/index.ts +0 -19
package/v2/base.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wandelbots NOVA API
|
|
3
|
-
* Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.0 beta
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
-
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare const COLLECTION_FORMATS: {
|
|
20
|
-
csv: string;
|
|
21
|
-
ssv: string;
|
|
22
|
-
tsv: string;
|
|
23
|
-
pipes: string;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
|
-
export interface RequestArgs {
|
|
31
|
-
url: string;
|
|
32
|
-
options: RawAxiosRequestConfig;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
|
-
export declare class BaseAPI {
|
|
40
|
-
protected basePath: string;
|
|
41
|
-
protected axios: AxiosInstance;
|
|
42
|
-
protected configuration: Configuration | undefined;
|
|
43
|
-
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
|
-
export declare class RequiredError extends Error {
|
|
52
|
-
field: string;
|
|
53
|
-
constructor(field: string, msg?: string);
|
|
54
|
-
}
|
|
55
|
-
interface ServerMap {
|
|
56
|
-
[key: string]: {
|
|
57
|
-
url: string;
|
|
58
|
-
description: string;
|
|
59
|
-
}[];
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
|
-
export declare const operationServerMap: ServerMap;
|
|
66
|
-
export {};
|
package/v2/base.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Wandelbots NOVA API
|
|
5
|
-
* Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.0 beta
|
|
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
|
-
import globalAxios from 'axios';
|
|
15
|
-
export const BASE_PATH = "/api/v2".replace(/\/+$/, "");
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const COLLECTION_FORMATS = {
|
|
21
|
-
csv: ",",
|
|
22
|
-
ssv: " ",
|
|
23
|
-
tsv: "\t",
|
|
24
|
-
pipes: "|",
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @class BaseAPI
|
|
30
|
-
*/
|
|
31
|
-
export class BaseAPI {
|
|
32
|
-
basePath;
|
|
33
|
-
axios;
|
|
34
|
-
configuration;
|
|
35
|
-
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
36
|
-
this.basePath = basePath;
|
|
37
|
-
this.axios = axios;
|
|
38
|
-
if (configuration) {
|
|
39
|
-
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath ?? basePath;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
|
-
export class RequiredError extends Error {
|
|
52
|
-
field;
|
|
53
|
-
constructor(field, msg) {
|
|
54
|
-
super(msg);
|
|
55
|
-
this.field = field;
|
|
56
|
-
this.name = "RequiredError";
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @export
|
|
62
|
-
*/
|
|
63
|
-
export const operationServerMap = {};
|
|
64
|
-
//# sourceMappingURL=base.js.map
|
package/v2/base.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["base.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAOH,OAAO,WAAW,MAAM,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAM,OAAO,OAAO;IAGqC;IAAwC;IAFnF,aAAa,CAA4B;IAEnD,YAAY,aAA6B,EAAY,WAAmB,SAAS,EAAY,QAAuB,WAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,QAAQ,CAAC;QACvD,CAAC;IACL,CAAC;CACJ;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACjB;IAAnB,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QAE5B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC/B,CAAC;CACJ;AASD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAc,EAC5C,CAAA"}
|
package/v2/base.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Wandelbots NOVA API
|
|
5
|
-
* Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.0 beta
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from './configuration';
|
|
17
|
-
// Some imports not used depending on template conditions
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
|
-
import globalAxios from 'axios';
|
|
21
|
-
|
|
22
|
-
export const BASE_PATH = "/api/v2".replace(/\/+$/, "");
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const COLLECTION_FORMATS = {
|
|
29
|
-
csv: ",",
|
|
30
|
-
ssv: " ",
|
|
31
|
-
tsv: "\t",
|
|
32
|
-
pipes: "|",
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface RequestArgs
|
|
39
|
-
*/
|
|
40
|
-
export interface RequestArgs {
|
|
41
|
-
url: string;
|
|
42
|
-
options: RawAxiosRequestConfig;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class BaseAPI
|
|
49
|
-
*/
|
|
50
|
-
export class BaseAPI {
|
|
51
|
-
protected configuration: Configuration | undefined;
|
|
52
|
-
|
|
53
|
-
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
|
-
if (configuration) {
|
|
55
|
-
this.configuration = configuration;
|
|
56
|
-
this.basePath = configuration.basePath ?? basePath;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
* @class RequiredError
|
|
65
|
-
* @extends {Error}
|
|
66
|
-
*/
|
|
67
|
-
export class RequiredError extends Error {
|
|
68
|
-
constructor(public field: string, msg?: string) {
|
|
69
|
-
super(msg);
|
|
70
|
-
this.name = "RequiredError"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface ServerMap {
|
|
75
|
-
[key: string]: {
|
|
76
|
-
url: string,
|
|
77
|
-
description: string,
|
|
78
|
-
}[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
|
-
export const operationServerMap: ServerMap = {
|
|
86
|
-
}
|
package/v2/common.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wandelbots NOVA API
|
|
3
|
-
* Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.0 beta
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Configuration } from "./configuration";
|
|
13
|
-
import type { RequestArgs } from "./base";
|
|
14
|
-
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
|
-
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
|
-
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
|
-
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
|
-
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
|
-
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/v2/common.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Wandelbots NOVA API
|
|
5
|
-
* Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.0 beta
|
|
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
|
-
import { RequiredError } from "./base";
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export const DUMMY_BASE_URL = 'https://example.com';
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
26
|
-
if (paramValue === null || paramValue === undefined) {
|
|
27
|
-
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
35
|
-
if (configuration && configuration.apiKey) {
|
|
36
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
37
|
-
? await configuration.apiKey(keyParamName)
|
|
38
|
-
: await configuration.apiKey;
|
|
39
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export const setBasicAuthToObject = function (object, configuration) {
|
|
47
|
-
if (configuration && (configuration.username || configuration.password)) {
|
|
48
|
-
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
|
-
export const setBearerAuthToObject = async function (object, configuration) {
|
|
56
|
-
if (configuration && configuration.accessToken) {
|
|
57
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
58
|
-
? await configuration.accessToken()
|
|
59
|
-
: await configuration.accessToken;
|
|
60
|
-
object["Authorization"] = "Bearer " + accessToken;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @export
|
|
66
|
-
*/
|
|
67
|
-
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
68
|
-
if (configuration && configuration.accessToken) {
|
|
69
|
-
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
70
|
-
? await configuration.accessToken(name, scopes)
|
|
71
|
-
: await configuration.accessToken;
|
|
72
|
-
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
76
|
-
if (parameter == null)
|
|
77
|
-
return;
|
|
78
|
-
if (typeof parameter === "object") {
|
|
79
|
-
if (Array.isArray(parameter)) {
|
|
80
|
-
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
if (urlSearchParams.has(key)) {
|
|
88
|
-
urlSearchParams.append(key, parameter);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
urlSearchParams.set(key, parameter);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @export
|
|
98
|
-
*/
|
|
99
|
-
export const setSearchParams = function (url, ...objects) {
|
|
100
|
-
const searchParams = new URLSearchParams(url.search);
|
|
101
|
-
setFlattenedQueryParams(searchParams, objects);
|
|
102
|
-
url.search = searchParams.toString();
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @export
|
|
107
|
-
*/
|
|
108
|
-
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
109
|
-
const nonString = typeof value !== 'string';
|
|
110
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
111
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
112
|
-
: nonString;
|
|
113
|
-
return needsSerialization
|
|
114
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
115
|
-
: (value || "");
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @export
|
|
120
|
-
*/
|
|
121
|
-
export const toPathString = function (url) {
|
|
122
|
-
return url.pathname + url.search + url.hash;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @export
|
|
127
|
-
*/
|
|
128
|
-
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
|
-
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
|
-
return axios.request(axiosRequestArgs);
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
//# sourceMappingURL=common.js.map
|
package/v2/common.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAMH,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,aAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;IAC9H,CAAC;AACL,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,WAAW,MAAW,EAAE,YAAoB,EAAE,aAA6B;IAC7G,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;QACxC,MAAM,mBAAmB,GAAG,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU;YAClE,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC;YAC1C,CAAC,CAAC,MAAM,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
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Wandelbots NOVA API
|
|
5
|
-
* Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.0 beta
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from "./configuration";
|
|
17
|
-
import type { RequestArgs } from "./base";
|
|
18
|
-
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
19
|
-
import { RequiredError } from "./base";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
export const DUMMY_BASE_URL = 'https://example.com'
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
* @export
|
|
31
|
-
*/
|
|
32
|
-
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
33
|
-
if (paramValue === null || paramValue === undefined) {
|
|
34
|
-
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @export
|
|
41
|
-
*/
|
|
42
|
-
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
43
|
-
if (configuration && configuration.apiKey) {
|
|
44
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
45
|
-
? await configuration.apiKey(keyParamName)
|
|
46
|
-
: await configuration.apiKey;
|
|
47
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
|
-
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
56
|
-
if (configuration && (configuration.username || configuration.password)) {
|
|
57
|
-
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
|
-
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
66
|
-
if (configuration && configuration.accessToken) {
|
|
67
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
68
|
-
? await configuration.accessToken()
|
|
69
|
-
: await configuration.accessToken;
|
|
70
|
-
object["Authorization"] = "Bearer " + accessToken;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @export
|
|
77
|
-
*/
|
|
78
|
-
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
79
|
-
if (configuration && configuration.accessToken) {
|
|
80
|
-
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
81
|
-
? await configuration.accessToken(name, scopes)
|
|
82
|
-
: await configuration.accessToken;
|
|
83
|
-
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
88
|
-
if (parameter == null) return;
|
|
89
|
-
if (typeof parameter === "object") {
|
|
90
|
-
if (Array.isArray(parameter)) {
|
|
91
|
-
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
Object.keys(parameter).forEach(currentKey =>
|
|
95
|
-
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
if (urlSearchParams.has(key)) {
|
|
101
|
-
urlSearchParams.append(key, parameter);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
urlSearchParams.set(key, parameter);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
114
|
-
const searchParams = new URLSearchParams(url.search);
|
|
115
|
-
setFlattenedQueryParams(searchParams, objects);
|
|
116
|
-
url.search = searchParams.toString();
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @export
|
|
122
|
-
*/
|
|
123
|
-
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
124
|
-
const nonString = typeof value !== 'string';
|
|
125
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
|
-
: nonString;
|
|
128
|
-
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
130
|
-
: (value || "");
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
* @export
|
|
136
|
-
*/
|
|
137
|
-
export const toPathString = function (url: URL) {
|
|
138
|
-
return url.pathname + url.search + url.hash
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @export
|
|
144
|
-
*/
|
|
145
|
-
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
147
|
-
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
148
|
-
return axios.request<T, R>(axiosRequestArgs);
|
|
149
|
-
};
|
|
150
|
-
}
|
package/v2/configuration.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wandelbots NOVA API
|
|
3
|
-
* Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.0 beta
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export interface ConfigurationParameters {
|
|
13
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
-
username?: string;
|
|
15
|
-
password?: string;
|
|
16
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
-
basePath?: string;
|
|
18
|
-
serverIndex?: number;
|
|
19
|
-
baseOptions?: any;
|
|
20
|
-
formDataCtor?: new () => any;
|
|
21
|
-
}
|
|
22
|
-
export declare class Configuration {
|
|
23
|
-
/**
|
|
24
|
-
* parameter for apiKey security
|
|
25
|
-
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
|
-
*/
|
|
28
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
-
/**
|
|
30
|
-
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
|
-
*/
|
|
35
|
-
username?: string;
|
|
36
|
-
/**
|
|
37
|
-
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
|
-
*/
|
|
42
|
-
password?: string;
|
|
43
|
-
/**
|
|
44
|
-
* parameter for oauth2 security
|
|
45
|
-
* @param name security name
|
|
46
|
-
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
|
-
*/
|
|
49
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
|
-
/**
|
|
51
|
-
* override base path
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof Configuration
|
|
55
|
-
*/
|
|
56
|
-
basePath?: string;
|
|
57
|
-
/**
|
|
58
|
-
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
|
-
*/
|
|
63
|
-
serverIndex?: number;
|
|
64
|
-
/**
|
|
65
|
-
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
|
-
*/
|
|
70
|
-
baseOptions?: any;
|
|
71
|
-
/**
|
|
72
|
-
* The FormData constructor that will be used to create multipart form data
|
|
73
|
-
* requests. You can inject this here so that execution environments that
|
|
74
|
-
* do not support the FormData class can still run the generated client.
|
|
75
|
-
*
|
|
76
|
-
* @type {new () => FormData}
|
|
77
|
-
*/
|
|
78
|
-
formDataCtor?: new () => any;
|
|
79
|
-
constructor(param?: ConfigurationParameters);
|
|
80
|
-
/**
|
|
81
|
-
* Check if the given MIME is a JSON MIME.
|
|
82
|
-
* JSON MIME examples:
|
|
83
|
-
* application/json
|
|
84
|
-
* application/json; charset=UTF8
|
|
85
|
-
* APPLICATION/JSON
|
|
86
|
-
* application/vnd.company+json
|
|
87
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
88
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
89
|
-
*/
|
|
90
|
-
isJsonMime(mime: string): boolean;
|
|
91
|
-
}
|