oca-shared-model 1.0.47 → 1.0.49

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
  })
@@ -0,0 +1,19 @@
1
+ export declare const masterCbtOrder: string[];
2
+ export declare const mqCode: {
3
+ code: string;
4
+ rank: string[];
5
+ vessel_type: string[];
6
+ questions: {
7
+ type: string;
8
+ max_question: number;
9
+ }[];
10
+ }[];
11
+ export declare function FindMqCode(rank: string, vesselType: string): {
12
+ code: string;
13
+ rank: string[];
14
+ vessel_type: string[];
15
+ questions: {
16
+ type: string;
17
+ max_question: number;
18
+ }[];
19
+ } | undefined;
@@ -0,0 +1,280 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mqCode = exports.masterCbtOrder = void 0;
4
+ exports.FindMqCode = FindMqCode;
5
+ const specialSkills = [
6
+ "Special Skill: DP Basic",
7
+ "Special Skill: DP Advanced",
8
+ "Special Skill: DPO Limited",
9
+ "Special Skill: DPO Unlimited",
10
+ "Special Skill: DPM",
11
+ "Special Skill: DPVM",
12
+ ];
13
+ exports.masterCbtOrder = [
14
+ "General Marine Knowledge",
15
+ "English Grammar Knowledge",
16
+ "Specific knowledge",
17
+ ...specialSkills,
18
+ ];
19
+ exports.mqCode = [
20
+ {
21
+ code: "D1",
22
+ rank: ["Master", "Chief Officer"],
23
+ vessel_type: ["Platform Supply Vessel"],
24
+ questions: [
25
+ { type: "General Marine Knowledge", max_question: 25 },
26
+ { type: "English Grammar Knowledge", max_question: 25 },
27
+ { type: "Specific knowledge", max_question: 10 },
28
+ ],
29
+ },
30
+ {
31
+ code: "D2",
32
+ rank: [
33
+ "Second Officer",
34
+ "Third Officer",
35
+ "Officer in Charge of Navigational Watch",
36
+ ],
37
+ vessel_type: ["Platform Supply Vessel"],
38
+ questions: [
39
+ { type: "General Marine Knowledge", max_question: 25 },
40
+ { type: "English Grammar Knowledge", max_question: 25 },
41
+ { type: "Specific knowledge", max_question: 10 },
42
+ ],
43
+ },
44
+ {
45
+ code: "D3",
46
+ rank: ["Master", "Chief Officer"],
47
+ vessel_type: [
48
+ "Anchor Handling Tug",
49
+ "Anchor Handling Tug Supply",
50
+ "ASD Tug",
51
+ ],
52
+ questions: [
53
+ { type: "General Marine Knowledge", max_question: 25 },
54
+ { type: "English Grammar Knowledge", max_question: 25 },
55
+ { type: "Specific knowledge", max_question: 15 },
56
+ ],
57
+ },
58
+ {
59
+ code: "D4",
60
+ rank: [
61
+ "Second Officer",
62
+ "Third Officer",
63
+ "Fourth Officer",
64
+ "Officer in Charge of Navigational Watch",
65
+ "Deck Cadet",
66
+ ],
67
+ vessel_type: [
68
+ "Anchor Handling Tug",
69
+ "Anchor Handling Tug Supply",
70
+ "ASD Tug",
71
+ ],
72
+ questions: [
73
+ { type: "General Marine Knowledge", max_question: 25 },
74
+ { type: "English Grammar Knowledge", max_question: 25 },
75
+ { type: "Specific knowledge", max_question: 10 },
76
+ ],
77
+ },
78
+ {
79
+ code: "D5",
80
+ rank: [
81
+ "Master",
82
+ "Chief Officer",
83
+ "Second Officer",
84
+ "Third Officer",
85
+ "Fourth Officer",
86
+ "Officer in Charge of Navigational Watch",
87
+ ],
88
+ vessel_type: [
89
+ "Fast Utility Vessel",
90
+ "Utility Vessel",
91
+ "Tug Boat",
92
+ "Landing Craft Tank",
93
+ "Multi Purpose Supply Vessel",
94
+ "ASD Tug",
95
+ ],
96
+ questions: [
97
+ { type: "General Marine Knowledge", max_question: 25 },
98
+ { type: "English Grammar Knowledge", max_question: 25 },
99
+ { type: "Specific knowledge", max_question: 10 },
100
+ ],
101
+ },
102
+ {
103
+ code: "D6",
104
+ rank: [
105
+ "Bosun",
106
+ "AB Deck (Able Bodied Seaman)",
107
+ "Crane Operator",
108
+ "Rating Deck Cadet",
109
+ ],
110
+ vessel_type: [
111
+ "Platform Supply Vessel",
112
+ "Anchor Handling Tug",
113
+ "Anchor Handling Tug Supply",
114
+ "ASD Tug",
115
+ ],
116
+ questions: [
117
+ { type: "General Marine Knowledge", max_question: 25 },
118
+ { type: "English Grammar Knowledge", max_question: 25 },
119
+ { type: "Specific knowledge", max_question: 10 },
120
+ ],
121
+ },
122
+ {
123
+ code: "D7",
124
+ rank: [
125
+ "Bosun",
126
+ "AB Deck (Able Bodied Seaman)",
127
+ "Crane Operator",
128
+ "Rating Deck Cadet",
129
+ ],
130
+ vessel_type: [
131
+ "Fast Utility Vessel",
132
+ "Utility Vessel",
133
+ "Tug Boat",
134
+ "Landing Craft Tank",
135
+ "Multi Purpose Supply Vessel",
136
+ ],
137
+ questions: [
138
+ { type: "General Marine Knowledge", max_question: 25 },
139
+ { type: "English Grammar Knowledge", max_question: 25 },
140
+ { type: "Specific knowledge", max_question: 10 },
141
+ ],
142
+ },
143
+ {
144
+ code: "D8",
145
+ rank: ["Cook", "Mess Boy", "Camp Boss"],
146
+ vessel_type: [
147
+ "Platform Supply Vessel",
148
+ "Anchor Handling Tug",
149
+ "Anchor Handling Tug Supply",
150
+ "Fast Utility Vessel",
151
+ "Utility Vessel",
152
+ "Tug Boat",
153
+ "Landing Craft Tank",
154
+ "Multi Purpose Supply Vessel",
155
+ "ASD Tug",
156
+ ],
157
+ questions: [
158
+ { type: "General Marine Knowledge", max_question: 25 },
159
+ { type: "English Grammar Knowledge", max_question: 15 },
160
+ ],
161
+ },
162
+ {
163
+ code: "E1",
164
+ rank: ["Chief Engineer", "Second Engineer"],
165
+ vessel_type: ["Platform Supply Vessel"],
166
+ questions: [
167
+ { type: "General Marine Knowledge", max_question: 25 },
168
+ { type: "English Grammar Knowledge", max_question: 25 },
169
+ { type: "Specific knowledge", max_question: 10 },
170
+ ],
171
+ },
172
+ {
173
+ code: "E2",
174
+ rank: [
175
+ "Third Engineer",
176
+ "Fourth Engineer",
177
+ "Fifth Engineer",
178
+ "Officer in Charge of Engine Watch",
179
+ ],
180
+ vessel_type: ["Platform Supply Vessel", "ASD Tug"],
181
+ questions: [
182
+ { type: "General Marine Knowledge", max_question: 25 },
183
+ { type: "English Grammar Knowledge", max_question: 25 },
184
+ { type: "Specific knowledge", max_question: 10 },
185
+ ],
186
+ },
187
+ {
188
+ code: "E3",
189
+ rank: ["Chief Engineer", "Second Engineer"],
190
+ vessel_type: ["Anchor Handling Tug", "Anchor Handling Tug Supply"],
191
+ questions: [
192
+ { type: "General Marine Knowledge", max_question: 25 },
193
+ { type: "English Grammar Knowledge", max_question: 25 },
194
+ { type: "Specific knowledge", max_question: 10 },
195
+ ],
196
+ },
197
+ {
198
+ code: "E4",
199
+ rank: [
200
+ "Third Engineer",
201
+ "Fourth Engineer",
202
+ "Fifth Engineer",
203
+ "Officer in Charge of Engine Watch",
204
+ "Engine Cadet",
205
+ ],
206
+ vessel_type: [
207
+ "Anchor Handling Tug",
208
+ "Anchor Handling Tug Supply",
209
+ "ASD Tug",
210
+ ],
211
+ questions: [
212
+ { type: "General Marine Knowledge", max_question: 25 },
213
+ { type: "English Grammar Knowledge", max_question: 25 },
214
+ { type: "Specific knowledge", max_question: 10 },
215
+ ],
216
+ },
217
+ {
218
+ code: "E5",
219
+ rank: [
220
+ "Chief Engineer",
221
+ "Second Engineer",
222
+ "Third Engineer",
223
+ "Fourth Engineer",
224
+ "Officer in Charge of Engine Watch",
225
+ ],
226
+ vessel_type: [
227
+ "Fast Utility Vessel",
228
+ "Utility Vessel",
229
+ "Tug Boat",
230
+ "Landing Craft Tank",
231
+ "Multi Purpose Supply Vessel",
232
+ ],
233
+ questions: [
234
+ { type: "General Marine Knowledge", max_question: 25 },
235
+ { type: "English Grammar Knowledge", max_question: 25 },
236
+ { type: "Specific knowledge", max_question: 10 },
237
+ ],
238
+ },
239
+ {
240
+ code: "E6",
241
+ rank: ["Oiler / Greaser / Motorman", "Rating Engine Cadet"],
242
+ vessel_type: [
243
+ "Platform Supply Vessel",
244
+ "Anchor Handling Tug",
245
+ "Anchor Handling Tug Supply",
246
+ "Fast Utility Vessel",
247
+ "Utility Vessel",
248
+ "Tug Boat",
249
+ "Landing Craft Tank",
250
+ "Multi Purpose Supply Vessel",
251
+ ],
252
+ questions: [
253
+ { type: "General Marine Knowledge", max_question: 40 },
254
+ { type: "English Grammar Knowledge", max_question: 20 },
255
+ ],
256
+ },
257
+ {
258
+ code: "E7",
259
+ rank: [
260
+ "Electro-Technical Officer",
261
+ "Electro-Technical Rating",
262
+ "Electrician Trainee",
263
+ "Electro-Technical Officer Cadet",
264
+ ],
265
+ vessel_type: [
266
+ "Platform Supply Vessel",
267
+ "Anchor Handling Tug Supply",
268
+ "Multi Purpose Supply Vessel",
269
+ ],
270
+ questions: [
271
+ { type: "General Marine Knowledge", max_question: 50 },
272
+ { type: "English Grammar Knowledge", max_question: 25 },
273
+ ],
274
+ },
275
+ ];
276
+ function FindMqCode(rank, vesselType) {
277
+ let find;
278
+ find = exports.mqCode.find((x) => x.rank.includes(rank) && x.vessel_type.includes(vesselType));
279
+ return find;
280
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oca-shared-model",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "onboard shared model",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {