@gooddata/sdk-ui-dashboard 10.12.0-alpha.30 → 10.12.0-alpha.32

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.
Files changed (33) hide show
  1. package/NOTICE +1017 -1017
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/model/events/userInteraction.d.ts +24 -2
  5. package/esm/model/events/userInteraction.d.ts.map +1 -1
  6. package/esm/model/events/userInteraction.js.map +1 -1
  7. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +1 -1
  8. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts +1 -4
  9. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts.map +1 -1
  10. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.js +21 -5
  11. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.js.map +1 -1
  12. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts +1 -1
  13. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts.map +1 -1
  14. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.js +22 -4
  15. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.js.map +1 -1
  16. package/esm/model/react/useDashboardUserInteraction.d.ts +2 -1
  17. package/esm/model/react/useDashboardUserInteraction.d.ts.map +1 -1
  18. package/esm/model/react/useDashboardUserInteraction.js +4 -0
  19. package/esm/model/react/useDashboardUserInteraction.js.map +1 -1
  20. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts.map +1 -1
  21. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +3 -1
  22. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js.map +1 -1
  23. package/esm/presentation/scheduledEmail/types.d.ts +1 -1
  24. package/esm/presentation/scheduledEmail/types.d.ts.map +1 -1
  25. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
  26. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +26 -3
  27. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
  28. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts +1 -1
  29. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -1
  30. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +1 -1
  31. package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js.map +1 -1
  32. package/esm/sdk-ui-dashboard.d.ts +32 -4
  33. package/package.json +15 -15
@@ -135,6 +135,7 @@ import { GoodDataSdkError } from '@gooddata/sdk-ui';
135
135
  import { IAbsoluteDateFilter } from '@gooddata/sdk-model';
136
136
  import { IAccessControlAware } from '@gooddata/sdk-model';
137
137
  import { IAccessGrantee } from '@gooddata/sdk-model';
138
+ import { IAlertTriggerMode } from '@gooddata/sdk-model';
138
139
  import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
139
140
  import { IAttributeDisplayFormMetadataObject } from '@gooddata/sdk-model';
140
141
  import { IAttributeElement } from '@gooddata/sdk-model';
@@ -231,6 +232,7 @@ import { IMeasureMetadataObject } from '@gooddata/sdk-model';
231
232
  import { IMenuButtonItemsVisibility as IMenuButtonItemsVisibility_2 } from '../../../types.js';
232
233
  import { INegativeAttributeFilter } from '@gooddata/sdk-model';
233
234
  import { INotificationChannelMetadataObject } from '@gooddata/sdk-model';
235
+ import { INotificationChannelMetadataObjectBase } from '@gooddata/sdk-model';
234
236
  import { InsightDisplayFormUsage } from '@gooddata/sdk-model';
235
237
  import { InsightDrillDefinition } from '@gooddata/sdk-model';
236
238
  import { IntlShape } from 'react-intl';
@@ -919,6 +921,31 @@ export declare function attributeHierarchyModified(correlationId?: string): Attr
919
921
  */
920
922
  export declare function AttributesDropdown({ className, bodyClassName, onClose, onSelect, }: IDashboardAttributeFilterPlaceholderProps): React_2.JSX.Element;
921
923
 
924
+ /**
925
+ * @alpha
926
+ */
927
+ export declare type AutomationInteractionData = {
928
+ type: AutomationInteractionType;
929
+ destination_id?: string;
930
+ destination_type?: INotificationChannelMetadataObjectBase["type"];
931
+ automation_id?: string;
932
+ automation_name?: string;
933
+ automation_source?: "dashboard" | "widget";
934
+ automation_visualization_type?: string;
935
+ filter_context?: "default" | "edited";
936
+ trigger_type?: IAlertTriggerMode;
937
+ };
938
+
939
+ /**
940
+ * @alpha
941
+ */
942
+ export declare type AutomationInteractionPayload = UserInteractionPayloadWithDataBase<"automationInteraction", AutomationInteractionData>;
943
+
944
+ /**
945
+ * @alpha
946
+ */
947
+ export declare type AutomationInteractionType = "scheduledExportInitialized" | "scheduledExportCreated" | "alertInitialized" | "alertCreated";
948
+
922
949
  /**
923
950
  * @alpha
924
951
  */
