@demind-inc/core 1.4.17 → 1.4.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/dist/constants.d.ts +2 -0
- package/dist/constants.js +2 -0
- package/dist/models/Routine.d.ts +21 -0
- package/dist/models/Routine.js +2 -0
- package/dist/models/User.d.ts +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/types.d.ts +1 -0
- package/lib/constants.ts +2 -0
- package/lib/models/Routine.ts +22 -0
- package/lib/models/User.ts +1 -0
- package/lib/models/index.ts +1 -0
- package/lib/types.ts +2 -0
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export declare const DB_COLLECTION: {
|
|
|
29
29
|
DEVICE_GROUP: string;
|
|
30
30
|
DEVICES: string;
|
|
31
31
|
DISCOUNT: string;
|
|
32
|
+
ROUTINE: string;
|
|
33
|
+
ROUTINE_ACTIVITIES: string;
|
|
32
34
|
};
|
|
33
35
|
export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
|
34
36
|
export declare const STRESS_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
package/dist/constants.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventCategorySet } from "./Calendar";
|
|
2
|
+
export interface Routine {
|
|
3
|
+
routineId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
preferenceId: string;
|
|
6
|
+
routineActivities: RoutineActivity[];
|
|
7
|
+
}
|
|
8
|
+
export interface RoutineActivity {
|
|
9
|
+
routineActivityId: string;
|
|
10
|
+
name: string;
|
|
11
|
+
startTime: string;
|
|
12
|
+
endTime: string;
|
|
13
|
+
durationMin: number;
|
|
14
|
+
category?: EventCategorySet;
|
|
15
|
+
recurring: RoutineActivityRecurring;
|
|
16
|
+
}
|
|
17
|
+
export interface RoutineActivityRecurring {
|
|
18
|
+
[day: string]: {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
};
|
|
21
|
+
}
|
package/dist/models/User.d.ts
CHANGED
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
package/dist/types.d.ts
CHANGED
package/lib/constants.ts
CHANGED
|
@@ -30,6 +30,8 @@ export const DB_COLLECTION = {
|
|
|
30
30
|
DEVICE_GROUP: "deviceGroup",
|
|
31
31
|
DEVICES: "devices",
|
|
32
32
|
DISCOUNT: "discount",
|
|
33
|
+
ROUTINE: "routine",
|
|
34
|
+
ROUTINE_ACTIVITIES: "routineActivities",
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
export const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventCategorySet } from "./Calendar";
|
|
2
|
+
|
|
3
|
+
export interface Routine {
|
|
4
|
+
routineId: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
preferenceId: string;
|
|
7
|
+
routineActivities: RoutineActivity[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface RoutineActivity {
|
|
11
|
+
routineActivityId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
startTime: string;
|
|
14
|
+
endTime: string;
|
|
15
|
+
durationMin: number;
|
|
16
|
+
category?: EventCategorySet;
|
|
17
|
+
recurring: RoutineActivityRecurring;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface RoutineActivityRecurring {
|
|
21
|
+
[day: string]: { enabled: boolean };
|
|
22
|
+
}
|
package/lib/models/User.ts
CHANGED
package/lib/models/index.ts
CHANGED
package/lib/types.ts
CHANGED