@gooddata/typings
Advanced tools
Comparing version 2.25.0-alpha-ptquang86-qp-sd-976-cfc-events-2020-07-16T09-55-27-820Z to 2.25.0-alpha-van-nguyen-sd-1001-2020-07-17T06-19-42-355Z
@@ -179,17 +179,4 @@ import { AFM } from '../AFM'; | ||
type INegativeAttributeFilter = AFM.INegativeAttributeFilter; | ||
interface IAbsoluteDateFilter { | ||
absoluteDateFilter: { | ||
dataSet?: ObjQualifier; | ||
from: string; | ||
to: string; | ||
}; | ||
} | ||
interface IRelativeDateFilter { | ||
relativeDateFilter: { | ||
dataSet?: ObjQualifier; | ||
granularity: string; | ||
from: number; | ||
to: number; | ||
}; | ||
} | ||
type IAbsoluteDateFilter = AFM.IAbsoluteDateFilter; | ||
type IRelativeDateFilter = AFM.IRelativeDateFilter; | ||
type AttributeFilterItem = IPositiveAttributeFilter | INegativeAttributeFilter; | ||
@@ -196,0 +183,0 @@ type DateFilterItem = IAbsoluteDateFilter | IRelativeDateFilter; |
@@ -58,3 +58,7 @@ import { IGdcMessageEvent, GdcProductName, IGdcMessageEnvelope, IDrillableItemsCommandBody, EmbeddedGdc } from './common'; | ||
*/ | ||
RemoveFilterContext = "removeFilterContext" | ||
RemoveFilterContext = "removeFilterContext", | ||
/** | ||
* The command to duplicate a KPI Dashboard | ||
*/ | ||
SaveAsDashboard = "saveAsDashboard" | ||
} | ||
@@ -207,2 +211,18 @@ /** | ||
/** | ||
* Creates a new dashboard from an existing dashboard | ||
* | ||
* Contract: | ||
* | ||
* - if KD saves as new an existing dashboard, the DashboardSaved event will be posted | ||
* - if KD doesn't have an existing dashboard, CommandFailed is posted | ||
*/ | ||
type SaveAsDashboardCommand = IGdcKdMessageEvent<GdcKdCommandType.SaveAsDashboard, IKdSaveCommandBody>; | ||
type SaveAsDashboardCommandData = IGdcKdMessageEnvelope<GdcKdCommandType.SaveAsDashboard, IKdSaveCommandBody>; | ||
/** | ||
* Type-guard checking whether object is an instance of {@link SaveAsDashboardCommandData}. | ||
* | ||
* @param obj - object to test | ||
*/ | ||
function isSaveAsDashboardCommandData(obj: any): obj is SaveAsDashboardCommandData; | ||
/** | ||
* Cancels editing and switches dashboard to view mode. | ||
@@ -209,0 +229,0 @@ * |
@@ -56,2 +56,6 @@ "use strict"; | ||
GdcKdCommandType["RemoveFilterContext"] = "removeFilterContext"; | ||
/** | ||
* The command to duplicate a KPI Dashboard | ||
*/ | ||
GdcKdCommandType["SaveAsDashboard"] = "saveAsDashboard"; | ||
})(GdcKdCommandType = EmbeddedKpiDashboard.GdcKdCommandType || (EmbeddedKpiDashboard.GdcKdCommandType = {})); | ||
@@ -172,2 +176,11 @@ /** | ||
/** | ||
* Type-guard checking whether object is an instance of {@link SaveAsDashboardCommandData}. | ||
* | ||
* @param obj - object to test | ||
*/ | ||
function isSaveAsDashboardCommandData(obj) { | ||
return common_1.getEventType(obj) === GdcKdCommandType.SaveAsDashboard; | ||
} | ||
EmbeddedKpiDashboard.isSaveAsDashboardCommandData = isSaveAsDashboardCommandData; | ||
/** | ||
* Type-guard checking whether object is an instance of {@link CancelEditData}. | ||
@@ -174,0 +187,0 @@ * |
{ | ||
"name": "@gooddata/typings", | ||
"version": "2.25.0-alpha-ptquang86-qp-sd-976-cfc-events-2020-07-16T09-55-27-820Z", | ||
"version": "2.25.0-alpha-van-nguyen-sd-1001-2020-07-17T06-19-42-355Z", | ||
"description": "TypeScript definition files for GoodData platform", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
354650
6100
1