Skip to content

Commit

Permalink
feat(history-query): add backend endpoint and repository for history …
Browse files Browse the repository at this point in the history
…queries
  • Loading branch information
burgerni10 committed Jun 21, 2023
1 parent 066e522 commit b7ffefd
Show file tree
Hide file tree
Showing 11 changed files with 658 additions and 118 deletions.
39 changes: 39 additions & 0 deletions backend/model/history-query.model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import {
NorthArchiveSettings,
NorthCacheSettingsDTO,
} from "./north-connector.model";

/**
* DTO for history queries
*/
export interface HistoryQueryDTO {
id: string;
name: string;
description: string;
enabled: boolean;
startTime: string;
endTime: string;
southType: string;
northType: string;
southSettings: object;
northSettings: object;
caching: NorthCacheSettingsDTO;
archive: NorthArchiveSettings;
}

/**
* Command DTO for history queries
*/
export interface HistoryQueryCommandDTO {
name: string;
description: string;
enabled: boolean;
startTime: string;
endTime: string;
southType: string;
northType: string;
southSettings: object;
northSettings: object;
caching: NorthCacheSettingsDTO;
archive: NorthArchiveSettings;
}
7 changes: 7 additions & 0 deletions backend/model/south-connector.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ export interface SouthType {
category: string;
type: string;
description: string;
modes: {
subscription: boolean;
lastPoint: boolean;
lastFile: boolean;
historyPoint: boolean;
historyFile: boolean;
};
}

/**
Expand Down
Loading

0 comments on commit b7ffefd

Please sign in to comment.