@brighterly/lib-core-types 0.8.4 → 0.9.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.
@@ -23,3 +23,13 @@ export declare enum ReassignReason {
23
23
  Admin = "admin",
24
24
  Client = "client"
25
25
  }
26
+ export declare enum PaidLabel {
27
+ Newbie = "NEWBIE",
28
+ Blocked = "BLOCKED",
29
+ Careful = "CAREFUL",
30
+ Top = "TOP",
31
+ Proven = "PROVEN",
32
+ Prerogative = "PREROGATIVE",
33
+ NoLabel = "NO_LABEL",
34
+ NoAssign = "NO_ASSIGN"
35
+ }
@@ -28,3 +28,14 @@ export var ReassignReason;
28
28
  ReassignReason["Admin"] = "admin";
29
29
  ReassignReason["Client"] = "client";
30
30
  })(ReassignReason || (ReassignReason = {}));
31
+ export var PaidLabel;
32
+ (function (PaidLabel) {
33
+ PaidLabel["Newbie"] = "NEWBIE";
34
+ PaidLabel["Blocked"] = "BLOCKED";
35
+ PaidLabel["Careful"] = "CAREFUL";
36
+ PaidLabel["Top"] = "TOP";
37
+ PaidLabel["Proven"] = "PROVEN";
38
+ PaidLabel["Prerogative"] = "PREROGATIVE";
39
+ PaidLabel["NoLabel"] = "NO_LABEL";
40
+ PaidLabel["NoAssign"] = "NO_ASSIGN";
41
+ })(PaidLabel || (PaidLabel = {}));
@@ -5,6 +5,9 @@ import type { LessonType } from '../booking/enums';
5
5
  import type { WebVoip } from '../support/enums';
6
6
  import type { VoipParams } from '../support/interfaces';
7
7
  import type { TopicsByGrade } from './types';
8
+ import type { KanbanAgent, KanbanTutorStageDetails } from "../tutor-kanban/interfaces";
9
+ import type { PaidLabel } from "../tutor/enums";
10
+ import { TutorKanbanStage } from "../tutor-kanban/enums";
8
11
  export interface Tutor {
9
12
  id: number;
10
13
  avatar_url: string | null;
@@ -62,6 +65,16 @@ export interface Tutor {
62
65
  dismissal_details: DismissalDetails;
63
66
  active_customers_link: string;
64
67
  is_premium: boolean;
68
+ stage: TutorKanbanStage | null;
69
+ stage_deadline: string | null;
70
+ stage_details: KanbanTutorStageDetails;
71
+ stage_updated_at: string | null;
72
+ previous_stage: TutorKanbanStage | null;
73
+ agent_id: number | null;
74
+ agent?: KanbanAgent | null;
75
+ kanban_priority: number | null;
76
+ paid_label: PaidLabel | null;
77
+ demo_label: string | null;
65
78
  }
66
79
  export interface CoverTopic {
67
80
  covered_topics: string[];
@@ -1,2 +1,2 @@
1
- export {};
1
+ import { TutorKanbanStage } from "../tutor-kanban/enums";
2
2
  // TODO: add types
@@ -0,0 +1,22 @@
1
+ export declare enum TutorKanbanStage {
2
+ AccountActivated = "ACCOUNT_ACTIVATED",
3
+ AccountCreated = "ACCOUNT_CREATED",
4
+ AwaitingFirstLesson = "AWAITING_FIRST_LESSON",
5
+ Dropped = "DROPPED",
6
+ ExitDecisionRequest = "EXIT_DECISION_REQUEST",
7
+ ExitFinished = "EXIT_FINISHED",
8
+ ExitInProgress = "EXIT_IN_PROGRESS",
9
+ Monitoring = "MONITORING",
10
+ NeedsAttention = "NEEDS_ATTENTION",
11
+ NeedsCheck = "NEEDS_CHECK",
12
+ PracticeInvited = "PRACTICE_INVITED",
13
+ PracticeOngoing = "PRACTICE_ONGOING",
14
+ PracticePassed = "PRACTICE_PASSED",
15
+ PracticeScheduled = "PRACTICE_SCHEDULED",
16
+ ProbationFailed = "PROBATION_FAILED",
17
+ ProbationInProgress = "PROBATION_IN_PROGRESS",
18
+ RegularTutor = "REGULAR_TUTOR",
19
+ TimeOff = "TIME_OFF",
20
+ TopTutor = "TOP_TUTOR",
21
+ UnderReview = "UNDER_REVIEW"
22
+ }
@@ -0,0 +1,23 @@
1
+ export var TutorKanbanStage;
2
+ (function (TutorKanbanStage) {
3
+ TutorKanbanStage["AccountActivated"] = "ACCOUNT_ACTIVATED";
4
+ TutorKanbanStage["AccountCreated"] = "ACCOUNT_CREATED";
5
+ TutorKanbanStage["AwaitingFirstLesson"] = "AWAITING_FIRST_LESSON";
6
+ TutorKanbanStage["Dropped"] = "DROPPED";
7
+ TutorKanbanStage["ExitDecisionRequest"] = "EXIT_DECISION_REQUEST";
8
+ TutorKanbanStage["ExitFinished"] = "EXIT_FINISHED";
9
+ TutorKanbanStage["ExitInProgress"] = "EXIT_IN_PROGRESS";
10
+ TutorKanbanStage["Monitoring"] = "MONITORING";
11
+ TutorKanbanStage["NeedsAttention"] = "NEEDS_ATTENTION";
12
+ TutorKanbanStage["NeedsCheck"] = "NEEDS_CHECK";
13
+ TutorKanbanStage["PracticeInvited"] = "PRACTICE_INVITED";
14
+ TutorKanbanStage["PracticeOngoing"] = "PRACTICE_ONGOING";
15
+ TutorKanbanStage["PracticePassed"] = "PRACTICE_PASSED";
16
+ TutorKanbanStage["PracticeScheduled"] = "PRACTICE_SCHEDULED";
17
+ TutorKanbanStage["ProbationFailed"] = "PROBATION_FAILED";
18
+ TutorKanbanStage["ProbationInProgress"] = "PROBATION_IN_PROGRESS";
19
+ TutorKanbanStage["RegularTutor"] = "REGULAR_TUTOR";
20
+ TutorKanbanStage["TimeOff"] = "TIME_OFF";
21
+ TutorKanbanStage["TopTutor"] = "TOP_TUTOR";
22
+ TutorKanbanStage["UnderReview"] = "UNDER_REVIEW";
23
+ })(TutorKanbanStage || (TutorKanbanStage = {}));
@@ -0,0 +1,26 @@
1
+ export interface KanbanTutorStageDetails {
2
+ reasons: string[];
3
+ categories: string[];
4
+ }
5
+ export interface KanbanTeam {
6
+ id: number;
7
+ name: string;
8
+ created_at: string;
9
+ updated_at: string;
10
+ pivot: {
11
+ user_id: number;
12
+ team_id: number;
13
+ };
14
+ }
15
+ export interface KanbanAgent {
16
+ id: number;
17
+ name: string;
18
+ email: string;
19
+ status: string;
20
+ email_verified_at: string | null;
21
+ roles: string[];
22
+ slack: string | null;
23
+ created_at: string;
24
+ updated_at: string;
25
+ teams?: KanbanTeam[];
26
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brighterly/lib-core-types",
3
- "version": "0.8.4",
3
+ "version": "0.9.1",
4
4
  "description": "Official Brighterly lib-core-types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",