From 56f5141124d43f0ffa380f9d29c2aac88acdbaff Mon Sep 17 00:00:00 2001 From: Lee Pang Date: Thu, 27 Aug 2026 17:30:34 -0700 Subject: [PATCH] Regenerate API client for executionModes (0.13.32) Picks up: executionModes on Process, ProcessDetail, and CustomProcessInput (CI-673); virtual view fields on Sheet, SheetDetail, and ViewSheetInput (CI-1704). --- openapitools.json | 2 +- packages/api-client/.openapi-generator/FILES | 1 + packages/api-client/README.md | 2 +- packages/api-client/package.json | 2 +- .../src/models/CustomProcessInput.ts | 15 ++++++ .../api-client/src/models/ExecutionMode.ts | 52 +++++++++++++++++++ .../src/models/FilterValuesInner.ts | 12 ++--- packages/api-client/src/models/Process.ts | 16 ++++++ .../api-client/src/models/ProcessDetail.ts | 16 ++++++ packages/api-client/src/models/Sheet.ts | 9 ++++ packages/api-client/src/models/SheetDetail.ts | 8 +++ .../api-client/src/models/ViewSheetInput.ts | 8 +++ packages/api-client/src/models/index.ts | 1 + packages/sdk/package.json | 2 +- 14 files changed, 136 insertions(+), 10 deletions(-) create mode 100644 packages/api-client/src/models/ExecutionMode.ts diff --git a/openapitools.json b/openapitools.json index a9a60da..582522e 100644 --- a/openapitools.json +++ b/openapitools.json @@ -22,7 +22,7 @@ }, "additionalProperties": { "npmName": "@cirrobio/api-client", - "npmVersion": "0.13.31", + "npmVersion": "0.13.32", "author": "CirroBio", "stringEnums": true, "supportsES6": true diff --git a/packages/api-client/.openapi-generator/FILES b/packages/api-client/.openapi-generator/FILES index a9246f5..67b9520 100644 --- a/packages/api-client/.openapi-generator/FILES +++ b/packages/api-client/.openapi-generator/FILES @@ -91,6 +91,7 @@ src/models/Entity.ts src/models/EntityType.ts src/models/EnvironmentType.ts src/models/ErrorMessage.ts +src/models/ExecutionMode.ts src/models/Executor.ts src/models/FeatureFlags.ts src/models/FileDef.ts diff --git a/packages/api-client/README.md b/packages/api-client/README.md index 3017f47..b7777e7 100644 --- a/packages/api-client/README.md +++ b/packages/api-client/README.md @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install @cirrobio/api-client@0.13.31 --save +npm install @cirrobio/api-client@0.13.32 --save ``` _unPublished (not recommended):_ diff --git a/packages/api-client/package.json b/packages/api-client/package.json index b2c53bc..bde50c1 100644 --- a/packages/api-client/package.json +++ b/packages/api-client/package.json @@ -1,6 +1,6 @@ { "name": "@cirrobio/api-client", - "version": "0.13.31", + "version": "0.13.32", "description": "API client for Cirro", "author": "CirroBio", "repository": { diff --git a/packages/api-client/src/models/CustomProcessInput.ts b/packages/api-client/src/models/CustomProcessInput.ts index 7a201af..13dc7aa 100644 --- a/packages/api-client/src/models/CustomProcessInput.ts +++ b/packages/api-client/src/models/CustomProcessInput.ts @@ -41,6 +41,13 @@ import { CustomPipelineSettingsToJSON, CustomPipelineSettingsToJSONTyped, } from './CustomPipelineSettings'; +import type { ExecutionMode } from './ExecutionMode'; +import { + ExecutionModeFromJSON, + ExecutionModeFromJSONTyped, + ExecutionModeToJSON, + ExecutionModeToJSONTyped, +} from './ExecutionMode'; import type { Tag } from './Tag'; import { TagFromJSON, @@ -158,6 +165,12 @@ export interface CustomProcessInput { * @memberof CustomProcessInput */ usesSampleSheet?: boolean; + /** + * Execution modes the pipeline supports + * @type {Array} + * @memberof CustomProcessInput + */ + executionModes?: Array | null; /** * * @type {CustomPipelineSettings} @@ -226,6 +239,7 @@ export function CustomProcessInputFromJSONTyped(json: any, ignoreDiscriminator: 'isTenantWide': json['isTenantWide'] == null ? undefined : json['isTenantWide'], 'allowMultipleSources': json['allowMultipleSources'] == null ? undefined : json['allowMultipleSources'], 'usesSampleSheet': json['usesSampleSheet'] == null ? undefined : json['usesSampleSheet'], + 'executionModes': json['executionModes'] == null ? undefined : ((json['executionModes'] as Array).map(ExecutionModeFromJSON)), 'customSettings': json['customSettings'] == null ? undefined : CustomPipelineSettingsFromJSON(json['customSettings']), 'fileMappingRules': json['fileMappingRules'] == null ? undefined : ((json['fileMappingRules'] as Array).map(FileMappingRuleFromJSON)), 'tags': json['tags'] == null ? undefined : ((json['tags'] as Array).map(TagFromJSON)), @@ -260,6 +274,7 @@ export function CustomProcessInputToJSONTyped(value?: CustomProcessInput | null, 'isTenantWide': value['isTenantWide'], 'allowMultipleSources': value['allowMultipleSources'], 'usesSampleSheet': value['usesSampleSheet'], + 'executionModes': value['executionModes'] == null ? undefined : ((value['executionModes'] as Array).map(ExecutionModeToJSON)), 'customSettings': CustomPipelineSettingsToJSON(value['customSettings']), 'fileMappingRules': value['fileMappingRules'] == null ? undefined : ((value['fileMappingRules'] as Array).map(FileMappingRuleToJSON)), 'tags': value['tags'] == null ? undefined : ((value['tags'] as Array).map(TagToJSON)), diff --git a/packages/api-client/src/models/ExecutionMode.ts b/packages/api-client/src/models/ExecutionMode.ts new file mode 100644 index 0000000..3459b8b --- /dev/null +++ b/packages/api-client/src/models/ExecutionMode.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Cirro Data + * Cirro Data Platform service API + * + * The version of the OpenAPI document: latest + * Contact: support@cirro.bio + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * An execution mode a pipeline declares support for. STANDARD runs on AWS Batch; HEALTHOMICS runs on AWS HealthOmics. + * @export + * @enum {string} + */ +export enum ExecutionMode { + Standard = 'STANDARD', + Healthomics = 'HEALTHOMICS' +} + + +export function instanceOfExecutionMode(value: any): boolean { + for (const key in ExecutionMode) { + if (Object.prototype.hasOwnProperty.call(ExecutionMode, key)) { + if (ExecutionMode[key as keyof typeof ExecutionMode] === value) { + return true; + } + } + } + return false; +} + +export function ExecutionModeFromJSON(json: any): ExecutionMode { + return ExecutionModeFromJSONTyped(json, false); +} + +export function ExecutionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionMode { + return json as ExecutionMode; +} + +export function ExecutionModeToJSON(value?: ExecutionMode | null): any { + return value as any; +} + +export function ExecutionModeToJSONTyped(value: any, ignoreDiscriminator: boolean): ExecutionMode { + return value as ExecutionMode; +} + diff --git a/packages/api-client/src/models/FilterValuesInner.ts b/packages/api-client/src/models/FilterValuesInner.ts index 58d9fb0..87f612a 100644 --- a/packages/api-client/src/models/FilterValuesInner.ts +++ b/packages/api-client/src/models/FilterValuesInner.ts @@ -27,9 +27,6 @@ export function FilterValuesInnerFromJSONTyped(json: any, ignoreDiscriminator: b if (json == null) { return json; } - if (typeof json === 'string') { - return json; - } if (typeof json === 'number') { return json; } @@ -39,6 +36,9 @@ export function FilterValuesInnerFromJSONTyped(json: any, ignoreDiscriminator: b if (typeof json === 'boolean') { return json; } + if (typeof json === 'string') { + return json; + } return {} as any; } @@ -50,9 +50,6 @@ export function FilterValuesInnerToJSONTyped(value?: FilterValuesInner | null, i if (value == null) { return value; } - if (typeof value === 'string') { - return value; - } if (typeof value === 'number') { return value; } @@ -62,6 +59,9 @@ export function FilterValuesInnerToJSONTyped(value?: FilterValuesInner | null, i if (typeof value === 'boolean') { return value; } + if (typeof value === 'string') { + return value; + } return {}; } diff --git a/packages/api-client/src/models/Process.ts b/packages/api-client/src/models/Process.ts index db59928..4923a88 100644 --- a/packages/api-client/src/models/Process.ts +++ b/packages/api-client/src/models/Process.ts @@ -20,6 +20,13 @@ import { ExecutorToJSON, ExecutorToJSONTyped, } from './Executor'; +import type { ExecutionMode } from './ExecutionMode'; +import { + ExecutionModeFromJSON, + ExecutionModeFromJSONTyped, + ExecutionModeToJSON, + ExecutionModeToJSONTyped, +} from './ExecutionMode'; import type { Tag } from './Tag'; import { TagFromJSON, @@ -136,6 +143,12 @@ export interface Process { * @memberof Process */ usesSampleSheet: boolean; + /** + * Execution modes the pipeline supports + * @type {Array} + * @memberof Process + */ + executionModes: Array; /** * Whether the process is marked as archived * @type {boolean} @@ -179,6 +192,7 @@ export function instanceOfProcess(value: object): value is Process { if (!('isTenantWide' in value) || value['isTenantWide'] === undefined) return false; if (!('allowMultipleSources' in value) || value['allowMultipleSources'] === undefined) return false; if (!('usesSampleSheet' in value) || value['usesSampleSheet'] === undefined) return false; + if (!('executionModes' in value) || value['executionModes'] === undefined) return false; if (!('isArchived' in value) || value['isArchived'] === undefined) return false; if (!('tags' in value) || value['tags'] === undefined) return false; return true; @@ -211,6 +225,7 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P 'isTenantWide': json['isTenantWide'], 'allowMultipleSources': json['allowMultipleSources'], 'usesSampleSheet': json['usesSampleSheet'], + 'executionModes': ((json['executionModes'] as Array).map(ExecutionModeFromJSON)), 'isArchived': json['isArchived'], 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])), 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])), @@ -246,6 +261,7 @@ export function ProcessToJSONTyped(value?: Process | null, ignoreDiscriminator: 'isTenantWide': value['isTenantWide'], 'allowMultipleSources': value['allowMultipleSources'], 'usesSampleSheet': value['usesSampleSheet'], + 'executionModes': ((value['executionModes'] as Array).map(ExecutionModeToJSON)), 'isArchived': value['isArchived'], 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(), 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(), diff --git a/packages/api-client/src/models/ProcessDetail.ts b/packages/api-client/src/models/ProcessDetail.ts index 001d762..3aaaa1a 100644 --- a/packages/api-client/src/models/ProcessDetail.ts +++ b/packages/api-client/src/models/ProcessDetail.ts @@ -41,6 +41,13 @@ import { CustomPipelineSettingsToJSON, CustomPipelineSettingsToJSONTyped, } from './CustomPipelineSettings'; +import type { ExecutionMode } from './ExecutionMode'; +import { + ExecutionModeFromJSON, + ExecutionModeFromJSONTyped, + ExecutionModeToJSON, + ExecutionModeToJSONTyped, +} from './ExecutionMode'; import type { Tag } from './Tag'; import { TagFromJSON, @@ -170,6 +177,12 @@ export interface ProcessDetail { * @memberof ProcessDetail */ usesSampleSheet: boolean; + /** + * Execution modes the pipeline supports + * @type {Array} + * @memberof ProcessDetail + */ + executionModes: Array; /** * Whether the process is marked as archived * @type {boolean} @@ -231,6 +244,7 @@ export function instanceOfProcessDetail(value: object): value is ProcessDetail { if (!('isTenantWide' in value) || value['isTenantWide'] === undefined) return false; if (!('allowMultipleSources' in value) || value['allowMultipleSources'] === undefined) return false; if (!('usesSampleSheet' in value) || value['usesSampleSheet'] === undefined) return false; + if (!('executionModes' in value) || value['executionModes'] === undefined) return false; if (!('isArchived' in value) || value['isArchived'] === undefined) return false; if (!('tags' in value) || value['tags'] === undefined) return false; if (!('configSource' in value) || value['configSource'] === undefined) return false; @@ -265,6 +279,7 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole 'isTenantWide': json['isTenantWide'], 'allowMultipleSources': json['allowMultipleSources'], 'usesSampleSheet': json['usesSampleSheet'], + 'executionModes': ((json['executionModes'] as Array).map(ExecutionModeFromJSON)), 'isArchived': json['isArchived'], 'customSettings': json['customSettings'] == null ? undefined : CustomPipelineSettingsFromJSON(json['customSettings']), 'fileMappingRules': json['fileMappingRules'] == null ? undefined : ((json['fileMappingRules'] as Array).map(FileMappingRuleFromJSON)), @@ -304,6 +319,7 @@ export function ProcessDetailToJSONTyped(value?: ProcessDetail | null, ignoreDis 'isTenantWide': value['isTenantWide'], 'allowMultipleSources': value['allowMultipleSources'], 'usesSampleSheet': value['usesSampleSheet'], + 'executionModes': ((value['executionModes'] as Array).map(ExecutionModeToJSON)), 'isArchived': value['isArchived'], 'customSettings': CustomPipelineSettingsToJSON(value['customSettings']), 'fileMappingRules': value['fileMappingRules'] == null ? undefined : ((value['fileMappingRules'] as Array).map(FileMappingRuleToJSON)), diff --git a/packages/api-client/src/models/Sheet.ts b/packages/api-client/src/models/Sheet.ts index 00a569a..3787e3a 100644 --- a/packages/api-client/src/models/Sheet.ts +++ b/packages/api-client/src/models/Sheet.ts @@ -103,6 +103,12 @@ export interface Sheet { * @memberof Sheet */ sheetCreationMode: SheetCreationMode; + /** + * + * @type {boolean} + * @memberof Sheet + */ + virtual: boolean; /** * * @type {Status} @@ -161,6 +167,7 @@ export function instanceOfSheet(value: object): value is Sheet { if (!('projectId' in value) || value['projectId'] === undefined) return false; if (!('sheetType' in value) || value['sheetType'] === undefined) return false; if (!('sheetCreationMode' in value) || value['sheetCreationMode'] === undefined) return false; + if (!('virtual' in value) || value['virtual'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; if (!('createdAt' in value) || value['createdAt'] === undefined) return false; @@ -189,6 +196,7 @@ export function SheetFromJSONTyped(json: any, ignoreDiscriminator: boolean): She 'projectId': json['projectId'], 'sheetType': SheetTypeFromJSON(json['sheetType']), 'sheetCreationMode': SheetCreationModeFromJSON(json['sheetCreationMode']), + 'virtual': json['virtual'], 'status': StatusFromJSON(json['status']), 'createdBy': json['createdBy'], 'createdAt': (new Date(json['createdAt'])), @@ -218,6 +226,7 @@ export function SheetToJSONTyped(value?: Sheet | null, ignoreDiscriminator: bool 'projectId': value['projectId'], 'sheetType': SheetTypeToJSON(value['sheetType']), 'sheetCreationMode': SheetCreationModeToJSON(value['sheetCreationMode']), + 'virtual': value['virtual'], 'status': StatusToJSON(value['status']), 'createdBy': value['createdBy'], 'createdAt': value['createdAt'].toISOString(), diff --git a/packages/api-client/src/models/SheetDetail.ts b/packages/api-client/src/models/SheetDetail.ts index 2df410a..91c79f4 100644 --- a/packages/api-client/src/models/SheetDetail.ts +++ b/packages/api-client/src/models/SheetDetail.ts @@ -134,6 +134,12 @@ export interface SheetDetail { * @memberof SheetDetail */ viewDefinition?: ViewQueryRequest | null; + /** + * True only for virtual (non-materialized) VIEW sheets. + * @type {boolean} + * @memberof SheetDetail + */ + virtual?: boolean; /** * When the view was last materialized. Null for TABLE sheets. * @type {Date} @@ -229,6 +235,7 @@ export function SheetDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean 'columns': json['columns'] == null ? undefined : ((json['columns'] as Array).map(ColumnDefFromJSON)), 'auditReadAccess': json['auditReadAccess'], 'viewDefinition': json['viewDefinition'] == null ? undefined : ViewQueryRequestFromJSON(json['viewDefinition']), + 'virtual': json['virtual'] == null ? undefined : json['virtual'], 'lastRefreshedAt': json['lastRefreshedAt'] == null ? undefined : (new Date(json['lastRefreshedAt'])), 'stagingUploadPath': json['stagingUploadPath'] == null ? undefined : json['stagingUploadPath'], 'createdBy': json['createdBy'], @@ -263,6 +270,7 @@ export function SheetDetailToJSONTyped(value?: SheetDetail | null, ignoreDiscrim 'columns': value['columns'] == null ? undefined : ((value['columns'] as Array).map(ColumnDefToJSON)), 'auditReadAccess': value['auditReadAccess'], 'viewDefinition': ViewQueryRequestToJSON(value['viewDefinition']), + 'virtual': value['virtual'], 'lastRefreshedAt': value['lastRefreshedAt'] == null ? value['lastRefreshedAt'] : value['lastRefreshedAt'].toISOString(), 'stagingUploadPath': value['stagingUploadPath'], 'createdBy': value['createdBy'], diff --git a/packages/api-client/src/models/ViewSheetInput.ts b/packages/api-client/src/models/ViewSheetInput.ts index e883711..97f90d7 100644 --- a/packages/api-client/src/models/ViewSheetInput.ts +++ b/packages/api-client/src/models/ViewSheetInput.ts @@ -70,6 +70,12 @@ export interface ViewSheetInput { * @memberof ViewSheetInput */ viewDefinition: ViewQueryRequest; + /** + * True for a view resolved live at query time; false materializes it into a table (refreshed async). Immutable after create. + * @type {boolean} + * @memberof ViewSheetInput + */ + virtual?: boolean; /** * Tags for the sheet * @type {Array} @@ -111,6 +117,7 @@ export function ViewSheetInputFromJSONTyped(json: any, ignoreDiscriminator: bool 'tableName': json['tableName'], 'auditReadAccess': json['auditReadAccess'] == null ? undefined : json['auditReadAccess'], 'viewDefinition': ViewQueryRequestFromJSON(json['viewDefinition']), + 'virtual': json['virtual'] == null ? undefined : json['virtual'], 'tags': json['tags'] == null ? undefined : ((json['tags'] as Array).map(TagFromJSON)), 'sheetType': json['sheetType'] == null ? undefined : json['sheetType'], }; @@ -133,6 +140,7 @@ export function ViewSheetInputToJSONTyped(value?: ViewSheetInput | null, ignoreD 'tableName': value['tableName'], 'auditReadAccess': value['auditReadAccess'], 'viewDefinition': ViewQueryRequestToJSON(value['viewDefinition']), + 'virtual': value['virtual'], 'tags': value['tags'] == null ? undefined : ((value['tags'] as Array).map(TagToJSON)), 'sheetType': value['sheetType'], }; diff --git a/packages/api-client/src/models/index.ts b/packages/api-client/src/models/index.ts index d8a3113..ecff4a6 100644 --- a/packages/api-client/src/models/index.ts +++ b/packages/api-client/src/models/index.ts @@ -64,6 +64,7 @@ export * from './Entity'; export * from './EntityType'; export * from './EnvironmentType'; export * from './ErrorMessage'; +export * from './ExecutionMode'; export * from './Executor'; export * from './FeatureFlags'; export * from './FileDef'; diff --git a/packages/sdk/package.json b/packages/sdk/package.json index c19811b..448beca 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@cirrobio/sdk", - "version": "0.13.31", + "version": "0.13.32", "description": "SDK for Cirro", "author": "CirroBio", "repository": {