@wandelbots/nova-api 25.4.0-dev.10 → 25.4.0-dev.12

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
@@ -3981,6 +3981,20 @@ export interface OpcuaNodeValueTriggerConfig {
3981
3981
  */
3982
3982
  export interface OpcuaNodeValueTriggerConfigNodeValue {
3983
3983
  }
3984
+ /**
3985
+ * The operating state.
3986
+ * @export
3987
+ * @enum {string}
3988
+ */
3989
+
3990
+ export const OperatingState = {
3991
+ Active: 'ACTIVE',
3992
+ Inactive: 'INACTIVE'
3993
+ } as const;
3994
+
3995
+ export type OperatingState = typeof OperatingState[keyof typeof OperatingState];
3996
+
3997
+
3984
3998
  /**
3985
3999
  * Current operation mode of the configured robot controller. Operation modes in which the attached motion groups can be moved are: - OPERATION_MODE_MANUAL (if enabling switch is pressed) - OPERATION_MODE_MANUAL_T1 (if enabling switch is pressed) - OPERATION_MODE_MANUAL_T2 (if enabling switch is pressed) - OPERATION_MODE_AUTO (without needing to press enabling switch) All other modes are considered as non-operational.
3986
4000
  * @export
@@ -5530,6 +5544,27 @@ export const ServiceStatusPhase = {
5530
5544
  export type ServiceStatusPhase = typeof ServiceStatusPhase[keyof typeof ServiceStatusPhase];
5531
5545
 
5532
5546
 
5547
+ /**
5548
+ * Response containing both the overall operating state of the cell and detailed status information for each service within the cell. The operating state indicates whether the cell is active or inactive, while the service statuses provide specific health and operational information for individual service running in the cell.
5549
+ * @export
5550
+ * @interface ServiceStatusResponse
5551
+ */
5552
+ export interface ServiceStatusResponse {
5553
+ /**
5554
+ *
5555
+ * @type {OperatingState}
5556
+ * @memberof ServiceStatusResponse
5557
+ */
5558
+ 'operating_state': OperatingState;
5559
+ /**
5560
+ *
5561
+ * @type {Array<ServiceStatus>}
5562
+ * @memberof ServiceStatusResponse
5563
+ */
5564
+ 'service_status': Array<ServiceStatus>;
5565
+ }
5566
+
5567
+
5533
5568
  /**
5534
5569
  *
5535
5570
  * @export
@@ -7323,6 +7358,55 @@ export const CellApiAxiosParamCreator = function (configuration?: Configuration)
7323
7358
 
7324
7359
 
7325
7360
 
7361
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7362
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7363
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7364
+
7365
+ return {
7366
+ url: toPathString(localVarUrlObj),
7367
+ options: localVarRequestOptions,
7368
+ };
7369
+ },
7370
+ /**
7371
+ * Deactivate or activate the services of a cell.
7372
+ * @summary Operating State
7373
+ * @param {string} cell Unique identifier addressing a cell in all API calls.
7374
+ * @param {OperatingState} operatingState Set state of the cell. Active or inactive.
7375
+ * @param {*} [options] Override http request option.
7376
+ * @throws {RequiredError}
7377
+ */
7378
+ setCellStatus: async (cell: string, operatingState: OperatingState, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7379
+ // verify required parameter 'cell' is not null or undefined
7380
+ assertParamExists('setCellStatus', 'cell', cell)
7381
+ // verify required parameter 'operatingState' is not null or undefined
7382
+ assertParamExists('setCellStatus', 'operatingState', operatingState)
7383
+ const localVarPath = `/cells/{cell}/status`
7384
+ .replace(`{${"cell"}}`, encodeURIComponent(String(cell)));
7385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7386
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7387
+ let baseOptions;
7388
+ if (configuration) {
7389
+ baseOptions = configuration.baseOptions;
7390
+ }
7391
+
7392
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
7393
+ const localVarHeaderParameter = {} as any;
7394
+ const localVarQueryParameter = {} as any;
7395
+
7396
+ // authentication BasicAuth required
7397
+ // http basic authentication required
7398
+ setBasicAuthToObject(localVarRequestOptions, configuration)
7399
+
7400
+ // authentication BearerAuth required
7401
+ // http bearer authentication required
7402
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7403
+
7404
+ if (operatingState !== undefined) {
7405
+ localVarQueryParameter['operating_state'] = operatingState;
7406
+ }
7407
+
7408
+
7409
+
7326
7410
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7327
7411
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7328
7412
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7443,7 +7527,7 @@ export const CellApiFp = function(configuration?: Configuration) {
7443
7527
  * @param {*} [options] Override http request option.
7444
7528
  * @throws {RequiredError}
7445
7529
  */
7446
- async getCellStatus(cell: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ServiceStatus>>> {
7530
+ async getCellStatus(cell: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceStatusResponse>> {
7447
7531
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCellStatus(cell, options);
7448
7532
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7449
7533
  const localVarOperationServerBasePath = operationServerMap['CellApi.getCellStatus']?.[localVarOperationServerIndex]?.url;
@@ -7461,6 +7545,20 @@ export const CellApiFp = function(configuration?: Configuration) {
7461
7545
  const localVarOperationServerBasePath = operationServerMap['CellApi.listCells']?.[localVarOperationServerIndex]?.url;
7462
7546
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7463
7547
  },
7548
+ /**
7549
+ * Deactivate or activate the services of a cell.
7550
+ * @summary Operating State
7551
+ * @param {string} cell Unique identifier addressing a cell in all API calls.
7552
+ * @param {OperatingState} operatingState Set state of the cell. Active or inactive.
7553
+ * @param {*} [options] Override http request option.
7554
+ * @throws {RequiredError}
7555
+ */
7556
+ async setCellStatus(cell: string, operatingState: OperatingState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setCellStatus(cell, operatingState, options);
7558
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7559
+ const localVarOperationServerBasePath = operationServerMap['CellApi.setCellStatus']?.[localVarOperationServerIndex]?.url;
7560
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7561
+ },
7464
7562
  /**
7465
7563
  * Update the definition of the entire Cell.
7466
7564
  * @summary Update Configuration
@@ -7525,7 +7623,7 @@ export const CellApiFactory = function (configuration?: Configuration, basePath?
7525
7623
  * @param {*} [options] Override http request option.
7526
7624
  * @throws {RequiredError}
7527
7625
  */
7528
- getCellStatus(cell: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ServiceStatus>> {
7626
+ getCellStatus(cell: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceStatusResponse> {
7529
7627
  return localVarFp.getCellStatus(cell, options).then((request) => request(axios, basePath));
7530
7628
  },
7531
7629
  /**
@@ -7537,6 +7635,17 @@ export const CellApiFactory = function (configuration?: Configuration, basePath?
7537
7635
  listCells(options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
7538
7636
  return localVarFp.listCells(options).then((request) => request(axios, basePath));
7539
7637
  },
7638
+ /**
7639
+ * Deactivate or activate the services of a cell.
7640
+ * @summary Operating State
7641
+ * @param {string} cell Unique identifier addressing a cell in all API calls.
7642
+ * @param {OperatingState} operatingState Set state of the cell. Active or inactive.
7643
+ * @param {*} [options] Override http request option.
7644
+ * @throws {RequiredError}
7645
+ */
7646
+ setCellStatus(cell: string, operatingState: OperatingState, options?: RawAxiosRequestConfig): AxiosPromise<void> {
7647
+ return localVarFp.setCellStatus(cell, operatingState, options).then((request) => request(axios, basePath));
7648
+ },
7540
7649
  /**
7541
7650
  * Update the definition of the entire Cell.
7542
7651
  * @summary Update Configuration
@@ -7620,6 +7729,19 @@ export class CellApi extends BaseAPI {
7620
7729
  return CellApiFp(this.configuration).listCells(options).then((request) => request(this.axios, this.basePath));
7621
7730
  }
7622
7731
 
7732
+ /**
7733
+ * Deactivate or activate the services of a cell.
7734
+ * @summary Operating State
7735
+ * @param {string} cell Unique identifier addressing a cell in all API calls.
7736
+ * @param {OperatingState} operatingState Set state of the cell. Active or inactive.
7737
+ * @param {*} [options] Override http request option.
7738
+ * @throws {RequiredError}
7739
+ * @memberof CellApi
7740
+ */
7741
+ public setCellStatus(cell: string, operatingState: OperatingState, options?: RawAxiosRequestConfig) {
7742
+ return CellApiFp(this.configuration).setCellStatus(cell, operatingState, options).then((request) => request(this.axios, this.basePath));
7743
+ }
7744
+
7623
7745
  /**
7624
7746
  * Update the definition of the entire Cell.
7625
7747
  * @summary Update Configuration