haystack-nclient
Advanced tools
Comparing version 3.0.35 to 3.0.37
@@ -77,2 +77,3 @@ import { HDate, HDateTime, HDict, HList, HMarker, HNum, HRef, HStr, OptionalHVal, Kind } from 'haystack-core'; | ||
* Schedule object. | ||
* Must have at least one property: 'exceptionSchedule' | 'weeklySchedule'. | ||
*/ | ||
@@ -97,2 +98,10 @@ export interface Schedule extends HDict { | ||
/** | ||
* The required schedule marker tag | ||
*/ | ||
schedule: HMarker; | ||
/** | ||
* The required point marker tag | ||
*/ | ||
point: HMarker; | ||
/** | ||
* Is the current value of the schedule. | ||
@@ -103,4 +112,5 @@ */ | ||
* Is the schedule kind (bool, number, str). | ||
* Must be capitalized. e.g. 'Str', 'Bool' | ||
*/ | ||
kind: Kind; | ||
kind: Capitalize<Kind>; | ||
/** | ||
@@ -123,11 +133,13 @@ * Is the list of calendar(s) the schedule subscribes to. | ||
/** | ||
* Is the range of dates (if any) that the schedule is active. | ||
* Is the range of dates that the schedule is active. | ||
*/ | ||
effectivePeriod: CalendarRange; | ||
effectivePeriod: { | ||
effectivePeriod: HMarker; | ||
} & CalendarRange; | ||
/** | ||
* One week of schedules per day. | ||
* The list of one week of schedules. | ||
*/ | ||
weeklySchedule?: HList<WeekDaySchedule>; | ||
/** | ||
* The scheduled exceptions. | ||
* The list of scheduled exceptions. | ||
*/ | ||
@@ -140,2 +152,3 @@ exceptionSchedule?: ExceptionSchedule; | ||
export interface WeekDaySchedule extends HDict { | ||
dayToSchedule: HMarker; | ||
dayOfWeek: HNum; | ||
@@ -152,2 +165,3 @@ dailySchedule: HList<DailySchedule>; | ||
export interface SpecialEvent extends HDict { | ||
specialEvent: HMarker; | ||
calendarEntry?: CalendarEntry; | ||
@@ -159,11 +173,17 @@ calendarRef?: HRef; | ||
/** | ||
* Defines data for the bacnet time object. | ||
*/ | ||
export interface BacnetTime extends HDict { | ||
bacnetTime: HMarker; | ||
hour?: number; | ||
minute?: number; | ||
second?: number; | ||
hundredths?: number; | ||
} | ||
/** | ||
* Defines the schedule for a day. | ||
*/ | ||
export interface DailySchedule extends HDict { | ||
bacnetTime: { | ||
hour?: number; | ||
minute?: number; | ||
second?: number; | ||
hundredths?: number; | ||
}; | ||
timeToVal: HMarker; | ||
bacnetTime: BacnetTime; | ||
scheduledVal: OptionalHVal; | ||
@@ -182,3 +202,3 @@ } | ||
*/ | ||
dis?: HStr; | ||
dis: HStr; | ||
/** | ||
@@ -199,3 +219,3 @@ * Is the date-time when the calendar was last modified | ||
*/ | ||
entries?: CalendarEntry[]; | ||
entries?: HList<CalendarEntry>; | ||
} | ||
@@ -205,13 +225,10 @@ /** | ||
*/ | ||
export declare type CalendarEntry = ({ | ||
entryType: 'Date'; | ||
} & CalendarDate) | ({ | ||
entryType: 'Range'; | ||
} & CalendarRange) | ({ | ||
entryType: 'WeekNDay'; | ||
} & CalendarWeekNDay); | ||
export declare type CalendarEntry = { | ||
calendarEntry: HMarker; | ||
} & (CalendarDate | CalendarRange | CalendarWeekNDay); | ||
/** | ||
* A Date for a Calendar. | ||
*/ | ||
export interface CalendarDate { | ||
export interface CalendarDate extends HDict { | ||
entryType: 'Date'; | ||
year?: number; | ||
@@ -225,3 +242,4 @@ month?: number; | ||
*/ | ||
export interface CalendarRange { | ||
export interface CalendarRange extends HDict { | ||
entryType: 'Range'; | ||
lowBound?: HDate; | ||
@@ -233,3 +251,4 @@ upBound?: HDate; | ||
*/ | ||
export interface CalendarWeekNDay { | ||
export interface CalendarWeekNDay extends HDict { | ||
entryType: 'WeekNDay'; | ||
weekOfMonth?: number; | ||
@@ -236,0 +255,0 @@ month?: number; |
@@ -13,3 +13,3 @@ { | ||
"homepage": "https://github.com/j2inn/haystack-nclient", | ||
"version": "3.0.35", | ||
"version": "3.0.37", | ||
"module": "dist/index.es.js", | ||
@@ -16,0 +16,0 @@ "main": "dist/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
542243
14312
8