@idm-plugin/vessel 1.1.8 → 1.2.0

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.
@@ -1,4 +1,3 @@
1
- import { RequestOptions } from '../../index';
2
1
  /**
3
2
  * AIS记录
4
3
  */
@@ -61,30 +60,54 @@ export declare class MyVesselImpl extends AISImpl {
61
60
  private readonly clientSecret;
62
61
  private token;
63
62
  constructor(clientId: string, clientSecret: string);
64
- authToken(options?: RequestOptions): Promise<void>;
65
- realTimePosition(mmsi: number, options?: RequestOptions): Promise<AISRecord>;
66
- trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: RequestOptions): Promise<AISRecord[]>;
63
+ authToken(options?: {
64
+ requestId?: string;
65
+ }): Promise<void>;
66
+ realTimePosition(mmsi: number, options?: {
67
+ requestId?: string;
68
+ }): Promise<AISRecord>;
69
+ trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: {
70
+ requestId?: string;
71
+ }): Promise<AISRecord[]>;
67
72
  private trajectoryIn30Day;
68
73
  }
69
74
  export declare class HifleetImpl extends AISImpl {
70
75
  private readonly token;
71
76
  constructor(token: string);
72
- realTimePosition(mmsi: number, options?: RequestOptions): Promise<AISRecord>;
73
- search(kw: string, options?: RequestOptions): Promise<VesselRecord>;
74
- trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: RequestOptions): Promise<AISRecord[]>;
77
+ realTimePosition(mmsi: number, options?: {
78
+ requestId?: string;
79
+ }): Promise<AISRecord>;
80
+ search(kw: string, options?: {
81
+ requestId?: string;
82
+ }): Promise<VesselRecord>;
83
+ trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: {
84
+ requestId?: string;
85
+ }): Promise<AISRecord[]>;
75
86
  }
76
87
  export declare class ShipxyImpl extends AISImpl {
77
88
  private readonly token;
78
89
  constructor(token: string);
79
- realTimePosition(mmsi: number, options?: RequestOptions): Promise<AISRecord>;
80
- trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: RequestOptions): Promise<AISRecord[]>;
90
+ realTimePosition(mmsi: number, options?: {
91
+ requestId?: string;
92
+ }): Promise<AISRecord>;
93
+ trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: {
94
+ requestId?: string;
95
+ }): Promise<AISRecord[]>;
81
96
  }
82
97
  export declare class MyShipImpl extends AISImpl {
83
98
  private readonly token;
84
99
  constructor(token: string);
85
- getShipId(mmsi: any, options?: RequestOptions): Promise<string>;
86
- getShipInfo(shipId: string, options?: RequestOptions): Promise<AISRecord>;
87
- realTimePosition(mmsi: number, options?: RequestOptions): Promise<AISRecord>;
88
- trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: RequestOptions): Promise<AISRecord[]>;
100
+ getShipId(mmsi: any, options?: {
101
+ requestId?: string;
102
+ }): Promise<string>;
103
+ getShipInfo(shipId: string, options?: {
104
+ requestId?: string;
105
+ }): Promise<AISRecord>;
106
+ realTimePosition(mmsi: number, options?: {
107
+ requestId?: string;
108
+ }): Promise<AISRecord>;
109
+ trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: {
110
+ requestId?: string;
111
+ }): Promise<AISRecord[]>;
89
112
  private trajectoryIn30Day;
90
113
  }
@@ -1,4 +1,3 @@
1
- import { RequestOptions } from '../../../build/packages/index';
2
1
  export declare enum AlertLevel {
3
2
  NOTICE = "NOTICE",
4
3
  WARN = "WARN",
@@ -23,21 +22,27 @@ export declare class AlertHelper {
23
22
  *
24
23
  * @param options
25
24
  */
26
- parsePrinciple(rule: string, options?: RequestOptions): any;
25
+ parsePrinciple(rule: string, options?: {
26
+ requestId?: string;
27
+ }): any;
27
28
  /**
28
29
  * 解析单一告警规则
29
30
  * e.g.1 [>,maxCP,WARN,0,TotCons_VLSFO]
30
31
  * @param rule
31
32
  * @param options
32
33
  */
33
- parseRule(rule: string, options?: RequestOptions): AlertRule | undefined;
34
+ parseRule(rule: string, options?: {
35
+ requestId?: string;
36
+ }): AlertRule | undefined;
34
37
  /**
35
38
  * 检查航路点天气
36
39
  * @param sample 航路点
37
40
  * @param principle 告警规则
38
41
  * @param options
39
42
  */
40
- checkWeather(sample: any[], principle: any, options?: RequestOptions): {
43
+ checkWeather(sample: any[], principle: any, options?: {
44
+ requestId?: string;
45
+ }): {
41
46
  sample: any[];
42
47
  dangerous: number;
43
48
  severe: number;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  export * from './ais/src/';
2
2
  export * from './alert/src/';
3
- export interface RequestOptions {
4
- requestId?: string;
5
- }
3
+ export * from './speed/src/';