@vizzly/services 0.7.1 → 0.7.2-dev-dba36cbd0af6b3bcb07804673072c6fb5fb27a1f

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 (68) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/services/src/Services/DashboardServices.d.ts +2 -1
  3. package/dist/shared-logic/src/AI/types.d.ts +25 -6
  4. package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +4 -3
  5. package/dist/shared-logic/src/Aggregate/constants.d.ts +26 -0
  6. package/dist/shared-logic/src/AreaChart/constants.d.ts +3 -0
  7. package/dist/shared-logic/src/BarChart/constants.d.ts +3 -0
  8. package/dist/shared-logic/src/BasicTable/constants.d.ts +3 -0
  9. package/dist/shared-logic/src/ComboChart/constants.d.ts +3 -0
  10. package/dist/shared-logic/src/Component/sharedSchemas.d.ts +6 -5
  11. package/dist/shared-logic/src/ComponentInterface/constants.d.ts +63 -0
  12. package/dist/shared-logic/src/ComponentInterface/namespaces.d.ts +3 -0
  13. package/dist/shared-logic/src/ComponentInterface/types/ComponentInterfaceConfig.d.ts +18 -0
  14. package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +104 -0
  15. package/dist/shared-logic/src/ComponentInterface/types.d.ts +4 -4
  16. package/dist/shared-logic/src/Dashboard/fromRaw.d.ts +2 -1
  17. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/creating.d.ts +2 -1
  18. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/updating.d.ts +2 -1
  19. package/dist/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +1 -1
  20. package/dist/shared-logic/src/DataPanelConfig/types.d.ts +4 -5
  21. package/dist/shared-logic/src/DataSet/DataSet.d.ts +5 -0
  22. package/dist/shared-logic/src/DataSet/types.d.ts +1 -0
  23. package/dist/shared-logic/src/DataTable/constants.d.ts +3 -0
  24. package/dist/shared-logic/src/Display/Display.d.ts +2 -2
  25. package/dist/shared-logic/src/Display/upcast.d.ts +2 -1
  26. package/dist/shared-logic/src/Dumpable.d.ts +2 -1
  27. package/dist/shared-logic/src/Field/Field.d.ts +6 -3
  28. package/dist/shared-logic/src/Field/types.d.ts +1 -0
  29. package/dist/shared-logic/src/HorizontalBarChart/constants.d.ts +3 -0
  30. package/dist/shared-logic/src/LineChart/constants.d.ts +3 -0
  31. package/dist/shared-logic/src/MercatorMap/constants.d.ts +3 -0
  32. package/dist/shared-logic/src/PieChart/constants.d.ts +3 -0
  33. package/dist/shared-logic/src/Progress/constants.d.ts +3 -0
  34. package/dist/shared-logic/src/QueryAttributes/QueryAttributes.d.ts +2 -1
  35. package/dist/shared-logic/src/QueryAttributes/constants.d.ts +54 -0
  36. package/dist/shared-logic/src/ScatterChart/constants.d.ts +3 -0
  37. package/dist/shared-logic/src/SingleStat/constants.d.ts +3 -0
  38. package/dist/shared-logic/src/Theme/types.d.ts +27 -0
  39. package/dist/shared-logic/src/TimeDimension/constants.d.ts +34 -0
  40. package/dist/shared-logic/src/Translations/extract/shared.d.ts +10 -0
  41. package/dist/shared-logic/src/Translations/textOverrideComponent.d.ts +30 -0
  42. package/dist/shared-logic/src/Translations/translation.schema.d.ts +2 -0
  43. package/dist/shared-logic/src/Translations/translation.types.d.ts +4748 -0
  44. package/dist/shared-logic/src/Translations/translations.d.ts +9 -0
  45. package/dist/shared-logic/src/Translations/types.d.ts +13 -0
  46. package/dist/shared-logic/src/Translations/validation.d.ts +1 -0
  47. package/dist/shared-logic/src/api/index.d.ts +3 -9
  48. package/dist/shared-logic/src/api/vizzly/aiActions.d.ts +18 -0
  49. package/dist/shared-logic/src/api/vizzly/aiHelpers/buildAIResponse.d.ts +5 -0
  50. package/dist/shared-logic/src/api/vizzly/aiHelpers/buildDataSets.d.ts +4 -0
  51. package/dist/shared-logic/src/api/vizzly/aiHelpers/checkAiResponseStatus.d.ts +3 -0
  52. package/dist/shared-logic/src/api/vizzly/aiHelpers/types.d.ts +23 -0
  53. package/dist/shared-logic/src/api/vizzly/aiHelpers/validateAndUpcastAIAttributes.d.ts +4 -0
  54. package/dist/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +10 -0
  55. package/dist/shared-logic/src/api/vizzly/askAi.d.ts +2 -8
  56. package/dist/shared-logic/src/api/vizzly/askAiForQuestionSuggestions.d.ts +4 -0
  57. package/dist/shared-logic/src/errors/AIAborted.d.ts +4 -0
  58. package/dist/shared-logic/src/errors/AIContainsErrors.d.ts +4 -0
  59. package/dist/shared-logic/src/errors/AIFailedToFetch.d.ts +4 -0
  60. package/dist/shared-logic/src/errors/AIUsageLimitReached.d.ts +1 -1
  61. package/dist/shared-logic/src/errors/index.d.ts +5 -0
  62. package/dist/shared-logic/src/utils/stringHelper.d.ts +2 -1
  63. package/package.json +1 -1
  64. package/dist/shared-logic/src/Documentation/index.d.ts +0 -2
  65. package/dist/shared-logic/src/Documentation/joiToDocumentation.d.ts +0 -4
  66. package/dist/shared-logic/src/Documentation/joiToSchemaDefinition.d.ts +0 -2
  67. package/dist/shared-logic/src/api/vizzly/askAi/types.d.ts +0 -2
  68. package/dist/shared-logic/src/api/vizzly/askAi/validateAndUpcast.d.ts +0 -5
