@wandelbots/nova-api 25.4.0-dev.3 → 25.4.0-dev.5

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/v2/api.ts CHANGED
@@ -875,6 +875,31 @@ export interface Compound {
875
875
  */
876
876
  'child_geometries': Array<Geometry>;
877
877
  }
878
+ /**
879
+ * Configuration resource object.
880
+ * @export
881
+ * @interface ConfigurationResource
882
+ */
883
+ export interface ConfigurationResource {
884
+ /**
885
+ * Identifier of a configuration resource.
886
+ * @type {string}
887
+ * @memberof ConfigurationResource
888
+ */
889
+ 'id': string;
890
+ /**
891
+ * Human-readable name of the configuration resource.
892
+ * @type {string}
893
+ * @memberof ConfigurationResource
894
+ */
895
+ 'name': string;
896
+ /**
897
+ * Array of configuration resources.
898
+ * @type {Array<ConfigurationResource>}
899
+ * @memberof ConfigurationResource
900
+ */
901
+ 'children'?: Array<ConfigurationResource>;
902
+ }
878
903
  /**
879
904
  *
880
905
  * @export
@@ -7593,6 +7618,292 @@ export class CellApi extends BaseAPI {
7593
7618
 
7594
7619
 
7595
7620
 
7621
+ /**
7622
+ * ConfigurationApi - axios parameter creator
7623
+ * @export
7624
+ */
7625
+ export const ConfigurationApiAxiosParamCreator = function (configuration?: Configuration) {
7626
+ return {
7627
+ /**
7628
+ * Retrieves a configuration backup based on provided resource identifiers.
7629
+ * @summary Retrieve Configuration Backup
7630
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
7631
+ * @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
7632
+ * @param {*} [options] Override http request option.
7633
+ * @throws {RequiredError}
7634
+ */
7635
+ backupConfiguration: async (resources: Array<string>, metadata?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7636
+ // verify required parameter 'resources' is not null or undefined
7637
+ assertParamExists('backupConfiguration', 'resources', resources)
7638
+ const localVarPath = `/system/configuration`;
7639
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7640
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7641
+ let baseOptions;
7642
+ if (configuration) {
7643
+ baseOptions = configuration.baseOptions;
7644
+ }
7645
+
7646
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7647
+ const localVarHeaderParameter = {} as any;
7648
+ const localVarQueryParameter = {} as any;
7649
+
7650
+ // authentication BasicAuth required
7651
+ // http basic authentication required
7652
+ setBasicAuthToObject(localVarRequestOptions, configuration)
7653
+
7654
+ // authentication BearerAuth required
7655
+ // http bearer authentication required
7656
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7657
+
7658
+ if (resources) {
7659
+ localVarQueryParameter['resources'] = resources.join(COLLECTION_FORMATS.csv);
7660
+ }
7661
+
7662
+ if (metadata !== undefined) {
7663
+ localVarQueryParameter['metadata'] = metadata;
7664
+ }
7665
+
7666
+
7667
+
7668
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7669
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7670
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7671
+
7672
+ return {
7673
+ url: toPathString(localVarUrlObj),
7674
+ options: localVarRequestOptions,
7675
+ };
7676
+ },
7677
+ /**
7678
+ * Retrieves a list of all available configuration resources for backup purposes.
7679
+ * @summary List Configuration Resources
7680
+ * @param {*} [options] Override http request option.
7681
+ * @throws {RequiredError}
7682
+ */
7683
+ listConfigurationResources: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7684
+ const localVarPath = `/system/configuration/resources`;
7685
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7686
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7687
+ let baseOptions;
7688
+ if (configuration) {
7689
+ baseOptions = configuration.baseOptions;
7690
+ }
7691
+
7692
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7693
+ const localVarHeaderParameter = {} as any;
7694
+ const localVarQueryParameter = {} as any;
7695
+
7696
+ // authentication BasicAuth required
7697
+ // http basic authentication required
7698
+ setBasicAuthToObject(localVarRequestOptions, configuration)
7699
+
7700
+ // authentication BearerAuth required
7701
+ // http bearer authentication required
7702
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7703
+
7704
+
7705
+
7706
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7707
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7708
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7709
+
7710
+ return {
7711
+ url: toPathString(localVarUrlObj),
7712
+ options: localVarRequestOptions,
7713
+ };
7714
+ },
7715
+ /**
7716
+ * Restores a previously backed up configuration.
7717
+ * @summary Restore Configuration Backup
7718
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
7719
+ * @param {File} body Backup file stream containing the configuration to restore.
7720
+ * @param {*} [options] Override http request option.
7721
+ * @throws {RequiredError}
7722
+ */
7723
+ restoreConfiguration: async (resources: Array<string>, body: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7724
+ // verify required parameter 'resources' is not null or undefined
7725
+ assertParamExists('restoreConfiguration', 'resources', resources)
7726
+ // verify required parameter 'body' is not null or undefined
7727
+ assertParamExists('restoreConfiguration', 'body', body)
7728
+ const localVarPath = `/system/configuration`;
7729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7731
+ let baseOptions;
7732
+ if (configuration) {
7733
+ baseOptions = configuration.baseOptions;
7734
+ }
7735
+
7736
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7737
+ const localVarHeaderParameter = {} as any;
7738
+ const localVarQueryParameter = {} as any;
7739
+
7740
+ // authentication BasicAuth required
7741
+ // http basic authentication required
7742
+ setBasicAuthToObject(localVarRequestOptions, configuration)
7743
+
7744
+ // authentication BearerAuth required
7745
+ // http bearer authentication required
7746
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7747
+
7748
+ if (resources) {
7749
+ localVarQueryParameter['resources'] = resources.join(COLLECTION_FORMATS.csv);
7750
+ }
7751
+
7752
+
7753
+
7754
+ localVarHeaderParameter['Content-Type'] = 'application/gzip';
7755
+
7756
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7757
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7758
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7759
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
7760
+
7761
+ return {
7762
+ url: toPathString(localVarUrlObj),
7763
+ options: localVarRequestOptions,
7764
+ };
7765
+ },
7766
+ }
7767
+ };
7768
+
7769
+ /**
7770
+ * ConfigurationApi - functional programming interface
7771
+ * @export
7772
+ */
7773
+ export const ConfigurationApiFp = function(configuration?: Configuration) {
7774
+ const localVarAxiosParamCreator = ConfigurationApiAxiosParamCreator(configuration)
7775
+ return {
7776
+ /**
7777
+ * Retrieves a configuration backup based on provided resource identifiers.
7778
+ * @summary Retrieve Configuration Backup
7779
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
7780
+ * @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
7781
+ * @param {*} [options] Override http request option.
7782
+ * @throws {RequiredError}
7783
+ */
7784
+ async backupConfiguration(resources: Array<string>, metadata?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
7785
+ const localVarAxiosArgs = await localVarAxiosParamCreator.backupConfiguration(resources, metadata, options);
7786
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7787
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationApi.backupConfiguration']?.[localVarOperationServerIndex]?.url;
7788
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7789
+ },
7790
+ /**
7791
+ * Retrieves a list of all available configuration resources for backup purposes.
7792
+ * @summary List Configuration Resources
7793
+ * @param {*} [options] Override http request option.
7794
+ * @throws {RequiredError}
7795
+ */
7796
+ async listConfigurationResources(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ConfigurationResource>>> {
7797
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listConfigurationResources(options);
7798
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7799
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationApi.listConfigurationResources']?.[localVarOperationServerIndex]?.url;
7800
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7801
+ },
7802
+ /**
7803
+ * Restores a previously backed up configuration.
7804
+ * @summary Restore Configuration Backup
7805
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
7806
+ * @param {File} body Backup file stream containing the configuration to restore.
7807
+ * @param {*} [options] Override http request option.
7808
+ * @throws {RequiredError}
7809
+ */
7810
+ async restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
7811
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreConfiguration(resources, body, options);
7812
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7813
+ const localVarOperationServerBasePath = operationServerMap['ConfigurationApi.restoreConfiguration']?.[localVarOperationServerIndex]?.url;
7814
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7815
+ },
7816
+ }
7817
+ };
7818
+
7819
+ /**
7820
+ * ConfigurationApi - factory interface
7821
+ * @export
7822
+ */
7823
+ export const ConfigurationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7824
+ const localVarFp = ConfigurationApiFp(configuration)
7825
+ return {
7826
+ /**
7827
+ * Retrieves a configuration backup based on provided resource identifiers.
7828
+ * @summary Retrieve Configuration Backup
7829
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
7830
+ * @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
7831
+ * @param {*} [options] Override http request option.
7832
+ * @throws {RequiredError}
7833
+ */
7834
+ backupConfiguration(resources: Array<string>, metadata?: { [key: string]: string; }, options?: RawAxiosRequestConfig): AxiosPromise<File> {
7835
+ return localVarFp.backupConfiguration(resources, metadata, options).then((request) => request(axios, basePath));
7836
+ },
7837
+ /**
7838
+ * Retrieves a list of all available configuration resources for backup purposes.
7839
+ * @summary List Configuration Resources
7840
+ * @param {*} [options] Override http request option.
7841
+ * @throws {RequiredError}
7842
+ */
7843
+ listConfigurationResources(options?: RawAxiosRequestConfig): AxiosPromise<Array<ConfigurationResource>> {
7844
+ return localVarFp.listConfigurationResources(options).then((request) => request(axios, basePath));
7845
+ },
7846
+ /**
7847
+ * Restores a previously backed up configuration.
7848
+ * @summary Restore Configuration Backup
7849
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
7850
+ * @param {File} body Backup file stream containing the configuration to restore.
7851
+ * @param {*} [options] Override http request option.
7852
+ * @throws {RequiredError}
7853
+ */
7854
+ restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig): AxiosPromise<File> {
7855
+ return localVarFp.restoreConfiguration(resources, body, options).then((request) => request(axios, basePath));
7856
+ },
7857
+ };
7858
+ };
7859
+
7860
+ /**
7861
+ * ConfigurationApi - object-oriented interface
7862
+ * @export
7863
+ * @class ConfigurationApi
7864
+ * @extends {BaseAPI}
7865
+ */
7866
+ export class ConfigurationApi extends BaseAPI {
7867
+ /**
7868
+ * Retrieves a configuration backup based on provided resource identifiers.
7869
+ * @summary Retrieve Configuration Backup
7870
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
7871
+ * @param {{ [key: string]: string; }} [metadata] Additional metadata to add to the backup
7872
+ * @param {*} [options] Override http request option.
7873
+ * @throws {RequiredError}
7874
+ * @memberof ConfigurationApi
7875
+ */
7876
+ public backupConfiguration(resources: Array<string>, metadata?: { [key: string]: string; }, options?: RawAxiosRequestConfig) {
7877
+ return ConfigurationApiFp(this.configuration).backupConfiguration(resources, metadata, options).then((request) => request(this.axios, this.basePath));
7878
+ }
7879
+
7880
+ /**
7881
+ * Retrieves a list of all available configuration resources for backup purposes.
7882
+ * @summary List Configuration Resources
7883
+ * @param {*} [options] Override http request option.
7884
+ * @throws {RequiredError}
7885
+ * @memberof ConfigurationApi
7886
+ */
7887
+ public listConfigurationResources(options?: RawAxiosRequestConfig) {
7888
+ return ConfigurationApiFp(this.configuration).listConfigurationResources(options).then((request) => request(this.axios, this.basePath));
7889
+ }
7890
+
7891
+ /**
7892
+ * Restores a previously backed up configuration.
7893
+ * @summary Restore Configuration Backup
7894
+ * @param {Array<string>} resources List of resource identifiers to included in the backup and restore operations.
7895
+ * @param {File} body Backup file stream containing the configuration to restore.
7896
+ * @param {*} [options] Override http request option.
7897
+ * @throws {RequiredError}
7898
+ * @memberof ConfigurationApi
7899
+ */
7900
+ public restoreConfiguration(resources: Array<string>, body: File, options?: RawAxiosRequestConfig) {
7901
+ return ConfigurationApiFp(this.configuration).restoreConfiguration(resources, body, options).then((request) => request(this.axios, this.basePath));
7902
+ }
7903
+ }
7904
+
7905
+
7906
+
7596
7907
  /**
7597
7908
  * ControllerApi - axios parameter creator
7598
7909
  * @export