oca-shared-model 1.0.63 → 1.0.65

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.
Files changed (26) hide show
  1. package/dist/company/company.module.js +6 -0
  2. package/dist/company/courses/entities/course.entity.d.ts +0 -2
  3. package/dist/company/courses/entities/course.entity.js +0 -8
  4. package/dist/company/learning_path_courses/dto/create-learning_path_course.dto.d.ts +2 -0
  5. package/dist/company/learning_path_courses/dto/create-learning_path_course.dto.js +6 -0
  6. package/dist/company/learning_path_courses/dto/update-learning_path_course.dto.d.ts +5 -0
  7. package/dist/company/learning_path_courses/dto/update-learning_path_course.dto.js +8 -0
  8. package/dist/company/learning_path_courses/entities/learning_path_course.entity.d.ts +8 -0
  9. package/dist/company/learning_path_courses/entities/learning_path_course.entity.js +43 -0
  10. package/dist/company/learning_path_courses/learning_path_courses.module.d.ts +2 -0
  11. package/dist/company/learning_path_courses/learning_path_courses.module.js +23 -0
  12. package/dist/company/learning_path_courses/learning_path_courses.service.d.ts +6 -0
  13. package/dist/company/learning_path_courses/learning_path_courses.service.js +31 -0
  14. package/dist/company/learning_paths/entities/learning_path.entity.d.ts +2 -0
  15. package/dist/company/learning_paths/entities/learning_path.entity.js +8 -0
  16. package/dist/company/published_learnings/dto/create-published_learning.dto.d.ts +2 -0
  17. package/dist/company/published_learnings/dto/create-published_learning.dto.js +6 -0
  18. package/dist/company/published_learnings/dto/update-published_learning.dto.d.ts +5 -0
  19. package/dist/company/published_learnings/dto/update-published_learning.dto.js +8 -0
  20. package/dist/company/published_learnings/entities/published_learning.entity.d.ts +11 -0
  21. package/dist/company/published_learnings/entities/published_learning.entity.js +58 -0
  22. package/dist/company/published_learnings/published_learnings.module.d.ts +2 -0
  23. package/dist/company/published_learnings/published_learnings.module.js +23 -0
  24. package/dist/company/published_learnings/published_learnings.service.d.ts +6 -0
  25. package/dist/company/published_learnings/published_learnings.service.js +31 -0
  26. package/package.json +1 -1
@@ -22,6 +22,8 @@ const crew_database_module_1 = require("./crew_database/crew_database.module");
22
22
  const courses_module_1 = require("./courses/courses.module");
23
23
  const course_sections_module_1 = require("./course_sections/course_sections.module");
24
24
  const learning_paths_module_1 = require("./learning_paths/learning_paths.module");
25
+ const learning_path_courses_module_1 = require("./learning_path_courses/learning_path_courses.module");
26
+ const published_learnings_module_1 = require("./published_learnings/published_learnings.module");
25
27
  let CompanyModule = class CompanyModule {
26
28
  };
27
29
  exports.CompanyModule = CompanyModule;
@@ -42,6 +44,8 @@ exports.CompanyModule = CompanyModule = __decorate([
42
44
  courses_module_1.CoursesModule,
43
45
  course_sections_module_1.CourseSectionsModule,
44
46
  learning_paths_module_1.LearningPathsModule,
47
+ learning_path_courses_module_1.LearningPathCoursesModule,
48
+ published_learnings_module_1.PublishedLearningsModule,
45
49
  ],
46
50
  exports: [
47
51
  api_settings_module_1.ApiSettingsModule,
@@ -58,6 +62,8 @@ exports.CompanyModule = CompanyModule = __decorate([
58
62
  courses_module_1.CoursesModule,
59
63
  course_sections_module_1.CourseSectionsModule,
60
64
  learning_paths_module_1.LearningPathsModule,
65
+ learning_path_courses_module_1.LearningPathCoursesModule,
66
+ published_learnings_module_1.PublishedLearningsModule,
61
67
  ],
62
68
  })
63
69
  ], CompanyModule);
