-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TM-source): add property value query
- Loading branch information
Showing
35 changed files
with
727 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { RefId } from '@iot-app-kit/core'; | ||
|
||
export type PropertyQueryInfo = { | ||
propertyName: string; | ||
|
||
refId?: RefId; | ||
}; | ||
|
||
export type TwinMakerBaseQuery = { | ||
properties: PropertyQueryInfo[]; | ||
}; | ||
|
||
// Query for static property value | ||
export interface TwinMakerEntityPropertyValueQuery extends TwinMakerBaseQuery { | ||
entityId: string; | ||
componentName: string; | ||
} | ||
|
||
// Query for time series property value | ||
export type TwinMakerEntityHistoryQuery = TwinMakerEntityPropertyValueQuery; | ||
|
||
// Query for time series property value for a component type | ||
export interface TwinMakerComponentHistoryQuery extends TwinMakerBaseQuery { | ||
componentTypeId: string; | ||
} | ||
|
||
export type TwinMakerHistoryQuery = TwinMakerEntityHistoryQuery | TwinMakerComponentHistoryQuery; | ||
export type TwinMakerPropertyValueQuery = TwinMakerEntityPropertyValueQuery; | ||
export type TwinMakerQuery = TwinMakerHistoryQuery | TwinMakerPropertyValueQuery; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
// TODO: Use the Primitive type used by other app kit datasource | ||
export declare type Primitive = string | number | boolean; | ||
export type { Primitive } from '@iot-app-kit/core'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.