@@ -0,0 +1,54 @@
1
+ export declare const supportedOperatorsConstants: {
2
+ '>': {
3
+ publicName: string;
4
+ validDataTypes: string[];
5
+ };
6
+ '<': {
7
+ publicName: string;
8
+ validDataTypes: string[];
9
+ };
10
+ '<=': {
11
+ publicName: string;
12
+ validDataTypes: string[];
13
+ };
14
+ '>=': {
15
+ publicName: string;
16
+ validDataTypes: string[];
17
+ };
18
+ '!=': {
19
+ publicName: string;
20
+ validDataTypes: string[];
21
+ };
22
+ is_one_of: {
23
+ publicName: string;
24
+ validDataTypes: string[];
25
+ };
26
+ '=': {
27
+ publicName: string;
28
+ validDataTypes: string[];
29
+ };
30
+ is_not_one_of: {
31
+ publicName: string;
32
+ validDataTypes: string[];
33
+ };
34
+ starts_with: {
35
+ publicName: string;
36
+ validDataTypes: string[];
37
+ };
38
+ ends_with: {
39
+ publicName: string;
40
+ validDataTypes: string[];
41
+ };
42
+ contains_substring: {
43
+ publicName: string;
44
+ validDataTypes: string[];
45
+ };
46
+ does_not_contain_substring: {
47
+ publicName: string;
48
+ validDataTypes: string[];
49
+ };
50
+ array_contains: {
51
+ publicName: string;
52
+ validDataTypes: string[];
53
+ };
54
+ };
@@ -0,0 +1,3 @@
1
+ import { ViewConstants } from '../ComponentInterface/types/namespaces.types';
2
+ declare const CONSTANTS: ViewConstants;
3
+ export default CONSTANTS;
@@ -0,0 +1,3 @@
1
+ import { ViewConstants } from '../ComponentInterface/types/namespaces.types';
2
+ declare const CONSTANTS: ViewConstants;
3
+ export default CONSTANTS;
@@ -31,6 +31,8 @@ export declare namespace VizzlyTheming {
31
31
  library?: Library;
32
32
  filters?: Filters;
33
33
  header?: Header;
34
+ ai?: AI;
35
+ icons?: Icons;
34
36
  }
