@shapediver/sdk.geometry-api-sdk-v2 3.2.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.2.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.2.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.2.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.1.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).
@@ -1897,6 +1897,14 @@ export interface ResExport {
1897
1897
  * Controls whether the parameter should be hidden in the UI.
1898
1898
  */
1899
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;
1900
1908
  /**
1901
1909
  * Requested version of the export.
1902
1910
  */
@@ -1994,6 +2002,14 @@ export interface ResExportDefinition {
1994
2002
  * Controls whether the parameter should be hidden in the UI.
1995
2003
  */
1996
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;
1997
2013
  /**
1998
2014
  * This property is never set.
1999
2015
  * @deprecated
@@ -3469,6 +3485,14 @@ export interface ResOutput {
3469
3485
  * Controls whether the parameter should be hidden in the UI.
3470
3486
  */
3471
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;
3472
3496
  /**
3473
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.
3474
3498
  */
@@ -3618,6 +3642,14 @@ export interface ResOutputDefinition {
3618
3642
  * Controls whether the parameter should be hidden in the UI.
3619
3643
  */
3620
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;
3621
3653
  /**
3622
3654
  * This property is never set.
3623
3655
  * @deprecated
@@ -7688,10 +7720,13 @@ export const ModelApiAxiosParamCreator = function (configuration?: Configuration
7688
7720
  * Permissions: * `setting.viewer.get.*` - __required__.
7689
7721
  * @summary Get model config.
7690
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]
7691
7726
  * @param {*} [options] Override http request option.
7692
7727
  * @throws {RequiredError}
7693
7728
  */
7694
- getModelConfig: async (modelId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7729
+ getModelConfig: async (modelId: string, xShapediverNoconvert?: boolean, xShapediverUseconfigversion?: string, xShapediverBuildversion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7695
7730
  // verify required parameter 'modelId' is not null or undefined
7696
7731
  assertParamExists('getModelConfig', 'modelId', modelId)
7697
7732
  const localVarPath = `/api/v2/model/{modelId}/config`
@@ -7713,6 +7748,17 @@ export const ModelApiAxiosParamCreator = function (configuration?: Configuration
7713
7748
 
7714
7749
  localVarHeaderParameter['Accept'] = 'application/json';
7715
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
+ }
7716
7762
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7717
7763
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7718
7764
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8136,11 +8182,14 @@ export const ModelApiFp = function(configuration?: Configuration) {
8136
8182
  * Permissions: * `setting.viewer.get.*` - __required__.
8137
8183
  * @summary Get model config.
8138
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]
8139
8188
  * @param {*} [options] Override http request option.
8140
8189
  * @throws {RequiredError}
8141
8190
  */
8142
- async getModelConfig(modelId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResGetModelConfig>> {
8143
- 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);
8144
8193
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8145
8194
  const localVarOperationServerBasePath = operationServerMap['ModelApi.getModelConfig']?.[localVarOperationServerIndex]?.url;
8146
8195
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8354,11 +8403,14 @@ export const ModelApiFactory = function (configuration?: Configuration, basePath
8354
8403
  * Permissions: * `setting.viewer.get.*` - __required__.
8355
8404
  * @summary Get model config.
8356
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]
8357
8409
  * @param {*} [options] Override http request option.
8358
8410
  * @throws {RequiredError}
8359
8411
  */
8360
- getModelConfig(modelId: string, options?: RawAxiosRequestConfig): AxiosPromise<ResGetModelConfig> {
8361
- 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));
8362
8414
  },
8363
8415
  /**
8364
8416
  * Subject-Restriction: __backend__.
@@ -8559,11 +8611,14 @@ export class ModelApi extends BaseAPI {
8559
8611
  * Permissions: * `setting.viewer.get.*` - __required__.
8560
8612
  * @summary Get model config.
8561
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]
8562
8617
  * @param {*} [options] Override http request option.
8563
8618
  * @throws {RequiredError}
8564
8619
  */
8565
- public getModelConfig(modelId: string, options?: RawAxiosRequestConfig) {
8566
- 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));
8567
8622
  }
8568
8623
 
8569
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.1.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.1.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.1.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.1.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.2.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;