@orm-plugin/ghg-data-converter 0.0.0-stage → 0.1.1

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.
package/README.md CHANGED
@@ -1,3 +1,2 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ ## GHG Data Converter Plugin
2
+ GHG 数据转换与上报插件(DNV Veracity OVD、CCS EEMS)
@@ -0,0 +1,44 @@
1
+ import { CcsDeletePort, CcsResponse, CcsVoyageData } from './eems-template';
2
+
3
+ export interface CcsClientOptions {
4
+ /** 公司license,向CCS申请 */
5
+ companyLicense?: string;
6
+ /** 船舶license,向CCS申请 */
7
+ shipLicense?: string;
8
+ /** token签名所用license:company公司license(默认)/ ship船舶license */
9
+ licenseType?: 'company' | 'ship';
10
+ /** DES加密key,默认使用Des8Util.java内置的A5483FA7 */
11
+ tokenKey?: string;
12
+ /** 公司密钥,正式环境必填,由信息中心提供 */
13
+ companyCode?: string;
14
+ /** true使用测试环境,默认false */
15
+ test?: boolean;
16
+ }
17
+ export declare class CcsEemsClient {
18
+ private options;
19
+ private client;
20
+ private urls;
21
+ constructor(options: CcsClientOptions);
22
+ private get licenseType();
23
+ /**
24
+ * 接口安全:token明文 = timestamp + 标记字母 + license,经Des8Util.java加密:
25
+ * - 标记字母:S=船舶license,C=公司license(官方样例解密明文 "1542940183S9458420" 佐证)
26
+ * 1. 明文先做URLEncoder(Java规则:空格转+,字母数字及.-*_保留)
27
+ * 2. DES/CBC/PKCS5Padding,key与IV均为A5483FA7
28
+ * 3. 输出十六进制大写
29
+ */
30
+ generateToken(timestamp: string | number, license?: string): string;
31
+ /**
32
+ * 组装POST参数,接口要求按顺序提交:voyageData、timestamp、token、companyCode
33
+ * 实测生产接口仅接受multipart/form-data(urlencoded会被网关拒绝)
34
+ */
35
+ private buildParams;
36
+ /**
37
+ * 数据上报接口:船舶航次能效数据(覆盖式,船舶号+航次号+航次首港离港年份判断)
38
+ */
39
+ reportVoyageData(voyageData: CcsVoyageData): Promise<CcsResponse>;
40
+ /**
41
+ * 数据删除接口:按港口唯一识别码删除
42
+ */
43
+ deleteVoyageData(deletePorts: CcsDeletePort[]): Promise<CcsResponse>;
44
+ }
@@ -0,0 +1,277 @@
1
+ /**
2
+ * CCS船舶能效管理系统 标准导入接口规范 V3.18
3
+ * 参考:《中文版-船舶能效系统标准导入接口使用说明_V3.18-0815.doc》
4
+ */
5
+ export declare enum CcsOilCode {
6
+ HSHFO = "1",
7
+ LSHFO = "11",
8
+ ULSHFO = "12",
9
+ HSLFO = "2",
10
+ LSLFO = "21",
11
+ ULSLFO = "22",
12
+ MDO_MGO = "3",
13
+ LPG_PROPANE = "4",
14
+ LPG_BUTANE = "5",
15
+ LNG_OTTO_MS = "6",
16
+ LNG_OTTO_SS = "61",
17
+ LNG_DIESEL_SS = "62",
18
+ LNG_LBSI = "63",
19
+ METHANOL_FOSSIL = "7",
20
+ H2_FOSSIL_FC = "71",
21
+ H2_FOSSIL_ICE = "72",
22
+ NH3_FOSSIL = "73",
23
+ ETHANOL = "8",
24
+ BIODIESEL = "9",
25
+ HVO = "81",
26
+ BIO_LNG_OTTO_MS = "82",
27
+ BIO_LNG_OTTO_SS = "83",
28
+ BIO_LNG_DIESEL_SS = "84",
29
+ BIO_LNG_LBSI = "85",
30
+ BIO_METHANOL = "86",
31
+ OTHER_BIOFUELS = "87",
32
+ BIO_H2_FC = "88",
33
+ BIO_H2_ICE = "89",
34
+ E_DIESEL = "101",
35
+ E_METHANOL = "102",
36
+ E_LNG_OTTO_MS = "103",
37
+ E_LNG_OTTO_SS = "104",
38
+ E_LNG_DIESEL_SS = "105",
39
+ E_LNG_LBSI = "106",
40
+ E_H2_FC = "107",
41
+ E_H2_ICE = "108",
42
+ E_NH3 = "109",
43
+ E_LPG = "110",
44
+ E_DME = "111"
45
+ }
46
+ export declare const CcsOilNames: Record<CcsOilCode, string>;
47
+ export declare const CCS_OIL_GROUPS: Array<{
48
+ oilId: CcsOilCode;
49
+ fields: string[];
50
+ }>;
51
+ export declare enum CcsConsumerType {
52
+ MAIN_ENGINES = "1",
53
+ AUXILIARY_ENGINES = "2",
54
+ BOILERS = "3",
55
+ INCINERATOR = "4",
56
+ INERT_GAS_GENERATORS = "5",
57
+ CARGO_PUMPS = "6",
58
+ GAS_TURBINES = "7"
59
+ }
60
+ export declare enum CcsRecordType {
61
+ PORT = "0",
62
+ ANCHORING = "1",
63
+ DRIFTING = "2"
64
+ }
65
+ export declare enum CcsIsEu {
66
+ NO = "0",
67
+ EU = "1",
68
+ UK = "2",
69
+ EU_OVERSEAS = "3",
70
+ EU_SMALL_ISLAND = "4"
71
+ }
72
+ export declare enum CcsPortWork {
73
+ LOADING = "0",
74
+ DISCHARGING = "1",
75
+ STS = "2",
76
+ WAITING_BERTH = "3",
77
+ BUNKERING = "4",
78
+ SUPPLY = "5",
79
+ REPAIR = "6",
80
+ CREW_CHANGE = "7",
81
+ SHELTER = "8",
82
+ OTHER = "9"
83
+ }
84
+ export declare enum CcsLoadingType {
85
+ DEPARTURE = "0",
86
+ ARRIVAL = "1"
87
+ }
88
+ export declare enum CcsPeriodType {
89
+ ANNUAL = "0",
90
+ ISM_CHANGE = "1",
91
+ NEW_SHIP = "2",
92
+ FLAG_CHANGE = "3"
93
+ }
94
+ export declare enum CcsExemptionType {
95
+ ETS = "0",
96
+ FUEL_EU = "1",
97
+ CARBON_CAPTURE = "2"
98
+ }
99
+ export declare enum CcsAdjustType {
100
+ SECURING_SHIP_SAFETY = "1",
101
+ SAVING_LIFE_AT_SEA = "2",
102
+ SAILING_IN_ICE = "3"
103
+ }
104
+ export declare enum CcsCorrectType {
105
+ TANKER_STS = "1",
106
+ REEFER_CONTAINER = "2",
107
+ GAS_CARGO_COOLING = "3",
108
+ TANKER_EDRIVEN_PUMP = "4",
109
+ TANKER_BOILER_CARGO_HEATING = "5",
110
+ INDEPENDENT_DISCHARGE_PUMP = "6"
111
+ }
112
+ export interface CcsShorePower {
113
+ beginTm?: string;
114
+ endTm?: string;
115
+ sharePower?: number;
116
+ maxPower?: number;
117
+ power: number;
118
+ }
119
+ export interface CcsPortLoading {
120
+ loadingType: CcsLoadingType;
121
+ cargoTons?: number;
122
+ ballastTons?: number;
123
+ allBoxNum?: number;
124
+ heavyBoxNum?: number;
125
+ refContainer20Num?: number;
126
+ refContainer40Num?: number;
127
+ peopleNum?: number;
128
+ carsNum?: number;
129
+ }
130
+ export interface CcsPortOil {
131
+ oilId: CcsOilCode;
132
+ oilName?: string;
133
+ addBillNo?: string;
134
+ arrTons: number;
135
+ deptTons: number;
136
+ correctTons?: number;
137
+ correctTm?: null;
138
+ }
139
+ export interface CcsAddOil {
140
+ oilId: CcsOilCode;
141
+ oilName?: string;
142
+ addBillNo?: string;
143
+ addTons: number;
144
+ sulfurPercent?: number;
145
+ viscosity?: number;
146
+ isoBrand?: string;
147
+ energyValue?: number;
148
+ eValue?: number;
149
+ wtTFactor?: number;
150
+ addTm: string;
151
+ }
152
+ export interface CcsOutOil {
153
+ oilId: CcsOilCode;
154
+ oilName?: string;
155
+ addBillNo?: string;
156
+ outTons: number;
157
+ outTm: string;
158
+ }
159
+ export interface CcsSludge {
160
+ oilId?: CcsOilCode;
161
+ oilName?: string;
162
+ sludgeTons: number;
163
+ sludgeOutTm: string;
164
+ }
165
+ export interface CcsVoyagePort {
166
+ imoNo: string;
167
+ refCode: string;
168
+ firstVoyageCode: string;
169
+ secondVoyageCode?: string;
170
+ recordType: CcsRecordType;
171
+ portid: string;
172
+ portcn?: string;
173
+ porten?: string;
174
+ isEu: CcsIsEu;
175
+ arrTm: string;
176
+ arrZone: number;
177
+ deptTm: string;
178
+ deptZone: number;
179
+ distance?: number;
180
+ inPort: '0' | '1';
181
+ portWork?: string;
182
+ shorePower: CcsShorePower[];
183
+ voyagePortloadings?: CcsPortLoading[];
184
+ voyagePortoils?: CcsPortOil[];
185
+ voyageAddoils?: CcsAddOil[];
186
+ voyageOutoils?: CcsOutOil[];
187
+ voyageSludges?: CcsSludge[];
188
+ }
189
+ export interface CcsBeginPeriodOil {
190
+ oilId: CcsOilCode;
191
+ oilName?: string;
192
+ addBillNo?: string;
193
+ beginTons: number;
194
+ }
195
+ export interface CcsPeriod {
196
+ imoNo: string;
197
+ periodType?: string;
198
+ periodTime: string;
199
+ longitude: string;
200
+ latitude: string;
201
+ distance: number;
202
+ beginPeriodOils: CcsBeginPeriodOil[];
203
+ }
204
+ export interface CcsPeriodEU {
205
+ periodType?: string;
206
+ exemptionType?: string;
207
+ periodTime: string;
208
+ oilETSs?: CcsBeginPeriodOil[];
209
+ oilFuelEUs?: CcsBeginPeriodOil[];
210
+ carbonCO2Tons?: number;
211
+ }
212
+ export interface CcsVoyageData {
213
+ voyagePorts: CcsVoyagePort[];
214
+ periods?: CcsPeriod[];
215
+ periodEUs?: CcsPeriodEU[];
216
+ }
217
+ export interface CcsDeletePort {
218
+ imoNo: string;
219
+ refCodes: string[];
220
+ }
221
+ export interface CcsResponse {
222
+ imoNo?: string;
223
+ voyageCode?: string;
224
+ timestamp?: string;
225
+ /** 实测生产接口返回小写respcode,成功为20000 */
226
+ respcode?: string;
227
+ respCode?: string;
228
+ respMsg?: string;
229
+ }
230
+ export interface CcsValidateError {
231
+ row: number;
232
+ field: string;
233
+ value: any;
234
+ reason: string;
235
+ }
236
+ export declare const CCS_TM_PATTERN: RegExp;
237
+ export declare class CcsEemsTemplate {
238
+ /**
239
+ * 解析本系统Port字段:`NEWCASTLE (AUSTRALIA) | AUNTL | +10.0`
240
+ */
241
+ parsePort(port?: string | null): {
242
+ name: string;
243
+ country: string;
244
+ loCode: string;
245
+ zone: number | null;
246
+ };
247
+ /**
248
+ * 时区字符串(如 +10.0 / -5.5 / 8)转数值,东时区为+,西时区为-
249
+ */
250
+ parseZone(zone?: string | null): number | null;
251
+ /**
252
+ * UTC时间转指定时区的本地时间,格式:yyyy-mm-dd 24HH:MI:SS
253
+ */
254
+ formatLocalTime(utcDate: Date | string, zone: number | null): string;
255
+ /**
256
+ * 十进制度转度分格式:39°54′ N / 122°06′ E
257
+ */
258
+ formatCoordinate(value: number | string | null | undefined, kind: 'lat' | 'lng'): string;
259
+ /**
260
+ * 附件1:船报油品字段(HSFO/VLSFO/ULSFO/DGO)到CCS燃油代码的映射
261
+ */
262
+ mapOilType(grade: 'HSFO' | 'VLSFO' | 'ULSFO' | 'MDO'): CcsOilCode;
263
+ /**
264
+ * 港口所属国家/地区转isEu:1欧盟 2英国,其余0(海外领地/小岛屿需人工判定,默认0)
265
+ * 支持ISO两位码或英文全名
266
+ */
267
+ mapIsEu(country?: string | null): CcsIsEu;
268
+ /**
269
+ * 船舶号:海船IMO取7位,内河船为船检识别号
270
+ */
271
+ normalizeImo(imo?: number | string | null): string;
272
+ /**
273
+ * 报文校验:必填节点、格式与字典值检查
274
+ */
275
+ validate(voyageData: CcsVoyageData, errors?: CcsValidateError[]): CcsValidateError[];
276
+ }
277
+ export declare const ccsEemsTemplate: CcsEemsTemplate;
@@ -0,0 +1,2 @@
1
+ export * from './client';
2
+ export * from './eems-template';
@@ -0,0 +1,61 @@
1
+ export type OVDInterfaceCode = 'OVDLA' | 'OVDBR' | 'OVDCN' | 'OVDCP' | 'OVDEL';
2
+ export type OVDDocumentType = 'Bunker' | 'Electricity' | 'Cargo';
3
+ export type BunkerCategory = 'Biofuel' | 'Debunkering' | 'BdnSampling';
4
+ export interface OVDResponse {
5
+ CompanyId: string;
6
+ InterfaceCode: OVDInterfaceCode;
7
+ ValidLines: number;
8
+ InvalidLines: number;
9
+ ImportedLines: number;
10
+ Warnings?: string[];
11
+ Errors?: string[];
12
+ OperationTime: string;
13
+ }
14
+ export declare class DnvOVDClient {
15
+ private accessKey;
16
+ private companyId;
17
+ private baseUrl;
18
+ private client;
19
+ private jwtToken;
20
+ constructor(accessKey: string, companyId: string, baseUrl?: string);
21
+ /**
22
+ * 获取 JWT 令牌
23
+ * 使用 AccessKey 交换有效期 60 分钟的 Token
24
+ */
25
+ authenticate(): Promise<string>;
26
+ /**
27
+ * 设置通用 Header
28
+ */
29
+ private getHeaders;
30
+ /**
31
+ * 上传 OVD 数据
32
+ * @param interfaceCode 接口类型 (如 OVDLA)
33
+ * @param data 包含表头的数据二维数组
34
+ * @param tag 可选标签,用于替换旧数据
35
+ */
36
+ uploadData(interfaceCode: OVDInterfaceCode, data: string[][], tag?: string): Promise<OVDResponse>;
37
+ /**
38
+ * 删除特定范围的数据
39
+ */
40
+ deleteData(params: {
41
+ interfaceCode: OVDInterfaceCode;
42
+ vesselIMOs: string[];
43
+ from?: string;
44
+ to?: string;
45
+ tag?: string;
46
+ }): Promise<any>;
47
+ /**
48
+ * 上传 OVD 相关文档 (PDF/JPG)
49
+ */
50
+ uploadDocument(params: {
51
+ filePath: string;
52
+ vesselIMO: string;
53
+ docType: OVDDocumentType;
54
+ bunkerCategory?: BunkerCategory;
55
+ bdnNumbers?: string[];
56
+ }): Promise<any>;
57
+ /**
58
+ * 获取服务健康状态
59
+ */
60
+ checkHealth(): Promise<boolean>;
61
+ }
@@ -0,0 +1,2 @@
1
+ export * from './client';
2
+ export * from './ovd-template';
@@ -0,0 +1,196 @@
1
+ /**
2
+ * DNV OVD (Operational Vessel Data) Log Abstract 模板
3
+ * 接口文档: OVD Interface Description 3.13
4
+ * 字段元数据(type/unit/relevantFor/mandatory)来自文档 Log Abstract 工作表; DNV 不支持的字段已剔除
5
+ */
6
+ /// <reference types="node" />
7
+ /// <reference types="node" />
8
+ export declare enum OvdFieldType {
9
+ Date = "Date",
10
+ Time = "Time",
11
+ DateTime = "Date-Time",
12
+ WholeNumber = "WholeNumber",
13
+ DecimalNumber = "DecimalNumber",
14
+ Text = "Text"
15
+ }
16
+ export interface OvdField {
17
+ name: string;
18
+ type: OvdFieldType;
19
+ rule?: string;
20
+ maxLength?: number;
21
+ unit?: string;
22
+ relevantFor?: string;
23
+ mandatory?: boolean;
24
+ description?: string;
25
+ }
26
+ export interface OvdValidateError {
27
+ row: number;
28
+ field: string;
29
+ value: string;
30
+ reason: string;
31
+ }
32
+ /**
33
+ * 事件类型, 值为 OVD 推荐的事件名拼写 (文档 "Event types" 工作表)
34
+ * 注意: 仅 Arrival/Departure/BOSP/EOSP 等带 * 标记的为 OVD 已知事件名
35
+ */
36
+ export declare enum OvdEventType {
37
+ Arrival = "Arrival",
38
+ Departure = "Departure",
39
+ ArrivalSts = "ArrivalSTS",
40
+ DepartureSts = "DepartureSTS",
41
+ Sts = "STS",
42
+ Bosp = "BOSP",
43
+ Eosp = "EOSP",
44
+ BeginOfSeaPassage = "BeginOfSeaPassage",
45
+ EndOfSeaPassage = "EndOfSeaPassage",
46
+ Faop = "FAOP",
47
+ FullAheadOnPassage = "FullAheadOnPassage",
48
+ BeginOfShifting = "BeginOfShifting",
49
+ EndOfShifting = "EndOfShifting",
50
+ BeginCanalPassage = "Begin canal passage",
51
+ EndCanalPassage = "End canal passage",
52
+ BeginAnchoringDrifting = "Begin Anchoring/Drifting",
53
+ EndAnchoringDrifting = "End Anchoring/Drifting",
54
+ NoonSeaPassage = "Noon (Position) - Sea passage",
55
+ NoonPort = "Noon (Position) - Port",
56
+ NoonRiver = "Noon (Position) - River",
57
+ NoonStoppage = "Noon (Position) - Stoppage",
58
+ EtaUpdate = "ETA update",
59
+ BeginFuelChangeOver = "Begin fuel change over",
60
+ EndFuelChangeOver = "End fuel change over",
61
+ ChangeDestinationDeviation = "Change destination (Deviation)",
62
+ BeginOfDeviation = "Begin of deviation",
63
+ EndOfDeviation = "End of deviation",
64
+ EnteringSpecialArea = "Entering special area",
65
+ LeavingSpecialArea = "Leaving special area",
66
+ OtherEvent = "Other event",
67
+ BeginOfOffhire = "Beginofoffhire",
68
+ EndOfOffhire = "Endofoffhire",
69
+ PerformanceSnapshot = "Performance snapshot"
70
+ }
71
+ /**
72
+ * 挂靠目的, 用于 Purposes_Of_Call 字段, 多个以逗号分隔 (文档 "Port call purposes" 工作表, IMO 0172 编码)
73
+ */
74
+ export declare enum OvdPortCallPurpose {
75
+ CargoOperations = "CargoOperations",
76
+ PassengerMovement = "PassengerMovement",
77
+ TakingBunkers = "TakingBunkers",
78
+ ChangingCrew = "ChangingCrew",
79
+ GoodWillVisit = "GoodWillVisit",
80
+ TakingSupplies = "TakingSupplies",
81
+ Repair = "Repair",
82
+ LaidUp = "LaidUp",
83
+ AwaitingOrders = "AwaitingOrders",
84
+ Miscellaneous = "Miscellaneous",
85
+ CrewMovement = "CrewMovement",
86
+ CruiseLeisureRecreation = "CruiseLeisureRecreation",
87
+ UnderGovernmentOrder = "UnderGovernmentOrder",
88
+ QuarantineInspection = "QuarantineInspection",
89
+ Refuge = "Refuge",
90
+ UnloadingCargo = "UnloadingCargo",
91
+ LoadingCargo = "LoadingCargo",
92
+ RepairInDryDock = "RepairInDryDock",
93
+ RepairInWetDock = "RepairInWetDock",
94
+ CargoTankCleaning = "CargoTankCleaning",
95
+ MeansOfTransportCustomsClearance = "MeansOfTransportCustomsClearance",
96
+ DeGassing = "DeGassing",
97
+ WasteDisposal = "WasteDisposal",
98
+ OffshoreMobilizationOperations = "OffshoreMobilizationOperations",
99
+ TransferOfPersonnel = "TransferOfPersonnel",
100
+ PassThrough = "PassThrough"
101
+ }
102
+ /**
103
+ * 燃油类型 (文档 "Fuel types" 工作表)
104
+ */
105
+ export declare enum OvdFuelType {
106
+ HFO = "HFO",
107
+ LFO = "LFO",
108
+ MGO = "MGO",
109
+ MDO = "MDO",
110
+ LPGP = "LPGP",
111
+ LPGB = "LPGB",
112
+ LNG = "LNG",
113
+ LngN2 = "LNGN2",
114
+ Methanol = "Methanol",
115
+ Ethanol = "Ethanol",
116
+ Ethane = "Ethane",
117
+ Blend = "Blend",
118
+ EMdo = "eMDO",
119
+ EMgo = "eMGO",
120
+ ELpg = "eLPG",
121
+ EDme = "eDME",
122
+ HVO = "HVO",
123
+ FAME = "FAME",
124
+ BioDiesel = "BioDiesel",
125
+ BioLNG = "BioLNG",
126
+ ELNG = "eLNG",
127
+ BioMethanol = "BioMethanol",
128
+ EMethanol = "eMethanol",
129
+ NH3 = "NH3",
130
+ H2 = "H2",
131
+ BioH2 = "BioH2",
132
+ EH2 = "eH2",
133
+ ENh3 = "eNH3",
134
+ LBG = "LBG",
135
+ OtherBio = "OtherBio",
136
+ LSHFO = "LSHFO",
137
+ LSLFO = "LSLFO",
138
+ LSMGO = "LSMGO",
139
+ ULSFO2020 = "ULSFO2020",
140
+ ULSLFO2020 = "ULSLFO2020",
141
+ ULSMDO2020 = "ULSMDO2020",
142
+ ULSMGO2020 = "ULSMGO2020",
143
+ VLSFO = "VLSFO",
144
+ VLSFO2020 = "VLSFO2020",
145
+ VLSLFO2020 = "VLSLFO2020",
146
+ B100LFO = "B100LFO",
147
+ B100MGO = "B100MGO",
148
+ B10LFO = "B10LFO",
149
+ B10MGO = "B10MGO",
150
+ B20LFO = "B20LFO",
151
+ B24LFO = "B24LFO",
152
+ B30LFO = "B30LFO",
153
+ B50MGO = "B50MGO",
154
+ BioLFO = "BioLFO",
155
+ BioMGO = "BioMGO",
156
+ Other = "Other"
157
+ }
158
+ export declare enum OvdInterfaceCode {
159
+ OVDLA = "OVDLA",
160
+ OVDBR = "OVDBR"
161
+ }
162
+ export declare abstract class OvdTemplate {
163
+ abstract get version(): string;
164
+ abstract fieldDefs(code: OvdInterfaceCode): OvdField[];
165
+ /** 表头字段名, 顺序与文档一致 */
166
+ fields(code: OvdInterfaceCode): string[];
167
+ /**
168
+ * 度分格式 + 半球标识 (OVD 要求 dd° mm.mm' N/S/E/W)
169
+ */
170
+ formatCoordinate(value: number, type: 'lat' | 'lng'): {
171
+ hemisphere: string;
172
+ degrees: number;
173
+ minutes: string;
174
+ };
175
+ /**
176
+ * Noon 报告类型 → OVD 事件名 (BOSP/EOSP 为 OVD 已知事件名, 其余原样透传)
177
+ */
178
+ mapEvent(type: string): string;
179
+ /**
180
+ * 船报 PortActivity 文本 → OVD 挂靠目的 (Purposes_Of_Call 仅接受文档支持的关键字)
181
+ * 无法识别的取值返回 '' (如 ARMED GUARDS), 避免上传非法关键字
182
+ */
183
+ mapPortCallPurpose(value: string): string;
184
+ /**
185
+ * 按字段类型校验数据(首行为表头), 返回校验错误列表, 空数组表示通过
186
+ * 校验规则: 日期/时间格式, 数值类型, 文本长度, 文本中不允许出现单双引号(OVD 3.10 起), IMO 7位整数
187
+ */
188
+ validate(data: string[][], code?: OvdInterfaceCode): OvdValidateError[];
189
+ toCsv(data: string[][]): Buffer;
190
+ }
191
+ export declare class OvdTemplateV313 extends OvdTemplate {
192
+ readonly version = "3.13";
193
+ fieldDefs(code: OvdInterfaceCode): OvdField[];
194
+ private readonly logAbstractDefs;
195
+ private readonly bunkerReportDefs;
196
+ }
@@ -0,0 +1,2 @@
1
+ export * from './ccs/src/index';
2
+ export * from './dnv/src/index';