@xiboplayer/schedule 0.5.17 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/src/index.d.ts +19 -0
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiboplayer/schedule",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19",
|
|
4
4
|
"description": "Complete scheduling solution: campaigns, dayparting, interrupts, and overlays",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
|
+
"types": "./src/index.d.ts",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": "./src/index.js",
|
|
9
10
|
"./schedule": "./src/schedule.js",
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
"./overlays": "./src/overlays.js"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@xiboplayer/utils": "0.5.
|
|
15
|
+
"@xiboplayer/utils": "0.5.19"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
18
|
"vitest": "^2.0.0"
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const VERSION: string;
|
|
2
|
+
|
|
3
|
+
export class ScheduleManager {
|
|
4
|
+
schedule: any;
|
|
5
|
+
setSchedule(schedule: any): void;
|
|
6
|
+
getCurrentLayouts(): string[];
|
|
7
|
+
getLayoutsAtTime?(date: Date): any[];
|
|
8
|
+
setLocation(lat: number, lng: number): void;
|
|
9
|
+
setDisplayProperties(settings: any): void;
|
|
10
|
+
recordPlay(layoutId: string | number): void;
|
|
11
|
+
isSyncEvent(layoutFile: string): boolean;
|
|
12
|
+
getCommands?(): any[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const scheduleManager: ScheduleManager;
|
|
16
|
+
|
|
17
|
+
export function calculateTimeline(layouts: any[], durations: Map<string, number>, options?: any): any[];
|
|
18
|
+
export function parseLayoutDuration(xlf: string): number;
|
|
19
|
+
export function buildScheduleQueue(schedule: any, durations: Map<string, number>): any[];
|