@shapediver/sdk.geometry-api-sdk-v2 2.2.0 → 2.4.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/client/api.d.ts +29 -3
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js.map +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
- package/src/client/api.ts +141 -8
- 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 +1 -1
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.3.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.3.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 : {};
|
package/package.json
CHANGED
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.8.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,7 +21,7 @@ import globalAxios from 'axios';
|
|
|
21
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
22
|
import type { RequestArgs } from './base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { BASE_PATH, COLLECTION_FORMATS,
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequiredError, operationServerMap } from './base';
|
|
25
25
|
import { BaseAPI } from '../base';
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -98,6 +98,25 @@ export interface CommonsGroup {
|
|
|
98
98
|
*/
|
|
99
99
|
'name': string;
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Reasons why the model may be blocked.
|
|
103
|
+
* @export
|
|
104
|
+
* @interface CommonsModelBlockingReasons
|
|
105
|
+
*/
|
|
106
|
+
export interface CommonsModelBlockingReasons {
|
|
107
|
+
/**
|
|
108
|
+
* The model owner\'s credit limit has been exceeded.
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof CommonsModelBlockingReasons
|
|
111
|
+
*/
|
|
112
|
+
'creditLimit'?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* The model has been blocked explicitly by its owner.
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof CommonsModelBlockingReasons
|
|
117
|
+
*/
|
|
118
|
+
'owner'?: boolean;
|
|
119
|
+
}
|
|
101
120
|
/**
|
|
102
121
|
* Status of a model.
|
|
103
122
|
* @export
|
|
@@ -360,6 +379,13 @@ export interface ReqAuthorizationGroup {
|
|
|
360
379
|
*/
|
|
361
380
|
'organizations'?: Array<string>;
|
|
362
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* @type ReqBasicParameter
|
|
384
|
+
* Definition of a basic ShapeDiver parameter.
|
|
385
|
+
* @export
|
|
386
|
+
*/
|
|
387
|
+
export type ReqBasicParameter = boolean | number | string;
|
|
388
|
+
|
|
363
389
|
/**
|
|
364
390
|
* Body of an export or output cache request. A directory of export-/output-IDs and version-IDs.
|
|
365
391
|
* @export
|
|
@@ -423,7 +449,7 @@ export interface ReqCreditMetrics {
|
|
|
423
449
|
'parameters': Array<ReqCreditMetric>;
|
|
424
450
|
}
|
|
425
451
|
/**
|
|
426
|
-
* A directory of parameter keys and values. Supported parameter keys are as follows, whereby the parameter resolution is done in the same order as the keys are listed: * `id` * `name` * `displayname` Supported parameter values are: * Basic parameter (`
|
|
452
|
+
* A directory of parameter keys and values. Supported parameter keys are as follows, whereby the parameter resolution is done in the same order as the keys are listed: * `id` * `name` * `displayname` Supported parameter values are: * Basic parameter (`ReqBasicParameter`) * S-type parameter (`ReqStypeParameter`)
|
|
427
453
|
* @export
|
|
428
454
|
* @interface ReqCustomization
|
|
429
455
|
*/
|
|
@@ -570,7 +596,7 @@ export interface ReqFileUpload {
|
|
|
570
596
|
|
|
571
597
|
}
|
|
572
598
|
/**
|
|
573
|
-
* Group
|
|
599
|
+
* Group of a parameter, export or output.
|
|
574
600
|
* @export
|
|
575
601
|
* @interface ReqGroup
|
|
576
602
|
*/
|
|
@@ -654,6 +680,12 @@ export interface ReqModel {
|
|
|
654
680
|
* @memberof ReqModel
|
|
655
681
|
*/
|
|
656
682
|
'backendaccess'?: boolean;
|
|
683
|
+
/**
|
|
684
|
+
*
|
|
685
|
+
* @type {ReqModelBlockingReasons}
|
|
686
|
+
* @memberof ReqModel
|
|
687
|
+
*/
|
|
688
|
+
'blockingReasons'?: ReqModelBlockingReasons;
|
|
657
689
|
/**
|
|
658
690
|
* Original name of the model\'s grasshopper file.
|
|
659
691
|
* @type {string}
|
|
@@ -761,7 +793,7 @@ export interface ReqModel {
|
|
|
761
793
|
* @type {boolean}
|
|
762
794
|
* @memberof ReqModel
|
|
763
795
|
*/
|
|
764
|
-
'pub'
|
|
796
|
+
'pub'?: boolean;
|
|
765
797
|
/**
|
|
766
798
|
* Enforces iframe embedding instead of direct embedding.
|
|
767
799
|
* @type {boolean}
|
|
@@ -819,6 +851,25 @@ export interface ReqModel {
|
|
|
819
851
|
}
|
|
820
852
|
|
|
821
853
|
|
|
854
|
+
/**
|
|
855
|
+
* Reasons why the model may be blocked.
|
|
856
|
+
* @export
|
|
857
|
+
* @interface ReqModelBlockingReasons
|
|
858
|
+
*/
|
|
859
|
+
export interface ReqModelBlockingReasons {
|
|
860
|
+
/**
|
|
861
|
+
* The model owner\'s credit limit has been exceeded.
|
|
862
|
+
* @type {boolean}
|
|
863
|
+
* @memberof ReqModelBlockingReasons
|
|
864
|
+
*/
|
|
865
|
+
'creditLimit'?: boolean;
|
|
866
|
+
/**
|
|
867
|
+
* The model has been blocked explicitly by its owner.
|
|
868
|
+
* @type {boolean}
|
|
869
|
+
* @memberof ReqModelBlockingReasons
|
|
870
|
+
*/
|
|
871
|
+
'owner'?: boolean;
|
|
872
|
+
}
|
|
822
873
|
/**
|
|
823
874
|
* Model metrics
|
|
824
875
|
* @export
|
|
@@ -1120,7 +1171,7 @@ export interface ReqParameterDefinitions {
|
|
|
1120
1171
|
* The value of a single model parameter.
|
|
1121
1172
|
* @export
|
|
1122
1173
|
*/
|
|
1123
|
-
export type ReqParameterValue =
|
|
1174
|
+
export type ReqParameterValue = ReqBasicParameter | ReqStypeParameter;
|
|
1124
1175
|
|
|
1125
1176
|
/**
|
|
1126
1177
|
* Data for a single sdTF parameter.
|
|
@@ -1168,6 +1219,25 @@ export const ReqSdtfType = {
|
|
|
1168
1219
|
export type ReqSdtfType = typeof ReqSdtfType[keyof typeof ReqSdtfType];
|
|
1169
1220
|
|
|
1170
1221
|
|
|
1222
|
+
/**
|
|
1223
|
+
* Definition of the value to use for s-type parameters.
|
|
1224
|
+
* @export
|
|
1225
|
+
* @interface ReqStypeParameter
|
|
1226
|
+
*/
|
|
1227
|
+
export interface ReqStypeParameter {
|
|
1228
|
+
/**
|
|
1229
|
+
* Optional embedded value. If this is set the asset is ignored.
|
|
1230
|
+
* @type {string}
|
|
1231
|
+
* @memberof ReqStypeParameter
|
|
1232
|
+
*/
|
|
1233
|
+
'value'?: string;
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @type {CommmonsParameterAsset}
|
|
1237
|
+
* @memberof ReqStypeParameter
|
|
1238
|
+
*/
|
|
1239
|
+
'asset'?: CommmonsParameterAsset;
|
|
1240
|
+
}
|
|
1171
1241
|
/**
|
|
1172
1242
|
* System-wide metrics
|
|
1173
1243
|
* @export
|
|
@@ -1787,6 +1857,13 @@ export interface ResBaseSystem {
|
|
|
1787
1857
|
*/
|
|
1788
1858
|
'system'?: ResSystem;
|
|
1789
1859
|
}
|
|
1860
|
+
/**
|
|
1861
|
+
* @type ResBasicParameter
|
|
1862
|
+
* Definition of a basic ShapeDiver parameter.
|
|
1863
|
+
* @export
|
|
1864
|
+
*/
|
|
1865
|
+
export type ResBasicParameter = boolean | number | string;
|
|
1866
|
+
|
|
1790
1867
|
/**
|
|
1791
1868
|
*
|
|
1792
1869
|
* @export
|
|
@@ -4433,6 +4510,31 @@ export interface ResModel {
|
|
|
4433
4510
|
}
|
|
4434
4511
|
|
|
4435
4512
|
|
|
4513
|
+
/**
|
|
4514
|
+
*
|
|
4515
|
+
* @export
|
|
4516
|
+
* @interface ResModelBlockingReasons
|
|
4517
|
+
*/
|
|
4518
|
+
export interface ResModelBlockingReasons {
|
|
4519
|
+
/**
|
|
4520
|
+
* The model owner\'s credit limit has been exceeded.
|
|
4521
|
+
* @type {boolean}
|
|
4522
|
+
* @memberof ResModelBlockingReasons
|
|
4523
|
+
*/
|
|
4524
|
+
'creditLimit': boolean;
|
|
4525
|
+
/**
|
|
4526
|
+
* The model has been blocked explicitly by its owner.
|
|
4527
|
+
* @type {boolean}
|
|
4528
|
+
* @memberof ResModelBlockingReasons
|
|
4529
|
+
*/
|
|
4530
|
+
'owner': boolean;
|
|
4531
|
+
/**
|
|
4532
|
+
* The model uses a Grasshopper plugin that is not allowed for the owner.
|
|
4533
|
+
* @type {boolean}
|
|
4534
|
+
* @memberof ResModelBlockingReasons
|
|
4535
|
+
*/
|
|
4536
|
+
'pluginPermission': boolean;
|
|
4537
|
+
}
|
|
4436
4538
|
/**
|
|
4437
4539
|
* Information about a model cleanup process.
|
|
4438
4540
|
* @export
|
|
@@ -4578,6 +4680,12 @@ export interface ResModelComputation {
|
|
|
4578
4680
|
* @memberof ResModelComputation
|
|
4579
4681
|
*/
|
|
4580
4682
|
'limit'?: ResComputationLimits;
|
|
4683
|
+
/**
|
|
4684
|
+
* The number of credits that are charged for this computation.
|
|
4685
|
+
* @type {number}
|
|
4686
|
+
* @memberof ResModelComputation
|
|
4687
|
+
*/
|
|
4688
|
+
'credits'?: number;
|
|
4581
4689
|
}
|
|
4582
4690
|
|
|
4583
4691
|
|
|
@@ -4929,6 +5037,12 @@ export interface ResModelSettings {
|
|
|
4929
5037
|
* @memberof ResModelSettings
|
|
4930
5038
|
*/
|
|
4931
5039
|
'cdn_supported'?: boolean;
|
|
5040
|
+
/**
|
|
5041
|
+
*
|
|
5042
|
+
* @type {ResModelBlockingReasons}
|
|
5043
|
+
* @memberof ResModelSettings
|
|
5044
|
+
*/
|
|
5045
|
+
'blockingReasons'?: ResModelBlockingReasons;
|
|
4932
5046
|
}
|
|
4933
5047
|
/**
|
|
4934
5048
|
* Definition of a Model-State.
|
|
@@ -6043,10 +6157,10 @@ export type ResParameterType = typeof ResParameterType[keyof typeof ResParameter
|
|
|
6043
6157
|
|
|
6044
6158
|
/**
|
|
6045
6159
|
* @type ResParameterValue
|
|
6046
|
-
* The value of a single model parameter. Supported parameter values are: * Basic parameter (`
|
|
6160
|
+
* The value of a single model parameter. Supported parameter values are: * Basic parameter (`ResBasicParameter`) * S-type parameter (`ResStypeParameter`)
|
|
6047
6161
|
* @export
|
|
6048
6162
|
*/
|
|
6049
|
-
export type ResParameterValue =
|
|
6163
|
+
export type ResParameterValue = ResBasicParameter | ResStypeParameter;
|
|
6050
6164
|
|
|
6051
6165
|
/**
|
|
6052
6166
|
*
|
|
@@ -6731,6 +6845,25 @@ export const ResStructureType = {
|
|
|
6731
6845
|
export type ResStructureType = typeof ResStructureType[keyof typeof ResStructureType];
|
|
6732
6846
|
|
|
6733
6847
|
|
|
6848
|
+
/**
|
|
6849
|
+
* Definition of the value to use for s-type parameters.
|
|
6850
|
+
* @export
|
|
6851
|
+
* @interface ResStypeParameter
|
|
6852
|
+
*/
|
|
6853
|
+
export interface ResStypeParameter {
|
|
6854
|
+
/**
|
|
6855
|
+
* Optional embedded value. If this is set the asset is ignored.
|
|
6856
|
+
* @type {string}
|
|
6857
|
+
* @memberof ResStypeParameter
|
|
6858
|
+
*/
|
|
6859
|
+
'value'?: string;
|
|
6860
|
+
/**
|
|
6861
|
+
*
|
|
6862
|
+
* @type {CommmonsParameterAsset}
|
|
6863
|
+
* @memberof ResStypeParameter
|
|
6864
|
+
*/
|
|
6865
|
+
'asset'?: CommmonsParameterAsset;
|
|
6866
|
+
}
|
|
6734
6867
|
/**
|
|
6735
6868
|
* ShapeDiver API response of system-request.
|
|
6736
6869
|
* @export
|
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.8.2
|
|
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.8.2
|
|
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.8.2
|
|
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.8.2
|
|
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.3.0'; // WARNING: This value is updated automatically!
|
|
38
38
|
|
|
39
39
|
public readonly useCustomAxios: boolean;
|
|
40
40
|
public readonly maxRetries: number;
|