@brighterly/lib-core-types 0.4.4 → 0.5.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.
@@ -1,5 +1,6 @@
1
1
  export declare enum ExperimentsCode {
2
2
  Exp58 = "exp-58_preselected-slots",
3
3
  Exp62 = "exp-62_mobile-vs-desktop",
4
- Exp63 = "exp-63_ai-livechat-in-demo-cs"
4
+ Exp63 = "exp-63_ai-livechat-in-demo-cs",
5
+ Exp68 = "exp-68_ics-download-btn"
5
6
  }
@@ -3,4 +3,5 @@ export var ExperimentsCode;
3
3
  ExperimentsCode["Exp58"] = "exp-58_preselected-slots";
4
4
  ExperimentsCode["Exp62"] = "exp-62_mobile-vs-desktop";
5
5
  ExperimentsCode["Exp63"] = "exp-63_ai-livechat-in-demo-cs";
6
+ ExperimentsCode["Exp68"] = "exp-68_ics-download-btn";
6
7
  })(ExperimentsCode || (ExperimentsCode = {}));
@@ -4,4 +4,5 @@ export interface Experiments {
4
4
  [ExperimentsCode.Exp58]: ExperimentValue;
5
5
  [ExperimentsCode.Exp62]: ExperimentValue;
6
6
  [ExperimentsCode.Exp63]: ExperimentValue;
7
+ [ExperimentsCode.Exp68]: ExperimentValue;
7
8
  }
@@ -1,8 +1,19 @@
1
1
  import type { Grade } from './enums';
2
2
  import type { DisciplineInKid } from '../discipline/interfaces';
3
+ import type { VoipParams } from "../support/interfaces.ts";
4
+ import type { Voip } from "../support/enums.ts";
5
+ import type { Customer } from "../customer/interfaces.ts";
3
6
  export interface KidInCustomer {
4
7
  id: number;
5
8
  name: string;
6
9
  grade: Grade;
7
10
  disciplines: DisciplineInKid[];
8
11
  }
12
+ export interface KidInProgressReport {
13
+ id: number;
14
+ name: string;
15
+ grade: Grade;
16
+ customer: Customer;
17
+ voip: Voip;
18
+ voip_params: VoipParams | null;
19
+ }
@@ -1,7 +1,6 @@
1
- import type { KidInCustomer } from '../kid/interfaces';
2
1
  import type { Tutor } from '../tutor/interfaces';
3
- import type { Discipline } from '../discipline/enums';
4
- import type { Grade } from '../kid/enums';
2
+ import type { DisciplineInfo } from '../discipline/interfaces.ts';
3
+ import type { KidInProgressReport } from '../kid/interfaces.ts';
5
4
  export interface ProgressReportCard {
6
5
  id: number;
7
6
  date_from: string | null;
@@ -11,17 +10,17 @@ export interface ProgressReportCard {
11
10
  }
12
11
  export interface ProgressReport extends ProgressReportCard {
13
12
  created_at: string;
14
- customer_name: string;
15
- discipline_code: Discipline;
13
+ discipline: Pick<DisciplineInfo, 'id' | 'code' | 'balance' | 'stage' | 'activation_data'>;
14
+ kid: KidInProgressReport;
15
+ tutor: Tutor;
16
+ pdf_url: string;
17
+ positive_trait: string;
16
18
  further_steps: {
17
19
  statement_1: string;
18
20
  statement_2: string;
19
21
  statement_3?: string;
20
22
  statement_4?: string;
21
23
  };
22
- grade: Grade;
23
- kid_name: KidInCustomer['name'];
24
- positive_trait: string;
25
24
  progress_gained: {
26
25
  statement_1: string;
27
26
  statement_2: string;
@@ -34,6 +33,4 @@ export interface ProgressReport extends ProgressReportCard {
34
33
  statement_3?: string;
35
34
  statement_4?: string;
36
35
  };
37
- tutor: Tutor;
38
- pdf_url: string;
39
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brighterly/lib-core-types",
3
- "version": "0.4.4",
3
+ "version": "0.5.0",
4
4
  "description": "Official Brighterly lib-core-types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",