touchstudy-core 0.1.175 → 0.1.177

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.
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../utils/types/subjects";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ activeTimerId?: number;
6
+ onChangeTime: (data: SubjectTimerResponse, time?: number) => void;
7
+ }
8
+ declare const TimerCountItem: FC<Props>;
9
+ export default TimerCountItem;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { SubjectTimerResponse } from "../utils/types/subjects";
3
+ interface Props {
4
+ data: SubjectTimerResponse;
5
+ seconds?: number;
6
+ loading: boolean;
7
+ activeTimerId?: number;
8
+ onStartOrPauseTimer: (data: SubjectTimerResponse) => void;
9
+ }
10
+ declare const TimerItem: FC<Props>;
11
+ export default TimerItem;
@@ -0,0 +1,5 @@
1
+ export declare enum SubjectTimerStatus {
2
+ NotStarted = 0,
3
+ Started = 1,
4
+ Paused = 2
5
+ }
@@ -0,0 +1,17 @@
1
+ import { SubjectTimerStatus } from "../enums/subject";
2
+ export declare type SubjectTimerResponse = {
3
+ id: number;
4
+ recordId: number;
5
+ name: string;
6
+ startTime: string;
7
+ lastResumeTime: string;
8
+ lastPauseTime: string;
9
+ duration: number;
10
+ status: SubjectTimerStatus;
11
+ };
12
+ export declare type ResumeOrPauseRequest = {
13
+ status: SubjectTimerStatus;
14
+ pauseTime?: number;
15
+ startTime?: number;
16
+ duration?: number;
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.175",
3
+ "version": "0.1.177",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",