@@ -4,7 +4,5 @@ export declare class Course extends DefaultColumn {
4
4
  company_id?: number;
5
5
  title?: string;
6
6
  description?: string;
7
- repeat?: boolean;
8
- repeat_duration?: number;
9
7
  status?: string;
10
8
  }
@@ -31,14 +31,6 @@ __decorate([
31
31
  (0, typeorm_1.Column)(),
32
32
  __metadata("design:type", String)
33
33
  ], Course.prototype, "description", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)(),
36
- __metadata("design:type", Boolean)
37
- ], Course.prototype, "repeat", void 0);
38
- __decorate([
39
- (0, typeorm_1.Column)(),
40
- __metadata("design:type", Number)
41
- ], Course.prototype, "repeat_duration", void 0);
42
34
  __decorate([
43
35
  (0, typeorm_1.Column)(),
44
36
  __metadata("design:type", String)
@@ -0,0 +1,2 @@
1
+ export declare class CreateLearningPathCourseDto {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateLearningPathCourseDto = void 0;
4
+ class CreateLearningPathCourseDto {
5
+ }
6
+ exports.CreateLearningPathCourseDto = CreateLearningPathCourseDto;
@@ -0,0 +1,5 @@
1
+ import { CreateLearningPathCourseDto } from './create-learning_path_course.dto';
2
+ declare const UpdateLearningPathCourseDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateLearningPathCourseDto>>;
3
+ export declare class UpdateLearningPathCourseDto extends UpdateLearningPathCourseDto_base {
4
+ }
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateLearningPathCourseDto = void 0;
4
+ const mapped_types_1 = require("@nestjs/mapped-types");
5
+ const create_learning_path_course_dto_1 = require("./create-learning_path_course.dto");
6
+ class UpdateLearningPathCourseDto extends (0, mapped_types_1.PartialType)(create_learning_path_course_dto_1.CreateLearningPathCourseDto) {
7
+ }
8
+ exports.UpdateLearningPathCourseDto = UpdateLearningPathCourseDto;
@@ -0,0 +1,8 @@
1
+ import { DefaultColumn } from "../../../helper/default-column";
2
+ export declare class LearningPathCourse extends DefaultColumn {
3
+ id?: number;
4
+ learning_path_id?: number;
5
+ course_id?: number;
6
+ status?: string;
7
+ sort_order?: number;
8
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LearningPathCourse = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const default_column_1 = require("../../../helper/default-column");
15
+ let LearningPathCourse = class LearningPathCourse extends default_column_1.DefaultColumn {
16
+ };
17
+ exports.LearningPathCourse = LearningPathCourse;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
20
+ __metadata("design:type", Number)
21
+ ], LearningPathCourse.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)(),
24
+ __metadata("design:type", Number)
25
+ ], LearningPathCourse.prototype, "learning_path_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)(),
28
+ __metadata("design:type", Number)
29
+ ], LearningPathCourse.prototype, "course_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)(),
32
+ __metadata("design:type", String)
33
+ ], LearningPathCourse.prototype, "status", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)(),
36
+ __metadata("design:type", Number)
37
+ ], LearningPathCourse.prototype, "sort_order", void 0);
38
+ exports.LearningPathCourse = LearningPathCourse = __decorate([
39
+ (0, typeorm_1.Entity)({
40
+ schema: "company",
41
+ name: "learning_path_courses",
42
+ })
43
+ ], LearningPathCourse);
@@ -0,0 +1,2 @@
1
+ export declare class LearningPathCoursesModule {
2
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.LearningPathCoursesModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const learning_path_courses_service_1 = require("./learning_path_courses.service");
12
+ const typeorm_1 = require("@nestjs/typeorm");
13
+ const learning_path_course_entity_1 = require("./entities/learning_path_course.entity");
14
+ let LearningPathCoursesModule = class LearningPathCoursesModule {
15
+ };
16
+ exports.LearningPathCoursesModule = LearningPathCoursesModule;
17
+ exports.LearningPathCoursesModule = LearningPathCoursesModule = __decorate([
18
+ (0, common_1.Module)({
19
+ imports: [typeorm_1.TypeOrmModule.forFeature([learning_path_course_entity_1.LearningPathCourse])],
20
+ providers: [learning_path_courses_service_1.LearningPathCoursesService],
21
+ exports: [learning_path_courses_service_1.LearningPathCoursesService],
22
+ })
23
+ ], LearningPathCoursesModule);
@@ -0,0 +1,6 @@
1
+ import { BaseService } from "../../helper/base-service";
2
+ import { LearningPathCourse } from "./entities/learning_path_course.entity";
3
+ import { Repository } from "typeorm";
4
+ export declare class LearningPathCoursesService extends BaseService<LearningPathCourse> {
5
+ constructor(repository: Repository<LearningPathCourse>);
6
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.LearningPathCoursesService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const base_service_1 = require("../../helper/base-service");
18
+ const learning_path_course_entity_1 = require("./entities/learning_path_course.entity");
19
+ const typeorm_1 = require("@nestjs/typeorm");
20
+ const typeorm_2 = require("typeorm");
21
+ let LearningPathCoursesService = class LearningPathCoursesService extends base_service_1.BaseService {
22
+ constructor(repository) {
23
+ super(repository);
24
+ }
25
+ };
26
+ exports.LearningPathCoursesService = LearningPathCoursesService;
27
+ exports.LearningPathCoursesService = LearningPathCoursesService = __decorate([
28
+ (0, common_1.Injectable)(),
29
+ __param(0, (0, typeorm_1.InjectRepository)(learning_path_course_entity_1.LearningPathCourse)),
30
+ __metadata("design:paramtypes", [typeorm_2.Repository])
31
+ ], LearningPathCoursesService);
@@ -4,4 +4,6 @@ export declare class LearningPath extends DefaultColumn {
4
4
  company_id?: number;
5
5
  title?: string;
6
6
  status?: string;
7
+ repeat?: boolean;
8
+ repeat_duration?: number;
7
9
  }
@@ -31,6 +31,14 @@ __decorate([
31
31
  (0, typeorm_1.Column)(),
32
32
  __metadata("design:type", String)
33
33
  ], LearningPath.prototype, "status", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)(),
36
+ __metadata("design:type", Boolean)
37
+ ], LearningPath.prototype, "repeat", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)(),
40
+ __metadata("design:type", Number)
41
+ ], LearningPath.prototype, "repeat_duration", void 0);
34
42
  exports.LearningPath = LearningPath = __decorate([
35
43
  (0, typeorm_1.Entity)({
36
44
  schema: "company",
@@ -0,0 +1,2 @@
1
+ export declare class CreatePublishedLearningDto {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePublishedLearningDto = void 0;
4
+ class CreatePublishedLearningDto {
5
+ }
6
+ exports.CreatePublishedLearningDto = CreatePublishedLearningDto;
@@ -0,0 +1,5 @@
1
+ import { CreatePublishedLearningDto } from './create-published_learning.dto';
2
+ declare const UpdatePublishedLearningDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreatePublishedLearningDto>>;
3
+ export declare class UpdatePublishedLearningDto extends UpdatePublishedLearningDto_base {
4
+ }
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedLearningDto = void 0;
4
+ const mapped_types_1 = require("@nestjs/mapped-types");
5
+ const create_published_learning_dto_1 = require("./create-published_learning.dto");
6
+ class UpdatePublishedLearningDto extends (0, mapped_types_1.PartialType)(create_published_learning_dto_1.CreatePublishedLearningDto) {
7
+ }
8
+ exports.UpdatePublishedLearningDto = UpdatePublishedLearningDto;
@@ -0,0 +1,11 @@
1
+ export declare class PublishedLearning {
2
+ id?: number;
3
+ company_id?: number;
4
+ learning_path_id?: number;
5
+ mode?: string;
6
+ publish_by?: string;
7
+ rank?: string[];
8
+ vessel_type?: string[];
9
+ publish_date?: Date;
10
+ expired_date?: Date;
11
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PublishedLearning = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let PublishedLearning = class PublishedLearning {
15
+ };
16
+ exports.PublishedLearning = PublishedLearning;
17
+ __decorate([
18
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
19
+ __metadata("design:type", Number)
20
+ ], PublishedLearning.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", Number)
24
+ ], PublishedLearning.prototype, "company_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", Number)
28
+ ], PublishedLearning.prototype, "learning_path_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", String)
32
+ ], PublishedLearning.prototype, "mode", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", String)
36
+ ], PublishedLearning.prototype, "publish_by", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", Array)
40
+ ], PublishedLearning.prototype, "rank", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)(),
43
+ __metadata("design:type", Array)
44
+ ], PublishedLearning.prototype, "vessel_type", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)(),
47
+ __metadata("design:type", Date)
48
+ ], PublishedLearning.prototype, "publish_date", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)(),
51
+ __metadata("design:type", Date)
52
+ ], PublishedLearning.prototype, "expired_date", void 0);
53
+ exports.PublishedLearning = PublishedLearning = __decorate([
54
+ (0, typeorm_1.Entity)({
55
+ schema: "company",
56
+ name: "published_learnings",
57
+ })
58
+ ], PublishedLearning);
@@ -0,0 +1,2 @@
1
+ export declare class PublishedLearningsModule {
2
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.PublishedLearningsModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const published_learnings_service_1 = require("./published_learnings.service");
12
+ const typeorm_1 = require("@nestjs/typeorm");
13
+ const published_learning_entity_1 = require("./entities/published_learning.entity");
14
+ let PublishedLearningsModule = class PublishedLearningsModule {
15
+ };
16
+ exports.PublishedLearningsModule = PublishedLearningsModule;
17
+ exports.PublishedLearningsModule = PublishedLearningsModule = __decorate([
18
+ (0, common_1.Module)({
19
+ imports: [typeorm_1.TypeOrmModule.forFeature([published_learning_entity_1.PublishedLearning])],
20
+ providers: [published_learnings_service_1.PublishedLearningsService],
21
+ exports: [published_learnings_service_1.PublishedLearningsService],
22
+ })
23
+ ], PublishedLearningsModule);
@@ -0,0 +1,6 @@
1
+ import { BaseService } from "../../helper/base-service";
2
+ import { PublishedLearning } from "./entities/published_learning.entity";
3
+ import { Repository } from "typeorm";
4
+ export declare class PublishedLearningsService extends BaseService<PublishedLearning> {
5
+ constructor(repository: Repository<PublishedLearning>);
6
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PublishedLearningsService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const base_service_1 = require("../../helper/base-service");
18
+ const published_learning_entity_1 = require("./entities/published_learning.entity");
19
+ const typeorm_1 = require("@nestjs/typeorm");
20
+ const typeorm_2 = require("typeorm");
21
+ let PublishedLearningsService = class PublishedLearningsService extends base_service_1.BaseService {
22
+ constructor(repository) {
23
+ super(repository);
24
+ }
25
+ };
26
+ exports.PublishedLearningsService = PublishedLearningsService;
27
+ exports.PublishedLearningsService = PublishedLearningsService = __decorate([
28
+ (0, common_1.Injectable)(),
29
+ __param(0, (0, typeorm_1.InjectRepository)(published_learning_entity_1.PublishedLearning)),
30
+ __metadata("design:paramtypes", [typeorm_2.Repository])
31
+ ], PublishedLearningsService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oca-shared-model",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "onboard shared model",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {