@shapediver/sdk.geometry-api-sdk-v2 2.8.0 → 2.9.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/dist/UtilsApi.d.ts.map +1 -1
- package/dist/UtilsApi.js +10 -0
- package/dist/UtilsApi.js.map +1 -1
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +1 -0
- package/dist/client/api.js.map +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +3 -3
- package/package.json +1 -1
- package/src/UtilsApi.ts +12 -0
- package/src/client/api.ts +5 -1
- package/src/client/base.ts +1 -1
- package/src/client/common.ts +1 -1
- package/src/client/configuration.ts +1 -1
- package/src/client/index.ts +1 -1
- package/src/configuration.ts +3 -3
package/dist/configuration.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface ConfigurationParameters extends Pick<ClientConfigParams, 'acces
|
|
|
6
6
|
maxRetries?: number;
|
|
7
7
|
}
|
|
8
8
|
export declare class Configuration extends ClientConfig {
|
|
9
|
-
protected readonly sdkVersion = "2.
|
|
9
|
+
protected readonly sdkVersion = "2.9.0";
|
|
10
10
|
readonly useCustomAxios: boolean;
|
|
11
11
|
readonly maxRetries: number;
|
|
12
12
|
constructor(param?: ConfigurationParameters);
|
package/dist/configuration.js
CHANGED
|
@@ -6,7 +6,7 @@ class Configuration extends configuration_1.Configuration {
|
|
|
6
6
|
constructor(param = {}) {
|
|
7
7
|
var _a, _b, _c, _d;
|
|
8
8
|
super(param);
|
|
9
|
-
this.sdkVersion = '2.
|
|
9
|
+
this.sdkVersion = '2.9.0';
|
|
10
10
|
this.useCustomAxios = (_a = param.useCustomAxios) !== null && _a !== void 0 ? _a : true;
|
|
11
11
|
this.maxRetries = (_b = param.maxRetries) !== null && _b !== void 0 ? _b : 5;
|
|
12
12
|
this.baseOptions = (_c = this.baseOptions) !== null && _c !== void 0 ? _c : {};
|
|
@@ -15,8 +15,8 @@ class Configuration extends configuration_1.Configuration {
|
|
|
15
15
|
if (typeof process === 'object' && !this.baseOptions.headers['User-Agent']) {
|
|
16
16
|
this.baseOptions.headers['User-Agent'] = userAgent;
|
|
17
17
|
}
|
|
18
|
-
else if (!this.baseOptions.headers['
|
|
19
|
-
this.baseOptions.headers['
|
|
18
|
+
else if (!this.baseOptions.headers['X-ShapeDiver-UserAgent']) {
|
|
19
|
+
this.baseOptions.headers['X-ShapeDiver-UserAgent'] = userAgent;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
package/package.json
CHANGED
package/src/UtilsApi.ts
CHANGED
|
@@ -58,6 +58,12 @@ export class UtilsApi extends BaseAPI {
|
|
|
58
58
|
const reqHeaders: RawAxiosRequestHeaders = {
|
|
59
59
|
Authorization: undefined, // Disable by default to avoid accidental token exposure.
|
|
60
60
|
'Content-Type': contentType,
|
|
61
|
+
/* Override custom ShapeDiver headers to avoid CORS issues. */
|
|
62
|
+
'X-ShapeDiver-Origin': undefined,
|
|
63
|
+
'X-ShapeDiver-SessionEngineId': undefined,
|
|
64
|
+
'X-ShapeDiver-BuildVersion': undefined,
|
|
65
|
+
'X-ShapeDiver-BuildDate': undefined,
|
|
66
|
+
'X-ShapeDiver-UserAgent': undefined,
|
|
61
67
|
};
|
|
62
68
|
if (filename) reqHeaders['Content-Disposition'] = contentDispositionFromFilename(filename);
|
|
63
69
|
|
|
@@ -85,6 +91,12 @@ export class UtilsApi extends BaseAPI {
|
|
|
85
91
|
const reqHeaders: RawAxiosRequestHeaders = {
|
|
86
92
|
Authorization: undefined, // Disable by default to avoid accidental token exposure.
|
|
87
93
|
'Content-Type': headers.contentType,
|
|
94
|
+
/* Override custom ShapeDiver headers to avoid CORS issues. */
|
|
95
|
+
'X-ShapeDiver-Origin': undefined,
|
|
96
|
+
'X-ShapeDiver-SessionEngineId': undefined,
|
|
97
|
+
'X-ShapeDiver-BuildVersion': undefined,
|
|
98
|
+
'X-ShapeDiver-BuildDate': undefined,
|
|
99
|
+
'X-ShapeDiver-UserAgent': undefined,
|
|
88
100
|
};
|
|
89
101
|
if (headers.contentDisposition)
|
|
90
102
|
reqHeaders['Content-Disposition'] = headers.contentDisposition;
|
package/src/client/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
5
|
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13402,6 +13402,10 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
13402
13402
|
const localVarHeaderParameter = {} as any;
|
|
13403
13403
|
const localVarQueryParameter = {} as any;
|
|
13404
13404
|
|
|
13405
|
+
// authentication JwtAuth required
|
|
13406
|
+
// http bearer authentication required
|
|
13407
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13408
|
+
|
|
13405
13409
|
if (modelStateId !== undefined) {
|
|
13406
13410
|
localVarQueryParameter['modelStateId'] = modelStateId;
|
|
13407
13411
|
}
|
package/src/client/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
5
|
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/client/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
5
|
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
5
|
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/client/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Geometry Backend API v2
|
|
5
5
|
* The ShapeDiver Geometry Backend system is used to: * host Grasshopper models in a secure, reliable, scalable, and performant way, * run computations of Grasshopper models, * and cache and output the results of computations and exports.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.12.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/configuration.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface ConfigurationParameters
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export class Configuration extends ClientConfig {
|
|
37
|
-
protected readonly sdkVersion = '2.
|
|
37
|
+
protected readonly sdkVersion = '2.9.0'; // WARNING: This value is updated automatically!
|
|
38
38
|
|
|
39
39
|
public readonly useCustomAxios: boolean;
|
|
40
40
|
public readonly maxRetries: number;
|
|
@@ -52,9 +52,9 @@ export class Configuration extends ClientConfig {
|
|
|
52
52
|
if (typeof process === 'object' && !this.baseOptions.headers['User-Agent']) {
|
|
53
53
|
// Overwrite User-Agent on Node.js applications.
|
|
54
54
|
this.baseOptions.headers['User-Agent'] = userAgent;
|
|
55
|
-
} else if (!this.baseOptions.headers['
|
|
55
|
+
} else if (!this.baseOptions.headers['X-ShapeDiver-UserAgent']) {
|
|
56
56
|
// Set a custom User-Agent header on Browser applications.
|
|
57
|
-
this.baseOptions.headers['
|
|
57
|
+
this.baseOptions.headers['X-ShapeDiver-UserAgent'] = userAgent;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|