@globalfishingwatch/api-types
Advanced tools
Comparing version 2.14.2 to 2.15.0
# @globalfishingwatch/api-types | ||
## 2.15.0 | ||
### Minor Changes | ||
- match latest versions | ||
## 2.14.2 | ||
@@ -26,2 +32,3 @@ | ||
- f9b53836: new dataview category type for events | ||
- [`d99bf5f3`](https://github.com/GlobalFishingWatch/frontend/commit/d99bf5f30bceed021ac990a0de8b4e992189be73) [#375](https://github.com/GlobalFishingWatch/frontend/pull/375) Thanks [@satellitestudiodesign](https://github.com/satellitestudiodesign)! - define endpoints enum | ||
@@ -28,0 +35,0 @@ ## 2.12.1 |
@@ -15,4 +15,15 @@ export interface UploadResponse { | ||
} | ||
export declare enum EndpointId { | ||
Tracks = "carriers-tracks", | ||
Vessel = "carriers-vessel", | ||
VesselList = "carriers-list-vessels", | ||
VesselSearch = "carriers-search-vessels", | ||
VesselAdvancedSearch = "carriers-advanced-search-vessels", | ||
FourwingsTiles = "4wings-tiles", | ||
FourwingsLegend = "4wings-legend", | ||
FourwingsInteraction = "4wings-interaction", | ||
UserContextTiles = "user-context-tiles" | ||
} | ||
export interface Endpoint { | ||
id: string; | ||
id: EndpointId; | ||
description?: string; | ||
@@ -19,0 +30,0 @@ method?: 'GET' | 'POST'; |
@@ -5,3 +5,9 @@ export interface PointCoordinate { | ||
} | ||
export declare type EventTypes = 'encounter' | 'fishing' | 'gap' | 'port' | 'loitering'; | ||
export declare enum EventTypes { | ||
Encounter = "encounter", | ||
Fishing = "fishing", | ||
Gap = "gap", | ||
Port = "port", | ||
Loitering = "loitering" | ||
} | ||
export interface EventNextPort { | ||
@@ -12,3 +18,6 @@ id: string; | ||
} | ||
export declare type EventVesselTypeEnum = 'carrier' | 'fishing'; | ||
export declare enum EventVesselTypeEnum { | ||
Carrier = "carrier", | ||
Fishing = "fishing" | ||
} | ||
export interface EventVessel { | ||
@@ -31,3 +40,7 @@ id: string; | ||
} | ||
export declare type AuthorizationOptions = 'authorized' | 'partially' | 'unmatched'; | ||
export declare enum AuthorizationOptions { | ||
Authorized = "authorized", | ||
Partially = "partially", | ||
Unmatched = "unmatched" | ||
} | ||
export interface EncounterEvent { | ||
@@ -34,0 +47,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
var n,t,e,r,o;!function(n){n.Vessels="carriers-vessels:v1",n.Events="carriers-events:v1",n.Ports="carriers-ports:v1",n.Tracks="carriers-tracks:v1",n.Fourwings="4wings:v1",n.Context="user-context-layer:v1",n.Download="data-download:v1"}(n||(n={})),function(n){n.Done="done",n.Importing="importing",n.Error="error"}(t||(t={})),function(n){n.Context="context",n.Environment="environment"}(e||(e={})),function(n){n.Context="context",n.Events="events",n.Environment="environment",n.Activity="activity"}(r||(r={})),function(n){n.NotStarted="not-started",n.Generating="generating",n.Done="done",n.Failed="failed"}(o||(o={}));export{e as DatasetCategory,t as DatasetStatus,n as DatasetTypes,r as DataviewCategory,o as ReportStatus}; | ||
var e,n,r,t,i,s,o,a,c;!function(e){e.Tracks="carriers-tracks",e.Vessel="carriers-vessel",e.VesselList="carriers-list-vessels",e.VesselSearch="carriers-search-vessels",e.VesselAdvancedSearch="carriers-advanced-search-vessels",e.FourwingsTiles="4wings-tiles",e.FourwingsLegend="4wings-legend",e.FourwingsInteraction="4wings-interaction",e.UserContextTiles="user-context-tiles"}(e||(e={})),function(e){e.Vessels="carriers-vessels:v1",e.Events="carriers-events:v1",e.Ports="carriers-ports:v1",e.Tracks="carriers-tracks:v1",e.Fourwings="4wings:v1",e.Context="user-context-layer:v1",e.Download="data-download:v1"}(n||(n={})),function(e){e.Done="done",e.Importing="importing",e.Error="error"}(r||(r={})),function(e){e.Context="context",e.Environment="environment"}(t||(t={})),function(e){e.Context="context",e.Events="events",e.Environment="environment",e.Activity="activity"}(i||(i={})),function(e){e.Encounter="encounter",e.Fishing="fishing",e.Gap="gap",e.Port="port",e.Loitering="loitering"}(s||(s={})),function(e){e.Carrier="carrier",e.Fishing="fishing"}(o||(o={})),function(e){e.Authorized="authorized",e.Partially="partially",e.Unmatched="unmatched"}(a||(a={})),function(e){e.NotStarted="not-started",e.Generating="generating",e.Done="done",e.Failed="failed"}(c||(c={}));export{a as AuthorizationOptions,t as DatasetCategory,r as DatasetStatus,n as DatasetTypes,i as DataviewCategory,e as EndpointId,s as EventTypes,o as EventVesselTypeEnum,c as ReportStatus}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@globalfishingwatch/api-types", | ||
"version": "2.14.2", | ||
"version": "2.15.0", | ||
"description": "Typescript definitions for API responses", | ||
@@ -43,3 +43,3 @@ "author": "satellitestudio <contact@satellitestud.io>", | ||
}, | ||
"gitHead": "62db328392079ea2ccaac0b2a03d7337ed10dbc6" | ||
"gitHead": "48cc5dab71bad70fe29b2ed9c217ae622ca976fd" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27973
387