35
37
  interface Buttons {
36
38
  primary?: ButtonType;
@@ -457,5 +459,30 @@ export declare namespace VizzlyTheming {
457
459
  padding?: CSSProperties['padding'];
458
460
  textAlign?: CSSProperties['textAlign'];
459
461
  };
462
+ type AI = {
463
+ suggestions?: {
464
+ padding?: CSSProperties['padding'];
465
+ borderRadius?: CSSProperties['borderRadius'];
466
+ background?: CSSProperties['background'];
467
+ color?: CSSProperties['color'];
468
+ border?: CSSProperties['border'];
469
+ '&:hover'?: {
470
+ background?: CSSProperties['background'];
471
+ color?: CSSProperties['color'];
472
+ border?: CSSProperties['border'];
473
+ };
474
+ };
475
+ avatar?: {
476
+ color?: CSSProperties['color'];
477
+ background?: CSSProperties['color'];
478
+ border?: CSSProperties['border'];
479
+ };
480
+ };
481
+ type Icons = {
482
+ color?: CSSProperties['color'];
483
+ '&:hover'?: {
484
+ color?: CSSProperties['color'];
485
+ };
486
+ };
460
487
  }
461
488
  export type ThemeVersion = 1 | 2;
@@ -0,0 +1,34 @@
1
+ export declare const timeDimensionsConstants: {
2
+ month: {
3
+ publicName: string;
4
+ dateFormat: string;
5
+ };
6
+ year: {
7
+ publicName: string;
8
+ dateFormat: string;
9
+ };
10
+ quarter: {
11
+ publicName: string;
12
+ dateFormat: string;
13
+ };
14
+ week: {
15
+ publicName: string;
16
+ dateFormat: string;
17
+ };
18
+ day: {
19
+ publicName: string;
20
+ dateFormat: string;
21
+ };
22
+ second: {
23
+ publicName: string;
24
+ dateFormat: string;
25
+ };
26
+ hour: {
27
+ publicName: string;
28
+ dateFormat: string;
29
+ };
30
+ minute: {
31
+ publicName: string;
32
+ dateFormat: string;
33
+ };
34
+ };
@@ -0,0 +1,10 @@
1
+ export declare const SECTION_KEYS: readonly ["title", "description", "data_panel", "format_panel"];
2
+ export type SectionKeys = typeof SECTION_KEYS[number];
3
+ export declare const PROPERTIES: string[];
4
+ export declare const CALL_TO_ACTION = "call_to_action";
5
+ export type ExtractedKeys = {
6
+ key: string;
7
+ defaultValue: string;
8
+ fixedVariables?: string[] | undefined;
9
+ plurals?: string[] | undefined;
10
+ };
@@ -0,0 +1,30 @@
1
+ import { ComponentInterface } from '../ComponentInterface/types';
2
+ import { DataPanelSection } from '../DataPanelConfig/types';
3
+ import { TextOverride } from './types';
4
+ export declare const textOverrideComponent: (component: ComponentInterface<any>, textOverride?: TextOverride) => ComponentInterface<any>;
5
+ type Panel = {
6
+ namespace?: string;
7
+ type?: string;
8
+ title?: string;
9
+ description?: string;
10
+ callToAction?: string;
11
+ subSection?: any;
12
+ x?: Panel & FormatPanel;
13
+ y?: Panel & FormatPanel;
14
+ };
15
+ type FormatPanel = {
16
+ axisTitle?: Panel;
17
+ count?: Panel;
18
+ format?: Panel;
19
+ postfix?: Panel;
20
+ prefix?: Panel;
21
+ };
22
+ type Result = {
23
+ key: string;
24
+ defaultValue: string;
25
+ property: keyof DataPanelSection;
26
+ };
27
+ export declare function buildAxisLabels(namespaceTextOverride: TextOverride, formatPanelKey: string, panel: Panel): void;
28
+ export declare function buildSubSection(panel: Panel, namespaceTextOverride: TextOverride, dataPanelKey: string): any;
29
+ export declare function buildObject(panel: Panel): Result[];
30
+ export {};
@@ -0,0 +1,2 @@
1
+ import Joi from '@vizzly/joi';
2
+ export declare const textOverrideSchema: Joi.AlternativesSchema<any>;