@@ -10978,7 +11005,7 @@ export declare interface IScheduledEmailDialogProps {
10978
11005
  /**
10979
11006
  * Callback to be called, when scheduling finishes successfully.
10980
11007
  */
10981
- onSuccess?: () => void;
11008
+ onSuccess?: (scheduledEmailDefinition: IAutomationMetadataObject) => void;
10982
11009
  /**
10983
11010
  * Callback to be called, when error occurs.
10984
11011
  */
@@ -19074,7 +19101,7 @@ export declare const useDashboardScheduledEmails: () => {
19074
19101
  onScheduleEmailingOpen: (widget?: IWidget | undefined) => void;
19075
19102
  onScheduleEmailingCancel: (widget?: IWidget | undefined) => void;
19076
19103
  onScheduleEmailingCreateError: () => void;
19077
- onScheduleEmailingCreateSuccess: (widget?: IWidget | undefined) => void;
19104
+ onScheduleEmailingCreateSuccess: (scheduledEmail: IAutomationMetadataObject) => void;
19078
19105
  onScheduleEmailingSaveError: () => void;
19079
19106
  onScheduleEmailingSaveSuccess: (widget?: IWidget | undefined) => void;
19080
19107
  isScheduledManagementEmailingVisible: boolean;
@@ -19140,6 +19167,7 @@ export declare const useDashboardUserInteraction: () => {
19140
19167
  attributeHierarchiesInteraction: (eventType: AttributeHierarchiesInteractionType) => void;
19141
19168
  dateFilterInteraction: (eventType: DateFilterInteractionType) => void;
19142
19169
  visualizationSwitcherInteraction: (eventType: VisualizationSwitcherInteractionType) => void;
19170
+ automationInteraction: (eventData: AutomationInteractionData) => void;
19143
19171
  };
19144
19172
 
19145
19173
  /**
@@ -19370,7 +19398,7 @@ export declare type UserInteractionPayload = UserInteractionPayloadWithData | Ba
19370
19398
  /**
19371
19399
  * @beta
19372
19400
  */
19373
- export declare type UserInteractionPayloadWithData = KpiAlertDialogOpenedPayload | DescriptionTooltipOpenedPayload | ShareDialogInteractionPayload;
19401
+ export declare type UserInteractionPayloadWithData = KpiAlertDialogOpenedPayload | DescriptionTooltipOpenedPayload | ShareDialogInteractionPayload | AutomationInteractionPayload;
19374
19402
 
19375
19403
  /**
19376
19404
  * @beta
@@ -19421,7 +19449,7 @@ export declare interface UserState {
19421
19449
  * @param onResumeError - callback to be called when alert resuming fails
19422
19450
  */
19423
19451
  export declare function useSaveAlertToBackend({ onCreateSuccess, onCreateError, onUpdateSuccess, onUpdateError, onPauseSuccess, onPauseError, onResumeSuccess, onResumeError, }: {
19424
- onCreateSuccess?: () => void;
19452
+ onCreateSuccess?: (alert: IAutomationMetadataObject) => void;
19425
19453
  onCreateError?: (error: Error) => void;
19426
19454
  onUpdateSuccess?: () => void;
19427
19455
  onUpdateError?: (error: Error) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "10.12.0-alpha.30",
3
+ "version": "10.12.0-alpha.32",
4
4
  "description": "GoodData SDK - Dashboard Component",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,17 +57,17 @@
57
57
  "ts-invariant": "^0.7.5",
58
58
  "tslib": "^2.5.0",
59
59
  "uuid": "^8.3.2",
60
- "@gooddata/sdk-backend-base": "10.12.0-alpha.30",
61
- "@gooddata/sdk-backend-spi": "10.12.0-alpha.30",
62
- "@gooddata/sdk-model": "10.12.0-alpha.30",
63
- "@gooddata/sdk-ui": "10.12.0-alpha.30",
64
- "@gooddata/sdk-ui-ext": "10.12.0-alpha.30",
65
- "@gooddata/sdk-ui-filters": "10.12.0-alpha.30",
66
- "@gooddata/sdk-ui-geo": "10.12.0-alpha.30",
67
- "@gooddata/sdk-ui-kit": "10.12.0-alpha.30",
68
- "@gooddata/sdk-ui-theme-provider": "10.12.0-alpha.30",
69
- "@gooddata/sdk-ui-vis-commons": "10.12.0-alpha.30",
70
- "@gooddata/util": "10.12.0-alpha.30"
60
+ "@gooddata/sdk-backend-base": "10.12.0-alpha.32",
61
+ "@gooddata/sdk-backend-spi": "10.12.0-alpha.32",
62
+ "@gooddata/sdk-model": "10.12.0-alpha.32",
63
+ "@gooddata/sdk-ui": "10.12.0-alpha.32",
64
+ "@gooddata/sdk-ui-filters": "10.12.0-alpha.32",
65
+ "@gooddata/sdk-ui-geo": "10.12.0-alpha.32",
66
+ "@gooddata/sdk-ui-kit": "10.12.0-alpha.32",
67
+ "@gooddata/sdk-ui-ext": "10.12.0-alpha.32",
68
+ "@gooddata/sdk-ui-vis-commons": "10.12.0-alpha.32",
69
+ "@gooddata/sdk-ui-theme-provider": "10.12.0-alpha.32",
70
+ "@gooddata/util": "10.12.0-alpha.32"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": "^16.10.0 || ^17.0.0 || ^18.0.0",
@@ -120,9 +120,9 @@
120
120
  "typescript": "5.3.3",
121
121
  "vitest": "1.0.4",
122
122
  "vitest-dom": "0.1.1",
123
- "@gooddata/i18n-toolkit": "10.12.0-alpha.30",
124
- "@gooddata/reference-workspace": "10.12.0-alpha.30",
125
- "@gooddata/sdk-backend-mockingbird": "10.12.0-alpha.30"
123
+ "@gooddata/reference-workspace": "10.12.0-alpha.32",
124
+ "@gooddata/i18n-toolkit": "10.12.0-alpha.32",
125
+ "@gooddata/sdk-backend-mockingbird": "10.12.0-alpha.32"
126
126
  },
127
127
  "scripts": {
128
128
  "clean": "rm -rf ci dist esm coverage *.log styles/css tsconfig.tsbuildinfo",