@rolatech/angular-course 19.0.0-beta.17 → 19.0.0-beta.18

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.
@@ -60,7 +60,7 @@ export declare enum CourseStatus {
60
60
  DELETED,
61
61
  DRAFT
62
62
  }
63
- export declare enum CourseRequestStatus {
63
+ export declare enum CourseApplicationStatus {
64
64
  AWAITING = "\u5BA1\u6838\u4E2D",
65
65
  ACTIVE = "\u5DF2\u901A\u8FC7",
66
66
  REJECTED = "\u5DF2\u62D2\u7EDD"
@@ -1,3 +1,3 @@
1
1
  export { Media } from './media';
2
- export { Course, CourseStatus, CourseRequestStatus, CourseDetail, Schedule, CourseSchedule, CoursePricing, ScheduleDate, Pricing, CourseType, CourseReviewRecord, CourseReviewStatus, CourseClassroom, CourseSection, CourseSectionLecture, CourseSectionLectureVideo, CourseSectionLectureContentType, CourseSectionLectureVideoMetadata, } from './course';
2
+ export { Course, CourseStatus, CourseApplicationStatus, CourseDetail, Schedule, CourseSchedule, CoursePricing, ScheduleDate, Pricing, CourseType, CourseReviewRecord, CourseReviewStatus, CourseClassroom, CourseSection, CourseSectionLecture, CourseSectionLectureVideo, CourseSectionLectureContentType, CourseSectionLectureVideoMetadata, } from './course';
3
3
  export { CourseCategory, CourseCategoryMedia } from './category';
@@ -0,0 +1,26 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { MatDialog } from '@angular/material/dialog';
4
+ import { MatSnackBar } from '@angular/material/snack-bar';
5
+ import { AuthUserService } from '@rolatech/angular-auth';
6
+ import { CourseService } from '../../../services';
7
+ import * as i0 from "@angular/core";
8
+ export declare class CourseApplicationDetailComponent implements OnInit {
9
+ private route;
10
+ dialog: MatDialog;
11
+ private snackBar;
12
+ authUserService: AuthUserService;
13
+ courseService: CourseService;
14
+ id: string;
15
+ application: any;
16
+ status: any;
17
+ user: any;
18
+ constructor(route: ActivatedRoute, dialog: MatDialog, snackBar: MatSnackBar);
19
+ ngOnInit(): void;
20
+ findOne(): void;
21
+ findUserBaseInfo(userId: string): void;
22
+ accept(): void;
23
+ reject(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<CourseApplicationDetailComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<CourseApplicationDetailComponent, "rolatech-course-application-detail", never, {}, {}, never, never, true, never>;
26
+ }
@@ -0,0 +1,35 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PageEvent, MatPaginator } from '@angular/material/paginator';
3
+ import { MatTableDataSource } from '@angular/material/table';
4
+ import { BaseComponent } from '@rolatech/angular-components';
5
+ import { Course } from '../../../interfaces';
6
+ import { CourseService } from '../../../services';
7
+ import * as i0 from "@angular/core";
8
+ export declare class CourseApplicationIndexComponent extends BaseComponent implements OnInit {
9
+ courseService: CourseService;
10
+ pageEvent: PageEvent;
11
+ isLoading: boolean;
12
+ isSearch: boolean;
13
+ length: number;
14
+ pageSize: number;
15
+ pageSizeOptions: number[];
16
+ courses: Course[];
17
+ displayedColumns: string[];
18
+ paginator: import("@angular/core").Signal<MatPaginator | undefined>;
19
+ orderOptions: {
20
+ key: string;
21
+ value: string;
22
+ icon: string;
23
+ sort: string;
24
+ }[];
25
+ status: any;
26
+ orderString: string;
27
+ dataSource: MatTableDataSource<Course, MatPaginator>;
28
+ searchWord: string;
29
+ ngOnInit(): void;
30
+ findAllApplications(event?: PageEvent | null): any;
31
+ search(e: any): void;
32
+ onClick(item: any): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<CourseApplicationIndexComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<CourseApplicationIndexComponent, "rolatech-course-application-index", never, {}, {}, never, never, true, never>;
35
+ }
@@ -0,0 +1,25 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PageEvent, MatPaginator } from '@angular/material/paginator';
3
+ import { MatTableDataSource } from '@angular/material/table';
4
+ import { CourseReviewRecord } from '../../../interfaces';
5
+ import { CourseService } from '../../../services';
6
+ import { BaseComponent } from '@rolatech/angular-components';
7
+ import * as i0 from "@angular/core";
8
+ export declare class CourseManageReviewComponent extends BaseComponent implements OnInit {
9
+ courseService: CourseService;
10
+ isLoading: boolean;
11
+ isSearch: boolean;
12
+ pageEvent: PageEvent;
13
+ length: number;
14
+ pageSize: number;
15
+ pageSizeOptions: number[];
16
+ dataSource: MatTableDataSource<any, MatPaginator>;
17
+ records: CourseReviewRecord[];
18
+ displayedColumns: string[];
19
+ paginator: import("@angular/core").Signal<MatPaginator | undefined>;
20
+ status: any;
21
+ ngOnInit(): void;
22
+ find(event?: PageEvent | null): any;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<CourseManageReviewComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<CourseManageReviewComponent, "rolatech-course-manage-review", never, {}, {}, never, never, true, never>;
25
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CourseManageReviewDetailComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<CourseManageReviewDetailComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<CourseManageReviewDetailComponent, "rolatech-course-manage-review-detail", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CourseManageUserIndexComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<CourseManageUserIndexComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<CourseManageUserIndexComponent, "rolatech-course-manage-user-index", never, {}, {}, never, never, true, never>;
5
+ }
@@ -1,7 +1,9 @@
1
+ import { AuthUserService } from '@rolatech/angular-auth';
1
2
  import { BaseService } from '@rolatech/angular-services';
2
3
  import { Observable } from 'rxjs';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class CourseService extends BaseService {
6
+ authUserService: AuthUserService;
5
7
  init(): void;
6
8
  me(options: any): Observable<any>;
7
9
  findSchedule(id: string): Observable<any>;
@@ -22,12 +24,13 @@ export declare class CourseService extends BaseService {
22
24
  deleteMedia(id: string, mediaId: string): Observable<any>;
23
25
  importFromExcel(data: FormData): Observable<any>;
24
26
  createFromExcel(data: any): Observable<any>;
25
- findAllRequests(options: any): Observable<any>;
26
- findRequestDetail(id: string): Observable<any>;
27
+ findAllApplications(options: any): Observable<any>;
28
+ findApplicationsUser(ids: Array<string>): Observable<any>;
29
+ findApplicationDetail(id: string): Observable<any>;
27
30
  accept(id: string): Observable<any>;
28
31
  reject(id: string, body: any): Observable<any>;
29
- acceptRequest(id: string): Observable<any>;
30
- rejectRequest(id: string, body: any): Observable<any>;
32
+ acceptApplication(id: string): Observable<any>;
33
+ rejectApplication(id: string, body: any): Observable<any>;
31
34
  addPricing(id: string, data: any): Observable<any>;
32
35
  updatePricing(id: string, pricingId: string, data: any): Observable<any>;
33
36
  deletePricing(id: string, pricingId: string): Observable<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolatech/angular-course",
3
- "version": "19.0.0-beta.17",
3
+ "version": "19.0.0-beta.18",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/core": "^19.0.0",
@@ -16,12 +16,12 @@
16
16
  "moment": "^2.30.1"
17
17
  },
18
18
  "dependencies": {
19
- "@rolatech/angular-common": "19.0.0-beta.17",
20
- "@rolatech/angular-components": "19.0.0-beta.17",
21
- "@rolatech/angular-services": "19.0.0-beta.17",
22
- "@rolatech/angular-auth": "19.0.0-beta.17",
23
- "@rolatech/angular-category": "19.0.0-beta.17",
24
- "@rolatech/angular-comment": "19.0.0-beta.17",
19
+ "@rolatech/angular-common": "19.0.0-beta.18",
20
+ "@rolatech/angular-components": "19.0.0-beta.18",
21
+ "@rolatech/angular-services": "19.0.0-beta.18",
22
+ "@rolatech/angular-auth": "19.0.0-beta.18",
23
+ "@rolatech/angular-category": "19.0.0-beta.18",
24
+ "@rolatech/angular-comment": "19.0.0-beta.18",
25
25
  "tslib": "^2.3.0"
26
26
  },
27
27
  "sideEffects": false,