@gooddata/sdk-ui 8.10.0-alpha.4 → 8.10.0-alpha.40
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.
- package/dist/base/errors/GoodDataSdkError.d.ts +4 -1
- package/dist/base/errors/GoodDataSdkError.d.ts.map +1 -1
- package/dist/base/errors/GoodDataSdkError.js +5 -2
- package/dist/base/errors/GoodDataSdkError.js.map +1 -1
- package/dist/base/errors/errorHandling.d.ts +5 -3
- package/dist/base/errors/errorHandling.d.ts.map +1 -1
- package/dist/base/errors/errorHandling.js +6 -4
- package/dist/base/errors/errorHandling.js.map +1 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts +5 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/dist/base/headerMatching/HeaderPredicate.js.map +1 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +1 -0
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.js +1 -0
- package/dist/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/dist/base/headerMatching/MappingHeader.d.ts +2 -0
- package/dist/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/dist/base/headerMatching/MappingHeader.js +1 -1
- package/dist/base/headerMatching/MappingHeader.js.map +1 -1
- package/dist/base/helpers/CatalogHelper.d.ts +5 -3
- package/dist/base/helpers/CatalogHelper.d.ts.map +1 -1
- package/dist/base/helpers/CatalogHelper.js +5 -3
- package/dist/base/helpers/CatalogHelper.js.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +4 -0
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +2 -0
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/dist/base/localization/bundles/de-DE.json +12 -1
- package/dist/base/localization/bundles/en-US.json +29 -9
- package/dist/base/localization/bundles/es-ES.json +12 -1
- package/dist/base/localization/bundles/fr-FR.json +12 -1
- package/dist/base/localization/bundles/ja-JP.json +12 -1
- package/dist/base/localization/bundles/nl-NL.json +12 -1
- package/dist/base/localization/bundles/pt-BR.json +12 -1
- package/dist/base/localization/bundles/pt-PT.json +12 -1
- package/dist/base/localization/bundles/ru-RU.json +12 -1
- package/dist/base/localization/bundles/zh-Hans.json +12 -1
- package/dist/base/react/BackendContext.d.ts +4 -0
- package/dist/base/react/BackendContext.d.ts.map +1 -1
- package/dist/base/react/BackendContext.js +5 -1
- package/dist/base/react/BackendContext.js.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +4 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/dist/base/react/ErrorComponent.d.ts +4 -2
- package/dist/base/react/ErrorComponent.d.ts.map +1 -1
- package/dist/base/react/ErrorComponent.js +5 -3
- package/dist/base/react/ErrorComponent.js.map +1 -1
- package/dist/base/react/LoadingComponent.d.ts +4 -2
- package/dist/base/react/LoadingComponent.d.ts.map +1 -1
- package/dist/base/react/LoadingComponent.js +5 -3
- package/dist/base/react/LoadingComponent.js.map +1 -1
- package/dist/base/react/WorkspaceContext.d.ts +4 -0
- package/dist/base/react/WorkspaceContext.d.ts.map +1 -1
- package/dist/base/react/WorkspaceContext.js +5 -1
- package/dist/base/react/WorkspaceContext.js.map +1 -1
- package/dist/base/react/placeholders/base.d.ts +75 -41
- package/dist/base/react/placeholders/base.d.ts.map +1 -1
- package/dist/base/react/placeholders/base.js +1 -1
- package/dist/base/react/placeholders/base.js.map +1 -1
- package/dist/base/react/placeholders/factory.d.ts +4 -2
- package/dist/base/react/placeholders/factory.d.ts.map +1 -1
- package/dist/base/react/placeholders/factory.js +1 -1
- package/dist/base/react/placeholders/factory.js.map +1 -1
- package/dist/base/react/placeholders/hooks.d.ts +8 -0
- package/dist/base/react/placeholders/hooks.d.ts.map +1 -1
- package/dist/base/react/placeholders/hooks.js +9 -1
- package/dist/base/react/placeholders/hooks.js.map +1 -1
- package/dist/base/react/useCancelablePromise.d.ts +17 -11
- package/dist/base/react/useCancelablePromise.d.ts.map +1 -1
- package/dist/base/react/useCancelablePromise.js +9 -3
- package/dist/base/react/useCancelablePromise.js.map +1 -1
- package/dist/base/react/useCancelablePromiseUtils.d.ts +4 -2
- package/dist/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
- package/dist/base/react/useCancelablePromiseUtils.js +5 -3
- package/dist/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/dist/base/results/dataAccess.d.ts +29 -8
- package/dist/base/results/dataAccess.d.ts.map +1 -1
- package/dist/base/results/dataAccessConfig.d.ts +4 -1
- package/dist/base/results/dataAccessConfig.d.ts.map +1 -1
- package/dist/base/results/dataAccessConfig.js +4 -1
- package/dist/base/results/dataAccessConfig.js.map +1 -1
- package/dist/base/results/facade.d.ts +8 -2
- package/dist/base/results/facade.d.ts.map +1 -1
- package/dist/base/results/facade.js +9 -3
- package/dist/base/results/facade.js.map +1 -1
- package/dist/base/results/internal/definitionMethods.d.ts +1 -1
- package/dist/base/results/internal/definitionMethods.js +1 -1
- package/dist/base/results/internal/resultDataMethods.d.ts +1 -1
- package/dist/base/results/internal/resultMetaMethods.d.ts +1 -1
- package/dist/base/results/internal/resultMetaMethods.js +1 -1
- package/dist/base/vis/DrillEvents.d.ts +2 -0
- package/dist/base/vis/DrillEvents.d.ts.map +1 -1
- package/dist/base/vis/DrillEvents.js.map +1 -1
- package/dist/base/vis/VisualizationProps.d.ts +11 -4
- package/dist/base/vis/VisualizationProps.d.ts.map +1 -1
- package/dist/base/vis/VisualizationProps.js +1 -1
- package/dist/execution/Execute.d.ts +34 -18
- package/dist/execution/Execute.d.ts.map +1 -1
- package/dist/execution/Execute.js +6 -4
- package/dist/execution/Execute.js.map +1 -1
- package/dist/execution/ExecuteInsight.d.ts +47 -16
- package/dist/execution/ExecuteInsight.d.ts.map +1 -1
- package/dist/execution/ExecuteInsight.js +7 -5
- package/dist/execution/ExecuteInsight.js.map +1 -1
- package/dist/execution/RawExecute.d.ts +19 -7
- package/dist/execution/RawExecute.d.ts.map +1 -1
- package/dist/execution/RawExecute.js +2 -1
- package/dist/execution/RawExecute.js.map +1 -1
- package/dist/execution/createExecution.d.ts +8 -5
- package/dist/execution/createExecution.d.ts.map +1 -1
- package/dist/execution/createExecution.js +3 -5
- package/dist/execution/createExecution.js.map +1 -1
- package/dist/execution/useDataExport.d.ts +5 -3
- package/dist/execution/useDataExport.d.ts.map +1 -1
- package/dist/execution/useDataExport.js +3 -1
- package/dist/execution/useDataExport.js.map +1 -1
- package/dist/execution/useDataView.d.ts +5 -0
- package/dist/execution/useDataView.d.ts.map +1 -1
- package/dist/execution/useDataView.js +3 -0
- package/dist/execution/useDataView.js.map +1 -1
- package/dist/execution/useExecution.d.ts +16 -8
- package/dist/execution/useExecution.d.ts.map +1 -1
- package/dist/execution/useExecution.js +3 -0
- package/dist/execution/useExecution.js.map +1 -1
- package/dist/execution/useExecutionDataView.d.ts +18 -12
- package/dist/execution/useExecutionDataView.d.ts.map +1 -1
- package/dist/execution/useExecutionDataView.js +1 -1
- package/dist/execution/useExecutionDataView.js.map +1 -1
- package/dist/execution/useInsightDataView.d.ts +29 -7
- package/dist/execution/useInsightDataView.d.ts.map +1 -1
- package/dist/execution/useInsightDataView.js +5 -4
- package/dist/execution/useInsightDataView.js.map +1 -1
- package/dist/execution/withExecution.d.ts +5 -4
- package/dist/execution/withExecution.d.ts.map +1 -1
- package/dist/execution/withExecution.js +1 -1
- package/dist/execution/withExecution.js.map +1 -1
- package/dist/execution/withExecutionLoading.d.ts +12 -7
- package/dist/execution/withExecutionLoading.d.ts.map +1 -1
- package/dist/execution/withExecutionLoading.js +1 -1
- package/dist/execution/withExecutionLoading.js.map +1 -1
- package/dist/kpi/Kpi.d.ts +13 -9
- package/dist/kpi/Kpi.d.ts.map +1 -1
- package/dist/kpi/Kpi.js +5 -3
- package/dist/kpi/Kpi.js.map +1 -1
- package/dist/sdk-ui.d.ts +414 -178
- package/esm/base/errors/GoodDataSdkError.d.ts +4 -1
- package/esm/base/errors/GoodDataSdkError.d.ts.map +1 -1
- package/esm/base/errors/GoodDataSdkError.js +5 -2
- package/esm/base/errors/GoodDataSdkError.js.map +1 -1
- package/esm/base/errors/errorHandling.d.ts +5 -3
- package/esm/base/errors/errorHandling.d.ts.map +1 -1
- package/esm/base/errors/errorHandling.js +6 -4
- package/esm/base/errors/errorHandling.js.map +1 -1
- package/esm/base/headerMatching/HeaderPredicate.d.ts +5 -1
- package/esm/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicate.js.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.d.ts +1 -0
- package/esm/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.js +1 -0
- package/esm/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/esm/base/headerMatching/MappingHeader.d.ts +2 -0
- package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/esm/base/headerMatching/MappingHeader.js +1 -1
- package/esm/base/headerMatching/MappingHeader.js.map +1 -1
- package/esm/base/helpers/CatalogHelper.d.ts +5 -3
- package/esm/base/helpers/CatalogHelper.d.ts.map +1 -1
- package/esm/base/helpers/CatalogHelper.js +5 -3
- package/esm/base/helpers/CatalogHelper.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +4 -0
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +2 -0
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/esm/base/localization/bundles/de-DE.json +12 -1
- package/esm/base/localization/bundles/en-US.json +29 -9
- package/esm/base/localization/bundles/es-ES.json +12 -1
- package/esm/base/localization/bundles/fr-FR.json +12 -1
- package/esm/base/localization/bundles/ja-JP.json +12 -1
- package/esm/base/localization/bundles/nl-NL.json +12 -1
- package/esm/base/localization/bundles/pt-BR.json +12 -1
- package/esm/base/localization/bundles/pt-PT.json +12 -1
- package/esm/base/localization/bundles/ru-RU.json +12 -1
- package/esm/base/localization/bundles/zh-Hans.json +12 -1
- package/esm/base/react/BackendContext.d.ts +4 -0
- package/esm/base/react/BackendContext.d.ts.map +1 -1
- package/esm/base/react/BackendContext.js +5 -1
- package/esm/base/react/BackendContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +4 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/esm/base/react/ErrorComponent.d.ts +4 -2
- package/esm/base/react/ErrorComponent.d.ts.map +1 -1
- package/esm/base/react/ErrorComponent.js +5 -3
- package/esm/base/react/ErrorComponent.js.map +1 -1
- package/esm/base/react/LoadingComponent.d.ts +4 -2
- package/esm/base/react/LoadingComponent.d.ts.map +1 -1
- package/esm/base/react/LoadingComponent.js +5 -3
- package/esm/base/react/LoadingComponent.js.map +1 -1
- package/esm/base/react/WorkspaceContext.d.ts +4 -0
- package/esm/base/react/WorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/WorkspaceContext.js +5 -1
- package/esm/base/react/WorkspaceContext.js.map +1 -1
- package/esm/base/react/placeholders/base.d.ts +75 -41
- package/esm/base/react/placeholders/base.d.ts.map +1 -1
- package/esm/base/react/placeholders/base.js +1 -1
- package/esm/base/react/placeholders/base.js.map +1 -1
- package/esm/base/react/placeholders/factory.d.ts +4 -2
- package/esm/base/react/placeholders/factory.d.ts.map +1 -1
- package/esm/base/react/placeholders/factory.js +1 -1
- package/esm/base/react/placeholders/factory.js.map +1 -1
- package/esm/base/react/placeholders/hooks.d.ts +8 -0
- package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
- package/esm/base/react/placeholders/hooks.js +9 -1
- package/esm/base/react/placeholders/hooks.js.map +1 -1
- package/esm/base/react/useCancelablePromise.d.ts +17 -11
- package/esm/base/react/useCancelablePromise.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromise.js +9 -3
- package/esm/base/react/useCancelablePromise.js.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.d.ts +4 -2
- package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.js +5 -3
- package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/esm/base/results/dataAccess.d.ts +29 -8
- package/esm/base/results/dataAccess.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.d.ts +4 -1
- package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.js +4 -1
- package/esm/base/results/dataAccessConfig.js.map +1 -1
- package/esm/base/results/facade.d.ts +8 -2
- package/esm/base/results/facade.d.ts.map +1 -1
- package/esm/base/results/facade.js +9 -3
- package/esm/base/results/facade.js.map +1 -1
- package/esm/base/results/internal/definitionMethods.d.ts +1 -1
- package/esm/base/results/internal/definitionMethods.js +1 -1
- package/esm/base/results/internal/resultDataMethods.d.ts +1 -1
- package/esm/base/results/internal/resultMetaMethods.d.ts +1 -1
- package/esm/base/results/internal/resultMetaMethods.js +1 -1
- package/esm/base/vis/DrillEvents.d.ts +2 -0
- package/esm/base/vis/DrillEvents.d.ts.map +1 -1
- package/esm/base/vis/DrillEvents.js.map +1 -1
- package/esm/base/vis/VisualizationProps.d.ts +11 -4
- package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
- package/esm/base/vis/VisualizationProps.js +1 -1
- package/esm/execution/Execute.d.ts +34 -18
- package/esm/execution/Execute.d.ts.map +1 -1
- package/esm/execution/Execute.js +6 -4
- package/esm/execution/Execute.js.map +1 -1
- package/esm/execution/ExecuteInsight.d.ts +47 -16
- package/esm/execution/ExecuteInsight.d.ts.map +1 -1
- package/esm/execution/ExecuteInsight.js +7 -5
- package/esm/execution/ExecuteInsight.js.map +1 -1
- package/esm/execution/RawExecute.d.ts +19 -7
- package/esm/execution/RawExecute.d.ts.map +1 -1
- package/esm/execution/RawExecute.js +2 -1
- package/esm/execution/RawExecute.js.map +1 -1
- package/esm/execution/createExecution.d.ts +8 -5
- package/esm/execution/createExecution.d.ts.map +1 -1
- package/esm/execution/createExecution.js +4 -6
- package/esm/execution/createExecution.js.map +1 -1
- package/esm/execution/useDataExport.d.ts +5 -3
- package/esm/execution/useDataExport.d.ts.map +1 -1
- package/esm/execution/useDataExport.js +3 -1
- package/esm/execution/useDataExport.js.map +1 -1
- package/esm/execution/useDataView.d.ts +5 -0
- package/esm/execution/useDataView.d.ts.map +1 -1
- package/esm/execution/useDataView.js +3 -0
- package/esm/execution/useDataView.js.map +1 -1
- package/esm/execution/useExecution.d.ts +16 -8
- package/esm/execution/useExecution.d.ts.map +1 -1
- package/esm/execution/useExecution.js +3 -0
- package/esm/execution/useExecution.js.map +1 -1
- package/esm/execution/useExecutionDataView.d.ts +18 -12
- package/esm/execution/useExecutionDataView.d.ts.map +1 -1
- package/esm/execution/useExecutionDataView.js +1 -1
- package/esm/execution/useExecutionDataView.js.map +1 -1
- package/esm/execution/useInsightDataView.d.ts +29 -7
- package/esm/execution/useInsightDataView.d.ts.map +1 -1
- package/esm/execution/useInsightDataView.js +5 -4
- package/esm/execution/useInsightDataView.js.map +1 -1
- package/esm/execution/withExecution.d.ts +5 -4
- package/esm/execution/withExecution.d.ts.map +1 -1
- package/esm/execution/withExecution.js +1 -1
- package/esm/execution/withExecution.js.map +1 -1
- package/esm/execution/withExecutionLoading.d.ts +12 -7
- package/esm/execution/withExecutionLoading.d.ts.map +1 -1
- package/esm/execution/withExecutionLoading.js +1 -1
- package/esm/execution/withExecutionLoading.js.map +1 -1
- package/esm/kpi/Kpi.d.ts +13 -9
- package/esm/kpi/Kpi.d.ts.map +1 -1
- package/esm/kpi/Kpi.js +5 -3
- package/esm/kpi/Kpi.js.map +1 -1
- package/package.json +7 -7
package/dist/sdk-ui.d.ts
CHANGED
|
@@ -73,8 +73,10 @@ import { WrappedComponentProps } from 'react-intl';
|
|
|
73
73
|
/**
|
|
74
74
|
* Generate all possible combinations of arrays signatures for the union type.
|
|
75
75
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```
|
|
78
|
+
* IAttribute | IMeasure is resolved as IAttribute[] | IMeasure[] | (IAttribute | IMeasure)[]
|
|
79
|
+
* ```
|
|
78
80
|
*
|
|
79
81
|
* @public
|
|
80
82
|
*/
|
|
@@ -96,10 +98,12 @@ export declare type AnyPlaceholder<T = any> = IPlaceholder<T> | IComposedPlaceho
|
|
|
96
98
|
/**
|
|
97
99
|
* Generate all possible combinations of placeholder signatures for the union type.
|
|
98
100
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```
|
|
103
|
+
* IAttribute | IMeasure
|
|
104
|
+
* is resolved as
|
|
105
|
+
* AnyPlaceholder\<IAttribute\> | AnyPlaceholder\<IMeasure\> | AnyPlaceholder\<IAttribute | IMeasure\>
|
|
106
|
+
* ```
|
|
103
107
|
* @public
|
|
104
108
|
*/
|
|
105
109
|
export declare type AnyPlaceholderOf<T> = AnyPlaceholder<T> | PlaceholderOf<T>;
|
|
@@ -137,9 +141,10 @@ export declare class ArithmeticMeasureTitleFactory {
|
|
|
137
141
|
/**
|
|
138
142
|
* Wrap each member of union type in the array.
|
|
139
143
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```
|
|
146
|
+
* IAttribute | IMeasure | IFilter is resolved as IAttribute[] | IMeasure[] | IFilter[]
|
|
147
|
+
* ```
|
|
143
148
|
* @public
|
|
144
149
|
*/
|
|
145
150
|
export declare type ArrayOf<T> = T extends any ? T[] : never;
|
|
@@ -252,11 +257,13 @@ export declare class CancelledSdkError extends GoodDataSdkError {
|
|
|
252
257
|
}
|
|
253
258
|
|
|
254
259
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
* example
|
|
260
|
+
* Tool that exposes API that to look up measures, attributes, visualizations and other metadata elements
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* ```
|
|
258
264
|
* import catalog from './catalog.json';
|
|
259
265
|
* const C = new CatalogHelper(catalog);
|
|
266
|
+
* ```
|
|
260
267
|
*
|
|
261
268
|
* @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
|
|
262
269
|
* @public
|
|
@@ -339,8 +346,10 @@ export declare function composedFromUri(uri: string): IHeaderPredicate;
|
|
|
339
346
|
/**
|
|
340
347
|
* Get composed placeholder resolution context type.
|
|
341
348
|
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
349
|
+
* @example
|
|
350
|
+
* ```
|
|
351
|
+
* IComposedPlaceholder\<any, any, IResolutionContext\> is resolved as IResolutionContext
|
|
352
|
+
* ```
|
|
344
353
|
*
|
|
345
354
|
* @public
|
|
346
355
|
*/
|
|
@@ -352,9 +361,11 @@ export declare type ComposedPlaceholderResolutionContext<T> = T extends ICompose
|
|
|
352
361
|
export declare function convertDrillableItemsToPredicates(drillableItems: ExplicitDrill[]): IHeaderPredicate[];
|
|
353
362
|
|
|
354
363
|
/**
|
|
355
|
-
* Converts any error into an instance of {@link GoodDataSdkError}.
|
|
356
|
-
*
|
|
357
|
-
*
|
|
364
|
+
* Converts any error into an instance of {@link GoodDataSdkError}.
|
|
365
|
+
*
|
|
366
|
+
* @remarks
|
|
367
|
+
* The conversion logic right now focuses mostly on errors that are contractually specified in Analytical Backend SPI.
|
|
368
|
+
* All other unexpected errors are wrapped into an exception with the generic 'UNKNOWN_ERROR' code.
|
|
358
369
|
*
|
|
359
370
|
* Instances of GoodDataSdkError are returned as-is and are not subject to any processing.
|
|
360
371
|
*
|
|
@@ -390,7 +401,10 @@ export declare function createIntlMock(customMessages?: {}, locale?: string): In
|
|
|
390
401
|
|
|
391
402
|
/**
|
|
392
403
|
* Creates value formatter that uses `@gooddata/numberjs` to format raw measure values according
|
|
393
|
-
* to the format string.
|
|
404
|
+
* to the format string.
|
|
405
|
+
*
|
|
406
|
+
* @remarks
|
|
407
|
+
* By default, the format will strip away all the coloring information and
|
|
394
408
|
* just return the value as string.
|
|
395
409
|
*
|
|
396
410
|
* @param separators - number separators to use. if not specified then `numberjs` defaults will be used
|
|
@@ -416,6 +430,7 @@ export declare type DataAccessConfig = {
|
|
|
416
430
|
* Data Point represents a value computed for particular data series, possibly sliced for additional
|
|
417
431
|
* set of attribute elements OR possibly being a total.
|
|
418
432
|
*
|
|
433
|
+
* @remarks
|
|
419
434
|
* Technically, DataPoint is the raw data value stored in the data view decorated with all the metadata
|
|
420
435
|
* there exists about that value.
|
|
421
436
|
*
|
|
@@ -569,8 +584,11 @@ export declare type DataSliceDescriptorMethods = {
|
|
|
569
584
|
};
|
|
570
585
|
|
|
571
586
|
/**
|
|
572
|
-
* Data slice name is specified using the result headers.
|
|
573
|
-
*
|
|
587
|
+
* Data slice name is specified using the result headers.
|
|
588
|
+
*
|
|
589
|
+
* @remarks
|
|
590
|
+
* The headers describe attribute elements (title+ID) for the slice. The slice MAY be for a total calculation,
|
|
591
|
+
* in which case the last header will be for the
|
|
574
592
|
* total.
|
|
575
593
|
*
|
|
576
594
|
* @public
|
|
@@ -611,7 +629,10 @@ export declare class DataTooLargeToDisplaySdkError extends GoodDataSdkError {
|
|
|
611
629
|
}
|
|
612
630
|
|
|
613
631
|
/**
|
|
614
|
-
*
|
|
632
|
+
* Wrapper for {@link @gooddata/sdk-backend-spi#IDataView}.
|
|
633
|
+
*
|
|
634
|
+
* @remarks
|
|
635
|
+
* This provides various convenience methods to work with data and metadata stored inside
|
|
615
636
|
* the provided instance of {@link @gooddata/sdk-backend-spi#IDataView}.
|
|
616
637
|
*
|
|
617
638
|
* The facade keeps an ephemeral state - such as calculated indexes on top of the headers in the {@link @gooddata/sdk-backend-spi#IDataView} -
|
|
@@ -642,7 +663,10 @@ export declare class DataViewFacade {
|
|
|
642
663
|
*/
|
|
643
664
|
static for(dataView: IDataView): DataViewFacade;
|
|
644
665
|
/**
|
|
645
|
-
* Creates a DataViewFacade with provided execution result.
|
|
666
|
+
* Creates a DataViewFacade with provided execution result.
|
|
667
|
+
*
|
|
668
|
+
* @remarks
|
|
669
|
+
* Only use this when execution result is unable to load data and some
|
|
646
670
|
* form of DataViewFacade is still needed. Beware that the calculated data view is empty after the creation. Only execution
|
|
647
671
|
* definition and result is defined.
|
|
648
672
|
*
|
|
@@ -793,8 +817,10 @@ export declare const ErrorCodes: {
|
|
|
793
817
|
};
|
|
794
818
|
|
|
795
819
|
/**
|
|
796
|
-
*
|
|
797
|
-
*
|
|
820
|
+
* Component that renders a default error message.
|
|
821
|
+
*
|
|
822
|
+
* @remarks
|
|
823
|
+
* See {@link http://sdk.gooddata.com/gooddata-ui/docs/error_component.html | ErrorComponent}
|
|
798
824
|
*
|
|
799
825
|
* @public
|
|
800
826
|
*/
|
|
@@ -804,8 +830,10 @@ export declare class ErrorComponent extends React_2.Component<IErrorProps> {
|
|
|
804
830
|
}
|
|
805
831
|
|
|
806
832
|
/**
|
|
807
|
-
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
808
|
-
*
|
|
833
|
+
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
834
|
+
*
|
|
835
|
+
* @remarks
|
|
836
|
+
* It is aligned with the `DataAccess` infrastructure which exposes the underlying data as data series that can be
|
|
809
837
|
* optionally sliced by additional attributes.
|
|
810
838
|
*
|
|
811
839
|
* Once the executor finishes, the {@link DataViewFacade.data} method will expose the data as series and
|
|
@@ -813,7 +841,7 @@ export declare class ErrorComponent extends React_2.Component<IErrorProps> {
|
|
|
813
841
|
* Note that if the resulting data is empty this will NOT throw a NoDataError. It is the responsibility
|
|
814
842
|
* of the child component to handle that if they need to.
|
|
815
843
|
*
|
|
816
|
-
*
|
|
844
|
+
* See {@link IDataAccessMethods} for additional documentation
|
|
817
845
|
* @public
|
|
818
846
|
*/
|
|
819
847
|
export declare const Execute: (props: IExecuteProps) => JSX.Element;
|
|
@@ -821,12 +849,14 @@ export declare const Execute: (props: IExecuteProps) => JSX.Element;
|
|
|
821
849
|
/**
|
|
822
850
|
* Gets data for a specific stored insight.
|
|
823
851
|
*
|
|
824
|
-
* @
|
|
852
|
+
* @public
|
|
825
853
|
*/
|
|
826
854
|
export declare const ExecuteInsight: React_2.ComponentType<IExecuteInsightProps>;
|
|
827
855
|
|
|
828
856
|
/**
|
|
829
857
|
* Drillable item reference or predicate that enables insight / kpi drilling if it matches some attribute or measure of the insight / kpi.
|
|
858
|
+
*
|
|
859
|
+
* @remarks
|
|
830
860
|
* You can use {@link @gooddata/sdk-ui#HeaderPredicates} factory functions to create predicates,
|
|
831
861
|
* or specify reference to the identifier / uri of the target attribute / measure using {@link @gooddata/sdk-ui#IDrillableItem} definition.
|
|
832
862
|
*
|
|
@@ -887,14 +917,17 @@ export declare function fireDrillEvent(drillEventFunction: IDrillEventCallback,
|
|
|
887
917
|
|
|
888
918
|
/**
|
|
889
919
|
* Flatten array type.
|
|
920
|
+
*
|
|
921
|
+
* @remarks
|
|
890
922
|
* If the type is not an array, return the same type.
|
|
891
923
|
* Works only for 1 level, nested array types are not recursively flattened.
|
|
892
924
|
*
|
|
893
|
-
*
|
|
894
|
-
*
|
|
895
|
-
*
|
|
896
|
-
*
|
|
897
|
-
*
|
|
925
|
+
* @example
|
|
926
|
+
* ```
|
|
927
|
+
* number[] is resolved as number
|
|
928
|
+
* string[][] is resolved as string[]
|
|
929
|
+
* string is resolved as string
|
|
930
|
+
* ```
|
|
898
931
|
* @public
|
|
899
932
|
*/
|
|
900
933
|
export declare type Flatten<T> = T extends Array<infer A> ? A : T;
|
|
@@ -998,7 +1031,10 @@ export declare abstract class GoodDataSdkError extends Error {
|
|
|
998
1031
|
*/
|
|
999
1032
|
getCause(): any | undefined;
|
|
1000
1033
|
/**
|
|
1001
|
-
* Error code for this exception.
|
|
1034
|
+
* Error code for this exception.
|
|
1035
|
+
*
|
|
1036
|
+
* @remarks
|
|
1037
|
+
* This can be used to identify exact type of exception.
|
|
1002
1038
|
*/
|
|
1003
1039
|
getErrorCode(): string;
|
|
1004
1040
|
}
|
|
@@ -1162,8 +1198,9 @@ export declare interface IClientWorkspaceIdentifiers {
|
|
|
1162
1198
|
*/
|
|
1163
1199
|
export declare interface IClientWorkspaceProviderCoreProps {
|
|
1164
1200
|
/**
|
|
1165
|
-
*
|
|
1201
|
+
* Specify an instance of the analytical backend instance to work with.
|
|
1166
1202
|
*
|
|
1203
|
+
* @remarks
|
|
1167
1204
|
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
1168
1205
|
*/
|
|
1169
1206
|
backend?: IAnalyticalBackend;
|
|
@@ -1186,6 +1223,7 @@ export declare interface IClientWorkspaceProviderWithClientAndDataProductProps e
|
|
|
1186
1223
|
/**
|
|
1187
1224
|
* Specify the data product identifier to use to obtain the LCM context.
|
|
1188
1225
|
*
|
|
1226
|
+
* @remarks
|
|
1189
1227
|
* Note: another option is to specify workspace prop, and then data product identifier will be resolved from it.
|
|
1190
1228
|
*/
|
|
1191
1229
|
dataProduct: string;
|
|
@@ -1204,6 +1242,7 @@ export declare interface IClientWorkspaceProviderWithWorkspaceProps extends ICli
|
|
|
1204
1242
|
/**
|
|
1205
1243
|
* Specify the workspace to use to obtain the LCM context.
|
|
1206
1244
|
*
|
|
1245
|
+
* @remarks
|
|
1207
1246
|
* Note: another option is to specify dataProduct and client props, and then workspace will be resolved from them.
|
|
1208
1247
|
*/
|
|
1209
1248
|
workspace: string;
|
|
@@ -1227,6 +1266,8 @@ export declare interface IColorsData {
|
|
|
1227
1266
|
|
|
1228
1267
|
/**
|
|
1229
1268
|
* Represents placeholder composed from other placeholders.
|
|
1269
|
+
*
|
|
1270
|
+
* @remarks
|
|
1230
1271
|
* You can perform computation on top of resolved placeholder values.
|
|
1231
1272
|
* Composed placeholders accepts also other composed placeholders as an input.
|
|
1232
1273
|
*
|
|
@@ -1245,8 +1286,11 @@ export declare interface IComposedPlaceholder<TReturn, TValue extends any[], TCo
|
|
|
1245
1286
|
}
|
|
1246
1287
|
|
|
1247
1288
|
/**
|
|
1248
|
-
* Defines methods to access data in the data view.
|
|
1249
|
-
*
|
|
1289
|
+
* Defines methods to access data in the data view.
|
|
1290
|
+
*
|
|
1291
|
+
* @remarks
|
|
1292
|
+
* These methods and types are recommended in favor of directly accessing the underlying data,
|
|
1293
|
+
* headers and descriptors.
|
|
1250
1294
|
*
|
|
1251
1295
|
* @public
|
|
1252
1296
|
*/
|
|
@@ -1265,6 +1309,7 @@ export declare interface IDataAccessMethods {
|
|
|
1265
1309
|
* Data series is a sequence of data points that are all computed from a single measure, optionally scoped for
|
|
1266
1310
|
* particular attribute elements.
|
|
1267
1311
|
*
|
|
1312
|
+
* @remarks
|
|
1268
1313
|
* In other words, data series allows iterating over two dimensional data view _along_ the dimension which contains
|
|
1269
1314
|
* the measures (via inclusion of MeasureGroupIdentifier).
|
|
1270
1315
|
*
|
|
@@ -1296,7 +1341,10 @@ export declare interface IDataSeries extends DataSeriesDescriptorMethods, Iterab
|
|
|
1296
1341
|
}
|
|
1297
1342
|
|
|
1298
1343
|
/**
|
|
1299
|
-
* An iterable collection of data series.
|
|
1344
|
+
* An iterable collection of data series.
|
|
1345
|
+
*
|
|
1346
|
+
* @remarks
|
|
1347
|
+
* The collection additionally includes basic information about the
|
|
1300
1348
|
* origin of the data series that can be iterated - their number, measures they were calculated from and
|
|
1301
1349
|
* optionally the scoping attributes.
|
|
1302
1350
|
*
|
|
@@ -1310,6 +1358,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1310
1358
|
/**
|
|
1311
1359
|
* Descriptors of measures that are used in the data series.
|
|
1312
1360
|
*
|
|
1361
|
+
* @remarks
|
|
1313
1362
|
* Note that the number of measures MAY differ from number of data series - that is because the data series may be
|
|
1314
1363
|
* created for multiple scopes of each measure (e.g. measure X calculated for attribute element A, then same
|
|
1315
1364
|
* measure calculated for attribute element B etc)
|
|
@@ -1318,6 +1367,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1318
1367
|
/**
|
|
1319
1368
|
* Definitions of measures which were sent to execution and resulted in the data series.
|
|
1320
1369
|
*
|
|
1370
|
+
* @remarks
|
|
1321
1371
|
* Order of appearance matches the order of appearance in the `fromMeasures` array.
|
|
1322
1372
|
*/
|
|
1323
1373
|
readonly fromMeasuresDef: IMeasure[];
|
|
@@ -1329,6 +1379,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1329
1379
|
* Definitions of attributes which were sent to execution and resulted in the data series with scoped
|
|
1330
1380
|
* measure values.
|
|
1331
1381
|
*
|
|
1382
|
+
* @remarks
|
|
1332
1383
|
* Order of apperance matches the order of appreance in the `scopingAttributes` array.
|
|
1333
1384
|
*/
|
|
1334
1385
|
readonly scopingAttributesDef?: IAttribute[];
|
|
@@ -1340,8 +1391,10 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1340
1391
|
*/
|
|
1341
1392
|
allForMeasure(localIdOrMeasure: string | IMeasure): Iterable<IDataSeries>;
|
|
1342
1393
|
/**
|
|
1343
|
-
* Returns first-found data series for the provided measure.
|
|
1344
|
-
*
|
|
1394
|
+
* Returns first-found data series for the provided measure.
|
|
1395
|
+
*
|
|
1396
|
+
* @remarks
|
|
1397
|
+
* This is a 'get-or-die' method and will throw in case data series from the provided measure is not located.
|
|
1345
1398
|
*
|
|
1346
1399
|
* @param localIdOrMeasure - local id of measure or measure object to get local id from
|
|
1347
1400
|
* @returns data series
|
|
@@ -1351,6 +1404,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1351
1404
|
/**
|
|
1352
1405
|
* Returns all data series in an array.
|
|
1353
1406
|
*
|
|
1407
|
+
* @remarks
|
|
1354
1408
|
* Note: if you are looking for a subset of measures, always prefer using the first-class methods
|
|
1355
1409
|
* {@link IDataSeriesCollection#allForMeasure} and {@link IDataSeriesCollection#firstForMeasure} in favor of getting the array and filtering yourself.
|
|
1356
1410
|
*
|
|
@@ -1373,6 +1427,7 @@ export declare interface IDataSet {
|
|
|
1373
1427
|
* Data slice is a sequence of data points that are all computed for a particular attribute elements and/or totals but
|
|
1374
1428
|
* different data series.
|
|
1375
1429
|
*
|
|
1430
|
+
* @remarks
|
|
1376
1431
|
* In other words, data slice allows iterating over two dimension data view _across_ the dimension which contains
|
|
1377
1432
|
* the measures.
|
|
1378
1433
|
*
|
|
@@ -1404,7 +1459,10 @@ export declare interface IDataSlice extends DataSliceDescriptorMethods, Iterable
|
|
|
1404
1459
|
}
|
|
1405
1460
|
|
|
1406
1461
|
/**
|
|
1407
|
-
* An iterable collection of data slices.
|
|
1462
|
+
* An iterable collection of data slices.
|
|
1463
|
+
*
|
|
1464
|
+
* @remarks
|
|
1465
|
+
* The collection additionally includes basic information about the
|
|
1408
1466
|
* origin of the data slices that can be iterated - their number and attributes or totals that were used
|
|
1409
1467
|
* for slicing.
|
|
1410
1468
|
*
|
|
@@ -1433,6 +1491,7 @@ export declare interface IDataSliceCollection extends Iterable<IDataSlice> {
|
|
|
1433
1491
|
/**
|
|
1434
1492
|
* Common props for visualization of data computed by the analytical backend.
|
|
1435
1493
|
*
|
|
1494
|
+
* @remarks
|
|
1436
1495
|
* Data visualization contains prepared execution which will return data that needs to be visualized.
|
|
1437
1496
|
*
|
|
1438
1497
|
* @public
|
|
@@ -1665,12 +1724,13 @@ export declare interface IExecuteErrorComponentProps {
|
|
|
1665
1724
|
|
|
1666
1725
|
/**
|
|
1667
1726
|
* Props of the {@link ExecuteInsight} component.
|
|
1668
|
-
* @
|
|
1727
|
+
* @public
|
|
1669
1728
|
*/
|
|
1670
1729
|
export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecuteInsightProps> {
|
|
1671
1730
|
/**
|
|
1672
1731
|
* Backend to execute against.
|
|
1673
1732
|
*
|
|
1733
|
+
* @remarks
|
|
1674
1734
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
1675
1735
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
1676
1736
|
*/
|
|
@@ -1678,6 +1738,7 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1678
1738
|
/**
|
|
1679
1739
|
* Workspace in whose context to perform the execution.
|
|
1680
1740
|
*
|
|
1741
|
+
* @remarks
|
|
1681
1742
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
1682
1743
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
1683
1744
|
*/
|
|
@@ -1687,24 +1748,26 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1687
1748
|
*/
|
|
1688
1749
|
insight: ObjRef;
|
|
1689
1750
|
/**
|
|
1690
|
-
*
|
|
1751
|
+
* Modify sorts on prepared insight execution, before it's executed.
|
|
1691
1752
|
*/
|
|
1692
1753
|
sorts?: ISortItem[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => ISortItem[]);
|
|
1693
1754
|
/**
|
|
1694
|
-
*
|
|
1755
|
+
* Modify dimensions on prepared insight execution, before it's executed.
|
|
1695
1756
|
*/
|
|
1696
1757
|
dimensions?: IDimension[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => IDimension[]);
|
|
1697
1758
|
/**
|
|
1698
|
-
*
|
|
1759
|
+
* Modify date formatting on prepared insight execution, before it's executed.
|
|
1699
1760
|
*/
|
|
1700
1761
|
dateFormat?: string | ((def: IExecutionDefinition, props: IExecuteInsightProps) => string);
|
|
1701
1762
|
/**
|
|
1702
|
-
*
|
|
1763
|
+
* Filters to apply on server side.
|
|
1703
1764
|
*/
|
|
1704
1765
|
filters?: INullableFilter[];
|
|
1705
1766
|
/**
|
|
1706
|
-
*
|
|
1707
|
-
*
|
|
1767
|
+
* Name to use for files exported from this component.
|
|
1768
|
+
*
|
|
1769
|
+
* @remarks
|
|
1770
|
+
* If you do not specify this, then the componentName will be used instead.
|
|
1708
1771
|
*
|
|
1709
1772
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
1710
1773
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -1712,16 +1775,21 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1712
1775
|
*/
|
|
1713
1776
|
exportTitle?: string;
|
|
1714
1777
|
/**
|
|
1715
|
-
*
|
|
1716
|
-
*
|
|
1717
|
-
*
|
|
1778
|
+
* Informative name of the component.
|
|
1779
|
+
*
|
|
1780
|
+
* @remarks
|
|
1781
|
+
* This value is sent as telemetry information together with the actual execution request. We recommend to set this
|
|
1782
|
+
* because it can be useful for diagnostic purposes.
|
|
1718
1783
|
*
|
|
1719
1784
|
* Defaults 'Execute'.
|
|
1720
1785
|
*/
|
|
1721
1786
|
componentName?: string;
|
|
1722
1787
|
/**
|
|
1723
1788
|
* Specifies whether `Execute` should trigger execution and loading right after it is
|
|
1724
|
-
* mounted.
|
|
1789
|
+
* mounted.
|
|
1790
|
+
*
|
|
1791
|
+
* @remarks
|
|
1792
|
+
* If not specified defaults to `true`.
|
|
1725
1793
|
*
|
|
1726
1794
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
1727
1795
|
* to trigger the execution and loading.
|
|
@@ -1731,26 +1799,48 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1731
1799
|
* Specifies whether `Execute` should load all data from backend or just a particular window - specified by
|
|
1732
1800
|
* offset and size of the window.
|
|
1733
1801
|
*
|
|
1802
|
+
* @remarks
|
|
1734
1803
|
* If not specified, all data will be loaded.
|
|
1735
1804
|
*/
|
|
1736
1805
|
window?: DataViewWindow;
|
|
1737
1806
|
/**
|
|
1738
|
-
*
|
|
1739
|
-
*
|
|
1807
|
+
* Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
|
|
1808
|
+
*
|
|
1809
|
+
* Execution by reference means that the ExecuteInsight will ask analytical backend to compute results for an insight
|
|
1810
|
+
* which is stored on the backend by specifying link to the insight, additional filters and description how
|
|
1811
|
+
* to organize the data.
|
|
1812
|
+
*
|
|
1813
|
+
* Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
|
|
1814
|
+
* definition of what to compute.
|
|
1815
|
+
*
|
|
1816
|
+
* This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
|
|
1817
|
+
* and only allow computing data for set of insights created by admins.
|
|
1818
|
+
*
|
|
1819
|
+
* Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
|
|
1820
|
+
* this mode.
|
|
1821
|
+
*/
|
|
1822
|
+
executeByReference?: boolean;
|
|
1823
|
+
/**
|
|
1824
|
+
* Child component to which rendering is delegated.
|
|
1825
|
+
*
|
|
1826
|
+
* @remarks
|
|
1827
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
1740
1828
|
*
|
|
1741
1829
|
* @param executionResult - execution result, indicating state and/or results
|
|
1742
1830
|
*/
|
|
1743
1831
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
1744
1832
|
/**
|
|
1745
|
-
*
|
|
1833
|
+
* Provide component for rendering of the loading state.
|
|
1746
1834
|
*
|
|
1835
|
+
* @remarks
|
|
1747
1836
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1748
1837
|
* will be called only with a successful result.
|
|
1749
1838
|
*/
|
|
1750
1839
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
1751
1840
|
/**
|
|
1752
|
-
*
|
|
1841
|
+
* Provide component for rendering of the error state.
|
|
1753
1842
|
*
|
|
1843
|
+
* @remarks
|
|
1754
1844
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1755
1845
|
* will be called only with a successful result.
|
|
1756
1846
|
*/
|
|
@@ -1771,6 +1861,7 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1771
1861
|
/**
|
|
1772
1862
|
* Backend to execute against.
|
|
1773
1863
|
*
|
|
1864
|
+
* @remarks
|
|
1774
1865
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
1775
1866
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
1776
1867
|
*/
|
|
@@ -1778,6 +1869,7 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1778
1869
|
/**
|
|
1779
1870
|
* Workspace in whose context to perform the execution.
|
|
1780
1871
|
*
|
|
1872
|
+
* @remarks
|
|
1781
1873
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
1782
1874
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
1783
1875
|
*/
|
|
@@ -1788,28 +1880,30 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1788
1880
|
*/
|
|
1789
1881
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
1790
1882
|
/**
|
|
1791
|
-
*
|
|
1883
|
+
* Slice all data series by elements of these attributes.
|
|
1792
1884
|
*/
|
|
1793
1885
|
slicesBy?: AttributesOrPlaceholders;
|
|
1794
1886
|
/**
|
|
1795
|
-
*
|
|
1887
|
+
* Include these totals among the data slices.
|
|
1796
1888
|
*/
|
|
1797
1889
|
totals?: TotalsOrPlaceholders;
|
|
1798
1890
|
/**
|
|
1799
|
-
*
|
|
1891
|
+
* Filters to apply on server side.
|
|
1800
1892
|
*/
|
|
1801
1893
|
filters?: NullableFiltersOrPlaceholders;
|
|
1802
1894
|
/**
|
|
1803
|
-
*
|
|
1895
|
+
* Sorting to apply on server side.
|
|
1804
1896
|
*/
|
|
1805
1897
|
sortBy?: SortsOrPlaceholders;
|
|
1806
1898
|
/**
|
|
1807
|
-
*
|
|
1899
|
+
* Resolution context for composed placeholders.
|
|
1808
1900
|
*/
|
|
1809
1901
|
placeholdersResolutionContext?: any;
|
|
1810
1902
|
/**
|
|
1811
|
-
*
|
|
1812
|
-
*
|
|
1903
|
+
* Name to use for files exported from this component.
|
|
1904
|
+
*
|
|
1905
|
+
* @remarks
|
|
1906
|
+
* If you do not specify this, then the componentName will be used instead.
|
|
1813
1907
|
*
|
|
1814
1908
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
1815
1909
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -1817,16 +1911,21 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1817
1911
|
*/
|
|
1818
1912
|
exportTitle?: string;
|
|
1819
1913
|
/**
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1914
|
+
* Informative name of the component.
|
|
1915
|
+
*
|
|
1916
|
+
* @remarks
|
|
1917
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
1918
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
1823
1919
|
*
|
|
1824
1920
|
* Defaults 'Execute'.
|
|
1825
1921
|
*/
|
|
1826
1922
|
componentName?: string;
|
|
1827
1923
|
/**
|
|
1828
1924
|
* Specifies whether {@link Execute} should trigger execution and loading right after it is
|
|
1829
|
-
* mounted.
|
|
1925
|
+
* mounted.
|
|
1926
|
+
*
|
|
1927
|
+
* @remarks
|
|
1928
|
+
* If not specified defaults to `true`.
|
|
1830
1929
|
*
|
|
1831
1930
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
1832
1931
|
* to trigger the execution and loading.
|
|
@@ -1836,26 +1935,31 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1836
1935
|
* Specifies whether {@link Execute} should load all data from backend or just a particular window - specified by
|
|
1837
1936
|
* offset and size of the window.
|
|
1838
1937
|
*
|
|
1938
|
+
* @remarks
|
|
1839
1939
|
* If not specified, all data will be loaded.
|
|
1840
1940
|
*/
|
|
1841
1941
|
window?: DataViewWindow;
|
|
1842
1942
|
/**
|
|
1843
|
-
* Child component to which rendering is delegated.
|
|
1844
|
-
*
|
|
1943
|
+
* Child component to which rendering is delegated.
|
|
1944
|
+
*
|
|
1945
|
+
* @remarks
|
|
1946
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
1845
1947
|
*
|
|
1846
1948
|
* @param executionResult - execution result, indicating state and/or results
|
|
1847
1949
|
*/
|
|
1848
1950
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
1849
1951
|
/**
|
|
1850
|
-
*
|
|
1952
|
+
* Provide component for rendering of the loading state.
|
|
1851
1953
|
*
|
|
1954
|
+
* @remarks
|
|
1852
1955
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1853
1956
|
* will be called only with a successful result.
|
|
1854
1957
|
*/
|
|
1855
1958
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
1856
1959
|
/**
|
|
1857
|
-
*
|
|
1960
|
+
* Provide component for rendering of the error state.
|
|
1858
1961
|
*
|
|
1962
|
+
* @remarks
|
|
1859
1963
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1860
1964
|
* will be called only with a successful result.
|
|
1861
1965
|
*/
|
|
@@ -1863,7 +1967,7 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1863
1967
|
}
|
|
1864
1968
|
|
|
1865
1969
|
/**
|
|
1866
|
-
* @
|
|
1970
|
+
* @public
|
|
1867
1971
|
*/
|
|
1868
1972
|
export declare interface IExecutionConfiguration {
|
|
1869
1973
|
/**
|
|
@@ -1872,29 +1976,31 @@ export declare interface IExecutionConfiguration {
|
|
|
1872
1976
|
*/
|
|
1873
1977
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
1874
1978
|
/**
|
|
1875
|
-
*
|
|
1979
|
+
* Slice all data series by elements of these attributes.
|
|
1876
1980
|
*/
|
|
1877
1981
|
slicesBy?: AttributesOrPlaceholders;
|
|
1878
1982
|
/**
|
|
1879
|
-
*
|
|
1983
|
+
* Include these totals among the data slices.
|
|
1880
1984
|
*/
|
|
1881
1985
|
totals?: TotalsOrPlaceholders;
|
|
1882
1986
|
/**
|
|
1883
|
-
*
|
|
1987
|
+
* Filters to apply on server side.
|
|
1884
1988
|
*/
|
|
1885
1989
|
filters?: NullableFiltersOrPlaceholders;
|
|
1886
1990
|
/**
|
|
1887
|
-
*
|
|
1991
|
+
* Sorting to apply on server side.
|
|
1888
1992
|
*/
|
|
1889
1993
|
sortBy?: SortsOrPlaceholders;
|
|
1890
1994
|
/**
|
|
1891
|
-
*
|
|
1995
|
+
* Resolution context for composed placeholders.
|
|
1892
1996
|
*/
|
|
1893
1997
|
placeholdersResolutionContext?: any;
|
|
1894
1998
|
/**
|
|
1895
|
-
*
|
|
1896
|
-
*
|
|
1897
|
-
*
|
|
1999
|
+
* Informative name of the component.
|
|
2000
|
+
*
|
|
2001
|
+
* @remarks
|
|
2002
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
2003
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
1898
2004
|
*
|
|
1899
2005
|
* Defaults 'Execute'.
|
|
1900
2006
|
*/
|
|
@@ -1904,7 +2010,7 @@ export declare interface IExecutionConfiguration {
|
|
|
1904
2010
|
/**
|
|
1905
2011
|
* Methods to work with execution definition.
|
|
1906
2012
|
*
|
|
1907
|
-
* @
|
|
2013
|
+
* @public
|
|
1908
2014
|
*/
|
|
1909
2015
|
export declare interface IExecutionDefinitionMethods {
|
|
1910
2016
|
/**
|
|
@@ -2015,8 +2121,12 @@ export declare interface IExtendedExportConfig extends IExportConfig {
|
|
|
2015
2121
|
export declare function ignoreTitlesForSimpleMeasures<T extends IInsightDefinition>(insight: T): T;
|
|
2016
2122
|
|
|
2017
2123
|
/**
|
|
2018
|
-
* A function called for {@link IMappingHeader} instances.
|
|
2124
|
+
* A function called for {@link IMappingHeader} instances.
|
|
2125
|
+
*
|
|
2126
|
+
* @remarks
|
|
2127
|
+
* When the function returns true, it means the IMappingHeader is matched.
|
|
2019
2128
|
* See {@link https://sdk.gooddata.com/gooddata-ui/docs/ht_create_predicates.html | documentation} for more information.
|
|
2129
|
+
*
|
|
2020
2130
|
* @public
|
|
2021
2131
|
*/
|
|
2022
2132
|
export declare type IHeaderPredicate = (header: IMappingHeader, context: IHeaderPredicateContext) => boolean;
|
|
@@ -2068,14 +2178,16 @@ export declare interface IIntlWrapperProps {
|
|
|
2068
2178
|
*/
|
|
2069
2179
|
export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps> {
|
|
2070
2180
|
/**
|
|
2071
|
-
*
|
|
2181
|
+
* Specify an instance of analytical backend instance to work with.
|
|
2072
2182
|
*
|
|
2183
|
+
* @remarks
|
|
2073
2184
|
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
2074
2185
|
*/
|
|
2075
2186
|
backend?: IAnalyticalBackend;
|
|
2076
2187
|
/**
|
|
2077
|
-
*
|
|
2188
|
+
* Specify workspace to work with.
|
|
2078
2189
|
*
|
|
2190
|
+
* @remarks
|
|
2079
2191
|
* Note: if you do not have a WorkspaceProvider above in the component tree, then you MUST specify the workspace.
|
|
2080
2192
|
*/
|
|
2081
2193
|
workspace?: string;
|
|
@@ -2084,24 +2196,24 @@ export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps>
|
|
|
2084
2196
|
*/
|
|
2085
2197
|
measure: IMeasure;
|
|
2086
2198
|
/**
|
|
2087
|
-
*
|
|
2199
|
+
* Specify filters to apply during calculation
|
|
2088
2200
|
*/
|
|
2089
2201
|
filters?: INullableFilter[];
|
|
2090
2202
|
/**
|
|
2091
|
-
*
|
|
2203
|
+
* Specify number separators to use when rendering (segment delimiters, decimal point character)
|
|
2092
2204
|
*/
|
|
2093
2205
|
separators?: ISeparators_2;
|
|
2094
2206
|
/**
|
|
2095
|
-
*
|
|
2207
|
+
* Specify locale to use for strings that the Kpi component may render (for instance when encountering
|
|
2096
2208
|
* errors).
|
|
2097
2209
|
*/
|
|
2098
2210
|
locale?: string;
|
|
2099
2211
|
/**
|
|
2100
|
-
*
|
|
2212
|
+
* Specify react component to render while the data is loading.
|
|
2101
2213
|
*/
|
|
2102
2214
|
LoadingComponent?: React_2.ComponentType<ILoadingProps>;
|
|
2103
2215
|
/**
|
|
2104
|
-
*
|
|
2216
|
+
* Specify react component to render if execution fails.
|
|
2105
2217
|
*/
|
|
2106
2218
|
ErrorComponent?: React_2.ComponentType<IErrorProps>;
|
|
2107
2219
|
}
|
|
@@ -2171,7 +2283,9 @@ export declare interface ILoadingState {
|
|
|
2171
2283
|
export declare type ILocale = "en-US" | "de-DE" | "es-ES" | "fr-FR" | "ja-JP" | "nl-NL" | "pt-BR" | "pt-PT" | "zh-Hans" | "ru-RU";
|
|
2172
2284
|
|
|
2173
2285
|
/**
|
|
2286
|
+
* @privateRemarks
|
|
2174
2287
|
* TODO: SDK8: remove this, replace with something more meaningful
|
|
2288
|
+
*
|
|
2175
2289
|
* @public
|
|
2176
2290
|
*/
|
|
2177
2291
|
export declare type IMappingHeader = IAttributeDescriptor | IResultAttributeHeader | IMeasureDescriptor | ITotalDescriptor;
|
|
@@ -2201,9 +2315,11 @@ export declare const IntlWrapper: React_2.FC<IIntlWrapperProps>;
|
|
|
2201
2315
|
|
|
2202
2316
|
/**
|
|
2203
2317
|
* Placeholder represents a reference to a specific part of the execution - attribute(s), measure(s), filter(s), sort(s) or total(s),
|
|
2204
|
-
* that may change the value at runtime.
|
|
2205
|
-
*
|
|
2206
|
-
*
|
|
2318
|
+
* that may change the value at runtime.
|
|
2319
|
+
*
|
|
2320
|
+
* @remarks
|
|
2321
|
+
* You can provide it to visualizations instead of the attributes/measures/filters/sorts/totals themselves,
|
|
2322
|
+
* placeholders will be replaced with the actual values on the background.
|
|
2207
2323
|
*
|
|
2208
2324
|
* This allows you:
|
|
2209
2325
|
* - share a reference to the same execution elements across multiple components.
|
|
@@ -2213,9 +2329,13 @@ export declare const IntlWrapper: React_2.FC<IIntlWrapperProps>;
|
|
|
2213
2329
|
*
|
|
2214
2330
|
* Placeholder values are living in React context and you can obtain/set their values by the following hooks:
|
|
2215
2331
|
* - {@link usePlaceholder}
|
|
2332
|
+
*
|
|
2216
2333
|
* - {@link usePlaceholders}
|
|
2334
|
+
*
|
|
2217
2335
|
* - {@link useComposedPlaceholder}
|
|
2336
|
+
*
|
|
2218
2337
|
* - {@link useResolveValueWithPlaceholders}
|
|
2338
|
+
*
|
|
2219
2339
|
* - {@link useResolveValuesWithPlaceholders}
|
|
2220
2340
|
*
|
|
2221
2341
|
* Note:
|
|
@@ -2240,12 +2360,14 @@ export declare type IPlaceholder<T> = {
|
|
|
2240
2360
|
export declare interface IPlaceholderOptions<T> {
|
|
2241
2361
|
/**
|
|
2242
2362
|
* By default, each placeholder has a unique generated id.
|
|
2243
|
-
*
|
|
2363
|
+
*
|
|
2364
|
+
* @remarks
|
|
2365
|
+
* You can provide id of the placeholder which can be useful for debugging.
|
|
2244
2366
|
* Please note that the id should be unique for all your placeholders.
|
|
2245
2367
|
*/
|
|
2246
2368
|
id?: string;
|
|
2247
2369
|
/**
|
|
2248
|
-
*
|
|
2370
|
+
* Provide function to validate the placeholder value.
|
|
2249
2371
|
*/
|
|
2250
2372
|
validate?: (value?: T) => void;
|
|
2251
2373
|
}
|
|
@@ -2289,12 +2411,15 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2289
2411
|
* Specifies whether {@link RawExecute} should load all data from backend or just a particular window - specified by
|
|
2290
2412
|
* offset and size of the window.
|
|
2291
2413
|
*
|
|
2414
|
+
* @remarks
|
|
2292
2415
|
* If not specified, all data will be loaded.
|
|
2293
2416
|
*/
|
|
2294
2417
|
window?: DataViewWindow;
|
|
2295
2418
|
/**
|
|
2296
|
-
*
|
|
2297
|
-
*
|
|
2419
|
+
* Name to use for files exported from this component.
|
|
2420
|
+
*
|
|
2421
|
+
* @remarks
|
|
2422
|
+
* If you do not specify this, then the 'RawExecute' will be used instead.
|
|
2298
2423
|
*
|
|
2299
2424
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
2300
2425
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -2303,28 +2428,36 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2303
2428
|
exportTitle?: string;
|
|
2304
2429
|
/**
|
|
2305
2430
|
* Indicates whether the executor should trigger execution and loading right after it is
|
|
2306
|
-
* mounted.
|
|
2431
|
+
* mounted.
|
|
2432
|
+
*
|
|
2433
|
+
* @remarks
|
|
2434
|
+
* If not specified defaults to `true`.
|
|
2307
2435
|
*
|
|
2308
2436
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
2309
2437
|
* to trigger the execution and loading.
|
|
2310
2438
|
*/
|
|
2311
2439
|
loadOnMount?: boolean;
|
|
2312
2440
|
/**
|
|
2313
|
-
* Child component to which rendering is delegated.
|
|
2314
|
-
*
|
|
2441
|
+
* Child component to which rendering is delegated.
|
|
2442
|
+
*
|
|
2443
|
+
* @remarks
|
|
2444
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
2315
2445
|
*
|
|
2316
2446
|
* @param executionResult - execution result, indicating state and/or results
|
|
2317
2447
|
*/
|
|
2318
2448
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
2319
2449
|
/**
|
|
2320
|
-
*
|
|
2450
|
+
* Provide component for rendering of the loading state.
|
|
2321
2451
|
*
|
|
2452
|
+
* @remarks
|
|
2322
2453
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
2323
2454
|
* will be called only with a successful result.
|
|
2324
2455
|
*/
|
|
2325
2456
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
2326
2457
|
/**
|
|
2327
|
-
*
|
|
2458
|
+
* Provide component for rendering of the error state.
|
|
2459
|
+
*
|
|
2460
|
+
* @remarks
|
|
2328
2461
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
2329
2462
|
* will be called only with a successful result.
|
|
2330
2463
|
*/
|
|
@@ -2334,7 +2467,7 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2334
2467
|
/**
|
|
2335
2468
|
* Methods to access data and totals in a result.
|
|
2336
2469
|
*
|
|
2337
|
-
* @
|
|
2470
|
+
* @public
|
|
2338
2471
|
*/
|
|
2339
2472
|
export declare interface IResultDataMethods {
|
|
2340
2473
|
/**
|
|
@@ -2389,7 +2522,7 @@ export declare interface IResultDataMethods {
|
|
|
2389
2522
|
/**
|
|
2390
2523
|
* Methods to access result metadata - dimension descriptors and result headers.
|
|
2391
2524
|
*
|
|
2392
|
-
* @
|
|
2525
|
+
* @public
|
|
2393
2526
|
*/
|
|
2394
2527
|
export declare interface IResultMetaMethods {
|
|
2395
2528
|
/**
|
|
@@ -2680,6 +2813,7 @@ export declare interface ITranslationsCustomizationProviderProps {
|
|
|
2680
2813
|
/**
|
|
2681
2814
|
* Analytical backend, from which the ThemeProvider will obtain selected theme object
|
|
2682
2815
|
*
|
|
2816
|
+
* @remarks
|
|
2683
2817
|
* If you do not specify instance of analytical backend using this prop, then you MUST have
|
|
2684
2818
|
* BackendProvider up in the component tree.
|
|
2685
2819
|
*/
|
|
@@ -2687,6 +2821,7 @@ export declare interface ITranslationsCustomizationProviderProps {
|
|
|
2687
2821
|
/**
|
|
2688
2822
|
* Identifier of analytical workspace, from which the ThemeProvider will obtain the selected theme identifier
|
|
2689
2823
|
*
|
|
2824
|
+
* @remarks
|
|
2690
2825
|
* If you do not specify workspace identifier, then you MUST have WorkspaceProvider up in the
|
|
2691
2826
|
* component tree.
|
|
2692
2827
|
*/
|
|
@@ -2712,6 +2847,7 @@ export declare type ITranslationsProviderProps = ITranslationsProviderOwnProps &
|
|
|
2712
2847
|
export declare type IUseComposedPlaceholderHook<T extends IComposedPlaceholder<any, any, any>> = (resolutionContext: ComposedPlaceholderResolutionContext<T>) => PlaceholderResolvedValue<T>;
|
|
2713
2848
|
|
|
2714
2849
|
/**
|
|
2850
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
2715
2851
|
* @beta
|
|
2716
2852
|
*/
|
|
2717
2853
|
export declare interface IUseExecutionConfig {
|
|
@@ -2721,29 +2857,31 @@ export declare interface IUseExecutionConfig {
|
|
|
2721
2857
|
*/
|
|
2722
2858
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
2723
2859
|
/**
|
|
2724
|
-
*
|
|
2860
|
+
* Slice all data series by elements of these attributes.
|
|
2725
2861
|
*/
|
|
2726
2862
|
slicesBy?: AttributesOrPlaceholders;
|
|
2727
2863
|
/**
|
|
2728
|
-
*
|
|
2864
|
+
* Include these totals among the data slices.
|
|
2729
2865
|
*/
|
|
2730
2866
|
totals?: TotalsOrPlaceholders;
|
|
2731
2867
|
/**
|
|
2732
|
-
*
|
|
2868
|
+
* Filters to apply on server side.
|
|
2733
2869
|
*/
|
|
2734
2870
|
filters?: NullableFiltersOrPlaceholders;
|
|
2735
2871
|
/**
|
|
2736
|
-
*
|
|
2872
|
+
* Sorting to apply on server side.
|
|
2737
2873
|
*/
|
|
2738
2874
|
sortBy?: SortsOrPlaceholders;
|
|
2739
2875
|
/**
|
|
2740
|
-
*
|
|
2876
|
+
* Resolution context for composed placeholders.
|
|
2741
2877
|
*/
|
|
2742
2878
|
placeholdersResolutionContext?: any;
|
|
2743
2879
|
/**
|
|
2744
|
-
*
|
|
2745
|
-
*
|
|
2746
|
-
*
|
|
2880
|
+
* Informative name of the component.
|
|
2881
|
+
*
|
|
2882
|
+
* @remarks
|
|
2883
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
2884
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
2747
2885
|
*
|
|
2748
2886
|
* Defaults 'Execute'.
|
|
2749
2887
|
*/
|
|
@@ -2751,6 +2889,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2751
2889
|
/**
|
|
2752
2890
|
* Backend to work with.
|
|
2753
2891
|
*
|
|
2892
|
+
* @remarks
|
|
2754
2893
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2755
2894
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2756
2895
|
*/
|
|
@@ -2758,6 +2897,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2758
2897
|
/**
|
|
2759
2898
|
* Workspace where execution should be executed.
|
|
2760
2899
|
*
|
|
2900
|
+
* @remarks
|
|
2761
2901
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2762
2902
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2763
2903
|
*/
|
|
@@ -2765,7 +2905,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2765
2905
|
}
|
|
2766
2906
|
|
|
2767
2907
|
/**
|
|
2768
|
-
* @
|
|
2908
|
+
* @public
|
|
2769
2909
|
*/
|
|
2770
2910
|
export declare interface IUseExecutionDataViewConfig {
|
|
2771
2911
|
/**
|
|
@@ -2773,13 +2913,16 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2773
2913
|
*/
|
|
2774
2914
|
execution?: IPreparedExecution | IExecutionConfiguration;
|
|
2775
2915
|
/**
|
|
2776
|
-
*
|
|
2916
|
+
* You can define only a specific "window" of data to load.
|
|
2917
|
+
*
|
|
2918
|
+
* @remarks
|
|
2777
2919
|
* This is useful if you want to page data.
|
|
2778
2920
|
*/
|
|
2779
2921
|
window?: DataViewWindow;
|
|
2780
2922
|
/**
|
|
2781
2923
|
* Backend to work with.
|
|
2782
2924
|
*
|
|
2925
|
+
* @remarks
|
|
2783
2926
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2784
2927
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2785
2928
|
*/
|
|
@@ -2787,6 +2930,7 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2787
2930
|
/**
|
|
2788
2931
|
* Workspace where execution should be executed.
|
|
2789
2932
|
*
|
|
2933
|
+
* @remarks
|
|
2790
2934
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2791
2935
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2792
2936
|
*/
|
|
@@ -2794,39 +2938,60 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2794
2938
|
}
|
|
2795
2939
|
|
|
2796
2940
|
/**
|
|
2797
|
-
* @
|
|
2941
|
+
* @public
|
|
2798
2942
|
*/
|
|
2799
2943
|
export declare interface IUseInsightDataViewConfig {
|
|
2800
2944
|
/**
|
|
2801
2945
|
* Reference to the insight for which you want to get the data view.
|
|
2802
2946
|
*
|
|
2947
|
+
* @remarks
|
|
2803
2948
|
* Note: When the reference or identifier is not provided, hook is locked in a "pending" state.
|
|
2804
2949
|
*/
|
|
2805
2950
|
insight?: ObjRef;
|
|
2806
2951
|
/**
|
|
2807
|
-
*
|
|
2952
|
+
* Modify sorts on prepared insight execution, before it's executed.
|
|
2808
2953
|
*/
|
|
2809
2954
|
sorts?: ISortItem[] | ((def: IExecutionDefinition) => ISortItem[]);
|
|
2810
2955
|
/**
|
|
2811
|
-
*
|
|
2956
|
+
* Modify dimensions on prepared insight execution, before it's executed.
|
|
2812
2957
|
*/
|
|
2813
2958
|
dimensions?: IDimension[] | ((def: IExecutionDefinition) => IDimension[]);
|
|
2814
2959
|
/**
|
|
2815
|
-
*
|
|
2960
|
+
* Modify date formatting on prepared insight execution, before it's executed.
|
|
2816
2961
|
*/
|
|
2817
2962
|
dateFormat?: string | ((def: IExecutionDefinition) => string);
|
|
2818
2963
|
/**
|
|
2819
|
-
*
|
|
2964
|
+
* Specify filters to merge with filters already defined in the insight.
|
|
2820
2965
|
*/
|
|
2821
2966
|
filters?: INullableFilter[];
|
|
2822
2967
|
/**
|
|
2823
|
-
*
|
|
2968
|
+
* You can define only a specific "window" of data to load.
|
|
2969
|
+
*
|
|
2970
|
+
* @remarks
|
|
2824
2971
|
* This is useful if you want to page data.
|
|
2825
2972
|
*/
|
|
2826
2973
|
window?: DataViewWindow;
|
|
2974
|
+
/**
|
|
2975
|
+
* Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
|
|
2976
|
+
*
|
|
2977
|
+
* Execution by reference means that the useInsightDataView will ask analytical backend to compute results for an insight
|
|
2978
|
+
* which is stored on the backend by specifying link to the insight, additional filters and description how
|
|
2979
|
+
* to organize the data.
|
|
2980
|
+
*
|
|
2981
|
+
* Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
|
|
2982
|
+
* definition of what to compute.
|
|
2983
|
+
*
|
|
2984
|
+
* This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
|
|
2985
|
+
* and only allow computing data for set of insights created by admins.
|
|
2986
|
+
*
|
|
2987
|
+
* Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
|
|
2988
|
+
* this mode.
|
|
2989
|
+
*/
|
|
2990
|
+
executeByReference?: boolean;
|
|
2827
2991
|
/**
|
|
2828
2992
|
* Backend to work with.
|
|
2829
2993
|
*
|
|
2994
|
+
* @remarks
|
|
2830
2995
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2831
2996
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2832
2997
|
*/
|
|
@@ -2834,6 +2999,7 @@ export declare interface IUseInsightDataViewConfig {
|
|
|
2834
2999
|
/**
|
|
2835
3000
|
* Workspace where execution should be executed.
|
|
2836
3001
|
*
|
|
3002
|
+
* @remarks
|
|
2837
3003
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2838
3004
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2839
3005
|
*/
|
|
@@ -2865,8 +3031,10 @@ PlaceholderValue<T> | undefined,
|
|
|
2865
3031
|
];
|
|
2866
3032
|
|
|
2867
3033
|
/**
|
|
2868
|
-
* Super-interface for all visualization callbacks
|
|
2869
|
-
*
|
|
3034
|
+
* Super-interface for all visualization callbacks.
|
|
3035
|
+
*
|
|
3036
|
+
* @remarks
|
|
3037
|
+
* All visualizations SHOULD have at least these callbacks defined.
|
|
2870
3038
|
*
|
|
2871
3039
|
* @public
|
|
2872
3040
|
*/
|
|
@@ -2898,8 +3066,10 @@ export declare interface IVisualizationCallbacks {
|
|
|
2898
3066
|
}
|
|
2899
3067
|
|
|
2900
3068
|
/**
|
|
2901
|
-
* Super-interface for all visualization props
|
|
2902
|
-
*
|
|
3069
|
+
* Super-interface for all visualization props.
|
|
3070
|
+
*
|
|
3071
|
+
* @remarks
|
|
3072
|
+
* Charts, tables or anything else - all should have these basic props.
|
|
2903
3073
|
*
|
|
2904
3074
|
* @public
|
|
2905
3075
|
*/
|
|
@@ -2907,12 +3077,14 @@ export declare interface IVisualizationProps {
|
|
|
2907
3077
|
/**
|
|
2908
3078
|
* Set Locale for visualization localization.
|
|
2909
3079
|
*
|
|
3080
|
+
* @remarks
|
|
2910
3081
|
* Note: This locale will be used for everything EXCEPT the data being visualized.
|
|
2911
3082
|
*/
|
|
2912
3083
|
locale?: string;
|
|
2913
3084
|
/**
|
|
2914
3085
|
* Set title to use for exported files.
|
|
2915
3086
|
*
|
|
3087
|
+
* @remarks
|
|
2916
3088
|
* Note: you can also specify export file name as parameters to the export function which you
|
|
2917
3089
|
* receive in the onExportReady. If you do not specify title here and neither as input to export function,
|
|
2918
3090
|
* the the name will default to name of the visualization component.
|
|
@@ -2954,24 +3126,25 @@ export declare interface IWithExecution<T> {
|
|
|
2954
3126
|
*/
|
|
2955
3127
|
exportTitle: string | ((props: T) => string);
|
|
2956
3128
|
/**
|
|
2957
|
-
*
|
|
3129
|
+
* Customize data window to load.
|
|
2958
3130
|
*
|
|
2959
3131
|
* By default the HOC loads all the data available in the execution's result.
|
|
2960
3132
|
*/
|
|
2961
3133
|
window?: DataViewWindow | ((props: T) => DataViewWindow | undefined);
|
|
2962
3134
|
/**
|
|
2963
|
-
*
|
|
3135
|
+
* Specify event callbacks which the HOC will trigger in different situations.
|
|
2964
3136
|
*/
|
|
2965
3137
|
events?: IWithLoadingEvents<T> | ((props: T) => IWithLoadingEvents<T>);
|
|
2966
3138
|
/**
|
|
2967
|
-
*
|
|
3139
|
+
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
2968
3140
|
*
|
|
3141
|
+
* @remarks
|
|
2969
3142
|
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
2970
3143
|
* reload() function which the HOC injects into its props.
|
|
2971
3144
|
*/
|
|
2972
3145
|
loadOnMount?: boolean | ((props: T) => boolean);
|
|
2973
3146
|
/**
|
|
2974
|
-
*
|
|
3147
|
+
* Specify function that will be called during component prop updates and will be used to
|
|
2975
3148
|
* determine whether execution should be re-run and data reloaded.
|
|
2976
3149
|
*
|
|
2977
3150
|
* @param prevProps - previous props
|
|
@@ -2981,8 +3154,11 @@ export declare interface IWithExecution<T> {
|
|
|
2981
3154
|
}
|
|
2982
3155
|
|
|
2983
3156
|
/**
|
|
2984
|
-
* Configuration for the
|
|
2985
|
-
*
|
|
3157
|
+
* Configuration for the {@link withExecutionLoading} HOC.
|
|
3158
|
+
*
|
|
3159
|
+
* @remarks
|
|
3160
|
+
* All configuration parameters can be either actual parameter values or functions to obtain them
|
|
3161
|
+
* from the wrapped component props.
|
|
2986
3162
|
*
|
|
2987
3163
|
* If functions are specified, the HOC will call them with the wrapped component props as parameter and then use
|
|
2988
3164
|
* the resulting values as if they were passed directly.
|
|
@@ -3007,23 +3183,25 @@ export declare interface IWithExecutionLoading<TProps> {
|
|
|
3007
3183
|
*/
|
|
3008
3184
|
promiseFactory: (props: TProps, window?: DataViewWindow) => Promise<DataViewFacade>;
|
|
3009
3185
|
/**
|
|
3010
|
-
*
|
|
3011
|
-
*
|
|
3186
|
+
* Specify data view window to retrieve from backend.
|
|
3187
|
+
*
|
|
3188
|
+
* @remarks
|
|
3189
|
+
* If specified as function, the function can return undefined in case all data must be retrieved.
|
|
3012
3190
|
*/
|
|
3013
3191
|
window?: DataViewWindow | ((props: TProps) => DataViewWindow | undefined);
|
|
3014
3192
|
/**
|
|
3015
|
-
*
|
|
3193
|
+
* Specify event callbacks which the HOC will trigger in different situations.
|
|
3016
3194
|
*/
|
|
3017
3195
|
events?: IWithLoadingEvents<TProps> | ((props: TProps) => IWithLoadingEvents<TProps>);
|
|
3018
3196
|
/**
|
|
3019
|
-
*
|
|
3197
|
+
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
3020
3198
|
*
|
|
3021
3199
|
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
3022
3200
|
* reload() function which the HOC injects into its props.
|
|
3023
3201
|
*/
|
|
3024
3202
|
loadOnMount?: boolean | ((props: TProps) => boolean);
|
|
3025
3203
|
/**
|
|
3026
|
-
*
|
|
3204
|
+
* Specify function that will be called during component prop updates and will be used to
|
|
3027
3205
|
* determine whether execution should be re-run and data reloaded.
|
|
3028
3206
|
*
|
|
3029
3207
|
* @param prevProps - previous props
|
|
@@ -3085,8 +3263,10 @@ export declare interface IWorkspaceProviderProps {
|
|
|
3085
3263
|
}
|
|
3086
3264
|
|
|
3087
3265
|
/**
|
|
3088
|
-
* Kpi is a simple component which calculates and renders a single formatted measure value.
|
|
3089
|
-
*
|
|
3266
|
+
* Kpi is a simple component which calculates and renders a single formatted measure value.
|
|
3267
|
+
*
|
|
3268
|
+
* @remarks
|
|
3269
|
+
* The the value is rendered inside a <span> element.
|
|
3090
3270
|
*
|
|
3091
3271
|
* Kpi component is useful for instance for embedding data values into text paragraphs.
|
|
3092
3272
|
*
|
|
@@ -3097,8 +3277,10 @@ export declare interface IWorkspaceProviderProps {
|
|
|
3097
3277
|
export declare const Kpi: React_2.ComponentType<IKpiProps>;
|
|
3098
3278
|
|
|
3099
3279
|
/**
|
|
3100
|
-
*
|
|
3101
|
-
*
|
|
3280
|
+
* Component that renders a default loading indicator.
|
|
3281
|
+
*
|
|
3282
|
+
* @remarks
|
|
3283
|
+
* See {@link http://sdk.gooddata.com/gooddata-ui/docs/loading_component.html | LoadingComponent }
|
|
3102
3284
|
*
|
|
3103
3285
|
* @public
|
|
3104
3286
|
*/
|
|
@@ -3132,7 +3314,7 @@ export declare function makeCancelable<T>(promise: Promise<T>): ICancelablePromi
|
|
|
3132
3314
|
/**
|
|
3133
3315
|
* Generate union of measures from union of measure definitions.
|
|
3134
3316
|
*
|
|
3135
|
-
*
|
|
3317
|
+
* @example
|
|
3136
3318
|
* - IMeasureDefinition | IArithmeticMeasureDefinition is resolved as
|
|
3137
3319
|
* IMeasure\<IMeasureDefinition\> | IMeasure\<IArithmeticMeasureDefinition\>
|
|
3138
3320
|
*
|
|
@@ -3232,6 +3414,7 @@ export declare type NullableFiltersOrPlaceholders = Array<FilterOrMultiValuePlac
|
|
|
3232
3414
|
* Creates a new predicate that returns true for any header that belongs to either attribute or measure matching
|
|
3233
3415
|
* the provided object.
|
|
3234
3416
|
*
|
|
3417
|
+
* @remarks
|
|
3235
3418
|
* If the object is empty or is not attribute, simple measure or object reference, the function returns predicate
|
|
3236
3419
|
* that is always falsy.
|
|
3237
3420
|
*
|
|
@@ -3302,8 +3485,10 @@ export declare const pickCorrectWording: (translations: Record<string, string>,
|
|
|
3302
3485
|
/**
|
|
3303
3486
|
* Wrap each member of the union type in AnyPlaceholder.
|
|
3304
3487
|
*
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3488
|
+
* @example
|
|
3489
|
+
* ```
|
|
3490
|
+
* IAttribute | IMeasure is resolved as AnyPlaceholder\<IAttribute\> | AnyPlaceholder\<IMeasure\>
|
|
3491
|
+
* ```
|
|
3307
3492
|
*
|
|
3308
3493
|
* @public
|
|
3309
3494
|
*/
|
|
@@ -3311,15 +3496,19 @@ export declare type PlaceholderOf<T> = T extends any ? AnyPlaceholder<T> : never
|
|
|
3311
3496
|
|
|
3312
3497
|
/**
|
|
3313
3498
|
* Convert any value that may contain placeholders to its resolved value type.
|
|
3499
|
+
*
|
|
3500
|
+
* @remarks
|
|
3314
3501
|
* Nested array placeholders resolved value types are flattened.
|
|
3315
3502
|
* If the type is not a placeholder, return the same type.
|
|
3316
3503
|
*
|
|
3317
|
-
*
|
|
3318
|
-
*
|
|
3319
|
-
*
|
|
3320
|
-
*
|
|
3321
|
-
*
|
|
3322
|
-
*
|
|
3504
|
+
* @example
|
|
3505
|
+
* ```
|
|
3506
|
+
* IPlaceholder\<IAttribute\> is resolved as IAttribute
|
|
3507
|
+
* IPlaceholder\<IAttribute\>[] is resolved as IAttribute[]
|
|
3508
|
+
* IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
|
|
3509
|
+
* [IPlaceholder\<IAttribute[]\>, IPlaceholder\<IMeasure[]\>] is resolved as (IAttribute | IMeasure)[]
|
|
3510
|
+
* null is resolved as null
|
|
3511
|
+
* ```
|
|
3323
3512
|
*
|
|
3324
3513
|
* @public
|
|
3325
3514
|
*/
|
|
@@ -3336,10 +3525,13 @@ export declare function PlaceholdersProvider(props: IPlaceholdersProviderProps):
|
|
|
3336
3525
|
/**
|
|
3337
3526
|
* Convert tuple of values that may contain placeholders to tuple of their respective resolved value types.
|
|
3338
3527
|
*
|
|
3339
|
-
*
|
|
3340
|
-
*
|
|
3341
|
-
*
|
|
3528
|
+
* @example
|
|
3529
|
+
* ```
|
|
3530
|
+
* [IPlaceholder\<IAttribute\>, IPlaceholder\<IAttribute[]\>] is resolved as [IAttribute, IAttribute[]]
|
|
3531
|
+
* [IPlaceholder\<IMeasure\>, IMeasure] is resolved as [IMeasure, IMeasure]
|
|
3532
|
+
* ```
|
|
3342
3533
|
*
|
|
3534
|
+
* @remarks
|
|
3343
3535
|
* Check mapped tuple types for more details:
|
|
3344
3536
|
* https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
|
|
3345
3537
|
*
|
|
@@ -3352,9 +3544,10 @@ export declare type PlaceholdersResolvedValues<Tuple extends any[]> = {
|
|
|
3352
3544
|
/**
|
|
3353
3545
|
* Convert tuple of placeholders to tuple of their respective value types.
|
|
3354
3546
|
*
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3547
|
+
* @example
|
|
3548
|
+
* [IPlaceholder\<IAttribute\>, IPlaceholder\<IAttribute[]\>] is resolved as [IAttribute, IAttribute[]]
|
|
3357
3549
|
*
|
|
3550
|
+
* @remarks
|
|
3358
3551
|
* Check mapped tuple types for more details:
|
|
3359
3552
|
* https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
|
|
3360
3553
|
*
|
|
@@ -3366,13 +3559,17 @@ export declare type PlaceholdersValues<Tuple extends [...any[]]> = {
|
|
|
3366
3559
|
|
|
3367
3560
|
/**
|
|
3368
3561
|
* Get placeholder value type.
|
|
3562
|
+
*
|
|
3563
|
+
* @remarks
|
|
3369
3564
|
* If the type is not a placeholder, return the same type.
|
|
3370
3565
|
*
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3373
|
-
*
|
|
3374
|
-
*
|
|
3375
|
-
*
|
|
3566
|
+
* @example
|
|
3567
|
+
* ```
|
|
3568
|
+
* IPlaceholder\<IAttribute\> is resolved as IAttribute
|
|
3569
|
+
* IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
|
|
3570
|
+
* IComposedPlaceholder\<IMeasure\> is resolved as IMeasure
|
|
3571
|
+
* null is resolved as null
|
|
3572
|
+
* ```
|
|
3376
3573
|
*
|
|
3377
3574
|
* @public
|
|
3378
3575
|
*/
|
|
@@ -3392,6 +3589,7 @@ export declare class ProtectedReportSdkError extends GoodDataSdkError {
|
|
|
3392
3589
|
* Raw executor is the most basic React component to drive custom executions to obtain
|
|
3393
3590
|
* data from backends.
|
|
3394
3591
|
*
|
|
3592
|
+
* @remarks
|
|
3395
3593
|
* The component accepts an instance of prepared execution and drives all the necessary
|
|
3396
3594
|
* APIs and boilerplate needed to obtain a {@link DataViewFacade}.
|
|
3397
3595
|
* Note that if the resulting data is empty this will NOT throw a {@link @gooddata/sdk-backend-spi#NoDataError}.
|
|
@@ -3449,18 +3647,20 @@ export declare function resolveLCMWorkspaceIdentifiers(backend: any, clientWorks
|
|
|
3449
3647
|
/**
|
|
3450
3648
|
* Resolve error of multiple {@link useCancelablePromise} hooks - gets first error in the sequence of cancelable promise states.
|
|
3451
3649
|
*
|
|
3650
|
+
* @remarks
|
|
3452
3651
|
* This is useful for useCancelablePromise composition - when you want to wrap multiple useCancelablePromise hooks in another hook,
|
|
3453
3652
|
* and keep the return value shape of the hook same as for useCancelablePromise.
|
|
3454
3653
|
*
|
|
3455
3654
|
* @param states - cancelable promise states (useCancelablePromise return values)
|
|
3456
3655
|
* @returns first error
|
|
3457
|
-
* @
|
|
3656
|
+
* @public
|
|
3458
3657
|
*/
|
|
3459
3658
|
export declare function resolveUseCancelablePromisesError<TError>(states: UseCancelablePromiseState<unknown, TError>[]): TError | undefined;
|
|
3460
3659
|
|
|
3461
3660
|
/**
|
|
3462
3661
|
* Resolve status of multiple {@link useCancelablePromise} hooks.
|
|
3463
3662
|
*
|
|
3663
|
+
* @remarks
|
|
3464
3664
|
* This is useful for useCancelablePromise composition - when you want to wrap multiple useCancelablePromise hooks in another hook,
|
|
3465
3665
|
* and keep the return value shape of the hook same as for useCancelablePromise.
|
|
3466
3666
|
*
|
|
@@ -3478,7 +3678,7 @@ export declare function resolveUseCancelablePromisesError<TError>(states: UseCan
|
|
|
3478
3678
|
* @param states - cancelable promise states (useCancelablePromise return values)
|
|
3479
3679
|
* @param options - optionally specify options for resolving the status
|
|
3480
3680
|
* @returns resolved status
|
|
3481
|
-
* @
|
|
3681
|
+
* @public
|
|
3482
3682
|
*/
|
|
3483
3683
|
export declare function resolveUseCancelablePromisesStatus(cancelablePromisesStates: UseCancelablePromiseState<unknown, unknown>[], options?: {
|
|
3484
3684
|
strategy?: "serial" | "parallel";
|
|
@@ -3525,6 +3725,8 @@ export declare const TranslationsCustomizationContextProvider: React_2.FC<ITrans
|
|
|
3525
3725
|
|
|
3526
3726
|
/**
|
|
3527
3727
|
* This provider is here because of the need for customization of translations.
|
|
3728
|
+
*
|
|
3729
|
+
* @remarks
|
|
3528
3730
|
* If you need to change translations based on some setting flag,
|
|
3529
3731
|
* use this provider at the top of you your react tree.
|
|
3530
3732
|
*
|
|
@@ -3565,9 +3767,11 @@ export declare class UnexpectedSdkError extends GoodDataSdkError {
|
|
|
3565
3767
|
/**
|
|
3566
3768
|
* Convert union type to intersection type.
|
|
3567
3769
|
*
|
|
3568
|
-
*
|
|
3569
|
-
*
|
|
3570
|
-
*
|
|
3770
|
+
* @example
|
|
3771
|
+
* ```
|
|
3772
|
+
* number | string | boolean is resolved as number & string & boolean
|
|
3773
|
+
* Type1 | Type2 | Type3 is resolved as Type1 & Type2 & Type3
|
|
3774
|
+
* ```
|
|
3571
3775
|
*
|
|
3572
3776
|
* @public
|
|
3573
3777
|
*/
|
|
@@ -3583,6 +3787,8 @@ export declare function uriMatch(uri: string): IHeaderPredicate;
|
|
|
3583
3787
|
|
|
3584
3788
|
/**
|
|
3585
3789
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
3790
|
+
*
|
|
3791
|
+
* @remarks
|
|
3586
3792
|
* You can optionally set a backend override that will be returned if defined.
|
|
3587
3793
|
* This makes the usage more ergonomic (see the following example).
|
|
3588
3794
|
*
|
|
@@ -3604,6 +3810,8 @@ export declare const useBackend: (backend?: IAnalyticalBackend | undefined) => I
|
|
|
3604
3810
|
|
|
3605
3811
|
/**
|
|
3606
3812
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
3813
|
+
*
|
|
3814
|
+
* @remarks
|
|
3607
3815
|
* You can optionally set a backend override that will be returned if defined.
|
|
3608
3816
|
* This makes the usage more ergonomic (see the following example).
|
|
3609
3817
|
*
|
|
@@ -3626,20 +3834,26 @@ export declare const useBackend: (backend?: IAnalyticalBackend | undefined) => I
|
|
|
3626
3834
|
export declare const useBackendStrict: (backend?: IAnalyticalBackend | undefined, context?: string) => IAnalyticalBackend;
|
|
3627
3835
|
|
|
3628
3836
|
/**
|
|
3629
|
-
* This hook provides easy way to work with
|
|
3837
|
+
* This hook provides easy way to work with Promises in React components.
|
|
3838
|
+
*
|
|
3839
|
+
* @remarks
|
|
3630
3840
|
* You can:
|
|
3631
3841
|
* - watch it's status (pending/loading/success/error)
|
|
3632
3842
|
* - get it's result/error when the Promise is resolved/rejected,
|
|
3633
3843
|
* - attach convenient callbacks to it
|
|
3634
3844
|
* - be sure, that when the dependency list changes, result will be still relevant (if previous Promise is still running, it's "canceled").
|
|
3635
3845
|
*
|
|
3636
|
-
*
|
|
3846
|
+
* Note that it's not recommended to use this hook for storing data on the backend
|
|
3847
|
+
* as it does not cancel requests wrapped in these promises
|
|
3848
|
+
* and you have no guarantee about the resolution order of the fired requests.
|
|
3849
|
+
*
|
|
3850
|
+
* @public
|
|
3637
3851
|
*/
|
|
3638
3852
|
export declare function useCancelablePromise<TResult, TError = any>(options: UseCancelablePromiseOptions<TResult, TError>, deps?: DependencyList): UseCancelablePromiseState<TResult, TError>;
|
|
3639
3853
|
|
|
3640
3854
|
/**
|
|
3641
3855
|
* Callbacks for {@link useCancelablePromise} hook
|
|
3642
|
-
* @
|
|
3856
|
+
* @public
|
|
3643
3857
|
*/
|
|
3644
3858
|
export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
3645
3859
|
/**
|
|
@@ -3655,7 +3869,7 @@ export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
|
3655
3869
|
*/
|
|
3656
3870
|
onCancel?: () => void;
|
|
3657
3871
|
/**
|
|
3658
|
-
*
|
|
3872
|
+
* onSuccess is fired whenever the promise is fulfilled
|
|
3659
3873
|
*/
|
|
3660
3874
|
onSuccess?: (result: TResult) => void;
|
|
3661
3875
|
/**
|
|
@@ -3666,7 +3880,7 @@ export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
|
3666
3880
|
|
|
3667
3881
|
/**
|
|
3668
3882
|
* Indicates error state for {@link useCancelablePromise} hook
|
|
3669
|
-
* @
|
|
3883
|
+
* @public
|
|
3670
3884
|
*/
|
|
3671
3885
|
export declare type UseCancelablePromiseErrorState<TError> = {
|
|
3672
3886
|
result: undefined;
|
|
@@ -3676,7 +3890,7 @@ export declare type UseCancelablePromiseErrorState<TError> = {
|
|
|
3676
3890
|
|
|
3677
3891
|
/**
|
|
3678
3892
|
* Indicates loading state for {@link useCancelablePromise} hook
|
|
3679
|
-
* @
|
|
3893
|
+
* @public
|
|
3680
3894
|
*/
|
|
3681
3895
|
export declare type UseCancelablePromiseLoadingState = {
|
|
3682
3896
|
result: undefined;
|
|
@@ -3687,7 +3901,7 @@ export declare type UseCancelablePromiseLoadingState = {
|
|
|
3687
3901
|
/**
|
|
3688
3902
|
* Options for the {@link useCancelablePromise} hook.
|
|
3689
3903
|
*
|
|
3690
|
-
* @
|
|
3904
|
+
* @public
|
|
3691
3905
|
*/
|
|
3692
3906
|
export declare type UseCancelablePromiseOptions<TResult, TError> = UseCancelablePromiseCallbacks<TResult, TError> & {
|
|
3693
3907
|
promise: (() => Promise<TResult>) | undefined | null;
|
|
@@ -3695,7 +3909,7 @@ export declare type UseCancelablePromiseOptions<TResult, TError> = UseCancelable
|
|
|
3695
3909
|
|
|
3696
3910
|
/**
|
|
3697
3911
|
* Indicates pending state for {@link useCancelablePromise} hook
|
|
3698
|
-
* @
|
|
3912
|
+
* @public
|
|
3699
3913
|
*/
|
|
3700
3914
|
export declare type UseCancelablePromisePendingState = {
|
|
3701
3915
|
result: undefined;
|
|
@@ -3705,19 +3919,19 @@ export declare type UseCancelablePromisePendingState = {
|
|
|
3705
3919
|
|
|
3706
3920
|
/**
|
|
3707
3921
|
* Indicates the current state of {@link useCancelablePromise} hook
|
|
3708
|
-
* @
|
|
3922
|
+
* @public
|
|
3709
3923
|
*/
|
|
3710
3924
|
export declare type UseCancelablePromiseState<TResult, TError> = UseCancelablePromisePendingState | UseCancelablePromiseLoadingState | UseCancelablePromiseErrorState<TError> | UseCancelablePromiseSuccessState<TResult>;
|
|
3711
3925
|
|
|
3712
3926
|
/**
|
|
3713
3927
|
* Indicates the current state of the promise inside {@link useCancelablePromise} hook
|
|
3714
|
-
* @
|
|
3928
|
+
* @public
|
|
3715
3929
|
*/
|
|
3716
3930
|
export declare type UseCancelablePromiseStatus = "success" | "error" | "loading" | "pending";
|
|
3717
3931
|
|
|
3718
3932
|
/**
|
|
3719
3933
|
* Indicates success state for {@link useCancelablePromise} hook
|
|
3720
|
-
* @
|
|
3934
|
+
* @public
|
|
3721
3935
|
*/
|
|
3722
3936
|
export declare type UseCancelablePromiseSuccessState<TResult> = {
|
|
3723
3937
|
result: TResult;
|
|
@@ -3754,10 +3968,12 @@ export declare function useComposedPlaceholder<TContext, TPlaceholder extends IC
|
|
|
3754
3968
|
|
|
3755
3969
|
/**
|
|
3756
3970
|
* This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
3971
|
+
*
|
|
3972
|
+
* @remarks
|
|
3757
3973
|
* As a result, you will receive a string with uri, so you can easily create a download link.
|
|
3758
3974
|
* Be aware that execution is re-executed only on dependency list change, not on execution/exportConfig/callbacks change.
|
|
3759
3975
|
*
|
|
3760
|
-
* @
|
|
3976
|
+
* @public
|
|
3761
3977
|
*/
|
|
3762
3978
|
export declare function useDataExport({ execution, exportConfig, onCancel, onError, onLoading, onPending, onSuccess, }: {
|
|
3763
3979
|
execution: IPreparedExecution | undefined | null;
|
|
@@ -3766,21 +3982,24 @@ export declare function useDataExport({ execution, exportConfig, onCancel, onErr
|
|
|
3766
3982
|
|
|
3767
3983
|
/**
|
|
3768
3984
|
* Callbacks for useDataExport hook
|
|
3769
|
-
* @
|
|
3985
|
+
* @public
|
|
3770
3986
|
*/
|
|
3771
3987
|
export declare type UseDataExportCallbacks = UseCancelablePromiseCallbacks<string, GoodDataSdkError>;
|
|
3772
3988
|
|
|
3773
3989
|
/**
|
|
3774
3990
|
* Indicates current state of useDataExport hook
|
|
3775
|
-
* @
|
|
3991
|
+
* @public
|
|
3776
3992
|
*/
|
|
3777
3993
|
export declare type UseDataExportState = UseCancelablePromiseState<string, GoodDataSdkError>;
|
|
3778
3994
|
|
|
3779
3995
|
/**
|
|
3780
3996
|
* This hook provides easy way to get data for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
3997
|
+
*
|
|
3998
|
+
* @remarks
|
|
3781
3999
|
* You can use it to create custom visualizations on top of GoodData platform.
|
|
3782
4000
|
* Be aware that execution is re-executed only on dependency list change, not on execution/window/callbacks change.
|
|
3783
4001
|
*
|
|
4002
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3784
4003
|
* @beta
|
|
3785
4004
|
*/
|
|
3786
4005
|
export declare function useDataView({ execution, window, onCancel, onError, onLoading, onPending, onSuccess, }: {
|
|
@@ -3790,20 +4009,25 @@ export declare function useDataView({ execution, window, onCancel, onError, onLo
|
|
|
3790
4009
|
|
|
3791
4010
|
/**
|
|
3792
4011
|
* Callbacks for useDataView hook
|
|
4012
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3793
4013
|
* @beta
|
|
3794
4014
|
*/
|
|
3795
4015
|
export declare type UseDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
3796
4016
|
|
|
3797
4017
|
/**
|
|
3798
4018
|
* Indicates current state of useDataView hook
|
|
4019
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3799
4020
|
* @beta
|
|
3800
4021
|
*/
|
|
3801
4022
|
export declare type UseDataViewState = UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
3802
4023
|
|
|
3803
4024
|
/**
|
|
3804
4025
|
* This hook provides a simplified interface for creating executions.
|
|
4026
|
+
*
|
|
4027
|
+
* @remarks
|
|
3805
4028
|
* It builds the execution on top of the backend passed to the BackendProvider, and workspace passed to the WorkspaceProvider.
|
|
3806
4029
|
*
|
|
4030
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3807
4031
|
* @beta
|
|
3808
4032
|
*/
|
|
3809
4033
|
export declare function useExecution(config: IUseExecutionConfig): IPreparedExecution;
|
|
@@ -3811,14 +4035,14 @@ export declare function useExecution(config: IUseExecutionConfig): IPreparedExec
|
|
|
3811
4035
|
/**
|
|
3812
4036
|
* React hook to get data for a specific execution.
|
|
3813
4037
|
*
|
|
3814
|
-
* @
|
|
4038
|
+
* @public
|
|
3815
4039
|
*/
|
|
3816
4040
|
export declare function useExecutionDataView(config: IUseExecutionDataViewConfig, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
3817
4041
|
|
|
3818
4042
|
/**
|
|
3819
4043
|
* React hook to get data for a specific insight.
|
|
3820
4044
|
*
|
|
3821
|
-
* @
|
|
4045
|
+
* @public
|
|
3822
4046
|
*/
|
|
3823
4047
|
export declare function useInsightDataView(config: IUseInsightDataViewConfig, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
3824
4048
|
|
|
@@ -3830,6 +4054,8 @@ export declare function usePagedResource<TParams, TItem>(resourceFactory: (param
|
|
|
3830
4054
|
|
|
3831
4055
|
/**
|
|
3832
4056
|
* React hook to obtain/set placeholder value.
|
|
4057
|
+
*
|
|
4058
|
+
* @remarks
|
|
3833
4059
|
* See {@link IPlaceholder}.
|
|
3834
4060
|
*
|
|
3835
4061
|
* Note: When placeholder is not provided, setting its value will result in the error.
|
|
@@ -3843,6 +4069,8 @@ PlaceholderValue<T> | undefined,
|
|
|
3843
4069
|
|
|
3844
4070
|
/**
|
|
3845
4071
|
* React hook to obtain/set multiple placeholder values at once.
|
|
4072
|
+
*
|
|
4073
|
+
* @remarks
|
|
3846
4074
|
* This is useful to perform placeholders atomic change.
|
|
3847
4075
|
* See {@link IPlaceholder}.
|
|
3848
4076
|
* @public
|
|
@@ -3859,6 +4087,8 @@ export declare const usePrevious: <T>(props: T) => T;
|
|
|
3859
4087
|
|
|
3860
4088
|
/**
|
|
3861
4089
|
* React hook that resolves multiple value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
4090
|
+
*
|
|
4091
|
+
* @remarks
|
|
3862
4092
|
* Optionally provide custom context for the composed placeholders resolution.
|
|
3863
4093
|
*
|
|
3864
4094
|
* @public
|
|
@@ -3867,6 +4097,8 @@ export declare function useResolveValuesWithPlaceholders<T extends any[], C>(val
|
|
|
3867
4097
|
|
|
3868
4098
|
/**
|
|
3869
4099
|
* React hook that resolves any value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
4100
|
+
*
|
|
4101
|
+
* @remarks
|
|
3870
4102
|
* Optionally provide custom context for the composed placeholders resolution.
|
|
3871
4103
|
*
|
|
3872
4104
|
* @public
|
|
@@ -3875,6 +4107,8 @@ export declare function useResolveValueWithPlaceholders<T, C>(value: T, resoluti
|
|
|
3875
4107
|
|
|
3876
4108
|
/**
|
|
3877
4109
|
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
4110
|
+
*
|
|
4111
|
+
* @remarks
|
|
3878
4112
|
* You can optionally set a workspace override that will be returned if defined.
|
|
3879
4113
|
* This makes the usage more ergonomic (see the following example).
|
|
3880
4114
|
*
|
|
@@ -3896,6 +4130,8 @@ export declare const useWorkspace: (workspace?: string | undefined) => string |
|
|
|
3896
4130
|
|
|
3897
4131
|
/**
|
|
3898
4132
|
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
4133
|
+
*
|
|
4134
|
+
* @remarks
|
|
3899
4135
|
* You can optionally set a workspace override that will be returned if defined.
|
|
3900
4136
|
* This makes the usage more ergonomic (see the following example).
|
|
3901
4137
|
*
|