@brighterly/lib-core-types 0.0.1 → 0.1.0
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/customer/interfaces.d.ts +3 -0
- package/dist/discipline/interfaces.d.ts +1 -0
- package/dist/lists/interfaces.d.ts +2 -0
- package/dist/lists/subscriptions/interfaces.d.ts +2 -1
- package/dist/lists/tutor/enums.d.ts +1 -0
- package/dist/lists/tutor/enums.js +1 -0
- package/dist/lists/tutor/interfaces.d.ts +4 -0
- package/dist/lists/tutor/interfaces.js +2 -0
- package/dist/lists/tutor/types.d.ts +1 -0
- package/dist/lists/tutor/types.js +1 -0
- package/dist/subscription/enums.d.ts +11 -0
- package/dist/subscription/enums.js +12 -0
- package/dist/tutor/enums.d.ts +5 -0
- package/dist/tutor/enums.js +6 -0
- package/package.json +11 -1
|
@@ -14,10 +14,13 @@ export interface Settings {
|
|
|
14
14
|
ela_enabled?: boolean | null;
|
|
15
15
|
show_referrer_modal?: boolean | null;
|
|
16
16
|
viewed_pricing_at?: string | null;
|
|
17
|
+
viewed_paid_pricing_at?: string | null;
|
|
17
18
|
viewed_meta_messenger?: boolean | null;
|
|
18
19
|
product_tour_finished_at?: string | null;
|
|
19
20
|
show_onboarding_popup?: boolean | null;
|
|
20
21
|
show_guide_modal?: boolean | null;
|
|
22
|
+
math_demo_booked?: boolean | null;
|
|
23
|
+
answers: QuizAnswer[];
|
|
21
24
|
}
|
|
22
25
|
export interface ContactData {
|
|
23
26
|
contact_channels: MessageSender[];
|
|
@@ -4,6 +4,7 @@ import type { Booking } from './booking/interfaces';
|
|
|
4
4
|
import type { File } from './files/interfaces';
|
|
5
5
|
import type { Order } from './order/interfaces';
|
|
6
6
|
import type { Subscription } from './subscriptions/interfaces';
|
|
7
|
+
import type { Tutor } from './tutor/interfaces.ts';
|
|
7
8
|
export interface Lists {
|
|
8
9
|
activation: Activation;
|
|
9
10
|
booking: Booking;
|
|
@@ -11,4 +12,5 @@ export interface Lists {
|
|
|
11
12
|
file: File;
|
|
12
13
|
order: Order;
|
|
13
14
|
subscription: Subscription;
|
|
15
|
+
tutor: Tutor;
|
|
14
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SubscriptionStatus, SubscriptionPendingStatus, SubscriptionProvider, PauseDuration, DiscountMethod, CancelReason, CancelSubReason } from '../../subscription/enums';
|
|
1
|
+
import type { SubscriptionStatus, SubscriptionPendingStatus, SubscriptionProvider, PauseDuration, DiscountMethod, CancelReason, CancelSubReason, PauseReason } from '../../subscription/enums';
|
|
2
2
|
import { SubscriptionOption } from '../../plans/enums';
|
|
3
3
|
export interface Subscription {
|
|
4
4
|
status: Record<SubscriptionStatus, string>;
|
|
@@ -7,6 +7,7 @@ export interface Subscription {
|
|
|
7
7
|
type: Record<SubscriptionOption, string>;
|
|
8
8
|
provider: Record<SubscriptionProvider, string>;
|
|
9
9
|
pause_durations: Record<PauseDuration, string>;
|
|
10
|
+
pause_reason: Record<PauseReason, string>;
|
|
10
11
|
discount_method: Record<DiscountMethod, string>;
|
|
11
12
|
cancellation_request_type: Record<CancelReason, string>;
|
|
12
13
|
cancellation_request_sub_type: Record<CancelSubReason, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -25,6 +25,17 @@ export declare enum PauseDuration {
|
|
|
25
25
|
Weeks3 = "WEEKS_3",
|
|
26
26
|
Weeks4 = "WEEKS_4"
|
|
27
27
|
}
|
|
28
|
+
export declare enum PauseReason {
|
|
29
|
+
FamilyEmergency = "FAMILY_EMERGENCY",
|
|
30
|
+
FinancialReasons = "FINANCIAL_REASONS",
|
|
31
|
+
Other = "OTHER",
|
|
32
|
+
PlannedLongBreak = "PLANNED_LONG_BREAK",
|
|
33
|
+
ServiceIssues = "SERVICE_ISSUES",
|
|
34
|
+
TechnicalIssues = "TECHNICAL_ISSUES",
|
|
35
|
+
TemporaryUnavailability = "TEMPORARY_UNAVAILABILITY",
|
|
36
|
+
TimeShortage = "TIME_SHORTAGE",
|
|
37
|
+
UnusedLessons = "UNUSED_LESSONS"
|
|
38
|
+
}
|
|
28
39
|
export declare enum DiscountMethod {
|
|
29
40
|
PromoCode = "PROMO_CODE",
|
|
30
41
|
CustomerOffer = "CUSTOMER_OFFER",
|
|
@@ -29,6 +29,18 @@ export var PauseDuration;
|
|
|
29
29
|
PauseDuration["Weeks3"] = "WEEKS_3";
|
|
30
30
|
PauseDuration["Weeks4"] = "WEEKS_4";
|
|
31
31
|
})(PauseDuration || (PauseDuration = {}));
|
|
32
|
+
export var PauseReason;
|
|
33
|
+
(function (PauseReason) {
|
|
34
|
+
PauseReason["FamilyEmergency"] = "FAMILY_EMERGENCY";
|
|
35
|
+
PauseReason["FinancialReasons"] = "FINANCIAL_REASONS";
|
|
36
|
+
PauseReason["Other"] = "OTHER";
|
|
37
|
+
PauseReason["PlannedLongBreak"] = "PLANNED_LONG_BREAK";
|
|
38
|
+
PauseReason["ServiceIssues"] = "SERVICE_ISSUES";
|
|
39
|
+
PauseReason["TechnicalIssues"] = "TECHNICAL_ISSUES";
|
|
40
|
+
PauseReason["TemporaryUnavailability"] = "TEMPORARY_UNAVAILABILITY";
|
|
41
|
+
PauseReason["TimeShortage"] = "TIME_SHORTAGE";
|
|
42
|
+
PauseReason["UnusedLessons"] = "UNUSED_LESSONS";
|
|
43
|
+
})(PauseReason || (PauseReason = {}));
|
|
32
44
|
export var DiscountMethod;
|
|
33
45
|
(function (DiscountMethod) {
|
|
34
46
|
DiscountMethod["PromoCode"] = "PROMO_CODE";
|
package/dist/tutor/enums.d.ts
CHANGED
package/dist/tutor/enums.js
CHANGED
|
@@ -22,3 +22,9 @@ export var OwnerType;
|
|
|
22
22
|
OwnerType["Discipline"] = "DISCIPLINE";
|
|
23
23
|
OwnerType["Tutor"] = "TUTOR";
|
|
24
24
|
})(OwnerType || (OwnerType = {}));
|
|
25
|
+
export var ReassignReason;
|
|
26
|
+
(function (ReassignReason) {
|
|
27
|
+
ReassignReason["All"] = "ALL";
|
|
28
|
+
ReassignReason["Admin"] = "admin";
|
|
29
|
+
ReassignReason["Client"] = "client";
|
|
30
|
+
})(ReassignReason || (ReassignReason = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brighterly/lib-core-types",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Official Brighterly lib-core-types",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -244,6 +244,16 @@
|
|
|
244
244
|
"types": "./dist/lists/subscriptions/enums.d.ts",
|
|
245
245
|
"import": "./dist/lists/subscriptions/enums.js"
|
|
246
246
|
},
|
|
247
|
+
"./lists/tutor/interfaces": {
|
|
248
|
+
"types": "./dist/lists/tutor/interfaces.d.ts"
|
|
249
|
+
},
|
|
250
|
+
"./lists/tutor/types": {
|
|
251
|
+
"types": "./dist/lists/tutor/types.d.ts"
|
|
252
|
+
},
|
|
253
|
+
"./lists/tutor/enums": {
|
|
254
|
+
"types": "./dist/lists/tutor/enums.d.ts",
|
|
255
|
+
"import": "./dist/lists/tutor/enums.js"
|
|
256
|
+
},
|
|
247
257
|
"./login/interfaces": {
|
|
248
258
|
"types": "./dist/login/interfaces.d.ts"
|
|
249
259
|
},
|