profinansy-ui-lib 3.7.8 → 3.7.9

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,6 @@
1
+ import { IApiSettings } from '../api';
2
+ import { CourseListItemRes } from './course.typed';
3
+ export declare const getUserCourses: (settings: IApiSettings) => Promise<{
4
+ data: CourseListItemRes[];
5
+ redirect_uuid?: string;
6
+ }>;
@@ -0,0 +1,47 @@
1
+ export interface CourseListItemRes {
2
+ avatar_file?: string;
3
+ bitrix_id?: number;
4
+ category_color?: string;
5
+ category_id?: string;
6
+ category_name?: string;
7
+ comment_cnt?: number;
8
+ courses_levels_id?: number;
9
+ date_activate?: string;
10
+ date_start?: string;
11
+ date_stop?: string;
12
+ ended_lessons_count?: number;
13
+ flow_id?: number;
14
+ group_users_limit?: number;
15
+ has_printed_materials?: boolean;
16
+ id?: number;
17
+ info?: string;
18
+ is_active?: boolean;
19
+ is_available?: boolean;
20
+ is_bonus?: boolean;
21
+ is_ended?: boolean;
22
+ is_free?: boolean;
23
+ is_open?: boolean;
24
+ is_opened?: boolean;
25
+ is_shareware?: boolean;
26
+ lessons_count?: number;
27
+ link_if_forbidden?: boolean;
28
+ name?: string;
29
+ number?: number;
30
+ paid_link?: string;
31
+ paid_link_text?: string;
32
+ paid_link_type?: string;
33
+ priority?: string;
34
+ product_id?: number;
35
+ rate_avg?: number;
36
+ rate_cnt?: number;
37
+ schedule?: string;
38
+ show_id?: number;
39
+ tariff_level?: string;
40
+ telegram_link?: string;
41
+ text_if_forbidden?: string;
42
+ unique_id?: string;
43
+ users_count?: number;
44
+ users_in_orders_count?: number;
45
+ can_pass?: boolean;
46
+ user_can_pass?: boolean;
47
+ }
@@ -24,6 +24,32 @@ export declare const HeaderPaid: {
24
24
  rights: {
25
25
  ext: number;
26
26
  };
27
+ is_partner: boolean;
28
+ account_list: {
29
+ account_id?: number;
30
+ acc_type: string;
31
+ login: string;
32
+ confirm?: string;
33
+ }[];
34
+ avatar_url: string;
35
+ last_name: string;
36
+ patronymic: string;
37
+ name: string;
38
+ nick: string;
39
+ user_id: number;
40
+ purchased: Record<string, string>;
41
+ ref_balance: number;
42
+ is_confirm_partner: boolean;
43
+ authorized?: boolean;
44
+ token: string;
45
+ type?: number;
46
+ };
47
+ };
48
+ };
49
+ export declare const ChildHeader: {
50
+ (): JSX.Element;
51
+ parameters: {
52
+ user: {
27
53
  type: number;
28
54
  is_partner: boolean;
29
55
  account_list: {
@@ -38,6 +64,7 @@ export declare const HeaderPaid: {
38
64
  name: string;
39
65
  nick: string;
40
66
  user_id: number;
67
+ rights: Record<string, string | number>;
41
68
  purchased: Record<string, string>;
42
69
  ref_balance: number;
43
70
  is_confirm_partner: boolean;
@@ -3,4 +3,4 @@ export type THeaderLinks = HeaderLinkType & {
3
3
  structure?: THeaderLinkSubPage[][];
4
4
  };
5
5
  export declare const useGetMainLinks: (hostname: string, hostnameLenta: string, hostnameLMS: string, leaderBoardPermission: boolean, userRole: UserRole, userType: number) => THeaderLinks[];
6
- export declare const getMainLinks: (hostname: string, hostnameLenta: string, hostnameLMS: string, leaderBoardPermission: boolean, userRole: UserRole) => THeaderLinks[];
6
+ export declare const getMainLinks: (hostname: string, hostnameLenta: string, hostnameLMS: string, leaderBoardPermission: boolean, userRole: UserRole, childCourseId?: string) => THeaderLinks[];
@@ -0,0 +1,5 @@
1
+ export declare const useGetChildrenCourseId: ({ enabled }: {
2
+ enabled: boolean;
3
+ }) => {
4
+ childCourseId: string;
5
+ };