@iot-app-kit/core
Advanced tools
Comparing version 10.3.0 to 10.4.0
import type { DataStream, DataType } from '../data-module/types'; | ||
import type { HistoricalViewport, Viewport } from '../data-module/data-cache/requestTypes'; | ||
import type { DurationViewport, HistoricalViewport, Viewport } from '../data-module/data-cache/requestTypes'; | ||
/** | ||
@@ -38,2 +38,3 @@ * Predicate Utilities | ||
export declare const isHistoricalViewport: (viewport: Viewport) => viewport is HistoricalViewport; | ||
export declare const isDurationViewport: (viewport: Viewport) => viewport is DurationViewport; | ||
//# sourceMappingURL=predicates.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isHistoricalViewport = exports.isNumber = exports.isNumberDataStream = exports.isSupportedDataType = exports.isValid = exports.isDefined = void 0; | ||
exports.isDurationViewport = exports.isHistoricalViewport = exports.isNumber = exports.isNumberDataStream = exports.isSupportedDataType = exports.isValid = exports.isDefined = void 0; | ||
const constants_1 = require("../common/constants"); | ||
@@ -46,1 +46,3 @@ /** | ||
exports.isHistoricalViewport = isHistoricalViewport; | ||
const isDurationViewport = (viewport) => 'duration' in viewport; | ||
exports.isDurationViewport = isDurationViewport; |
@@ -12,3 +12,3 @@ "use strict"; | ||
if (refreshRate && refreshRate < 1000) { | ||
throw new Error('Refresh rate has minimum value of 1000 miliseconds. Setting rerfesh rate to 1 second.'); | ||
throw new Error('Refresh rate has minimum value of 1000 milliseconds. Setting refresh rate to 1 second.'); | ||
} | ||
@@ -15,0 +15,0 @@ return refreshRate; |
@@ -10,3 +10,3 @@ export * from './data-module/data-cache/requestTypes'; | ||
export { viewportManager } from './viewportManager/viewportManager'; | ||
export { isHistoricalViewport } from './common/predicates'; | ||
export { isHistoricalViewport, isDurationViewport } from './common/predicates'; | ||
export { viewportEndDate, viewportStartDate } from './common/viewport'; | ||
@@ -13,0 +13,0 @@ export * from './edge/types'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getPlugin = exports.registerPlugin = exports.DAY_IN_MS = exports.HOUR_IN_MS = exports.MINUTE_IN_MS = exports.SECOND_IN_MS = exports.NANO_SECOND_IN_MS = exports.STATUS_ICON_TYPE = exports.COMPARISON_OPERATOR = exports.STREAM_TYPE = exports.DATA_TYPE = exports.TimeSeriesDataModule = exports.viewportStartDate = exports.viewportEndDate = exports.isHistoricalViewport = exports.viewportManager = exports.parseDuration = exports.toSiteWiseAssetProperty = exports.pointBisector = exports.getDataBeforeDate = exports.getVisibleData = exports.round = exports.combineProviders = void 0; | ||
exports.getPlugin = exports.registerPlugin = exports.DAY_IN_MS = exports.HOUR_IN_MS = exports.MINUTE_IN_MS = exports.SECOND_IN_MS = exports.NANO_SECOND_IN_MS = exports.STATUS_ICON_TYPE = exports.COMPARISON_OPERATOR = exports.STREAM_TYPE = exports.DATA_TYPE = exports.TimeSeriesDataModule = exports.viewportStartDate = exports.viewportEndDate = exports.isDurationViewport = exports.isHistoricalViewport = exports.viewportManager = exports.parseDuration = exports.toSiteWiseAssetProperty = exports.pointBisector = exports.getDataBeforeDate = exports.getVisibleData = exports.round = exports.combineProviders = void 0; | ||
__exportStar(require("./data-module/data-cache/requestTypes"), exports); | ||
@@ -40,2 +40,3 @@ __exportStar(require("./data-module/types"), exports); | ||
Object.defineProperty(exports, "isHistoricalViewport", { enumerable: true, get: function () { return predicates_1.isHistoricalViewport; } }); | ||
Object.defineProperty(exports, "isDurationViewport", { enumerable: true, get: function () { return predicates_1.isDurationViewport; } }); | ||
var viewport_1 = require("./common/viewport"); | ||
@@ -42,0 +43,0 @@ Object.defineProperty(exports, "viewportEndDate", { enumerable: true, get: function () { return viewport_1.viewportEndDate; } }); |
import type { DataStream, DataType } from '../data-module/types'; | ||
import type { HistoricalViewport, Viewport } from '../data-module/data-cache/requestTypes'; | ||
import type { DurationViewport, HistoricalViewport, Viewport } from '../data-module/data-cache/requestTypes'; | ||
/** | ||
@@ -38,2 +38,3 @@ * Predicate Utilities | ||
export declare const isHistoricalViewport: (viewport: Viewport) => viewport is HistoricalViewport; | ||
export declare const isDurationViewport: (viewport: Viewport) => viewport is DurationViewport; | ||
//# sourceMappingURL=predicates.d.ts.map |
@@ -37,1 +37,2 @@ import { DATA_TYPE } from '../common/constants'; | ||
export const isHistoricalViewport = (viewport) => 'start' in viewport && 'end' in viewport; | ||
export const isDurationViewport = (viewport) => 'duration' in viewport; |
@@ -8,3 +8,3 @@ const REFRESH_RATE_MINUMUM = 1000; | ||
if (refreshRate && refreshRate < 1000) { | ||
throw new Error('Refresh rate has minimum value of 1000 miliseconds. Setting rerfesh rate to 1 second.'); | ||
throw new Error('Refresh rate has minimum value of 1000 milliseconds. Setting refresh rate to 1 second.'); | ||
} | ||
@@ -11,0 +11,0 @@ return refreshRate; |
@@ -10,3 +10,3 @@ export * from './data-module/data-cache/requestTypes'; | ||
export { viewportManager } from './viewportManager/viewportManager'; | ||
export { isHistoricalViewport } from './common/predicates'; | ||
export { isHistoricalViewport, isDurationViewport } from './common/predicates'; | ||
export { viewportEndDate, viewportStartDate } from './common/viewport'; | ||
@@ -13,0 +13,0 @@ export * from './edge/types'; |
@@ -12,3 +12,3 @@ export * from './data-module/data-cache/requestTypes'; | ||
export { viewportManager } from './viewportManager/viewportManager'; | ||
export { isHistoricalViewport } from './common/predicates'; | ||
export { isHistoricalViewport, isDurationViewport } from './common/predicates'; | ||
export { viewportEndDate, viewportStartDate } from './common/viewport'; | ||
@@ -15,0 +15,0 @@ // Edge utilities |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "10.3.0", | ||
"version": "10.4.0", | ||
"description": "IoT Application Kit core", | ||
@@ -62,8 +62,8 @@ "main": "./dist/cjs/index.js", | ||
"devDependencies": { | ||
"@iot-app-kit/jest-config": "10.3.0", | ||
"@iot-app-kit/ts-config": "10.3.0", | ||
"@iot-app-kit/jest-config": "10.4.0", | ||
"@iot-app-kit/ts-config": "10.4.0", | ||
"@types/d3-array": "^3.0.5", | ||
"@types/jest": "^29.4.0", | ||
"@types/uuid": "^9.0.2", | ||
"eslint-config-iot-app-kit": "10.3.0", | ||
"eslint-config-iot-app-kit": "10.4.0", | ||
"flush-promises": "^1.0.2", | ||
@@ -70,0 +70,0 @@ "jest": "^29.5.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
406441
5954