@sisense/sdk-ui 2.20.0 → 2.22.0
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/ai.cjs +68 -68
- package/dist/ai.js +891 -845
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1002 -858
- package/dist/analytics-composer.cjs +23 -23
- package/dist/analytics-composer.js +8 -8
- package/dist/{dimensions-Blw0p98x.js → dimensions-BiLyFpCg.js} +1 -1
- package/dist/{dimensions-CgMckRe2.cjs → dimensions-X4_igtmO.cjs} +1 -1
- package/dist/{execute-query-VxgY3tbz.js → execute-query-BEeqqDl6.js} +1499 -1491
- package/dist/execute-query-DJDE0zRU.cjs +1 -0
- package/dist/{index-0brX9D6q.cjs → index-NyouhE_A.cjs} +1 -1
- package/dist/{index-Ck90GjPy.js → index-kxX21arA.js} +15 -1
- package/dist/index.cjs +451 -436
- package/dist/index.js +24710 -23005
- package/dist/index.umd.js +689 -624
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/common-filters-connector.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/selection-utils.d.ts +4 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/types.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/use-common-filters.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/content-panel.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/components/editable-layout-row.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/editable-layout.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/helpers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +8 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +9 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/{use-dashboard-model-reducer.d.ts → dashboard-model-reducer/types.d.ts} +19 -36
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/use-dashboard-model-reducer.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/duplicate-widget-utils.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +57 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-config-transformers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-filters.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-handlers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-widget-transforms.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-jtd-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-jtd.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-tabber.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +44 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +15 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +11 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/use-cascadding-filter-tile-menu-items/use-cascadding-filter-tile-lock-menu-item.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/use-cascadding-filter-tile-menu-items/use-cascadding-filter-tile-menu-items.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/common/reorderable-list.d.ts +32 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/custom-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/{filter-tile.d.ts → filter-tile/filter-tile.d.ts} +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile/types.d.ts +36 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile-container.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/types.d.ts +27 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/member-filter-tile/member-filter-tile.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/unsupported-filter-tile.d.ts +17 -1
- package/dist/packages/sdk-ui/src/domains/filters/shared/clone-filter-and-toggle-locked.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/filters/shared/filter-tile-menu-button.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/filters/shared/use-filter-tile-menu-items/use-filter-tile-lock-menu-item.d.ts +15 -0
- package/dist/packages/sdk-ui/src/domains/filters/shared/use-filter-tile-menu-items/use-filter-tile-menu-items.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/formulas/index.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/formulas/use-get-shared-formula.d.ts +20 -7
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/translate-boxplot-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/chart-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +100 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-with-chart-widget-drilldown.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/{common-widget.d.ts → common-widget/common-widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/common-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/common-widget/types.d.ts +8 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/{custom-widget.d.ts → custom-widget/custom-widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/types.d.ts +71 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +141 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-with-pivot-table-widget-drilldown.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/tabber-buttons-widget/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/{table-widget.d.ts → table-widget/table-widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/types.d.ts +61 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/text-widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/{text-widget.d.ts → text-widget/text-widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/text-widget/types.d.ts +29 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +45 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/{widget.d.ts → widget/widget.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +425 -425
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-filters.d.ts +34 -34
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +63 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +11 -5
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/{widget-container.d.ts → widget-container/widget-container.d.ts} +7 -3
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +42 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header-info-button.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header-toolbar.d.ts +23 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-menu-button.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +8 -1
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +4 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +18 -1
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/types.d.ts +41 -12
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-execute-custom-widget-query.d.ts +12 -3
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-context.d.ts +15 -0
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-provider.d.ts +21 -0
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/types.d.ts +50 -0
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/validate-plugins.d.ts +9 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +28 -0
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +5 -3
- package/dist/packages/sdk-ui/src/modules/ai/api/narration-endpoints.d.ts +25 -0
- package/dist/packages/sdk-ui/src/modules/ai/api/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/ai/chart/nlq-chart-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +4 -1
- package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/common/utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/dashboard/stringify-widgets.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +3 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +6 -6
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-filters-to-json.d.ts +3 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-from-json.d.ts +13 -28
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +6 -7
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +45 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +3 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/to-widget-code.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/to-widget-props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/widget-composer.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +19 -427
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +4 -0
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +7 -7
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +6 -0
- package/dist/packages/sdk-ui/src/shared/components/alert/alert.d.ts +91 -0
- package/dist/packages/sdk-ui/src/shared/components/alert/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/shared/components/dynamic-size-container/default-size.d.ts +6 -6
- package/dist/packages/sdk-ui/src/shared/components/menu/menu-button.d.ts +2 -1
- package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +32 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +11 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +54 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-warning-dismissed.d.ts +8 -0
- package/dist/packages/sdk-ui/src/shared/icons/warning-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/shared/icons/x-circle-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/shared/types/menu-item.d.ts +17 -0
- package/dist/packages/sdk-ui/src/types.d.ts +113 -6
- package/dist/{use-common-filters-B2wOzse2.js → quota-notification-D6oMJal8.js} +11177 -10827
- package/dist/{use-common-filters-BCebg2_K.cjs → quota-notification-z3dv2KoH.cjs} +164 -114
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +16 -2
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +16 -2
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +16 -2
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +16 -2
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +16 -2
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +16 -2
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +16 -2
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +16 -2
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +16 -2
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +16 -2
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +16 -2
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +16 -2
- package/dist/{types-YU936hyL.cjs → types-CoY6F8Ma.cjs} +1 -1
- package/dist/{types-tDJE6TNR.js → types-ixSwJkxM.js} +1 -1
- package/dist/{utils-BRCTwjTN.js → utils-BP-BglHE.js} +5797 -5781
- package/dist/{utils-pvzOGByh.cjs → utils-C8YMrOdw.cjs} +36 -36
- package/dist/{widget-composer-T6nvM6Xc.js → widget-composer-CUUFoCb9.js} +3 -3
- package/dist/{widget-composer-ChJ9V_fN.cjs → widget-composer-DI4sHaNe.cjs} +3 -3
- package/package.json +13 -10
- package/dist/execute-query-CgkFRn7s.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header-info-button.d.ts +0 -9
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header.d.ts +0 -13
- /package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/{use-dasboard-model-utils.d.ts → use-dashboard-model-utils.d.ts} +0 -0
|
@@ -270,6 +270,12 @@ declare const _default: {
|
|
|
270
270
|
unknownResponse: string;
|
|
271
271
|
invalidInput: string;
|
|
272
272
|
noAvailableDataTopics: string;
|
|
273
|
+
failedToFetchCreditBalance: string;
|
|
274
|
+
};
|
|
275
|
+
quota: {
|
|
276
|
+
exceededErrorTitle: string;
|
|
277
|
+
exceededErrorDescription: string;
|
|
278
|
+
warningDescription: string;
|
|
273
279
|
};
|
|
274
280
|
};
|
|
275
281
|
attribute: {
|
|
@@ -389,6 +395,14 @@ declare const _default: {
|
|
|
389
395
|
nextGroup: string;
|
|
390
396
|
};
|
|
391
397
|
};
|
|
398
|
+
filterTile: {
|
|
399
|
+
menu: {
|
|
400
|
+
lock: string;
|
|
401
|
+
unlock: string;
|
|
402
|
+
lockGroup: string;
|
|
403
|
+
unlockGroup: string;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
392
406
|
};
|
|
393
407
|
}[];
|
|
394
408
|
export default _default;
|
|
@@ -270,6 +270,12 @@ declare const _default: {
|
|
|
270
270
|
unknownResponse: string;
|
|
271
271
|
invalidInput: string;
|
|
272
272
|
noAvailableDataTopics: string;
|
|
273
|
+
failedToFetchCreditBalance: string;
|
|
274
|
+
};
|
|
275
|
+
quota: {
|
|
276
|
+
exceededErrorTitle: string;
|
|
277
|
+
exceededErrorDescription: string;
|
|
278
|
+
warningDescription: string;
|
|
273
279
|
};
|
|
274
280
|
};
|
|
275
281
|
attribute: {
|
|
@@ -389,6 +395,14 @@ declare const _default: {
|
|
|
389
395
|
nextGroup: string;
|
|
390
396
|
};
|
|
391
397
|
};
|
|
398
|
+
filterTile: {
|
|
399
|
+
menu: {
|
|
400
|
+
lock: string;
|
|
401
|
+
unlock: string;
|
|
402
|
+
lockGroup: string;
|
|
403
|
+
unlockGroup: string;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
392
406
|
};
|
|
393
407
|
}[];
|
|
394
408
|
export default _default;
|
|
@@ -267,6 +267,12 @@ export declare const translation: {
|
|
|
267
267
|
unknownResponse: string;
|
|
268
268
|
invalidInput: string;
|
|
269
269
|
noAvailableDataTopics: string;
|
|
270
|
+
failedToFetchCreditBalance: string;
|
|
271
|
+
};
|
|
272
|
+
quota: {
|
|
273
|
+
exceededErrorTitle: string;
|
|
274
|
+
exceededErrorDescription: string;
|
|
275
|
+
warningDescription: string;
|
|
270
276
|
};
|
|
271
277
|
};
|
|
272
278
|
attribute: {
|
|
@@ -386,6 +392,14 @@ export declare const translation: {
|
|
|
386
392
|
nextGroup: string;
|
|
387
393
|
};
|
|
388
394
|
};
|
|
395
|
+
filterTile: {
|
|
396
|
+
menu: {
|
|
397
|
+
lock: string;
|
|
398
|
+
unlock: string;
|
|
399
|
+
lockGroup: string;
|
|
400
|
+
unlockGroup: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
389
403
|
};
|
|
390
404
|
/**
|
|
391
405
|
* A reference type containing all currently used translation keys.
|
|
@@ -277,6 +277,12 @@ export declare const resources: {
|
|
|
277
277
|
unknownResponse: string;
|
|
278
278
|
invalidInput: string;
|
|
279
279
|
noAvailableDataTopics: string;
|
|
280
|
+
failedToFetchCreditBalance: string;
|
|
281
|
+
};
|
|
282
|
+
quota: {
|
|
283
|
+
exceededErrorTitle: string;
|
|
284
|
+
exceededErrorDescription: string;
|
|
285
|
+
warningDescription: string;
|
|
280
286
|
};
|
|
281
287
|
};
|
|
282
288
|
attribute: {
|
|
@@ -396,6 +402,14 @@ export declare const resources: {
|
|
|
396
402
|
nextGroup: string;
|
|
397
403
|
};
|
|
398
404
|
};
|
|
405
|
+
filterTile: {
|
|
406
|
+
menu: {
|
|
407
|
+
lock: string;
|
|
408
|
+
unlock: string;
|
|
409
|
+
lockGroup: string;
|
|
410
|
+
unlockGroup: string;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
399
413
|
};
|
|
400
414
|
'en-US': {
|
|
401
415
|
errors: {
|
|
@@ -666,6 +680,12 @@ export declare const resources: {
|
|
|
666
680
|
unknownResponse: string;
|
|
667
681
|
invalidInput: string;
|
|
668
682
|
noAvailableDataTopics: string;
|
|
683
|
+
failedToFetchCreditBalance: string;
|
|
684
|
+
};
|
|
685
|
+
quota: {
|
|
686
|
+
exceededErrorTitle: string;
|
|
687
|
+
exceededErrorDescription: string;
|
|
688
|
+
warningDescription: string;
|
|
669
689
|
};
|
|
670
690
|
};
|
|
671
691
|
attribute: {
|
|
@@ -785,5 +805,13 @@ export declare const resources: {
|
|
|
785
805
|
nextGroup: string;
|
|
786
806
|
};
|
|
787
807
|
};
|
|
808
|
+
filterTile: {
|
|
809
|
+
menu: {
|
|
810
|
+
lock: string;
|
|
811
|
+
unlock: string;
|
|
812
|
+
lockGroup: string;
|
|
813
|
+
unlockGroup: string;
|
|
814
|
+
};
|
|
815
|
+
};
|
|
788
816
|
};
|
|
789
817
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
2
|
import { ChatContextDetails } from '../../../modules/ai/api/types';
|
|
3
|
-
import type { Chat, ChatContext, ChatRequest, ChatResponse, ChatWithoutHistory, GetNlgInsightsRequest,
|
|
3
|
+
import type { Chat, ChatContext, ChatRequest, ChatResponse, ChatWithoutHistory, GetNlgInsightsRequest, GetNlqResultRequest, LlmConfig, NlqResult, QueryRecommendationConfig, QueryRecommendationResponse, SendFeedbackRequest } from './types';
|
|
4
4
|
/** @internal */
|
|
5
5
|
export declare class ChatRestApi {
|
|
6
6
|
private readonly volatile;
|
|
7
7
|
private httpClient;
|
|
8
|
-
|
|
8
|
+
private readonly isUnifiedNarrationEnabled;
|
|
9
|
+
private readonly isSisenseAiEnabled;
|
|
10
|
+
constructor(httpClient: HttpClient, volatile?: boolean, isUnifiedNarrationEnabled?: boolean, isSisenseAiEnabled?: boolean);
|
|
9
11
|
getChatContexts: () => Promise<ChatContext[]>;
|
|
10
12
|
private getNlgInsights;
|
|
11
13
|
private getQueryRecommendations;
|
|
@@ -18,7 +20,7 @@ export declare class ChatRestApi {
|
|
|
18
20
|
private deleteChatHistory;
|
|
19
21
|
private sendFeedback;
|
|
20
22
|
ai: {
|
|
21
|
-
getNlgInsights: (request: GetNlgInsightsRequest) => Promise<GetNlgInsightsResponse
|
|
23
|
+
getNlgInsights: (request: GetNlgInsightsRequest) => Promise<import('../../../modules/ai/api/types').GetNlgInsightsResponse>;
|
|
22
24
|
getNlqResult: (contextTitle: string, request: GetNlqResultRequest) => Promise<NlqResult | undefined>;
|
|
23
25
|
getQueryRecommendations: (contextTitle: string, config: QueryRecommendationConfig) => Promise<QueryRecommendationResponse | undefined>;
|
|
24
26
|
setLlmConfig: (config: LlmConfig) => Promise<unknown>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
+
import type { GetNlgInsightsRequest, GetNlgInsightsResponse } from './types.js';
|
|
3
|
+
/** Unified narrative endpoint. Try first; fall back to legacy on 404. */
|
|
4
|
+
export declare const UNIFIED_NARRATION_ENDPOINT = "api/v2/ai/narrative";
|
|
5
|
+
/** Legacy endpoint (used when unified narrative returns 404). */
|
|
6
|
+
export declare const LEGACY_NARRATION_ENDPOINT = "api/v2/ai/nlg/queryResult";
|
|
7
|
+
/**
|
|
8
|
+
* Options for getNarrations. All endpoint choice logic lives in this module.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export type GetNarrationsOptions = {
|
|
12
|
+
isUnifiedNarrationEnabled?: boolean;
|
|
13
|
+
isSisenseAiEnabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Fetches narrations. Single place for endpoint logic: isUnifiedNarrationEnabled === false → legacy only;
|
|
17
|
+
* otherwise try unified endpoint first, fall back to legacy on 404.
|
|
18
|
+
*
|
|
19
|
+
* @param httpClient - HttpClient instance
|
|
20
|
+
* @param request - Narration request payload
|
|
21
|
+
* @param options - Optional; isUnifiedNarrationEnabled (from props.isUnifiedNarrationEnabled)
|
|
22
|
+
* @returns Promise with narration response
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare function getNarrations(httpClient: HttpClient, request: GetNlgInsightsRequest, options?: GetNarrationsOptions): Promise<GetNlgInsightsResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JaqlQueryPayload } from '@sisense/sdk-query-client';
|
|
2
|
+
import { WidgetProps } from '../../../domains/widgets/components/widget/types';
|
|
2
3
|
import { ExpandedQueryModel } from '../../../modules/analytics-composer';
|
|
3
|
-
import { WidgetProps } from '../../../props';
|
|
4
4
|
export interface ChatContext {
|
|
5
5
|
title: string;
|
|
6
6
|
live: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Data, Filter, FilterRelations } from '@sisense/sdk-data';
|
|
3
|
+
import { ChartWidgetProps } from '../../../domains/widgets/components/chart-widget/types';
|
|
3
4
|
import type { NlqResponseData } from '../../../modules/ai';
|
|
4
|
-
import { ChartWidgetProps } from '../../../props';
|
|
5
5
|
import { NlqChartWidgetStyleOptions } from '../../../types';
|
|
6
6
|
/**
|
|
7
7
|
* Props for {@link NlqChartWidget} component.
|
|
@@ -20,7 +20,7 @@ export interface NlqChartWidgetProps {
|
|
|
20
20
|
filters?: Filter[] | FilterRelations;
|
|
21
21
|
/**
|
|
22
22
|
* A callback that allows to modify data immediately after it has been retrieved.
|
|
23
|
-
*
|
|
23
|
+
* It can be used to inject modification of queried data.
|
|
24
24
|
*/
|
|
25
25
|
onDataReady?: (data: Data) => Data;
|
|
26
26
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataSource } from '@sisense/sdk-data';
|
|
2
2
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
3
|
-
import { WidgetProps } from '../../
|
|
3
|
+
import { WidgetProps } from '../../domains/widgets/components/widget/types';
|
|
4
4
|
/**
|
|
5
5
|
* Options for {@link getNlgInsightsFromWidget} function.
|
|
6
6
|
* @internal
|
|
@@ -10,6 +10,9 @@ export interface GetNlgInsightsFromWidgetOptions {
|
|
|
10
10
|
defaultDataSource?: DataSource;
|
|
11
11
|
/** The verbosity of the NLG summarization */
|
|
12
12
|
verbosity?: 'Low' | 'High';
|
|
13
|
+
/** When false, legacy narration endpoint only; when true or undefined, try unified then fallback. From props.isUnifiedNarrationEnabled. */
|
|
14
|
+
isUnifiedNarrationEnabled?: boolean;
|
|
15
|
+
isSisenseAiEnabled?: boolean;
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
18
|
* Pure function that fetches NLG insights from WidgetProps.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataSource } from '@sisense/sdk-data';
|
|
2
|
-
import { WidgetProps } from '../../
|
|
2
|
+
import { WidgetProps } from '../../domains/widgets/components/widget/types';
|
|
3
3
|
import { HookEnableParam } from '../../shared/hooks/types';
|
|
4
4
|
import { ChatRestApi } from './api/chat-rest-api.js';
|
|
5
5
|
import { GetNlqResultRequest, NlqResult, NlqResultChartType } from './api/types.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../../domains/query-execution/index.js';
|
|
2
2
|
import { DynamicChartType } from '../../../domains/visualizations/core/chart-options-processor/translations/types.js';
|
|
3
|
-
import { ChartWidgetProps
|
|
3
|
+
import { ChartWidgetProps } from '../../../domains/widgets/components/chart-widget/types';
|
|
4
|
+
import { PivotTableWidgetProps } from '../../../domains/widgets/components/pivot-table-widget/types';
|
|
4
5
|
import { ExpandedQueryModel, SimpleQueryModel } from '../types.js';
|
|
5
6
|
export declare function toKebabCase(str: string): string;
|
|
6
7
|
export declare function capitalizeFirstLetter(str: string): string;
|
package/dist/packages/sdk-ui/src/modules/analytics-composer/dashboard/stringify-widgets.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WidgetProps } from '../../../
|
|
1
|
+
import { WidgetProps } from '../../../domains/widgets/components/widget/types';
|
|
2
2
|
import { UiFramework } from '../types.js';
|
|
3
3
|
export declare const stringifyWidgets: (widgets: WidgetProps[], uiFramework: UiFramework) => string;
|
|
@@ -2,10 +2,11 @@ import { Attribute } from '@sisense/sdk-data';
|
|
|
2
2
|
import { NlqTranslationResult } from '../types.js';
|
|
3
3
|
import { DimensionsInput } from './types.js';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Translates an array of JSON dimension items (strings or StyledColumnJSON) to attributes.
|
|
6
|
+
*
|
|
6
7
|
* Direction: JSON → CSDK
|
|
7
8
|
*
|
|
8
|
-
* @param input - DimensionsInput object
|
|
9
|
+
* @param input - DimensionsInput object
|
|
9
10
|
* @returns NlqTranslationResult<Attribute[]>
|
|
10
11
|
*/
|
|
11
12
|
export declare const translateDimensionsFromJSON: (input: DimensionsInput) => NlqTranslationResult<Attribute[]>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Attribute } from '@sisense/sdk-data';
|
|
1
|
+
import { Attribute, JSONArray } from '@sisense/sdk-data';
|
|
2
2
|
import { NlqTranslationResult } from '../types.js';
|
|
3
3
|
/**
|
|
4
|
-
* Translates CSDK Attribute array to NLQ JSON format (string array).
|
|
4
|
+
* Translates CSDK Attribute array to NLQ JSON format (string or StyledColumnJSON array).
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* When an attribute has sort applied, outputs StyledColumnJSON with column and sortType;
|
|
7
|
+
* otherwise outputs composeCode string. Delimiters are stripped at the final step in translateQueryToJSON.
|
|
8
8
|
*
|
|
9
9
|
* @param dimensions - Array of CSDK Attribute objects
|
|
10
|
-
* @returns NlqTranslationResult<
|
|
10
|
+
* @returns NlqTranslationResult<JSONArray> - JSON array output for NLQ dimensions
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
export declare function translateDimensionsToJSON(dimensions: Attribute[]): NlqTranslationResult<
|
|
13
|
+
export declare function translateDimensionsToJSON(dimensions: Attribute[]): NlqTranslationResult<JSONArray>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Filter, FilterRelations } from '@sisense/sdk-data';
|
|
1
|
+
import { Filter, FilterRelations, JSONArray } from '@sisense/sdk-data';
|
|
2
2
|
import { NlqTranslationResult } from '../types.js';
|
|
3
|
-
import { FunctionCall } from './types.js';
|
|
4
3
|
/**
|
|
5
4
|
* Translates CSDK Filter array or FilterRelations to NLQ JSON format (FunctionCall array).
|
|
6
5
|
*
|
|
@@ -11,7 +10,7 @@ import { FunctionCall } from './types.js';
|
|
|
11
10
|
* @returns NlqTranslationResult<FunctionCall[]> with array of FunctionCall objects or structured errors
|
|
12
11
|
* @internal
|
|
13
12
|
*/
|
|
14
|
-
export declare function translateFiltersToJSON(filters: Filter[] | FilterRelations | undefined): NlqTranslationResult<
|
|
13
|
+
export declare function translateFiltersToJSON(filters: Filter[] | FilterRelations | undefined): NlqTranslationResult<JSONArray>;
|
|
15
14
|
/**
|
|
16
15
|
* Translates CSDK Filter array to NLQ JSON format (FunctionCall array).
|
|
17
16
|
*
|
|
@@ -23,4 +22,4 @@ export declare function translateFiltersToJSON(filters: Filter[] | FilterRelatio
|
|
|
23
22
|
* @returns NlqTranslationResult<FunctionCall[]> with array of FunctionCall objects or structured errors
|
|
24
23
|
* @internal
|
|
25
24
|
*/
|
|
26
|
-
export declare function translateHighlightsToJSON(highlights: Filter[] | undefined): NlqTranslationResult<
|
|
25
|
+
export declare function translateHighlightsToJSON(highlights: Filter[] | undefined): NlqTranslationResult<JSONArray>;
|
|
@@ -1,37 +1,22 @@
|
|
|
1
1
|
import { Measure } from '@sisense/sdk-data';
|
|
2
|
-
import { NlqTranslationResult } from '../types.js';
|
|
3
|
-
import {
|
|
2
|
+
import { NlqTranslationErrorContext, NlqTranslationResult } from '../types.js';
|
|
3
|
+
import { FunctionCall, InternalDataSchemaContext, MeasuresInput } from './types.js';
|
|
4
4
|
/**
|
|
5
|
-
* Translate
|
|
5
|
+
* Translate a single function call to a measure.
|
|
6
6
|
*
|
|
7
|
-
* @
|
|
8
|
-
* [
|
|
9
|
-
* {
|
|
10
|
-
* "function": "measureFactory.sum",
|
|
11
|
-
* "args": ["DM.Commerce.Revenue", "Total Revenue"]
|
|
12
|
-
* },
|
|
13
|
-
* {
|
|
14
|
-
* "function": "measureFactory.sum",
|
|
15
|
-
* "args": ["DM.Commerce.Cost", "Total Cost"]
|
|
16
|
-
* }
|
|
17
|
-
* ]
|
|
18
|
-
*
|
|
19
|
-
* is translated to the following Measure[] object:
|
|
20
|
-
* {success: true, data: [
|
|
21
|
-
* measureFactory.sum("DM.Commerce.Revenue", "Total Revenue"),
|
|
22
|
-
* measureFactory.sum("DM.Commerce.Cost", "Total Cost")
|
|
23
|
-
* ]}
|
|
24
|
-
* @param measuresJSON - A JSON array representing the measures
|
|
25
|
-
* @param dataSource - The data source to use for the measures
|
|
26
|
-
* @param tables - The tables to use for the measures
|
|
27
|
-
* @returns A Measure[] object
|
|
7
|
+
* @internal
|
|
28
8
|
*/
|
|
29
|
-
export declare const
|
|
9
|
+
export declare const translateMeasureFromJSONFunctionCall: (functionCall: FunctionCall, context: InternalDataSchemaContext, errorContext: NlqTranslationErrorContext) => NlqTranslationResult<Measure>;
|
|
30
10
|
/**
|
|
31
|
-
*
|
|
11
|
+
* Translates an array of JSON measure items (FunctionCall or StyledMeasureColumnJSON) to measures.
|
|
12
|
+
*
|
|
32
13
|
* Direction: JSON → CSDK
|
|
33
14
|
*
|
|
34
|
-
* @
|
|
35
|
-
*
|
|
15
|
+
* @example
|
|
16
|
+
* [
|
|
17
|
+
* { "function": "measureFactory.sum", "args": ["DM.Commerce.Revenue", "Total Revenue"] },
|
|
18
|
+
* { "column": { "function": "measureFactory.sum", "args": ["DM.Commerce.Cost", "Total Cost"] }, "sortType": "sortDesc" }
|
|
19
|
+
* ]
|
|
20
|
+
* @internal
|
|
36
21
|
*/
|
|
37
22
|
export declare const translateMeasuresFromJSON: (input: MeasuresInput) => NlqTranslationResult<Measure[]>;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { Measure } from '@sisense/sdk-data';
|
|
1
|
+
import { JSONArray, Measure } from '@sisense/sdk-data';
|
|
2
2
|
import { NlqTranslationResult } from '../types.js';
|
|
3
|
-
import { FunctionCall } from './types.js';
|
|
4
3
|
/**
|
|
5
|
-
* Translates CSDK Measure array to NLQ JSON format (FunctionCall array).
|
|
4
|
+
* Translates CSDK Measure array to NLQ JSON format (FunctionCall or StyledMeasureColumnJSON array).
|
|
6
5
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* When a measure has sort applied, outputs StyledMeasureColumnJSON with column and sortType;
|
|
7
|
+
* otherwise outputs the parsed FunctionCall. Delimiters are stripped at the final step in translateQueryToJSON.
|
|
9
8
|
*
|
|
10
9
|
* @param measures - Array of CSDK Measure objects
|
|
11
|
-
* @returns NlqTranslationResult<
|
|
10
|
+
* @returns NlqTranslationResult<JSONArray> - JSON array output for NLQ measures
|
|
12
11
|
* @internal
|
|
13
12
|
*/
|
|
14
|
-
export declare function translateMeasuresToJSON(measures: Measure[]): NlqTranslationResult<
|
|
13
|
+
export declare function translateMeasuresToJSON(measures: Measure[]): NlqTranslationResult<JSONArray>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Filter, FilterRelations, JaqlDataSourceForDto, JSONArray, JSONValue, Measure } from '@sisense/sdk-data';
|
|
2
|
+
import { CategoryStyle, SeriesStyle, ValueStyle } from '../../../public-api/index.js';
|
|
2
3
|
import { NlqTranslationInput } from '../types.js';
|
|
3
4
|
import type { SchemaIndex } from './common.js';
|
|
4
5
|
/**
|
|
@@ -57,3 +58,47 @@ export declare function isFilterElement(arg: QueryElement): arg is Filter;
|
|
|
57
58
|
export declare function isFilterRelationsElement(arg: QueryElement): arg is FilterRelations;
|
|
58
59
|
export declare function isMeasureElement(arg: QueryElement): arg is Measure;
|
|
59
60
|
export declare function isStringArray(value: JSONArray): value is string[];
|
|
61
|
+
/**
|
|
62
|
+
* JSON-facing type for a styled dimension/attribute.
|
|
63
|
+
* Reusable for query JSON and future chart JSON (translateChartFromJSON).
|
|
64
|
+
*
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
export interface StyledColumnJSON extends CategoryStyle {
|
|
68
|
+
/** Attribute reference (composeCode), e.g. "DM.Commerce.Gender" */
|
|
69
|
+
column: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* JSON-facing type for a styled measure.
|
|
73
|
+
* Reusable for query JSON and future chart JSON (translateChartFromJSON).
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
export interface StyledMeasureColumnJSON extends ValueStyle, SeriesStyle {
|
|
78
|
+
/** Measure definition (function/args), e.g. { function: "measureFactory.sum", args: [...] } */
|
|
79
|
+
column: FunctionCall;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Dimension item in query JSON: plain composeCode string or styled column.
|
|
83
|
+
*
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
export type DimensionItemJSON = string | StyledColumnJSON;
|
|
87
|
+
/**
|
|
88
|
+
* Measure item in query JSON: plain function call or styled measure.
|
|
89
|
+
*
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
export type MeasureItemJSON = FunctionCall | StyledMeasureColumnJSON;
|
|
93
|
+
/**
|
|
94
|
+
* Type guard: value is StyledColumnJSON (object with column, not a FunctionCall).
|
|
95
|
+
*
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
export declare function isStyledColumnJSON(value: unknown): value is StyledColumnJSON;
|
|
99
|
+
/**
|
|
100
|
+
* Type guard: value is StyledMeasureColumnJSON (object with column containing a measure definition).
|
|
101
|
+
*
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
export declare function isStyledMeasureColumnJSON(value: unknown): value is StyledMeasureColumnJSON;
|
|
@@ -4,7 +4,9 @@ import { DashboardProps } from '../../domains/dashboarding/types.js';
|
|
|
4
4
|
import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../domains/query-execution/index.js';
|
|
5
5
|
import { AnyColumn } from '../../domains/visualizations/core/chart-data-options/types.js';
|
|
6
6
|
import { DynamicChartType } from '../../domains/visualizations/core/chart-options-processor/translations/types.js';
|
|
7
|
-
import { ChartWidgetProps
|
|
7
|
+
import { ChartWidgetProps } from '../../domains/widgets/components/chart-widget/types';
|
|
8
|
+
import { PivotTableWidgetProps } from '../../domains/widgets/components/pivot-table-widget/types';
|
|
9
|
+
import { WidgetProps } from '../../domains/widgets/components/widget/types';
|
|
8
10
|
import { ChartDataOptions, ChartStyleOptions } from '../../types';
|
|
9
11
|
type Stringify<T> = {
|
|
10
12
|
[K in keyof T as `${K & string}String`]: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WidgetProps } from '../../../
|
|
1
|
+
import { WidgetProps } from '../../../domains/widgets/components/widget/types';
|
|
2
2
|
import { ByIdWidgetCodeParams, ClientSideWidgetCodeParams, TemplateKeyMapByWidgetType, UiFramework } from '../types.js';
|
|
3
3
|
export declare const toWidgetCodeById: ({ dashboardOid, widgetOid, uiFramework, chartType, includeChart, }: ByIdWidgetCodeParams) => string;
|
|
4
4
|
export declare const getWidgetCode: (widgetProps: WidgetProps, uiFramework: UiFramework, templateKeyMap: TemplateKeyMapByWidgetType, removeDefaultProps?: boolean) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WidgetProps } from '../../../
|
|
1
|
+
import { WidgetProps } from '../../../domains/widgets/components/widget/types';
|
|
2
2
|
import { ExpandedQueryModel, WidgetPropsConfig } from '../types.js';
|
|
3
3
|
export declare const toWidgetPropsFromQuery: (queryModel: ExpandedQueryModel, config?: WidgetPropsConfig) => WidgetProps | undefined;
|