@brighterly/lib-core-types 0.0.1
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/README.md +46 -0
- package/dist/activation/enums.d.ts +51 -0
- package/dist/activation/enums.js +49 -0
- package/dist/activation/interfaces.d.ts +34 -0
- package/dist/activation/interfaces.js +1 -0
- package/dist/activation/types.d.ts +1 -0
- package/dist/activation/types.js +1 -0
- package/dist/ai-summarize/enums.d.ts +1 -0
- package/dist/ai-summarize/enums.js +1 -0
- package/dist/ai-summarize/interfaces.d.ts +23 -0
- package/dist/ai-summarize/interfaces.js +1 -0
- package/dist/ai-summarize/types.d.ts +1 -0
- package/dist/ai-summarize/types.js +1 -0
- package/dist/assessment/enums.d.ts +1 -0
- package/dist/assessment/enums.js +1 -0
- package/dist/assessment/interfaces.d.ts +18 -0
- package/dist/assessment/interfaces.js +1 -0
- package/dist/assessment/types.d.ts +1 -0
- package/dist/assessment/types.js +1 -0
- package/dist/booking/enums.d.ts +118 -0
- package/dist/booking/enums.js +128 -0
- package/dist/booking/interfaces.d.ts +53 -0
- package/dist/booking/interfaces.js +1 -0
- package/dist/booking/types.d.ts +1 -0
- package/dist/booking/types.js +1 -0
- package/dist/customer/enums.d.ts +8 -0
- package/dist/customer/enums.js +9 -0
- package/dist/customer/interfaces.d.ts +56 -0
- package/dist/customer/interfaces.js +1 -0
- package/dist/customer/types.d.ts +1 -0
- package/dist/customer/types.js +1 -0
- package/dist/date/enums.d.ts +15 -0
- package/dist/date/enums.js +16 -0
- package/dist/date/interfaces.d.ts +1 -0
- package/dist/date/interfaces.js +1 -0
- package/dist/date/types.d.ts +1 -0
- package/dist/date/types.js +1 -0
- package/dist/demo/devices-guide/enums.d.ts +7 -0
- package/dist/demo/devices-guide/enums.js +8 -0
- package/dist/demo/devices-guide/interfaces.d.ts +8 -0
- package/dist/demo/devices-guide/interfaces.js +1 -0
- package/dist/demo/devices-guide/types.d.ts +1 -0
- package/dist/demo/devices-guide/types.js +1 -0
- package/dist/demo/enums.d.ts +1 -0
- package/dist/demo/enums.js +1 -0
- package/dist/demo/interfaces.d.ts +8 -0
- package/dist/demo/interfaces.js +1 -0
- package/dist/demo/types.d.ts +1 -0
- package/dist/demo/types.js +1 -0
- package/dist/discipline/enums.d.ts +38 -0
- package/dist/discipline/enums.js +41 -0
- package/dist/discipline/interfaces.d.ts +56 -0
- package/dist/discipline/interfaces.js +2 -0
- package/dist/discipline/types.d.ts +1 -0
- package/dist/discipline/types.js +1 -0
- package/dist/experiments/enum.d.ts +4 -0
- package/dist/experiments/enum.js +5 -0
- package/dist/experiments/interface.d.ts +6 -0
- package/dist/experiments/interface.js +2 -0
- package/dist/experiments/types.d.ts +1 -0
- package/dist/experiments/types.js +1 -0
- package/dist/feedback/interfaces.d.ts +72 -0
- package/dist/feedback/interfaces.js +1 -0
- package/dist/files/enums.d.ts +24 -0
- package/dist/files/enums.js +28 -0
- package/dist/files/interfaces.d.ts +67 -0
- package/dist/files/interfaces.js +1 -0
- package/dist/files/types.d.ts +8 -0
- package/dist/files/types.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/kanban/enums.d.ts +8 -0
- package/dist/kanban/enums.js +10 -0
- package/dist/kanban/interfaces.d.ts +1 -0
- package/dist/kanban/interfaces.js +1 -0
- package/dist/kanban/types.d.ts +1 -0
- package/dist/kanban/types.js +1 -0
- package/dist/kid/enums.d.ts +18 -0
- package/dist/kid/enums.js +20 -0
- package/dist/kid/interfaces.d.ts +8 -0
- package/dist/kid/interfaces.js +1 -0
- package/dist/kid/types.d.ts +1 -0
- package/dist/kid/types.js +1 -0
- package/dist/landing/interfaces.d.ts +91 -0
- package/dist/landing/interfaces.js +1 -0
- package/dist/landing/types.d.ts +1 -0
- package/dist/landing/types.js +1 -0
- package/dist/lists/activation/enums.d.ts +27 -0
- package/dist/lists/activation/enums.js +31 -0
- package/dist/lists/activation/interfaces.d.ts +18 -0
- package/dist/lists/activation/interfaces.js +3 -0
- package/dist/lists/activation/types.d.ts +1 -0
- package/dist/lists/activation/types.js +1 -0
- package/dist/lists/booking/enums.d.ts +105 -0
- package/dist/lists/booking/enums.js +111 -0
- package/dist/lists/booking/interfaces.d.ts +22 -0
- package/dist/lists/booking/interfaces.js +1 -0
- package/dist/lists/booking/types.d.ts +1 -0
- package/dist/lists/booking/types.js +1 -0
- package/dist/lists/discipline/enums.d.ts +1 -0
- package/dist/lists/discipline/enums.js +1 -0
- package/dist/lists/discipline/interfaces.d.ts +11 -0
- package/dist/lists/discipline/interfaces.js +1 -0
- package/dist/lists/discipline/types.d.ts +1 -0
- package/dist/lists/discipline/types.js +1 -0
- package/dist/lists/enums.d.ts +1 -0
- package/dist/lists/enums.js +1 -0
- package/dist/lists/files/enum.d.ts +1 -0
- package/dist/lists/files/enum.js +1 -0
- package/dist/lists/files/interfaces.d.ts +4 -0
- package/dist/lists/files/interfaces.js +1 -0
- package/dist/lists/files/types.d.ts +1 -0
- package/dist/lists/files/types.js +1 -0
- package/dist/lists/interfaces.d.ts +14 -0
- package/dist/lists/interfaces.js +1 -0
- package/dist/lists/order/enums.d.ts +1 -0
- package/dist/lists/order/enums.js +1 -0
- package/dist/lists/order/interfaces.d.ts +4 -0
- package/dist/lists/order/interfaces.js +1 -0
- package/dist/lists/order/types.d.ts +1 -0
- package/dist/lists/order/types.js +1 -0
- package/dist/lists/subscriptions/enums.d.ts +105 -0
- package/dist/lists/subscriptions/enums.js +111 -0
- package/dist/lists/subscriptions/interfaces.d.ts +13 -0
- package/dist/lists/subscriptions/interfaces.js +1 -0
- package/dist/lists/subscriptions/types.d.ts +1 -0
- package/dist/lists/subscriptions/types.js +1 -0
- package/dist/lists/types.d.ts +1 -0
- package/dist/lists/types.js +1 -0
- package/dist/login/enums.d.ts +8 -0
- package/dist/login/enums.js +10 -0
- package/dist/login/interfaces.d.ts +91 -0
- package/dist/login/interfaces.js +1 -0
- package/dist/login/types.d.ts +1 -0
- package/dist/login/types.js +1 -0
- package/dist/options/enums.d.ts +31 -0
- package/dist/options/enums.js +35 -0
- package/dist/options/interfaces.d.ts +115 -0
- package/dist/options/interfaces.js +1 -0
- package/dist/options/types.d.ts +11 -0
- package/dist/options/types.js +1 -0
- package/dist/orders/enums.d.ts +116 -0
- package/dist/orders/enums.js +124 -0
- package/dist/orders/interfaces.d.ts +65 -0
- package/dist/orders/interfaces.js +1 -0
- package/dist/orders/types.d.ts +1 -0
- package/dist/orders/types.js +1 -0
- package/dist/payments/enums.d.ts +11 -0
- package/dist/payments/enums.js +13 -0
- package/dist/payments/interfaces.d.ts +23 -0
- package/dist/payments/interfaces.js +1 -0
- package/dist/payments/types.d.ts +1 -0
- package/dist/payments/types.js +1 -0
- package/dist/plans/enums.d.ts +20 -0
- package/dist/plans/enums.js +23 -0
- package/dist/plans/interfaces.d.ts +89 -0
- package/dist/plans/interfaces.js +1 -0
- package/dist/plans/types.d.ts +1 -0
- package/dist/plans/types.js +1 -0
- package/dist/policies/enums.d.ts +1 -0
- package/dist/policies/enums.js +1 -0
- package/dist/policies/interfaces.d.ts +6 -0
- package/dist/policies/interfaces.js +1 -0
- package/dist/policies/types.d.ts +1 -0
- package/dist/policies/types.js +1 -0
- package/dist/progress-report/enums.d.ts +1 -0
- package/dist/progress-report/enums.js +1 -0
- package/dist/progress-report/interfaces.d.ts +39 -0
- package/dist/progress-report/interfaces.js +1 -0
- package/dist/progress-report/types.d.ts +1 -0
- package/dist/progress-report/types.js +1 -0
- package/dist/promo-widget/enums.d.ts +3 -0
- package/dist/promo-widget/enums.js +4 -0
- package/dist/promo-widget/interfaces.d.ts +1 -0
- package/dist/promo-widget/interfaces.js +1 -0
- package/dist/promo-widget/types.d.ts +1 -0
- package/dist/promo-widget/types.js +1 -0
- package/dist/rebook/enums.d.ts +1 -0
- package/dist/rebook/enums.js +1 -0
- package/dist/rebook/interfaces.d.ts +5 -0
- package/dist/rebook/interfaces.js +1 -0
- package/dist/rebook/types.d.ts +1 -0
- package/dist/rebook/types.js +1 -0
- package/dist/reschedule/enums.d.ts +1 -0
- package/dist/reschedule/enums.js +1 -0
- package/dist/reschedule/interfaces.d.ts +20 -0
- package/dist/reschedule/interfaces.js +1 -0
- package/dist/reschedule/types.d.ts +1 -0
- package/dist/reschedule/types.js +1 -0
- package/dist/solid/enums.d.ts +1 -0
- package/dist/solid/enums.js +1 -0
- package/dist/solid/interfaces.d.ts +5 -0
- package/dist/solid/interfaces.js +1 -0
- package/dist/solid/types.d.ts +1 -0
- package/dist/solid/types.js +1 -0
- package/dist/subscription/enums.d.ts +72 -0
- package/dist/subscription/enums.js +83 -0
- package/dist/subscription/interfaces.d.ts +66 -0
- package/dist/subscription/interfaces.js +2 -0
- package/dist/support/enums.d.ts +7 -0
- package/dist/support/enums.js +9 -0
- package/dist/support/interfaces.d.ts +40 -0
- package/dist/support/interfaces.js +1 -0
- package/dist/support/types.d.ts +1 -0
- package/dist/support/types.js +1 -0
- package/dist/survey/enums.d.ts +21 -0
- package/dist/survey/enums.js +25 -0
- package/dist/survey/interfaces.d.ts +17 -0
- package/dist/survey/interfaces.js +1 -0
- package/dist/survey/types.d.ts +4 -0
- package/dist/survey/types.js +1 -0
- package/dist/tools/amplitude/enums.d.ts +6 -0
- package/dist/tools/amplitude/enums.js +7 -0
- package/dist/tools/amplitude/interfaces.d.ts +10 -0
- package/dist/tools/amplitude/interfaces.js +1 -0
- package/dist/tools/amplitude/types.d.ts +1 -0
- package/dist/tools/amplitude/types.js +1 -0
- package/dist/tools/meta-pixel/enums.d.ts +1 -0
- package/dist/tools/meta-pixel/enums.js +1 -0
- package/dist/tools/meta-pixel/interfaces.d.ts +10 -0
- package/dist/tools/meta-pixel/interfaces.js +1 -0
- package/dist/tools/meta-pixel/types.d.ts +4 -0
- package/dist/tools/meta-pixel/types.js +1 -0
- package/dist/tutor/enums.d.ts +20 -0
- package/dist/tutor/enums.js +24 -0
- package/dist/tutor/interfaces.d.ts +126 -0
- package/dist/tutor/interfaces.js +2 -0
- package/dist/tutor/types.d.ts +2 -0
- package/dist/tutor/types.js +1 -0
- package/dist/ui/inputs/enums.d.ts +1 -0
- package/dist/ui/inputs/enums.js +1 -0
- package/dist/ui/inputs/interfaces.d.ts +21 -0
- package/dist/ui/inputs/interfaces.js +1 -0
- package/dist/ui/inputs/types.d.ts +1 -0
- package/dist/ui/inputs/types.js +1 -0
- package/dist/ui/notifications/enums.d.ts +1 -0
- package/dist/ui/notifications/enums.js +1 -0
- package/dist/ui/notifications/interfaces.d.ts +13 -0
- package/dist/ui/notifications/interfaces.js +1 -0
- package/dist/ui/notifications/types.d.ts +3 -0
- package/dist/ui/notifications/types.js +1 -0
- package/dist/ui/selects/enums.d.ts +1 -0
- package/dist/ui/selects/enums.js +1 -0
- package/dist/ui/selects/interfaces.d.ts +28 -0
- package/dist/ui/selects/interfaces.js +1 -0
- package/dist/ui/selects/types.d.ts +1 -0
- package/dist/ui/selects/types.js +1 -0
- package/dist/ui/slider/enums.d.ts +1 -0
- package/dist/ui/slider/enums.js +1 -0
- package/dist/ui/slider/interfaces.d.ts +29 -0
- package/dist/ui/slider/interfaces.js +1 -0
- package/dist/ui/slider/types.d.ts +1 -0
- package/dist/ui/slider/types.js +1 -0
- package/dist/ui/switchers/enums.d.ts +1 -0
- package/dist/ui/switchers/enums.js +1 -0
- package/dist/ui/switchers/interfaces.d.ts +7 -0
- package/dist/ui/switchers/interfaces.js +1 -0
- package/dist/ui/switchers/types.d.ts +1 -0
- package/dist/ui/switchers/types.js +1 -0
- package/dist/ws/enums.d.ts +11 -0
- package/dist/ws/enums.js +12 -0
- package/dist/ws/interfaces.d.ts +5 -0
- package/dist/ws/interfaces.js +1 -0
- package/dist/ws/types.d.ts +1 -0
- package/dist/ws/types.js +1 -0
- package/package.json +489 -0
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @brighterly/lib-core-types
|
|
2
|
+
|
|
3
|
+
## Publishing New Versions
|
|
4
|
+
|
|
5
|
+
This project uses GitHub Actions for automatic deployment to NPM. To release a new version, follow these steps:
|
|
6
|
+
|
|
7
|
+
1. **Bump the version**
|
|
8
|
+
Use one of the following commands to update `package.json` and create a git tag:
|
|
9
|
+
```bash
|
|
10
|
+
pnpm version patch # 1.0.0 -> 1.0.1 (bug fixes)
|
|
11
|
+
pnpm version minor # 1.0.0 -> 1.1.0 (new features)
|
|
12
|
+
pnpm version major # 1.0.0 -> 2.0.0 (breaking changes)
|
|
13
|
+
```
|
|
14
|
+
2. Push repo to github:
|
|
15
|
+
```bash
|
|
16
|
+
git push
|
|
17
|
+
```
|
|
18
|
+
3. NPM release will be created automatically
|
|
19
|
+
|
|
20
|
+
## Pre-Commit Hook
|
|
21
|
+
|
|
22
|
+
run:
|
|
23
|
+
```shell
|
|
24
|
+
chmod +x _tools/git/pre-push
|
|
25
|
+
ln -s ../../_tools/git/pre-push .git/hooks/pre-push
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Dependencies
|
|
29
|
+
|
|
30
|
+
Create .env:
|
|
31
|
+
```bash
|
|
32
|
+
cp .env.example .env
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Edit .env and add NPM_FORTAWESOME_ACCESS
|
|
36
|
+
|
|
37
|
+
Install deps:
|
|
38
|
+
```bash
|
|
39
|
+
make install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## First time
|
|
43
|
+
|
|
44
|
+
```shell
|
|
45
|
+
pnpm publish --no-git-checks --access public --registry=https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
46
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ShortDaysOfWeek } from '../options/enums';
|
|
2
|
+
export declare enum MessageSender {
|
|
3
|
+
SMS = "SMS",
|
|
4
|
+
Email = "EMAIL",
|
|
5
|
+
Whatsapp = "WA",
|
|
6
|
+
Phone = "CALL"
|
|
7
|
+
}
|
|
8
|
+
export declare enum MessageNotification {
|
|
9
|
+
Email = "EMAIL",
|
|
10
|
+
Whatsapp = "WA",
|
|
11
|
+
Phone = "CALL",
|
|
12
|
+
Messenger = "MESSENGER"
|
|
13
|
+
}
|
|
14
|
+
export declare enum MessageReminder {
|
|
15
|
+
Email = "EMAIL",
|
|
16
|
+
Whatsapp = "WA",
|
|
17
|
+
Phone = "CALL",
|
|
18
|
+
Messenger = "MESSENGER",
|
|
19
|
+
Sms = "SMS"
|
|
20
|
+
}
|
|
21
|
+
export interface TimeRange {
|
|
22
|
+
from: string;
|
|
23
|
+
to: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DayRange extends TimeRange {
|
|
26
|
+
day: ShortDaysOfWeek;
|
|
27
|
+
}
|
|
28
|
+
export declare enum StartDateType {
|
|
29
|
+
Soon = "SOON",
|
|
30
|
+
Calendar = "CALENDAR"
|
|
31
|
+
}
|
|
32
|
+
export declare enum Expectations {
|
|
33
|
+
AdvancedMathImprovement = "ADVANCED_MATH_IMPROVEMENT",
|
|
34
|
+
BuildMathConfidence = "BUILD_MATH_CONFIDENCE",
|
|
35
|
+
GeneralMathImprovement = "GENERAL_MATH_IMPROVEMENT",
|
|
36
|
+
HomeworkHelp = "HOMEWORK_HELP",
|
|
37
|
+
NextGradePreparation = "NEXT_GRADE_PREPARATION",
|
|
38
|
+
NoClearExpectations = "NO_CLEAR_EXPECTATIONS",
|
|
39
|
+
PracticeMath = "PRACTICE_MATH",
|
|
40
|
+
TestReadinessInMath = "TEST_READINESS_IN_MATH",
|
|
41
|
+
AdvancedImprovement = "ADVANCED_IMPROVEMENT",
|
|
42
|
+
BuildConfidence = "BUILD_CONFIDENCE",
|
|
43
|
+
GeneralImprovement = "GENERAL_IMPROVEMENT",
|
|
44
|
+
PreparationForTheNextGrade = "PREPARATION_FOR_THE_NEXT_GRADE"
|
|
45
|
+
}
|
|
46
|
+
export declare enum Step {
|
|
47
|
+
Schedule = "Schedule",
|
|
48
|
+
StartDate = "StartDate",
|
|
49
|
+
Personalization = "Personalization",
|
|
50
|
+
Summary = "Summary"
|
|
51
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export var MessageSender;
|
|
2
|
+
(function (MessageSender) {
|
|
3
|
+
MessageSender["SMS"] = "SMS";
|
|
4
|
+
MessageSender["Email"] = "EMAIL";
|
|
5
|
+
MessageSender["Whatsapp"] = "WA";
|
|
6
|
+
MessageSender["Phone"] = "CALL";
|
|
7
|
+
})(MessageSender || (MessageSender = {}));
|
|
8
|
+
export var MessageNotification;
|
|
9
|
+
(function (MessageNotification) {
|
|
10
|
+
MessageNotification["Email"] = "EMAIL";
|
|
11
|
+
MessageNotification["Whatsapp"] = "WA";
|
|
12
|
+
MessageNotification["Phone"] = "CALL";
|
|
13
|
+
MessageNotification["Messenger"] = "MESSENGER";
|
|
14
|
+
})(MessageNotification || (MessageNotification = {}));
|
|
15
|
+
export var MessageReminder;
|
|
16
|
+
(function (MessageReminder) {
|
|
17
|
+
MessageReminder["Email"] = "EMAIL";
|
|
18
|
+
MessageReminder["Whatsapp"] = "WA";
|
|
19
|
+
MessageReminder["Phone"] = "CALL";
|
|
20
|
+
MessageReminder["Messenger"] = "MESSENGER";
|
|
21
|
+
MessageReminder["Sms"] = "SMS";
|
|
22
|
+
})(MessageReminder || (MessageReminder = {}));
|
|
23
|
+
export var StartDateType;
|
|
24
|
+
(function (StartDateType) {
|
|
25
|
+
StartDateType["Soon"] = "SOON";
|
|
26
|
+
StartDateType["Calendar"] = "CALENDAR";
|
|
27
|
+
})(StartDateType || (StartDateType = {}));
|
|
28
|
+
export var Expectations;
|
|
29
|
+
(function (Expectations) {
|
|
30
|
+
Expectations["AdvancedMathImprovement"] = "ADVANCED_MATH_IMPROVEMENT";
|
|
31
|
+
Expectations["BuildMathConfidence"] = "BUILD_MATH_CONFIDENCE";
|
|
32
|
+
Expectations["GeneralMathImprovement"] = "GENERAL_MATH_IMPROVEMENT";
|
|
33
|
+
Expectations["HomeworkHelp"] = "HOMEWORK_HELP";
|
|
34
|
+
Expectations["NextGradePreparation"] = "NEXT_GRADE_PREPARATION";
|
|
35
|
+
Expectations["NoClearExpectations"] = "NO_CLEAR_EXPECTATIONS";
|
|
36
|
+
Expectations["PracticeMath"] = "PRACTICE_MATH";
|
|
37
|
+
Expectations["TestReadinessInMath"] = "TEST_READINESS_IN_MATH";
|
|
38
|
+
Expectations["AdvancedImprovement"] = "ADVANCED_IMPROVEMENT";
|
|
39
|
+
Expectations["BuildConfidence"] = "BUILD_CONFIDENCE";
|
|
40
|
+
Expectations["GeneralImprovement"] = "GENERAL_IMPROVEMENT";
|
|
41
|
+
Expectations["PreparationForTheNextGrade"] = "PREPARATION_FOR_THE_NEXT_GRADE";
|
|
42
|
+
})(Expectations || (Expectations = {}));
|
|
43
|
+
export var Step;
|
|
44
|
+
(function (Step) {
|
|
45
|
+
Step["Schedule"] = "Schedule";
|
|
46
|
+
Step["StartDate"] = "StartDate";
|
|
47
|
+
Step["Personalization"] = "Personalization";
|
|
48
|
+
Step["Summary"] = "Summary";
|
|
49
|
+
})(Step || (Step = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Stage } from '../discipline/enums';
|
|
2
|
+
import type { DayRange, Expectations, MessageReminder, StartDateType } from './enums';
|
|
3
|
+
export interface Activation {
|
|
4
|
+
time_slots: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface ActivationData {
|
|
7
|
+
schedule: DayRange[];
|
|
8
|
+
start_date: string | null;
|
|
9
|
+
start_date_type: StartDateType;
|
|
10
|
+
details: {
|
|
11
|
+
expectations: Expectations[];
|
|
12
|
+
preferences: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface ActivationRequestData {
|
|
16
|
+
discipline: {
|
|
17
|
+
activation_data: {
|
|
18
|
+
schedule: any;
|
|
19
|
+
start_date: string;
|
|
20
|
+
start_date_type: StartDateType | null;
|
|
21
|
+
details: {
|
|
22
|
+
expectations: Expectations[];
|
|
23
|
+
preferences: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
stage: Stage;
|
|
27
|
+
};
|
|
28
|
+
customer?: {
|
|
29
|
+
contact_data: {
|
|
30
|
+
notification_channels: MessageReminder[];
|
|
31
|
+
};
|
|
32
|
+
screen_recording: boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface SummarizeTopic {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SummarizeResponse {
|
|
6
|
+
ai_summary: SummarizeData;
|
|
7
|
+
}
|
|
8
|
+
export interface SummarizeData {
|
|
9
|
+
duration: number | null;
|
|
10
|
+
highlights: SummarizeTopic[];
|
|
11
|
+
home_activities: SummarizeTopic[];
|
|
12
|
+
home_tasks: SummarizeTopic[];
|
|
13
|
+
lesson_date: string | null;
|
|
14
|
+
recording_url: string | null;
|
|
15
|
+
speaking_time: number | null;
|
|
16
|
+
summary: string | null;
|
|
17
|
+
topic: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface BookingAiSummarize {
|
|
20
|
+
booking_id: number;
|
|
21
|
+
start: string;
|
|
22
|
+
topic: string | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Discipline } from '../discipline/enums';
|
|
2
|
+
export interface Assessment {
|
|
3
|
+
id: number;
|
|
4
|
+
discipline_id: number;
|
|
5
|
+
discipline: Discipline;
|
|
6
|
+
score: number;
|
|
7
|
+
created_at: string;
|
|
8
|
+
updated_at: string;
|
|
9
|
+
show_url?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AssessmentStart {
|
|
12
|
+
autologin_url: string;
|
|
13
|
+
share_url: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AssessmentLinks {
|
|
16
|
+
math: string | null;
|
|
17
|
+
ela: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export declare enum Type {
|
|
2
|
+
Demo = "DEMO",
|
|
3
|
+
Paid = "PAID",
|
|
4
|
+
PaidDemo = "PAID_DEMO"
|
|
5
|
+
}
|
|
6
|
+
export declare enum LessonType {
|
|
7
|
+
Nearpod = "Nearpod",
|
|
8
|
+
NotNearpod = "Not Nearpod"
|
|
9
|
+
}
|
|
10
|
+
export declare enum Status {
|
|
11
|
+
Draft = "DRAFT",
|
|
12
|
+
Planned = "PLANNED",
|
|
13
|
+
Confirmed = "CONFIRMED",
|
|
14
|
+
InProgress = "IN_PROGRESS",
|
|
15
|
+
Completed = "COMPLETED",
|
|
16
|
+
NoShow = "NO_SHOW",
|
|
17
|
+
Canceled = "CANCELED",
|
|
18
|
+
CanceledBad = "CANCELED_BAD",
|
|
19
|
+
Rescheduled = "RESCHEDULED",
|
|
20
|
+
RescheduledBad = "RESCHEDULED_BAD",
|
|
21
|
+
PendingRescheduled = "PENDING_RESCHEDULE",
|
|
22
|
+
ReservedPlanned = "RESERVED_PLANNED",
|
|
23
|
+
ReservedConfirmed = "RESERVED_CONFIRMED"
|
|
24
|
+
}
|
|
25
|
+
export declare enum BookingStatusPure {
|
|
26
|
+
Planned = "PLANNED",
|
|
27
|
+
Confirmed = "CONFIRMED",
|
|
28
|
+
InProgress = "IN_PROGRESS",
|
|
29
|
+
Completed = "COMPLETED",
|
|
30
|
+
NoShow = "NO_SHOW",
|
|
31
|
+
Canceled = "CANCELED",
|
|
32
|
+
CanceledBad = "CANCELED_BAD",
|
|
33
|
+
Rescheduled = "RESCHEDULED",
|
|
34
|
+
RescheduledBad = "RESCHEDULED_BAD"
|
|
35
|
+
}
|
|
36
|
+
export declare enum BookingStatusSimple {
|
|
37
|
+
Canceled = "CANCELED",
|
|
38
|
+
CanceledBad = "CANCELED_BAD",
|
|
39
|
+
Completed = "COMPLETED",
|
|
40
|
+
Confirmed = "CONFIRMED",
|
|
41
|
+
InProgress = "IN_PROGRESS",
|
|
42
|
+
NoShow = "NO_SHOW",
|
|
43
|
+
PendingRescheduled = "PENDING_RESCHEDULE",
|
|
44
|
+
Planned = "PLANNED",
|
|
45
|
+
Rescheduled = "RESCHEDULED",
|
|
46
|
+
RescheduledBad = "RESCHEDULED_BAD",
|
|
47
|
+
Reserved = "RESERVED"
|
|
48
|
+
}
|
|
49
|
+
export declare enum ActivityStatus {
|
|
50
|
+
Never = "NEVER",
|
|
51
|
+
Offline = "OFFLINE",
|
|
52
|
+
Online = "ONLINE",
|
|
53
|
+
Start = "START",
|
|
54
|
+
Waiting = "WAITING",
|
|
55
|
+
PreRoom = "PRE_ROOM",
|
|
56
|
+
Web = "WEB"
|
|
57
|
+
}
|
|
58
|
+
export declare enum Reason {
|
|
59
|
+
TutorCancel = "TUTOR_CANCEL",
|
|
60
|
+
OnHold = "ON_HOLD",
|
|
61
|
+
Refund = "REFUND",
|
|
62
|
+
NoShow = "NO_SHOW",
|
|
63
|
+
RescheduleBad = "RESCHEDULE_BAD",
|
|
64
|
+
CsReschedule = "CS_RESCHEDULE",
|
|
65
|
+
CsCancel = "CS_CANCEL",
|
|
66
|
+
SickLeaveSickness = "SICK_LEAVE_SICKNESS",
|
|
67
|
+
Emergency = "EMERGENCY",
|
|
68
|
+
FamilyCircumstances = "FAMILY_CIRCUMSTANCES",
|
|
69
|
+
ConnectivityTechIssues = "CONNECTIVITY_TECH_ISSUES",
|
|
70
|
+
Holiday = "HOLIDAY",
|
|
71
|
+
BreakFromStudies = "BREAK_FROM_STUDIES",
|
|
72
|
+
NaturalElements = "NATURAL_ELEMENTS",
|
|
73
|
+
ConflictWithAnotherActivity = "CONFLICT_WITH_ANOTHER_ACTIVITY",
|
|
74
|
+
Other = "OTHER",
|
|
75
|
+
MismatchWithKidsGrade = "MISMATCH_WITH_KIDS_GRADE",
|
|
76
|
+
ForgotAboutTheLesson = "FORGOT_ABOUT_THE_LESSON",
|
|
77
|
+
TheDisciplineIsNotAround = "THE_CHILD_IS_NOT_AROUND",
|
|
78
|
+
LeftMidLesson = "LEFT_MID_LESSON",
|
|
79
|
+
DidntLikeTheLesson = "DIDNT_LIKE_THE_LESSON",
|
|
80
|
+
RescheduledOnLesson = "RESCHEDULED_ON_LESSON",
|
|
81
|
+
FamilyEmergency = "FAMILY_EMERGENCY",
|
|
82
|
+
PlannedTimeOff = "PLANNED_TIME_OFF",
|
|
83
|
+
Medical = "MEDICAL",
|
|
84
|
+
PowerOutage = "POWER_OUTAGE",
|
|
85
|
+
NoReason = "NO_REASON",
|
|
86
|
+
Typhoon = "TYPHOON",
|
|
87
|
+
InternetIssues = "INTERNET_ISSUES",
|
|
88
|
+
PoorTimeManagement = "POOR_TIME_MANAGEMENT",
|
|
89
|
+
DeviceIssues = "DEVICE_ISSUES",
|
|
90
|
+
Irrelevant = "IRRELEVANT",
|
|
91
|
+
AwaitingProcessing = "AWAITING_PROCESSING",
|
|
92
|
+
AdminFault = "ADMIN_FAULT",
|
|
93
|
+
NoTutor = "NO_TUTOR",
|
|
94
|
+
NoPcLaptop = "NO_PC_LAPTOP",
|
|
95
|
+
TechIssues = "TECH_ISSUES",
|
|
96
|
+
TestLesson = "TEST_LESSON",
|
|
97
|
+
X2ShowUp = "X2_SHOW_UP"
|
|
98
|
+
}
|
|
99
|
+
export declare enum ReasonCategory {
|
|
100
|
+
All = "ALL",
|
|
101
|
+
Tutor = "TUTOR",
|
|
102
|
+
Customer = "CUSTOMER",
|
|
103
|
+
Admin = "ADMIN",
|
|
104
|
+
Refund = "REFUND",
|
|
105
|
+
System = "SYSTEM"
|
|
106
|
+
}
|
|
107
|
+
export declare enum PureReasonCategory {
|
|
108
|
+
Tutor = "TUTOR",
|
|
109
|
+
Customer = "CUSTOMER"
|
|
110
|
+
}
|
|
111
|
+
export declare enum TutorAction {
|
|
112
|
+
CanceledBad = "canceled-bad",
|
|
113
|
+
NoShow = "no-show",
|
|
114
|
+
LessonFinished = "lesson-finished",
|
|
115
|
+
ShowOffers = "show-offers",
|
|
116
|
+
NearpodShare = "nearpod-share",
|
|
117
|
+
WaitingRoom = "waiting-room"
|
|
118
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export var Type;
|
|
2
|
+
(function (Type) {
|
|
3
|
+
Type["Demo"] = "DEMO";
|
|
4
|
+
Type["Paid"] = "PAID";
|
|
5
|
+
Type["PaidDemo"] = "PAID_DEMO";
|
|
6
|
+
})(Type || (Type = {}));
|
|
7
|
+
export var LessonType;
|
|
8
|
+
(function (LessonType) {
|
|
9
|
+
LessonType["Nearpod"] = "Nearpod";
|
|
10
|
+
LessonType["NotNearpod"] = "Not Nearpod";
|
|
11
|
+
})(LessonType || (LessonType = {}));
|
|
12
|
+
export var Status;
|
|
13
|
+
(function (Status) {
|
|
14
|
+
Status["Draft"] = "DRAFT";
|
|
15
|
+
Status["Planned"] = "PLANNED";
|
|
16
|
+
Status["Confirmed"] = "CONFIRMED";
|
|
17
|
+
Status["InProgress"] = "IN_PROGRESS";
|
|
18
|
+
Status["Completed"] = "COMPLETED";
|
|
19
|
+
Status["NoShow"] = "NO_SHOW";
|
|
20
|
+
Status["Canceled"] = "CANCELED";
|
|
21
|
+
Status["CanceledBad"] = "CANCELED_BAD";
|
|
22
|
+
Status["Rescheduled"] = "RESCHEDULED";
|
|
23
|
+
Status["RescheduledBad"] = "RESCHEDULED_BAD";
|
|
24
|
+
Status["PendingRescheduled"] = "PENDING_RESCHEDULE";
|
|
25
|
+
Status["ReservedPlanned"] = "RESERVED_PLANNED";
|
|
26
|
+
Status["ReservedConfirmed"] = "RESERVED_CONFIRMED";
|
|
27
|
+
})(Status || (Status = {}));
|
|
28
|
+
export var BookingStatusPure;
|
|
29
|
+
(function (BookingStatusPure) {
|
|
30
|
+
BookingStatusPure["Planned"] = "PLANNED";
|
|
31
|
+
BookingStatusPure["Confirmed"] = "CONFIRMED";
|
|
32
|
+
BookingStatusPure["InProgress"] = "IN_PROGRESS";
|
|
33
|
+
BookingStatusPure["Completed"] = "COMPLETED";
|
|
34
|
+
BookingStatusPure["NoShow"] = "NO_SHOW";
|
|
35
|
+
BookingStatusPure["Canceled"] = "CANCELED";
|
|
36
|
+
BookingStatusPure["CanceledBad"] = "CANCELED_BAD";
|
|
37
|
+
BookingStatusPure["Rescheduled"] = "RESCHEDULED";
|
|
38
|
+
BookingStatusPure["RescheduledBad"] = "RESCHEDULED_BAD";
|
|
39
|
+
})(BookingStatusPure || (BookingStatusPure = {}));
|
|
40
|
+
export var BookingStatusSimple;
|
|
41
|
+
(function (BookingStatusSimple) {
|
|
42
|
+
BookingStatusSimple["Canceled"] = "CANCELED";
|
|
43
|
+
BookingStatusSimple["CanceledBad"] = "CANCELED_BAD";
|
|
44
|
+
BookingStatusSimple["Completed"] = "COMPLETED";
|
|
45
|
+
BookingStatusSimple["Confirmed"] = "CONFIRMED";
|
|
46
|
+
BookingStatusSimple["InProgress"] = "IN_PROGRESS";
|
|
47
|
+
BookingStatusSimple["NoShow"] = "NO_SHOW";
|
|
48
|
+
BookingStatusSimple["PendingRescheduled"] = "PENDING_RESCHEDULE";
|
|
49
|
+
BookingStatusSimple["Planned"] = "PLANNED";
|
|
50
|
+
BookingStatusSimple["Rescheduled"] = "RESCHEDULED";
|
|
51
|
+
BookingStatusSimple["RescheduledBad"] = "RESCHEDULED_BAD";
|
|
52
|
+
BookingStatusSimple["Reserved"] = "RESERVED";
|
|
53
|
+
})(BookingStatusSimple || (BookingStatusSimple = {}));
|
|
54
|
+
export var ActivityStatus;
|
|
55
|
+
(function (ActivityStatus) {
|
|
56
|
+
ActivityStatus["Never"] = "NEVER";
|
|
57
|
+
ActivityStatus["Offline"] = "OFFLINE";
|
|
58
|
+
ActivityStatus["Online"] = "ONLINE";
|
|
59
|
+
ActivityStatus["Start"] = "START";
|
|
60
|
+
ActivityStatus["Waiting"] = "WAITING";
|
|
61
|
+
ActivityStatus["PreRoom"] = "PRE_ROOM";
|
|
62
|
+
ActivityStatus["Web"] = "WEB";
|
|
63
|
+
})(ActivityStatus || (ActivityStatus = {}));
|
|
64
|
+
export var Reason;
|
|
65
|
+
(function (Reason) {
|
|
66
|
+
Reason["TutorCancel"] = "TUTOR_CANCEL";
|
|
67
|
+
Reason["OnHold"] = "ON_HOLD";
|
|
68
|
+
Reason["Refund"] = "REFUND";
|
|
69
|
+
Reason["NoShow"] = "NO_SHOW";
|
|
70
|
+
Reason["RescheduleBad"] = "RESCHEDULE_BAD";
|
|
71
|
+
Reason["CsReschedule"] = "CS_RESCHEDULE";
|
|
72
|
+
Reason["CsCancel"] = "CS_CANCEL";
|
|
73
|
+
Reason["SickLeaveSickness"] = "SICK_LEAVE_SICKNESS";
|
|
74
|
+
Reason["Emergency"] = "EMERGENCY";
|
|
75
|
+
Reason["FamilyCircumstances"] = "FAMILY_CIRCUMSTANCES";
|
|
76
|
+
Reason["ConnectivityTechIssues"] = "CONNECTIVITY_TECH_ISSUES";
|
|
77
|
+
Reason["Holiday"] = "HOLIDAY";
|
|
78
|
+
Reason["BreakFromStudies"] = "BREAK_FROM_STUDIES";
|
|
79
|
+
Reason["NaturalElements"] = "NATURAL_ELEMENTS";
|
|
80
|
+
Reason["ConflictWithAnotherActivity"] = "CONFLICT_WITH_ANOTHER_ACTIVITY";
|
|
81
|
+
Reason["Other"] = "OTHER";
|
|
82
|
+
Reason["MismatchWithKidsGrade"] = "MISMATCH_WITH_KIDS_GRADE";
|
|
83
|
+
Reason["ForgotAboutTheLesson"] = "FORGOT_ABOUT_THE_LESSON";
|
|
84
|
+
Reason["TheDisciplineIsNotAround"] = "THE_CHILD_IS_NOT_AROUND";
|
|
85
|
+
Reason["LeftMidLesson"] = "LEFT_MID_LESSON";
|
|
86
|
+
Reason["DidntLikeTheLesson"] = "DIDNT_LIKE_THE_LESSON";
|
|
87
|
+
Reason["RescheduledOnLesson"] = "RESCHEDULED_ON_LESSON";
|
|
88
|
+
Reason["FamilyEmergency"] = "FAMILY_EMERGENCY";
|
|
89
|
+
Reason["PlannedTimeOff"] = "PLANNED_TIME_OFF";
|
|
90
|
+
Reason["Medical"] = "MEDICAL";
|
|
91
|
+
Reason["PowerOutage"] = "POWER_OUTAGE";
|
|
92
|
+
Reason["NoReason"] = "NO_REASON";
|
|
93
|
+
Reason["Typhoon"] = "TYPHOON";
|
|
94
|
+
Reason["InternetIssues"] = "INTERNET_ISSUES";
|
|
95
|
+
Reason["PoorTimeManagement"] = "POOR_TIME_MANAGEMENT";
|
|
96
|
+
Reason["DeviceIssues"] = "DEVICE_ISSUES";
|
|
97
|
+
Reason["Irrelevant"] = "IRRELEVANT";
|
|
98
|
+
Reason["AwaitingProcessing"] = "AWAITING_PROCESSING";
|
|
99
|
+
Reason["AdminFault"] = "ADMIN_FAULT";
|
|
100
|
+
Reason["NoTutor"] = "NO_TUTOR";
|
|
101
|
+
Reason["NoPcLaptop"] = "NO_PC_LAPTOP";
|
|
102
|
+
Reason["TechIssues"] = "TECH_ISSUES";
|
|
103
|
+
Reason["TestLesson"] = "TEST_LESSON";
|
|
104
|
+
Reason["X2ShowUp"] = "X2_SHOW_UP";
|
|
105
|
+
})(Reason || (Reason = {}));
|
|
106
|
+
export var ReasonCategory;
|
|
107
|
+
(function (ReasonCategory) {
|
|
108
|
+
ReasonCategory["All"] = "ALL";
|
|
109
|
+
ReasonCategory["Tutor"] = "TUTOR";
|
|
110
|
+
ReasonCategory["Customer"] = "CUSTOMER";
|
|
111
|
+
ReasonCategory["Admin"] = "ADMIN";
|
|
112
|
+
ReasonCategory["Refund"] = "REFUND";
|
|
113
|
+
ReasonCategory["System"] = "SYSTEM";
|
|
114
|
+
})(ReasonCategory || (ReasonCategory = {}));
|
|
115
|
+
export var PureReasonCategory;
|
|
116
|
+
(function (PureReasonCategory) {
|
|
117
|
+
PureReasonCategory["Tutor"] = "TUTOR";
|
|
118
|
+
PureReasonCategory["Customer"] = "CUSTOMER";
|
|
119
|
+
})(PureReasonCategory || (PureReasonCategory = {}));
|
|
120
|
+
export var TutorAction;
|
|
121
|
+
(function (TutorAction) {
|
|
122
|
+
TutorAction["CanceledBad"] = "canceled-bad";
|
|
123
|
+
TutorAction["NoShow"] = "no-show";
|
|
124
|
+
TutorAction["LessonFinished"] = "lesson-finished";
|
|
125
|
+
TutorAction["ShowOffers"] = "show-offers";
|
|
126
|
+
TutorAction["NearpodShare"] = "nearpod-share";
|
|
127
|
+
TutorAction["WaitingRoom"] = "waiting-room";
|
|
128
|
+
})(TutorAction || (TutorAction = {}));
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Discipline } from '../discipline/enums';
|
|
2
|
+
import type { Feedback, Tutor } from '../tutor/interfaces';
|
|
3
|
+
import { type ActivityStatus, type Reason, type ReasonCategory, type Status, type TutorAction, type Type } from './enums';
|
|
4
|
+
export interface RoomData {
|
|
5
|
+
code: string;
|
|
6
|
+
type: 'test' | 'live';
|
|
7
|
+
url_meeting: string;
|
|
8
|
+
url_preview: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Booking {
|
|
11
|
+
activity_status: ActivityStatus;
|
|
12
|
+
actual_duration: number;
|
|
13
|
+
booked_time: string;
|
|
14
|
+
booked_timezone: string;
|
|
15
|
+
booked_timezone_abbr: string;
|
|
16
|
+
end: string;
|
|
17
|
+
id: number;
|
|
18
|
+
is_finished: boolean;
|
|
19
|
+
join_allowed: boolean;
|
|
20
|
+
lesson_url: string;
|
|
21
|
+
reason: Reason | null;
|
|
22
|
+
reason_category: ReasonCategory | null;
|
|
23
|
+
rebook_url: string | null;
|
|
24
|
+
recording_url: string | null;
|
|
25
|
+
rescheduled_allowed: boolean;
|
|
26
|
+
room_data: RoomData;
|
|
27
|
+
start: string;
|
|
28
|
+
start_utc: string;
|
|
29
|
+
start_allowed: boolean;
|
|
30
|
+
discipline: Discipline;
|
|
31
|
+
status: Status;
|
|
32
|
+
type: Type;
|
|
33
|
+
tutor_feedback: Feedback | null;
|
|
34
|
+
tutor: Tutor | null;
|
|
35
|
+
tutor_action: Record<TutorAction, any> | null;
|
|
36
|
+
tasks: any[];
|
|
37
|
+
}
|
|
38
|
+
export interface TimeSlot {
|
|
39
|
+
busy: boolean;
|
|
40
|
+
is_extended: boolean;
|
|
41
|
+
slot: string;
|
|
42
|
+
}
|
|
43
|
+
export interface BookingsApiPayload {
|
|
44
|
+
disciplineId: number;
|
|
45
|
+
background: boolean;
|
|
46
|
+
skipStore?: boolean;
|
|
47
|
+
from?: string;
|
|
48
|
+
to?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface BookingsApiOptions {
|
|
51
|
+
onStart?: () => void;
|
|
52
|
+
onSuccess?: (bookings: Booking[]) => void;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {} from './enums';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var Status;
|
|
2
|
+
(function (Status) {
|
|
3
|
+
Status["Draft"] = "DRAFT";
|
|
4
|
+
Status["Lead"] = "LEAD";
|
|
5
|
+
Status["LeadConfirmed"] = "LEAD_CONFIRMED";
|
|
6
|
+
Status["LeadNoShow"] = "LEAD_NO_SHOW";
|
|
7
|
+
Status["LeadCompleted"] = "LEAD_COMPLETED";
|
|
8
|
+
Status["Deal"] = "DEAL";
|
|
9
|
+
})(Status || (Status = {}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { MessageReminder, MessageSender } from '../activation/enums';
|
|
2
|
+
import type { KidInCustomer } from '../kid/interfaces';
|
|
3
|
+
import type { ActiveSurvey } from '../survey/interfaces';
|
|
4
|
+
import type { Experiments } from '../experiments/interface';
|
|
5
|
+
import type { MarketingData } from './types';
|
|
6
|
+
import type { Status } from './enums';
|
|
7
|
+
export interface QuizAnswer {
|
|
8
|
+
answer_name: string;
|
|
9
|
+
answer_title: string | string[];
|
|
10
|
+
question_name: string;
|
|
11
|
+
question_title: string;
|
|
12
|
+
}
|
|
13
|
+
export interface Settings {
|
|
14
|
+
ela_enabled?: boolean | null;
|
|
15
|
+
show_referrer_modal?: boolean | null;
|
|
16
|
+
viewed_pricing_at?: string | null;
|
|
17
|
+
viewed_meta_messenger?: boolean | null;
|
|
18
|
+
product_tour_finished_at?: string | null;
|
|
19
|
+
show_onboarding_popup?: boolean | null;
|
|
20
|
+
show_guide_modal?: boolean | null;
|
|
21
|
+
}
|
|
22
|
+
export interface ContactData {
|
|
23
|
+
contact_channels: MessageSender[];
|
|
24
|
+
notification_channels: MessageReminder[];
|
|
25
|
+
}
|
|
26
|
+
export interface Customer {
|
|
27
|
+
id: number;
|
|
28
|
+
auto_renew: boolean;
|
|
29
|
+
ai_summarize: boolean;
|
|
30
|
+
device_id: string;
|
|
31
|
+
first_name: string;
|
|
32
|
+
last_name: string;
|
|
33
|
+
email: string;
|
|
34
|
+
phone: string;
|
|
35
|
+
timezone: string;
|
|
36
|
+
median_income: number | null;
|
|
37
|
+
income_group: string | number;
|
|
38
|
+
screen_recording: boolean;
|
|
39
|
+
zip_code: string | null;
|
|
40
|
+
marketing_data: MarketingData;
|
|
41
|
+
type: 'demo' | 'paid';
|
|
42
|
+
source_funnel: string;
|
|
43
|
+
kids: KidInCustomer[];
|
|
44
|
+
status: Status;
|
|
45
|
+
link_for_messenger: string | null;
|
|
46
|
+
messenger_id: number | null;
|
|
47
|
+
contact_data: ContactData;
|
|
48
|
+
is_book_demo_allowed: boolean;
|
|
49
|
+
active_surveys: ActiveSurvey[];
|
|
50
|
+
experiments: Experiments | null;
|
|
51
|
+
}
|
|
52
|
+
export interface CustomerResponse {
|
|
53
|
+
message: string;
|
|
54
|
+
success: boolean;
|
|
55
|
+
data: Customer;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MarketingData = Record<string, string | null> | [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|