oca-shared-model 1.0.64 → 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.
@@ -23,6 +23,7 @@ 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
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");
26
27
  let CompanyModule = class CompanyModule {
27
28
  };
28
29
  exports.CompanyModule = CompanyModule;
@@ -44,6 +45,7 @@ exports.CompanyModule = CompanyModule = __decorate([
44
45
  course_sections_module_1.CourseSectionsModule,
45
46
  learning_paths_module_1.LearningPathsModule,
46
47
  learning_path_courses_module_1.LearningPathCoursesModule,
48
+ published_learnings_module_1.PublishedLearningsModule,
47
49
  ],
48
50
  exports: [
49
51
  api_settings_module_1.ApiSettingsModule,
@@ -61,6 +63,7 @@ exports.CompanyModule = CompanyModule = __decorate([
61
63
  course_sections_module_1.CourseSectionsModule,
62
64
  learning_paths_module_1.LearningPathsModule,
63
65
  learning_path_courses_module_1.LearningPathCoursesModule,
66
+ published_learnings_module_1.PublishedLearningsModule,
64
67
  ],
65
68
  })
66
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)
@@ -4,4 +4,5 @@ export declare class LearningPathCourse extends DefaultColumn {
4
4
  learning_path_id?: number;
5
5
  course_id?: number;
6
6
  status?: string;
7
+ sort_order?: number;
7
8
  }
@@ -31,6 +31,10 @@ __decorate([
31
31
  (0, typeorm_1.Column)(),
32
32
  __metadata("design:type", String)
33
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);
34
38
  exports.LearningPathCourse = LearningPathCourse = __decorate([
35
39
  (0, typeorm_1.Entity)({
36
40
  schema: "company",
@@ -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.64",
3
+ "version": "1.0.65",
4
4
  "description": "onboard shared model",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {