@shapediver/sdk.geometry-api-sdk-v2 3.1.0 → 3.3.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.
@@ -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 = "3.1.0";
9
+ protected readonly sdkVersion = "3.3.0";
10
10
  readonly useCustomAxios: boolean;
11
11
  readonly maxRetries: number;
12
12
  constructor(param?: ConfigurationParameters);
@@ -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 = '3.1.0';
9
+ this.sdkVersion = '3.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/sdk.geometry-api-sdk-v2",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "SDK to communicate with the Geometry API version 2",
5
5
  "keywords": [
6
6
  "shapediver",
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: 2.0.0
7
+ * The version of the OpenAPI document: 2.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -86,6 +86,10 @@ export interface CommonsModelBlockingReasons {
86
86
  * The model has been blocked explicitly by its owner.
87
87
  */
88
88
  'owner'?: boolean;
89
+ /**
90
+ * The model owner has been restricted from accessing this backend system
91
+ */
92
+ 'backendPermission'?: boolean;
89
93
  }
90
94
  /**
91
95
  * Status of a model.
@@ -612,6 +616,10 @@ export interface ReqModelBlockingReasons {
612
616
  * The model has been blocked explicitly by its owner.
613
617
  */
614
618
  'owner'?: boolean;
619
+ /**
620
+ * The model owner has been restricted from accessing this backend system
621
+ */
622
+ 'backendPermission'?: boolean;
615
623
  }
616
624
  /**
617
625
  * Model metrics
@@ -1889,6 +1897,14 @@ export interface ResExport {
1889
1897
  * Controls whether the parameter should be hidden in the UI.
1890
1898
  */
1891
1899
  'hidden': boolean;
1900
+ /**
1901
+ * Type-specific ID of the export. In case of exports defined by a single component, this corresponds to the component’s uuid.
1902
+ */
1903
+ 'typeId'?: string;
1904
+ /**
1905
+ * Type-specific name of the export. In case of exports defined by a single component, this corresponds to the component’s name (NOT its nickname).
1906
+ */
1907
+ 'typeName'?: string;
1892
1908
  /**
1893
1909
  * Requested version of the export.
1894
1910
  */
@@ -1986,6 +2002,14 @@ export interface ResExportDefinition {
1986
2002
  * Controls whether the parameter should be hidden in the UI.
1987
2003
  */
1988
2004
  'hidden': boolean;
2005
+ /**
2006
+ * Type-specific ID of the export. In case of exports defined by a single component, this corresponds to the component’s uuid.
2007
+ */
2008
+ 'typeId'?: string;
2009
+ /**
2010
+ * Type-specific name of the export. In case of exports defined by a single component, this corresponds to the component’s name (NOT its nickname).
2011
+ */
2012
+ 'typeName'?: string;
1989
2013
  /**
1990
2014
  * This property is never set.
1991
2015
  * @deprecated
@@ -2785,6 +2809,10 @@ export interface ResModelBlockingReasons {
2785
2809
  * The model has been blocked explicitly by its owner.
2786
2810
  */
2787
2811
  'owner': boolean;
2812
+ /**
2813
+ * The model owner has been restricted from accessing this backend system
2814
+ */
2815
+ 'backendPermission': boolean;
2788
2816
  /**
2789
2817
  * The model uses a Grasshopper plugin that is not allowed for the owner.
2790
2818
  */
@@ -3457,6 +3485,14 @@ export interface ResOutput {
3457
3485
  * Controls whether the parameter should be hidden in the UI.
3458
3486
  */
3459
3487
  'hidden': boolean;
3488
+ /**
3489
+ * Type-specific ID of the output. In case of outputs defined by a single component, this corresponds to the component’s uuid.
3490
+ */
3491
+ 'typeId'?: string;
3492
+ /**
3493
+ * Type-specific name of the output. In case of outputs defined by a single component, this corresponds to the component’s name (NOT its nickname).
3494
+ */
3495
+ 'typeName'?: string;
3460
3496
  /**
3461
3497
  * A unique identifier for the particular version of the output. This is a hash code which is based on the parameter values that were used to compute the resulting data. The hash code only depends on the values of the parameters which may theoretically influence the results of the output. As an example, parameters which are in no way connected to the output component in Grasshopper are not considered.
3462
3498
  */
@@ -3606,6 +3642,14 @@ export interface ResOutputDefinition {
3606
3642
  * Controls whether the parameter should be hidden in the UI.
3607
3643
  */
3608
3644
  'hidden': boolean;
3645
+ /**
3646
+ * Type-specific ID of the output. In case of outputs defined by a single component, this corresponds to the component’s uuid.
3647
+ */
3648
+ 'typeId'?: string;
3649
+ /**
3650
+ * Type-specific name of the output. In case of outputs defined by a single component, this corresponds to the component’s name (NOT its nickname).
3651
+ */
3652
+ 'typeName'?: string;
3609
3653
  /**
3610
3654
  * This property is never set.
3611
3655
  * @deprecated
@@ -7676,10 +7720,13 @@ export const ModelApiAxiosParamCreator = function (configuration?: Configuration
7676
7720
  * Permissions: * `setting.viewer.get.*` - __required__.
7677
7721
  * @summary Get model config.
7678
7722
  * @param {string} modelId Model ID.
7723
+ * @param {boolean} [xShapediverNoconvert] When set to &#x60;true&#x60;, the config object is returned as stored, without any version conversion applied. [Priority: 1]
7724
+ * @param {string} [xShapediverUseconfigversion] When set to &#x60;true&#x60;, the returned config version will be of the same version as when the config object has been created. In case the version number cannot be extracted from the config object, this header is ignored. [Priority: 2]
7725
+ * @param {string} [xShapediverBuildversion] When specified, converts the requested config object to the provided target version. Otherwise, the config object is converted into the default version instead. [Priority: 3]
7679
7726
  * @param {*} [options] Override http request option.
7680
7727
  * @throws {RequiredError}
7681
7728
  */
7682
- getModelConfig: async (modelId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7729
+ getModelConfig: async (modelId: string, xShapediverNoconvert?: boolean, xShapediverUseconfigversion?: string, xShapediverBuildversion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7683
7730
  // verify required parameter 'modelId' is not null or undefined
7684
7731
  assertParamExists('getModelConfig', 'modelId', modelId)
7685
7732
  const localVarPath = `/api/v2/model/{modelId}/config`
@@ -7701,6 +7748,17 @@ export const ModelApiAxiosParamCreator = function (configuration?: Configuration
7701
7748
 
7702
7749
  localVarHeaderParameter['Accept'] = 'application/json';
7703
7750
 
7751
+ if (xShapediverNoconvert != null) {
7752
+ localVarHeaderParameter['x-shapediver-noconvert'] = typeof xShapediverNoconvert === 'string'
7753
+ ? xShapediverNoconvert
7754
+ : JSON.stringify(xShapediverNoconvert);
7755
+ }
7756
+ if (xShapediverUseconfigversion != null) {
7757
+ localVarHeaderParameter['x-shapediver-useconfigversion'] = String(xShapediverUseconfigversion);
7758
+ }
7759
+ if (xShapediverBuildversion != null) {
7760
+ localVarHeaderParameter['x-shapediver-buildversion'] = String(xShapediverBuildversion);
7761
+ }
7704
7762
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7705
7763
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7706
7764
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8124,11 +8182,14 @@ export const ModelApiFp = function(configuration?: Configuration) {
8124
8182
  * Permissions: * `setting.viewer.get.*` - __required__.
8125
8183
  * @summary Get model config.
8126
8184
  * @param {string} modelId Model ID.
8185
+ * @param {boolean} [xShapediverNoconvert] When set to &#x60;true&#x60;, the config object is returned as stored, without any version conversion applied. [Priority: 1]
8186
+ * @param {string} [xShapediverUseconfigversion] When set to &#x60;true&#x60;, the returned config version will be of the same version as when the config object has been created. In case the version number cannot be extracted from the config object, this header is ignored. [Priority: 2]
8187
+ * @param {string} [xShapediverBuildversion] When specified, converts the requested config object to the provided target version. Otherwise, the config object is converted into the default version instead. [Priority: 3]
8127
8188
  * @param {*} [options] Override http request option.
8128
8189
  * @throws {RequiredError}
8129
8190
  */
8130
- async getModelConfig(modelId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResGetModelConfig>> {
8131
- const localVarAxiosArgs = await localVarAxiosParamCreator.getModelConfig(modelId, options);
8191
+ async getModelConfig(modelId: string, xShapediverNoconvert?: boolean, xShapediverUseconfigversion?: string, xShapediverBuildversion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResGetModelConfig>> {
8192
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options);
8132
8193
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8133
8194
  const localVarOperationServerBasePath = operationServerMap['ModelApi.getModelConfig']?.[localVarOperationServerIndex]?.url;
8134
8195
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8342,11 +8403,14 @@ export const ModelApiFactory = function (configuration?: Configuration, basePath
8342
8403
  * Permissions: * `setting.viewer.get.*` - __required__.
8343
8404
  * @summary Get model config.
8344
8405
  * @param {string} modelId Model ID.
8406
+ * @param {boolean} [xShapediverNoconvert] When set to &#x60;true&#x60;, the config object is returned as stored, without any version conversion applied. [Priority: 1]
8407
+ * @param {string} [xShapediverUseconfigversion] When set to &#x60;true&#x60;, the returned config version will be of the same version as when the config object has been created. In case the version number cannot be extracted from the config object, this header is ignored. [Priority: 2]
8408
+ * @param {string} [xShapediverBuildversion] When specified, converts the requested config object to the provided target version. Otherwise, the config object is converted into the default version instead. [Priority: 3]
8345
8409
  * @param {*} [options] Override http request option.
8346
8410
  * @throws {RequiredError}
8347
8411
  */
8348
- getModelConfig(modelId: string, options?: RawAxiosRequestConfig): AxiosPromise<ResGetModelConfig> {
8349
- return localVarFp.getModelConfig(modelId, options).then((request) => request(axios, basePath));
8412
+ getModelConfig(modelId: string, xShapediverNoconvert?: boolean, xShapediverUseconfigversion?: string, xShapediverBuildversion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResGetModelConfig> {
8413
+ return localVarFp.getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options).then((request) => request(axios, basePath));
8350
8414
  },
8351
8415
  /**
8352
8416
  * Subject-Restriction: __backend__.
@@ -8547,11 +8611,14 @@ export class ModelApi extends BaseAPI {
8547
8611
  * Permissions: * `setting.viewer.get.*` - __required__.
8548
8612
  * @summary Get model config.
8549
8613
  * @param {string} modelId Model ID.
8614
+ * @param {boolean} [xShapediverNoconvert] When set to &#x60;true&#x60;, the config object is returned as stored, without any version conversion applied. [Priority: 1]
8615
+ * @param {string} [xShapediverUseconfigversion] When set to &#x60;true&#x60;, the returned config version will be of the same version as when the config object has been created. In case the version number cannot be extracted from the config object, this header is ignored. [Priority: 2]
8616
+ * @param {string} [xShapediverBuildversion] When specified, converts the requested config object to the provided target version. Otherwise, the config object is converted into the default version instead. [Priority: 3]
8550
8617
  * @param {*} [options] Override http request option.
8551
8618
  * @throws {RequiredError}
8552
8619
  */
8553
- public getModelConfig(modelId: string, options?: RawAxiosRequestConfig) {
8554
- return ModelApiFp(this.configuration).getModelConfig(modelId, options).then((request) => request(this.axios, this.basePath));
8620
+ public getModelConfig(modelId: string, xShapediverNoconvert?: boolean, xShapediverUseconfigversion?: string, xShapediverBuildversion?: string, options?: RawAxiosRequestConfig) {
8621
+ return ModelApiFp(this.configuration).getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options).then((request) => request(this.axios, this.basePath));
8555
8622
  }
8556
8623
 
8557
8624
  /**
@@ -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: 2.0.0
7
+ * The version of the OpenAPI document: 2.3.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: 2.0.0
7
+ * The version of the OpenAPI document: 2.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Geometry Backend API v2
4
4
  * 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.
5
5
  *
6
- * The version of the OpenAPI document: 2.0.0
6
+ * The version of the OpenAPI document: 2.3.0
7
7
  *
8
8
  *
9
9
  * 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: 2.0.0
7
+ * The version of the OpenAPI document: 2.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ export interface ConfigurationParameters
34
34
  }
35
35
 
36
36
  export class Configuration extends ClientConfig {
37
- protected readonly sdkVersion = '3.1.0'; // WARNING: This value is updated automatically!
37
+ protected readonly sdkVersion = '3.3.0'; // WARNING: This value is updated automatically!
38
38
 
39
39
  public readonly useCustomAxios: boolean;
40
40
  public readonly maxRetries: number;