@gooddata/typings
Advanced tools
Comparing version 2.24.7-alpha-yanlipnican-master-2020-06-19T12-28-30-164Z to 2.24.7-lanhuynh-lhq-sd-970-2020-06-22T09-12-19-588Z
@@ -1,2 +0,2 @@ | ||
import { CommandFailed, IObjectMeta, IGdcMessageEvent, IGdcMessageEnvelope, CommandFailedData, GdcProductName, IDrillableItemsCommandBody } from './common'; | ||
import { CommandFailed, IObjectMeta, IGdcMessageEvent, IGdcMessageEnvelope, CommandFailedData, GdcProductName, IDrillableItemsCommandBody, GdcSetFilterContextCommandData, GdcSetFilterContextCommand, GdcRemoveFilterContextCommandData, GdcRemoveFilterContextCommand } from './common'; | ||
import { IBaseExportConfig } from '../Export'; | ||
@@ -62,3 +62,5 @@ import { VisualizationObject } from '../VisualizationObject'; | ||
*/ | ||
Redo = "redo" | ||
Redo = "redo", | ||
SetFilterContext = "setFilterContext", | ||
RemoveFilterContext = "removeFilterContext" | ||
} | ||
@@ -385,2 +387,8 @@ /** | ||
function isRedoCommandData(obj: any): obj is RedoCommandData; | ||
type SetFilterContextCommandData = GdcSetFilterContextCommandData<GdcProductName.ANALYTICAL_DESIGNER>; | ||
type SetFilterContextCommand = GdcSetFilterContextCommand<GdcProductName.ANALYTICAL_DESIGNER>; | ||
function isSetFilterContextCommandData(obj: any): obj is SetFilterContextCommandData; | ||
type RemoveFilterContextCommandData = GdcRemoveFilterContextCommandData<GdcProductName.ANALYTICAL_DESIGNER>; | ||
type RemoveFilterContextCommand = GdcRemoveFilterContextCommand<GdcProductName.ANALYTICAL_DESIGNER>; | ||
function isRemoveFilterContextCommandData(obj: any): obj is RemoveFilterContextCommandData; | ||
/** | ||
@@ -387,0 +395,0 @@ * List of available commands; this is included in each event sent by AD. |
@@ -47,2 +47,4 @@ "use strict"; | ||
GdcAdCommandType["Redo"] = "redo"; | ||
GdcAdCommandType["SetFilterContext"] = "setFilterContext"; | ||
GdcAdCommandType["RemoveFilterContext"] = "removeFilterContext"; | ||
})(GdcAdCommandType = EmbeddedAnalyticalDesigner.GdcAdCommandType || (EmbeddedAnalyticalDesigner.GdcAdCommandType = {})); | ||
@@ -175,2 +177,10 @@ /** | ||
EmbeddedAnalyticalDesigner.isRedoCommandData = isRedoCommandData; | ||
function isSetFilterContextCommandData(obj) { | ||
return common_1.getEventType(obj) === common_1.GdcCommandType.SetFilterContext; | ||
} | ||
EmbeddedAnalyticalDesigner.isSetFilterContextCommandData = isSetFilterContextCommandData; | ||
function isRemoveFilterContextCommandData(obj) { | ||
return common_1.getEventType(obj) === common_1.GdcCommandType.RemoveFilterContext; | ||
} | ||
EmbeddedAnalyticalDesigner.isRemoveFilterContextCommandData = isRemoveFilterContextCommandData; | ||
/** | ||
@@ -177,0 +187,0 @@ * Type-guard checking whether an object is an instance of {@link NewInsightInitializedData} |
@@ -0,1 +1,2 @@ | ||
import { AFM } from "../AFM"; | ||
/** | ||
@@ -14,2 +15,6 @@ * List of products using post events | ||
} | ||
export declare enum GdcCommandType { | ||
SetFilterContext = "setFilterContext", | ||
RemoveFilterContext = "removeFilterContext" | ||
} | ||
/** | ||
@@ -176,1 +181,15 @@ * Common event types in application | ||
} | ||
export declare type IPositiveAttributeFilter = AFM.IPositiveAttributeFilter; | ||
export declare type INegativeAttributeFilter = AFM.INegativeAttributeFilter; | ||
export declare type IAbsoluteDateFilter = AFM.IAbsoluteDateFilter; | ||
export declare type IRelativeDateFilter = AFM.IRelativeDateFilter; | ||
export declare type AttributeFilterItem = IPositiveAttributeFilter | INegativeAttributeFilter; | ||
export declare type DateFilterItem = IAbsoluteDateFilter | IRelativeDateFilter; | ||
export declare type FilterItem = DateFilterItem | AttributeFilterItem; | ||
export interface IFilterContextContent { | ||
filters: FilterItem[]; | ||
} | ||
export declare type GdcSetFilterContextCommandData<Product> = IGdcMessageEnvelope<Product, GdcCommandType.SetFilterContext, IFilterContextContent>; | ||
export declare type GdcSetFilterContextCommand<Product> = IGdcMessageEvent<Product, GdcCommandType.SetFilterContext, IFilterContextContent>; | ||
export declare type GdcRemoveFilterContextCommandData<Product> = IGdcMessageEnvelope<Product, GdcCommandType.RemoveFilterContext, IFilterContextContent>; | ||
export declare type GdcRemoveFilterContextCommand<Product> = IGdcMessageEvent<Product, GdcCommandType.RemoveFilterContext, IFilterContextContent>; |
@@ -18,2 +18,7 @@ "use strict"; | ||
})(GdcProductName = exports.GdcProductName || (exports.GdcProductName = {})); | ||
var GdcCommandType; | ||
(function (GdcCommandType) { | ||
GdcCommandType["SetFilterContext"] = "setFilterContext"; | ||
GdcCommandType["RemoveFilterContext"] = "removeFilterContext"; | ||
})(GdcCommandType = exports.GdcCommandType || (exports.GdcCommandType = {})); | ||
/** | ||
@@ -20,0 +25,0 @@ * Common event types in application |
@@ -1,2 +0,2 @@ | ||
import { IGdcMessageEvent, GdcProductName, IGdcMessageEnvelope, IDrillableItemsCommandBody } from './common'; | ||
import { IGdcMessageEvent, GdcProductName, IGdcMessageEnvelope, IDrillableItemsCommandBody, GdcSetFilterContextCommandData, GdcSetFilterContextCommand, GdcRemoveFilterContextCommandData, GdcRemoveFilterContextCommand } from './common'; | ||
export declare namespace EmbeddedKpiDashboard { | ||
@@ -50,3 +50,5 @@ /** | ||
*/ | ||
ExportToPdf = "exportToPdf" | ||
ExportToPdf = "exportToPdf", | ||
SetFilterContext = "setFilterContext", | ||
RemoveFilterContext = "removeFilterContext" | ||
} | ||
@@ -129,12 +131,3 @@ /** | ||
*/ | ||
Drill = "drill", | ||
/** | ||
* Type that represents the drill to url was started and loading can be displayed. It does not contain url. | ||
* Url is contained by DrillToUrlResolved which is posted after url is resolved. | ||
*/ | ||
DrillToUrlStarted = "drillToUrlStarted", | ||
/** | ||
* Type that represents the drill to url was resolved after DrillToUrlStarted and contains resolved url. | ||
*/ | ||
DrillToUrlResolved = "drillToUrlResolved" | ||
Drill = "drill" | ||
} | ||
@@ -268,2 +261,8 @@ /** | ||
function isSetSizeCommandData(obj: any): obj is SetSizeCommandData; | ||
type SetFilterContextCommand = GdcSetFilterContextCommand<GdcProductName.KPI_DASHBOARD>; | ||
type SetFilterContextCommandData = GdcSetFilterContextCommandData<GdcProductName.KPI_DASHBOARD>; | ||
function isSetFilterContextCommandData(obj: any): obj is SetFilterContextCommandData; | ||
type RemoveFilterContextCommandData = GdcRemoveFilterContextCommandData<GdcProductName.KPI_DASHBOARD>; | ||
type RemoveFilterContextCommand = GdcRemoveFilterContextCommand<GdcProductName.KPI_DASHBOARD>; | ||
function isRemoveFilterContextCommandData(obj: any): obj is RemoveFilterContextCommandData; | ||
interface IKpiWidget { | ||
@@ -476,7 +475,2 @@ type: 'kpi'; | ||
type ExportToPdfFinishedData = IGdcKdMessageEnvelope<GdcKdEventType.ExportedToPdf, ExportToPdfFinishedBody>; | ||
interface IDrillToUrlResolvedDataBody { | ||
url: string; | ||
} | ||
type DrillToUrlStartedData = IGdcKdMessageEnvelope<GdcKdEventType.DrillToUrlStarted, {}>; | ||
type DrillToUrlResolvedData = IGdcKdMessageEnvelope<GdcKdEventType.DrillToUrlResolved, IDrillToUrlResolvedDataBody>; | ||
} |
@@ -48,2 +48,4 @@ "use strict"; | ||
GdcKdCommandType["ExportToPdf"] = "exportToPdf"; | ||
GdcKdCommandType["SetFilterContext"] = "setFilterContext"; | ||
GdcKdCommandType["RemoveFilterContext"] = "removeFilterContext"; | ||
})(GdcKdCommandType = EmbeddedKpiDashboard.GdcKdCommandType || (EmbeddedKpiDashboard.GdcKdCommandType = {})); | ||
@@ -128,11 +130,2 @@ /** | ||
GdcKdEventType["Drill"] = "drill"; | ||
/** | ||
* Type that represents the drill to url was started and loading can be displayed. It does not contain url. | ||
* Url is contained by DrillToUrlResolved which is posted after url is resolved. | ||
*/ | ||
GdcKdEventType["DrillToUrlStarted"] = "drillToUrlStarted"; | ||
/** | ||
* Type that represents the drill to url was resolved after DrillToUrlStarted and contains resolved url. | ||
*/ | ||
GdcKdEventType["DrillToUrlResolved"] = "drillToUrlResolved"; | ||
})(GdcKdEventType = EmbeddedKpiDashboard.GdcKdEventType || (EmbeddedKpiDashboard.GdcKdEventType = {})); | ||
@@ -184,2 +177,10 @@ /** | ||
EmbeddedKpiDashboard.isSetSizeCommandData = isSetSizeCommandData; | ||
function isSetFilterContextCommandData(obj) { | ||
return common_1.getEventType(obj) === common_1.GdcCommandType.SetFilterContext; | ||
} | ||
EmbeddedKpiDashboard.isSetFilterContextCommandData = isSetFilterContextCommandData; | ||
function isRemoveFilterContextCommandData(obj) { | ||
return common_1.getEventType(obj) === common_1.GdcCommandType.RemoveFilterContext; | ||
} | ||
EmbeddedKpiDashboard.isRemoveFilterContextCommandData = isRemoveFilterContextCommandData; | ||
/** | ||
@@ -186,0 +187,0 @@ * Type-guard checking whether object is an instance of {@link IdentifierInsightRef}. |
{ | ||
"name": "@gooddata/typings", | ||
"version": "2.24.7-alpha-yanlipnican-master-2020-06-19T12-28-30-164Z", | ||
"version": "2.24.7-lanhuynh-lhq-sd-970-2020-06-22T09-12-19-588Z", | ||
"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
Sorry, the diff of this file is not supported yet
341846
5814