diff --git a/src/response/getCapabilitiesResponse.ts b/src/response/getCapabilitiesResponse.ts index 73e71c8..79f70b4 100644 --- a/src/response/getCapabilitiesResponse.ts +++ b/src/response/getCapabilitiesResponse.ts @@ -63,8 +63,16 @@ export interface Layer { fadeAmount?: number; particleColor?: string; speedFactor?: number; + speedExponent?: number; coloredParticles?: boolean; }; + /** + * workflow with its properties. + */ + workflow?: { + workflowId?: string; + properties?: WorkflowProperties[]; + }; } export interface Keyword { parameterId?: string; @@ -74,6 +82,10 @@ export interface Keyword { ensembleId?: string; ensembleMemberId?: string; forecastTime?: string; + /** + * Timeseries Type. SCALAR: Single value, SCALAR_MAP: Map of values (e.g. spectrum), COVERAGE: Grid of values, RATING_CURVE: Rating curve, TEXT: Text + */ + type?: "SCALAR" | "SCALAR_MAP" | "COVERAGE" | "RATING_CURVE" | "TEXT"; } export interface Ensemble { ensembleId: string; @@ -93,6 +105,13 @@ export interface Style { name?: string; title: string; } +export interface WorkflowProperties { + type: "string" | "float" | "bool" | "double" | "int" | "dateTime"; + key: string; + value?: string; + date?: string; + time?: string; +} export interface LayerGroup { name: string; title: string; diff --git a/src/response/getLegendGraphicResponse.ts b/src/response/getLegendGraphicResponse.ts index c165091..d3f7bce 100644 --- a/src/response/getLegendGraphicResponse.ts +++ b/src/response/getLegendGraphicResponse.ts @@ -15,4 +15,5 @@ export interface ColourMapEntry { label?: string; lowerValue: number; color: string; + colorSmoothing?: boolean; } diff --git a/test/unit/mock/getCapabilities.json b/test/unit/mock/getCapabilities.json index 0a09a3c..0557278 100644 --- a/test/unit/mock/getCapabilities.json +++ b/test/unit/mock/getCapabilities.json @@ -9,7 +9,8 @@ "locationId" : "giss_e2_h_grid", "moduleInstanceId" : "ImportForecastGissE2HHistoricalNatGrid", "timeSeriesType" : "EXTERNAL_FORECASTING", - "forecastTime" : "1850-01-16T12:00:00Z" + "forecastTime" : "1850-01-16T12:00:00Z", + "type": "COVERAGE" } ], "timesDefault" : "1850-12-16T12:00:00Z", "times" : [ "1850-01-16T12:00:00Z", "1850-02-15T00:00:00Z", "1850-03-16T12:00:00Z", "1850-04-16T00:00:00Z", "1850-05-16T12:00:00Z", "1850-06-16T00:00:00Z", "1850-07-16T12:00:00Z", "1850-08-16T12:00:00Z", "1850-09-16T00:00:00Z", "1850-10-16T12:00:00Z", "1850-11-16T00:00:00Z", "1850-12-16T12:00:00Z" ], diff --git a/test/unit/wmsProvider.spec.ts b/test/unit/wmsProvider.spec.ts index 973a157..e3d5b94 100644 --- a/test/unit/wmsProvider.spec.ts +++ b/test/unit/wmsProvider.spec.ts @@ -41,6 +41,9 @@ describe("WMS Provider Tests", function () { expect(res.layers[0]?.timesDefault).toBe("1850-12-16T12:00:00Z"); expect(res.layers[0]?.groupName).toBe("Goddard NASA Monthly Historical Grids"); expect(res.layers[0]?.name).toBe("giss_e2_h_grid_monthly_historical_nat"); + if (res.layers[0].keywordList && res.layers[0].keywordList.length > 0) { + expect(res.layers[0].keywordList[0]["type"]).toBe("COVERAGE"); + } }); it("GetCapabilitiesWithToken", async function () {