Skip to content

Commit

Permalink
feat: use enum for connector status (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuzma authored Dec 5, 2024
1 parent f3626bd commit ad0d6d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/alpha/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ export interface SimulatorCreate {
unitQuantities?: SimulatorUnitQuantity[];
}

export type SimulatorIntegrationConnectorStatus = 'IDLE' | 'RUNNING_SIMULATION';

export const SimulatorIntegrationConnectorStatus = {
IDLE: 'IDLE' as SimulatorIntegrationConnectorStatus,
RUNNING_SIMULATION:
'RUNNING_SIMULATION' as SimulatorIntegrationConnectorStatus,
};

export interface SimulatorIntegration {
id: CogniteInternalId;
externalId: CogniteExternalId;
Expand All @@ -94,7 +102,7 @@ export interface SimulatorIntegration {
simulatorVersion: string;
licenseStatus?: string;
licenseLastCheckedTime?: Date;
connectorStatus?: string;
connectorStatus?: SimulatorIntegrationConnectorStatus;
connectorStatusUpdatedTime?: Date;
logId: CogniteInternalId;
createdTime: Date;
Expand Down

0 comments on commit ad0d6d9

Please sign in to comment.