@royalschedule/maps 2.3.19 → 2.3.20
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.
|
@@ -13,6 +13,7 @@ import { DivisionSettings } from './division-settings';
|
|
|
13
13
|
import { OverlapGroup } from './overlap-groups';
|
|
14
14
|
import { Period } from './periods';
|
|
15
15
|
import { Person } from './persons';
|
|
16
|
+
import { RootInterval } from './root-intervals';
|
|
16
17
|
import { Schedule } from './schedules';
|
|
17
18
|
import { Teacher } from './teachers';
|
|
18
19
|
import { Meta } from './meta';
|
|
@@ -32,6 +33,7 @@ export declare module Types {
|
|
|
32
33
|
type overlapGroup = OverlapGroup;
|
|
33
34
|
type period = Period;
|
|
34
35
|
type person = Person;
|
|
36
|
+
type rootInterval = RootInterval;
|
|
35
37
|
type schedule = Schedule;
|
|
36
38
|
type teacher = Teacher;
|
|
37
39
|
type meta = Meta;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { Edge } from '../../types';
|
|
3
|
+
import { Division } from './divisions';
|
|
4
|
+
export interface RootIntervalBare {
|
|
5
|
+
belongsTo?: Edge<Division>;
|
|
6
|
+
displayName?: string;
|
|
7
|
+
intervals: {
|
|
8
|
+
start?: moment.Moment | string | Date;
|
|
9
|
+
end?: moment.Moment | string | Date;
|
|
10
|
+
}[];
|
|
11
|
+
lastModifiedBy?: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface RootInterval extends RootIntervalBare {
|
|
14
|
+
_id?: Types.ObjectId;
|
|
15
|
+
id?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-intervals.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
|