oca-shared-model 1.0.48 → 1.0.50

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.
@@ -9,11 +9,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.JobVacancyCbtModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
11
  const job_vacancy_cbt_service_1 = require("./job_vacancy_cbt.service");
12
+ const typeorm_1 = require("@nestjs/typeorm");
13
+ const job_vacancy_cbt_entity_1 = require("./entities/job_vacancy_cbt.entity");
12
14
  let JobVacancyCbtModule = class JobVacancyCbtModule {
13
15
  };
14
16
  exports.JobVacancyCbtModule = JobVacancyCbtModule;
15
17
  exports.JobVacancyCbtModule = JobVacancyCbtModule = __decorate([
16
18
  (0, common_1.Module)({
19
+ imports: [typeorm_1.TypeOrmModule.forFeature([job_vacancy_cbt_entity_1.JobVacancyCbt])],
17
20
  providers: [job_vacancy_cbt_service_1.JobVacancyCbtService],
18
21
  exports: [job_vacancy_cbt_service_1.JobVacancyCbtService],
19
22
  })
@@ -9,11 +9,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.CrewCbtModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
11
  const crew_cbt_service_1 = require("./crew_cbt.service");
12
+ const typeorm_1 = require("@nestjs/typeorm");
13
+ const crew_cbt_entity_1 = require("./entities/crew_cbt.entity");
12
14
  let CrewCbtModule = class CrewCbtModule {
13
15
  };
14
16
  exports.CrewCbtModule = CrewCbtModule;
15
17
  exports.CrewCbtModule = CrewCbtModule = __decorate([
16
18
  (0, common_1.Module)({
19
+ imports: [typeorm_1.TypeOrmModule.forFeature([crew_cbt_entity_1.CrewCbt])],
17
20
  providers: [crew_cbt_service_1.CrewCbtService],
18
21
  exports: [crew_cbt_service_1.CrewCbtService],
19
22
  })
@@ -17,3 +17,13 @@ export declare function FindMqCode(rank: string, vesselType: string): {
17
17
  max_question: number;
18
18
  }[];
19
19
  } | undefined;
20
+ export declare const SpecialSkillData: {
21
+ department: string;
22
+ area: string;
23
+ ranks: string[];
24
+ vessel_type: string[];
25
+ questions: {
26
+ type: string;
27
+ max_question: number;
28
+ }[];
29
+ }[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mqCode = exports.masterCbtOrder = void 0;
3
+ exports.SpecialSkillData = exports.mqCode = exports.masterCbtOrder = void 0;
4
4
  exports.FindMqCode = FindMqCode;
5
5
  const specialSkills = [
6
6
  "Special Skill: DP Basic",
@@ -278,3 +278,19 @@ function FindMqCode(rank, vesselType) {
278
278
  find = exports.mqCode.find((x) => x.rank.includes(rank) && x.vessel_type.includes(vesselType));
279
279
  return find;
280
280
  }
281
+ exports.SpecialSkillData = [
282
+ {
283
+ department: "deck",
284
+ area: "DP Operation",
285
+ ranks: ["DP Operator", "Senior DP Operator"],
286
+ vessel_type: ["Platform Supply Vessel", "Anchor Handling Tug Supply"],
287
+ questions: [{ type: "Specific knowledge", max_question: 60 }],
288
+ },
289
+ {
290
+ department: "engine",
291
+ area: "DP Maintenance",
292
+ ranks: ["DPVM", "DPM"],
293
+ vessel_type: ["Platform Supply Vessel", "Anchor Handling Tug Supply"],
294
+ questions: [{ type: "Specific knowledge", max_question: 40 }],
295
+ },
296
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oca-shared-model",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "onboard shared model",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {