@qrvey/utils 1.7.0-0 → 1.7.0-1
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/charts/adapters/RequestAdapterMetric.d.ts +7 -0
- package/dist/charts/adapters/RequestAdapterMetric.js +120 -0
- package/dist/charts/adapters/index.d.ts +1 -0
- package/dist/charts/adapters/index.js +1 -0
- package/dist/charts/constants/REQUEST_ADAPTER.d.ts +91 -0
- package/dist/charts/constants/REQUEST_ADAPTER.js +93 -0
- package/dist/charts/constants/index.d.ts +1 -0
- package/dist/charts/constants/index.js +1 -0
- package/dist/charts/interfaces/IRequestAdapterMetric.d.ts +124 -0
- package/dist/charts/interfaces/IRequestAdapterMetric.js +1 -0
- package/dist/charts/interfaces/index.d.ts +1 -0
- package/dist/charts/interfaces/index.js +1 -0
- package/dist/cjs/charts/adapters/RequestAdapterMetric.d.ts +7 -0
- package/dist/cjs/charts/adapters/RequestAdapterMetric.js +124 -0
- package/dist/cjs/charts/adapters/index.d.ts +1 -0
- package/dist/cjs/charts/adapters/index.js +1 -0
- package/dist/cjs/charts/constants/REQUEST_ADAPTER.d.ts +91 -0
- package/dist/cjs/charts/constants/REQUEST_ADAPTER.js +96 -0
- package/dist/cjs/charts/constants/index.d.ts +1 -0
- package/dist/cjs/charts/constants/index.js +1 -0
- package/dist/cjs/charts/interfaces/IRequestAdapterMetric.d.ts +124 -0
- package/dist/cjs/charts/interfaces/IRequestAdapterMetric.js +2 -0
- package/dist/cjs/charts/interfaces/index.d.ts +1 -0
- package/dist/cjs/charts/interfaces/index.js +1 -0
- package/dist/cjs/columns/constants/COLUMN_PROPERTIES.d.ts +1 -1
- package/dist/cjs/dates/constants/DATE_GROUPING_ALL_PROPERTIES.d.ts +1 -1
- package/dist/cjs/format/helpers/isDateTimeFormat.js +2 -0
- package/dist/cjs/globalization/interfaces/II18nServiceTranslateOption.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +5 -5
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +3 -3
- package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +0 -2
- package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.d.ts +5 -5
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +1 -1
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +4 -1
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +0 -6
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +1 -1
- package/dist/cjs/interfaces/IChartBuilder.Interface.d.ts +26 -0
- package/dist/cjs/interfaces/IChartBuilder.Interface.js +28 -0
- package/dist/columns/constants/COLUMN_PROPERTIES.d.ts +1 -1
- package/dist/dates/constants/DATE_GROUPING_ALL_PROPERTIES.d.ts +1 -1
- package/dist/format/helpers/isDateTimeFormat.js +2 -0
- package/dist/globalization/interfaces/II18nServiceTranslateOption.d.ts +1 -1
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +5 -5
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +3 -3
- package/dist/globalization/interfaces/filters/II18nFilter.d.ts +0 -2
- package/dist/globalization/interfaces/filters/II18nTokenBox.d.ts +5 -5
- package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +1 -1
- package/dist/globalization/labels/common/I18N_COMMON.js +4 -1
- package/dist/globalization/labels/filters/I18N_FILTER.js +0 -6
- package/dist/globalization/labels/panel/I18N_PANEL.js +1 -1
- package/dist/interfaces/IChartBuilder.Interface.d.ts +26 -0
- package/dist/interfaces/IChartBuilder.Interface.js +27 -1
- package/package.json +9 -9
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { DATE_GROUPING_PROPERTY, DATE_GROUPING_TIME_PROPERTY, RELATIVE_CURSOR } from "../../dates";
|
|
2
|
+
export declare const RELATIVE_OBJECT_BY_TIME_LABEL: {
|
|
3
|
+
THIS_SECOND: {
|
|
4
|
+
cursor: RELATIVE_CURSOR;
|
|
5
|
+
unit: DATE_GROUPING_TIME_PROPERTY;
|
|
6
|
+
};
|
|
7
|
+
LAST_SECOND: {
|
|
8
|
+
cursor: RELATIVE_CURSOR;
|
|
9
|
+
unit: DATE_GROUPING_TIME_PROPERTY;
|
|
10
|
+
number: number;
|
|
11
|
+
includeCurrent: boolean;
|
|
12
|
+
isCalendarDate: boolean;
|
|
13
|
+
};
|
|
14
|
+
THIS_MINUTE: {
|
|
15
|
+
cursor: RELATIVE_CURSOR;
|
|
16
|
+
unit: DATE_GROUPING_TIME_PROPERTY;
|
|
17
|
+
};
|
|
18
|
+
LAST_MINUTE: {
|
|
19
|
+
cursor: RELATIVE_CURSOR;
|
|
20
|
+
unit: DATE_GROUPING_TIME_PROPERTY;
|
|
21
|
+
number: number;
|
|
22
|
+
includeCurrent: boolean;
|
|
23
|
+
isCalendarDate: boolean;
|
|
24
|
+
};
|
|
25
|
+
THIS_HOUR: {
|
|
26
|
+
cursor: RELATIVE_CURSOR;
|
|
27
|
+
unit: DATE_GROUPING_TIME_PROPERTY;
|
|
28
|
+
};
|
|
29
|
+
LAST_HOUR: {
|
|
30
|
+
cursor: RELATIVE_CURSOR;
|
|
31
|
+
number: number;
|
|
32
|
+
unit: DATE_GROUPING_TIME_PROPERTY;
|
|
33
|
+
includeCurrent: boolean;
|
|
34
|
+
isCalendarDate: boolean;
|
|
35
|
+
};
|
|
36
|
+
TODAY: {
|
|
37
|
+
cursor: RELATIVE_CURSOR;
|
|
38
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
39
|
+
};
|
|
40
|
+
YESTERDAY: {
|
|
41
|
+
cursor: RELATIVE_CURSOR;
|
|
42
|
+
number: number;
|
|
43
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
44
|
+
includeCurrent: boolean;
|
|
45
|
+
isCalendarDate: boolean;
|
|
46
|
+
};
|
|
47
|
+
THIS_WEEK: {
|
|
48
|
+
cursor: RELATIVE_CURSOR;
|
|
49
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
50
|
+
};
|
|
51
|
+
LAST_WEEK: {
|
|
52
|
+
cursor: RELATIVE_CURSOR;
|
|
53
|
+
number: number;
|
|
54
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
55
|
+
includeCurrent: boolean;
|
|
56
|
+
isCalendarDate: boolean;
|
|
57
|
+
};
|
|
58
|
+
THIS_MONTH: {
|
|
59
|
+
cursor: RELATIVE_CURSOR;
|
|
60
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
61
|
+
};
|
|
62
|
+
LAST_MONTH: {
|
|
63
|
+
cursor: RELATIVE_CURSOR;
|
|
64
|
+
number: number;
|
|
65
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
66
|
+
includeCurrent: boolean;
|
|
67
|
+
isCalendarDate: boolean;
|
|
68
|
+
};
|
|
69
|
+
THIS_QUARTER: {
|
|
70
|
+
cursor: RELATIVE_CURSOR;
|
|
71
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
72
|
+
};
|
|
73
|
+
LAST_QUARTER: {
|
|
74
|
+
cursor: RELATIVE_CURSOR;
|
|
75
|
+
number: number;
|
|
76
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
77
|
+
includeCurrent: boolean;
|
|
78
|
+
isCalendarDate: boolean;
|
|
79
|
+
};
|
|
80
|
+
THIS_YEAR: {
|
|
81
|
+
cursor: RELATIVE_CURSOR;
|
|
82
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
83
|
+
};
|
|
84
|
+
LAST_YEAR: {
|
|
85
|
+
cursor: RELATIVE_CURSOR;
|
|
86
|
+
number: number;
|
|
87
|
+
unit: DATE_GROUPING_PROPERTY;
|
|
88
|
+
includeCurrent: boolean;
|
|
89
|
+
isCalendarDate: boolean;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RELATIVE_OBJECT_BY_TIME_LABEL = void 0;
|
|
4
|
+
const dates_1 = require("../../dates");
|
|
5
|
+
const interfaces_1 = require("../../interfaces");
|
|
6
|
+
/* A constant that is used to define the time period for the metric chart. */
|
|
7
|
+
exports.RELATIVE_OBJECT_BY_TIME_LABEL = {
|
|
8
|
+
[interfaces_1.TIME_PERIOD.THIS_SECOND]: {
|
|
9
|
+
cursor: dates_1.RELATIVE_CURSOR.THIS,
|
|
10
|
+
unit: dates_1.DATE_GROUPING_TIME_PROPERTY.SECOND,
|
|
11
|
+
},
|
|
12
|
+
[interfaces_1.TIME_PERIOD.LAST_SECOND]: {
|
|
13
|
+
cursor: dates_1.RELATIVE_CURSOR.LAST,
|
|
14
|
+
unit: dates_1.DATE_GROUPING_TIME_PROPERTY.SECOND,
|
|
15
|
+
number: 1,
|
|
16
|
+
includeCurrent: false,
|
|
17
|
+
isCalendarDate: true,
|
|
18
|
+
},
|
|
19
|
+
[interfaces_1.TIME_PERIOD.THIS_MINUTE]: {
|
|
20
|
+
cursor: dates_1.RELATIVE_CURSOR.THIS,
|
|
21
|
+
unit: dates_1.DATE_GROUPING_TIME_PROPERTY.MINUTE,
|
|
22
|
+
},
|
|
23
|
+
[interfaces_1.TIME_PERIOD.LAST_MINUTE]: {
|
|
24
|
+
cursor: dates_1.RELATIVE_CURSOR.LAST,
|
|
25
|
+
unit: dates_1.DATE_GROUPING_TIME_PROPERTY.MINUTE,
|
|
26
|
+
number: 1,
|
|
27
|
+
includeCurrent: false,
|
|
28
|
+
isCalendarDate: true,
|
|
29
|
+
},
|
|
30
|
+
[interfaces_1.TIME_PERIOD.THIS_HOUR]: {
|
|
31
|
+
cursor: dates_1.RELATIVE_CURSOR.THIS,
|
|
32
|
+
unit: dates_1.DATE_GROUPING_TIME_PROPERTY.HOUR,
|
|
33
|
+
},
|
|
34
|
+
[interfaces_1.TIME_PERIOD.LAST_HOUR]: {
|
|
35
|
+
cursor: dates_1.RELATIVE_CURSOR.LAST,
|
|
36
|
+
number: 1,
|
|
37
|
+
unit: dates_1.DATE_GROUPING_TIME_PROPERTY.HOUR,
|
|
38
|
+
includeCurrent: false,
|
|
39
|
+
isCalendarDate: true,
|
|
40
|
+
},
|
|
41
|
+
[interfaces_1.TIME_PERIOD.TODAY]: {
|
|
42
|
+
cursor: dates_1.RELATIVE_CURSOR.THIS,
|
|
43
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.DAY,
|
|
44
|
+
},
|
|
45
|
+
[interfaces_1.TIME_PERIOD.YESTERDAY]: {
|
|
46
|
+
cursor: dates_1.RELATIVE_CURSOR.LAST,
|
|
47
|
+
number: 1,
|
|
48
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.DAY,
|
|
49
|
+
includeCurrent: false,
|
|
50
|
+
isCalendarDate: true,
|
|
51
|
+
},
|
|
52
|
+
[interfaces_1.TIME_PERIOD.THIS_WEEK]: {
|
|
53
|
+
cursor: dates_1.RELATIVE_CURSOR.THIS,
|
|
54
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.WEEK,
|
|
55
|
+
},
|
|
56
|
+
[interfaces_1.TIME_PERIOD.LAST_WEEK]: {
|
|
57
|
+
cursor: dates_1.RELATIVE_CURSOR.LAST,
|
|
58
|
+
number: 1,
|
|
59
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.WEEK,
|
|
60
|
+
includeCurrent: false,
|
|
61
|
+
isCalendarDate: true,
|
|
62
|
+
},
|
|
63
|
+
[interfaces_1.TIME_PERIOD.THIS_MONTH]: {
|
|
64
|
+
cursor: dates_1.RELATIVE_CURSOR.THIS,
|
|
65
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.MONTH,
|
|
66
|
+
},
|
|
67
|
+
[interfaces_1.TIME_PERIOD.LAST_MONTH]: {
|
|
68
|
+
cursor: dates_1.RELATIVE_CURSOR.LAST,
|
|
69
|
+
number: 1,
|
|
70
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.MONTH,
|
|
71
|
+
includeCurrent: false,
|
|
72
|
+
isCalendarDate: true,
|
|
73
|
+
},
|
|
74
|
+
[interfaces_1.TIME_PERIOD.THIS_QUARTER]: {
|
|
75
|
+
cursor: dates_1.RELATIVE_CURSOR.THIS,
|
|
76
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.QUARTER,
|
|
77
|
+
},
|
|
78
|
+
[interfaces_1.TIME_PERIOD.LAST_QUARTER]: {
|
|
79
|
+
cursor: dates_1.RELATIVE_CURSOR.LAST,
|
|
80
|
+
number: 1,
|
|
81
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.QUARTER,
|
|
82
|
+
includeCurrent: false,
|
|
83
|
+
isCalendarDate: true,
|
|
84
|
+
},
|
|
85
|
+
[interfaces_1.TIME_PERIOD.THIS_YEAR]: {
|
|
86
|
+
cursor: dates_1.RELATIVE_CURSOR.THIS,
|
|
87
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.YEAR,
|
|
88
|
+
},
|
|
89
|
+
[interfaces_1.TIME_PERIOD.LAST_YEAR]: {
|
|
90
|
+
cursor: dates_1.RELATIVE_CURSOR.LAST,
|
|
91
|
+
number: 1,
|
|
92
|
+
unit: dates_1.DATE_GROUPING_PROPERTY.YEAR,
|
|
93
|
+
includeCurrent: false,
|
|
94
|
+
isCalendarDate: true,
|
|
95
|
+
},
|
|
96
|
+
};
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./AGGREGATE_INFO_LIST"), exports);
|
|
|
20
20
|
__exportStar(require("./AGGREGATE_INFO"), exports);
|
|
21
21
|
__exportStar(require("./AGGREGATE_LABEL"), exports);
|
|
22
22
|
__exportStar(require("./AGGREGATE"), exports);
|
|
23
|
+
__exportStar(require("./REQUEST_ADAPTER"), exports);
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { IBColumn } from "../../columns";
|
|
2
|
+
import { IDateGroupingProperty, RelativeCursor } from "../../dates";
|
|
3
|
+
import { IFBLogic } from "../../filters";
|
|
4
|
+
import { TimePeriod, TP_CUSTOM_RANGE } from "../../interfaces";
|
|
5
|
+
import { AGGREGATE_LABEL } from "../constants";
|
|
6
|
+
export interface MetricRequestPayload {
|
|
7
|
+
logic: IFBLogic[];
|
|
8
|
+
value: MetricValue;
|
|
9
|
+
period?: MetricPeriod | MetricCustomRange;
|
|
10
|
+
comparison?: MetricComparison | MetricCustomRange;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A metric value is an object with an aggregate label, a question id, and an optional property.
|
|
14
|
+
* @property {AGGREGATE_LABEL} aggregate - The aggregate label to use.
|
|
15
|
+
* @property {string} questionid - The question ID of the question you want to get the metric for.
|
|
16
|
+
* @property {string | null} property - The property of the question that you want to aggregate. For
|
|
17
|
+
* example, if you want to aggregate the number of times a question was answered, you would use the
|
|
18
|
+
* property "answered".
|
|
19
|
+
*/
|
|
20
|
+
export declare type MetricValue = {
|
|
21
|
+
aggregate: AGGREGATE_LABEL;
|
|
22
|
+
questionid: string;
|
|
23
|
+
property?: string | null;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A `RelativeDateConfig` is an object with a `questionid` property, a `cursor` property, an optional
|
|
27
|
+
* `number` property, a `unit` property, an optional `includeCurrent` property, and an optional
|
|
28
|
+
* `isCalendarDate` property.
|
|
29
|
+
* @property {string} questionid - The question id of the question that you want to filter on.
|
|
30
|
+
* @property {RelativeCursor} cursor - The cursor is the date that the relative date is based on. It
|
|
31
|
+
* can be one of the following:
|
|
32
|
+
* @property {number} number - The number of units to go back.
|
|
33
|
+
* @property {IDateGroupingProperty} unit - The unit of time to use for the relative date. This can be
|
|
34
|
+
* one of the following:
|
|
35
|
+
* @property {boolean} includeCurrent - If true, the current date is included in the range.
|
|
36
|
+
* @property {boolean} isCalendarDate - If true, the date is a calendar date, otherwise it's a relative
|
|
37
|
+
* date.
|
|
38
|
+
*/
|
|
39
|
+
export declare type RelativeDateConfig = {
|
|
40
|
+
questionid: string;
|
|
41
|
+
cursor: RelativeCursor;
|
|
42
|
+
number?: number;
|
|
43
|
+
unit: IDateGroupingProperty;
|
|
44
|
+
includeCurrent?: boolean;
|
|
45
|
+
isCalendarDate?: boolean;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* `MetricCustomRange` is a type that has a property called `customRange` that is of type
|
|
49
|
+
* `CustomRange`.
|
|
50
|
+
* @property {CustomRange} customRange - The custom range to use for the metric.
|
|
51
|
+
*/
|
|
52
|
+
export declare type MetricCustomRange = {
|
|
53
|
+
customRange: CustomRange;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* `CustomRangeConfig` is an object with optional properties `startingDate`, `endDate`, and `label`.
|
|
57
|
+
* @property {string} startingDate - The starting date of the custom range.
|
|
58
|
+
* @property {string} endDate - The end date of the custom range.
|
|
59
|
+
* @property {TP_CUSTOM_RANGE} label - The label for the custom range.
|
|
60
|
+
*/
|
|
61
|
+
export declare type CustomRangeConfig = {
|
|
62
|
+
startingDate?: string;
|
|
63
|
+
endDate?: string;
|
|
64
|
+
label?: TP_CUSTOM_RANGE;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* CustomRange is an object with optional gte and lte properties, both of which are strings.
|
|
68
|
+
* @property {string} gte - Greater than or equal to
|
|
69
|
+
* @property {string} lte - Less than or equal to
|
|
70
|
+
*/
|
|
71
|
+
export declare type CustomRange = {
|
|
72
|
+
gte?: string;
|
|
73
|
+
lte?: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* `MetricRequestResponse` is an object with four properties: `value`, `min`, `max`, and `comparison`.
|
|
77
|
+
*
|
|
78
|
+
* The `value` property is a number. The `min` and `max` properties are also numbers. The `comparison`
|
|
79
|
+
* property is a number.
|
|
80
|
+
* @property {number} value - The value of the metric
|
|
81
|
+
* @property {number} min - The minimum value of the metric
|
|
82
|
+
* @property {number} max - The maximum value of the metric
|
|
83
|
+
* @property {number} comparison - The value of the metric for the previous period.
|
|
84
|
+
*/
|
|
85
|
+
export declare type MetricRequestResponse = {
|
|
86
|
+
value: number;
|
|
87
|
+
min: number;
|
|
88
|
+
max: number;
|
|
89
|
+
comparison: number;
|
|
90
|
+
};
|
|
91
|
+
export declare type MetricPeriod = RelativeDateConfig;
|
|
92
|
+
export declare type MetricComparison = RelativeDateConfig;
|
|
93
|
+
export declare type MetricConfig = {
|
|
94
|
+
logic: IFBLogic[];
|
|
95
|
+
data: MetricConfigData;
|
|
96
|
+
};
|
|
97
|
+
export declare type MetricConfigData = {
|
|
98
|
+
dateColumn: IBColumn;
|
|
99
|
+
timePeriod: MetricTimeInfo;
|
|
100
|
+
timePeriodCustomRange: MetricTimeCustomRange;
|
|
101
|
+
timePeriodDate: string;
|
|
102
|
+
timePeriodEndDate: string;
|
|
103
|
+
comparison: MetricTimeInfo;
|
|
104
|
+
comparisonCustomRange: MetricTimeCustomRange;
|
|
105
|
+
comparisonDate: string;
|
|
106
|
+
comparisonEndDate: string;
|
|
107
|
+
value: {
|
|
108
|
+
id: string;
|
|
109
|
+
property: string;
|
|
110
|
+
};
|
|
111
|
+
valueAggregate: {
|
|
112
|
+
label: AGGREGATE_LABEL;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export declare type MetricTimeCustomRange = {
|
|
116
|
+
key: string;
|
|
117
|
+
label: TP_CUSTOM_RANGE;
|
|
118
|
+
text: string;
|
|
119
|
+
};
|
|
120
|
+
export declare type MetricTimeInfo = {
|
|
121
|
+
key: string;
|
|
122
|
+
label: TimePeriod;
|
|
123
|
+
text: string;
|
|
124
|
+
};
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./IAggregateAbbreviation"), exports);
|
|
|
18
18
|
__exportStar(require("./IAggregateInfo"), exports);
|
|
19
19
|
__exportStar(require("./IAggregateLabel"), exports);
|
|
20
20
|
__exportStar(require("./IAggregateType"), exports);
|
|
21
|
+
__exportStar(require("./IRequestAdapterMetric"), exports);
|
|
@@ -2,4 +2,4 @@ import { COLUMN_PROPERTY } from "./COLUMN_PROPERTY";
|
|
|
2
2
|
/**
|
|
3
3
|
* @description Collection of column properties
|
|
4
4
|
*/
|
|
5
|
-
export declare const COLUMN_PROPERTIES: (import("../..").
|
|
5
|
+
export declare const COLUMN_PROPERTIES: (import("../..").DATE_DISTINCT_PROPERTY | import("../..").DATE_DISTINCT_TIME_PROPERTY | import("./COMPOUND_COLUMN_PROPERTY").COMPOUND_COLUMN_PROPERTY | import("../..").DATE_GROUPING_PROPERTY | import("../..").DATE_GROUPING_TIME_PROPERTY | import("./COMPLEX_COLUMN_PROPERTY").COMPLEX_COLUMN_PROPERTY | COLUMN_PROPERTY)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DATE_GROUPING_ALL_PROPERTIES: (import("./
|
|
1
|
+
export declare const DATE_GROUPING_ALL_PROPERTIES: (import("./DATE_GROUPING_PROPERTY").DATE_GROUPING_PROPERTY | import("./DATE_GROUPING_TIME_PROPERTY").DATE_GROUPING_TIME_PROPERTY)[];
|
|
@@ -12,6 +12,8 @@ const isDateTimeFormat = (outputFormat) => {
|
|
|
12
12
|
const format = (outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format) === "Default" && ((_a = outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.originalFormat) === null || _a === void 0 ? void 0 : _a.format)
|
|
13
13
|
? (_b = outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.originalFormat) === null || _b === void 0 ? void 0 : _b.format
|
|
14
14
|
: outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format;
|
|
15
|
+
if (typeof format !== "string")
|
|
16
|
+
return false;
|
|
15
17
|
return DATETIME_COLUMN_FORMAT_1.DATETIME_COLUMN_FORMAT.some((opt) => format === null || format === void 0 ? void 0 : format.includes(opt));
|
|
16
18
|
};
|
|
17
19
|
exports.isDateTimeFormat = isDateTimeFormat;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { II18nCrossTabsSorting } from "./II18nCrossTabsSorting";
|
|
2
2
|
export interface II18nCrossTabs {
|
|
3
|
-
footer_message
|
|
4
|
-
grand_total
|
|
5
|
-
no_data
|
|
6
|
-
sort
|
|
7
|
-
total
|
|
3
|
+
footer_message: string;
|
|
4
|
+
grand_total: string;
|
|
5
|
+
no_data: string;
|
|
6
|
+
sort: II18nCrossTabsSorting;
|
|
7
|
+
total: string;
|
|
8
8
|
}
|
|
@@ -7,7 +7,6 @@ import { II18nFilterOperator } from "./II18nFilterOperator";
|
|
|
7
7
|
import { II18nFilterScopes } from "./II18nFilterScopes";
|
|
8
8
|
import { II18nFilterPanelScopeTitle } from "./II18nFilterPanelScopeTitle";
|
|
9
9
|
import { II18nFilterDateSections } from "./II18nFilterDateSections";
|
|
10
|
-
import { II18nTokenBox } from "./II18nTokenBox";
|
|
11
10
|
import { II18nFilterExtraInfo } from "./II18nFilterExtraInfo";
|
|
12
11
|
export interface II18nFilter {
|
|
13
12
|
date_sections: II18nFilterDateSections;
|
|
@@ -18,7 +17,6 @@ export interface II18nFilter {
|
|
|
18
17
|
scope_title: II18nFilterPanelScopeTitle;
|
|
19
18
|
scopes: II18nFilterScopes;
|
|
20
19
|
slidebar: II18nSlidebar;
|
|
21
|
-
token_box?: II18nTokenBox;
|
|
22
20
|
validators: II18nFilterValidator;
|
|
23
21
|
value_container: II18nValueContainer;
|
|
24
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface II18nTokenBox {
|
|
2
|
-
data_tokens
|
|
3
|
-
search
|
|
4
|
-
system_tokens
|
|
5
|
-
language_tokens
|
|
6
|
-
user_tokens
|
|
2
|
+
data_tokens: string;
|
|
3
|
+
search: string;
|
|
4
|
+
system_tokens: string;
|
|
5
|
+
language_tokens: string;
|
|
6
|
+
user_tokens: string;
|
|
7
7
|
}
|
|
@@ -26,8 +26,11 @@ exports.I18N_COMMON = {
|
|
|
26
26
|
search: "Search",
|
|
27
27
|
sort: "Sort",
|
|
28
28
|
token_box: {
|
|
29
|
-
|
|
29
|
+
data_tokens: "Data Tokens",
|
|
30
30
|
language_tokens: "Language Tokens",
|
|
31
|
+
search: "Search",
|
|
32
|
+
system_tokens: "System Tokens",
|
|
33
|
+
user_tokens: "User Tokens",
|
|
31
34
|
},
|
|
32
35
|
token_mode: {
|
|
33
36
|
tooltip: {
|
|
@@ -33,12 +33,6 @@ exports.I18N_FILTER = {
|
|
|
33
33
|
},
|
|
34
34
|
scopes: I18N_FILTER_SCOPE_1.I18N_FILTER_SCOPE,
|
|
35
35
|
slidebar: I18N_SLIDEBAR_1.I18N_SLIDEBAR,
|
|
36
|
-
token_box: {
|
|
37
|
-
data_tokens: "DataTokens",
|
|
38
|
-
search: "Search",
|
|
39
|
-
system_tokens: "SystemTokens",
|
|
40
|
-
user_tokens: "UserTokens",
|
|
41
|
-
},
|
|
42
36
|
validators: I18N_FILTER_VALIDATOR_1.I18N_FILTER_VALIDATOR,
|
|
43
37
|
value_container: I18N_VALUE_CONTAINER_1.I18N_VALUE_CONTAINER,
|
|
44
38
|
};
|
|
@@ -111,7 +111,7 @@ exports.I18N_PANEL = {
|
|
|
111
111
|
pie_chart: "Pie Chart",
|
|
112
112
|
restore_panel: "Restore panel",
|
|
113
113
|
sentiment: "Sentiment",
|
|
114
|
-
|
|
114
|
+
stars: "Stars",
|
|
115
115
|
wordcloud: "Wordcloud",
|
|
116
116
|
},
|
|
117
117
|
timeout_message: "Calculating {{type}}. This process may take a while.",
|
|
@@ -6,3 +6,29 @@ export interface IOutputFormat {
|
|
|
6
6
|
format: string;
|
|
7
7
|
type: string;
|
|
8
8
|
}
|
|
9
|
+
export declare enum TIME_PERIOD {
|
|
10
|
+
THIS_SECOND = "THIS_SECOND",
|
|
11
|
+
LAST_SECOND = "LAST_SECOND",
|
|
12
|
+
THIS_MINUTE = "THIS_MINUTE",
|
|
13
|
+
LAST_MINUTE = "LAST_MINUTE",
|
|
14
|
+
THIS_HOUR = "THIS_HOUR",
|
|
15
|
+
LAST_HOUR = "LAST_HOUR",
|
|
16
|
+
TODAY = "TODAY",
|
|
17
|
+
YESTERDAY = "YESTERDAY",
|
|
18
|
+
THIS_WEEK = "THIS_WEEK",
|
|
19
|
+
LAST_WEEK = "LAST_WEEK",
|
|
20
|
+
THIS_MONTH = "THIS_MONTH",
|
|
21
|
+
LAST_MONTH = "LAST_MONTH",
|
|
22
|
+
THIS_QUARTER = "THIS_QUARTER",
|
|
23
|
+
LAST_QUARTER = "LAST_QUARTER",
|
|
24
|
+
THIS_YEAR = "THIS_YEAR",
|
|
25
|
+
LAST_YEAR = "LAST_YEAR",
|
|
26
|
+
ALL_HISTORY = "ALL_HISTORY",
|
|
27
|
+
CUSTOM_RANGE = "CUSTOM_RANGE"
|
|
28
|
+
}
|
|
29
|
+
export declare type TimePeriod = TIME_PERIOD;
|
|
30
|
+
export declare enum TP_CUSTOM_RANGE {
|
|
31
|
+
BEFORE = "BEFORE",
|
|
32
|
+
AFTER = "AFTER",
|
|
33
|
+
BETWEEN = "BETWEEN"
|
|
34
|
+
}
|
|
@@ -1,2 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TP_CUSTOM_RANGE = exports.TIME_PERIOD = void 0;
|
|
4
|
+
var TIME_PERIOD;
|
|
5
|
+
(function (TIME_PERIOD) {
|
|
6
|
+
TIME_PERIOD["THIS_SECOND"] = "THIS_SECOND";
|
|
7
|
+
TIME_PERIOD["LAST_SECOND"] = "LAST_SECOND";
|
|
8
|
+
TIME_PERIOD["THIS_MINUTE"] = "THIS_MINUTE";
|
|
9
|
+
TIME_PERIOD["LAST_MINUTE"] = "LAST_MINUTE";
|
|
10
|
+
TIME_PERIOD["THIS_HOUR"] = "THIS_HOUR";
|
|
11
|
+
TIME_PERIOD["LAST_HOUR"] = "LAST_HOUR";
|
|
12
|
+
TIME_PERIOD["TODAY"] = "TODAY";
|
|
13
|
+
TIME_PERIOD["YESTERDAY"] = "YESTERDAY";
|
|
14
|
+
TIME_PERIOD["THIS_WEEK"] = "THIS_WEEK";
|
|
15
|
+
TIME_PERIOD["LAST_WEEK"] = "LAST_WEEK";
|
|
16
|
+
TIME_PERIOD["THIS_MONTH"] = "THIS_MONTH";
|
|
17
|
+
TIME_PERIOD["LAST_MONTH"] = "LAST_MONTH";
|
|
18
|
+
TIME_PERIOD["THIS_QUARTER"] = "THIS_QUARTER";
|
|
19
|
+
TIME_PERIOD["LAST_QUARTER"] = "LAST_QUARTER";
|
|
20
|
+
TIME_PERIOD["THIS_YEAR"] = "THIS_YEAR";
|
|
21
|
+
TIME_PERIOD["LAST_YEAR"] = "LAST_YEAR";
|
|
22
|
+
TIME_PERIOD["ALL_HISTORY"] = "ALL_HISTORY";
|
|
23
|
+
TIME_PERIOD["CUSTOM_RANGE"] = "CUSTOM_RANGE";
|
|
24
|
+
})(TIME_PERIOD = exports.TIME_PERIOD || (exports.TIME_PERIOD = {}));
|
|
25
|
+
var TP_CUSTOM_RANGE;
|
|
26
|
+
(function (TP_CUSTOM_RANGE) {
|
|
27
|
+
TP_CUSTOM_RANGE["BEFORE"] = "BEFORE";
|
|
28
|
+
TP_CUSTOM_RANGE["AFTER"] = "AFTER";
|
|
29
|
+
TP_CUSTOM_RANGE["BETWEEN"] = "BETWEEN";
|
|
30
|
+
})(TP_CUSTOM_RANGE = exports.TP_CUSTOM_RANGE || (exports.TP_CUSTOM_RANGE = {}));
|
|
@@ -2,4 +2,4 @@ import { COLUMN_PROPERTY } from "./COLUMN_PROPERTY";
|
|
|
2
2
|
/**
|
|
3
3
|
* @description Collection of column properties
|
|
4
4
|
*/
|
|
5
|
-
export declare const COLUMN_PROPERTIES: (import("../..").
|
|
5
|
+
export declare const COLUMN_PROPERTIES: (import("../..").DATE_DISTINCT_PROPERTY | import("../..").DATE_DISTINCT_TIME_PROPERTY | import("./COMPOUND_COLUMN_PROPERTY").COMPOUND_COLUMN_PROPERTY | import("../..").DATE_GROUPING_PROPERTY | import("../..").DATE_GROUPING_TIME_PROPERTY | import("./COMPLEX_COLUMN_PROPERTY").COMPLEX_COLUMN_PROPERTY | COLUMN_PROPERTY)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DATE_GROUPING_ALL_PROPERTIES: (import("./
|
|
1
|
+
export declare const DATE_GROUPING_ALL_PROPERTIES: (import("./DATE_GROUPING_PROPERTY").DATE_GROUPING_PROPERTY | import("./DATE_GROUPING_TIME_PROPERTY").DATE_GROUPING_TIME_PROPERTY)[];
|
|
@@ -9,5 +9,7 @@ export const isDateTimeFormat = (outputFormat) => {
|
|
|
9
9
|
const format = (outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format) === "Default" && ((_a = outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.originalFormat) === null || _a === void 0 ? void 0 : _a.format)
|
|
10
10
|
? (_b = outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.originalFormat) === null || _b === void 0 ? void 0 : _b.format
|
|
11
11
|
: outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format;
|
|
12
|
+
if (typeof format !== "string")
|
|
13
|
+
return false;
|
|
12
14
|
return DATETIME_COLUMN_FORMAT.some((opt) => format === null || format === void 0 ? void 0 : format.includes(opt));
|
|
13
15
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { II18nCrossTabsSorting } from "./II18nCrossTabsSorting";
|
|
2
2
|
export interface II18nCrossTabs {
|
|
3
|
-
footer_message
|
|
4
|
-
grand_total
|
|
5
|
-
no_data
|
|
6
|
-
sort
|
|
7
|
-
total
|
|
3
|
+
footer_message: string;
|
|
4
|
+
grand_total: string;
|
|
5
|
+
no_data: string;
|
|
6
|
+
sort: II18nCrossTabsSorting;
|
|
7
|
+
total: string;
|
|
8
8
|
}
|
|
@@ -7,7 +7,6 @@ import { II18nFilterOperator } from "./II18nFilterOperator";
|
|
|
7
7
|
import { II18nFilterScopes } from "./II18nFilterScopes";
|
|
8
8
|
import { II18nFilterPanelScopeTitle } from "./II18nFilterPanelScopeTitle";
|
|
9
9
|
import { II18nFilterDateSections } from "./II18nFilterDateSections";
|
|
10
|
-
import { II18nTokenBox } from "./II18nTokenBox";
|
|
11
10
|
import { II18nFilterExtraInfo } from "./II18nFilterExtraInfo";
|
|
12
11
|
export interface II18nFilter {
|
|
13
12
|
date_sections: II18nFilterDateSections;
|
|
@@ -18,7 +17,6 @@ export interface II18nFilter {
|
|
|
18
17
|
scope_title: II18nFilterPanelScopeTitle;
|
|
19
18
|
scopes: II18nFilterScopes;
|
|
20
19
|
slidebar: II18nSlidebar;
|
|
21
|
-
token_box?: II18nTokenBox;
|
|
22
20
|
validators: II18nFilterValidator;
|
|
23
21
|
value_container: II18nValueContainer;
|
|
24
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface II18nTokenBox {
|
|
2
|
-
data_tokens
|
|
3
|
-
search
|
|
4
|
-
system_tokens
|
|
5
|
-
language_tokens
|
|
6
|
-
user_tokens
|
|
2
|
+
data_tokens: string;
|
|
3
|
+
search: string;
|
|
4
|
+
system_tokens: string;
|
|
5
|
+
language_tokens: string;
|
|
6
|
+
user_tokens: string;
|
|
7
7
|
}
|
|
@@ -23,8 +23,11 @@ export const I18N_COMMON = {
|
|
|
23
23
|
search: "Search",
|
|
24
24
|
sort: "Sort",
|
|
25
25
|
token_box: {
|
|
26
|
-
|
|
26
|
+
data_tokens: "Data Tokens",
|
|
27
27
|
language_tokens: "Language Tokens",
|
|
28
|
+
search: "Search",
|
|
29
|
+
system_tokens: "System Tokens",
|
|
30
|
+
user_tokens: "User Tokens",
|
|
28
31
|
},
|
|
29
32
|
token_mode: {
|
|
30
33
|
tooltip: {
|
|
@@ -30,12 +30,6 @@ export const I18N_FILTER = {
|
|
|
30
30
|
},
|
|
31
31
|
scopes: I18N_FILTER_SCOPE,
|
|
32
32
|
slidebar: I18N_SLIDEBAR,
|
|
33
|
-
token_box: {
|
|
34
|
-
data_tokens: "DataTokens",
|
|
35
|
-
search: "Search",
|
|
36
|
-
system_tokens: "SystemTokens",
|
|
37
|
-
user_tokens: "UserTokens",
|
|
38
|
-
},
|
|
39
33
|
validators: I18N_FILTER_VALIDATOR,
|
|
40
34
|
value_container: I18N_VALUE_CONTAINER,
|
|
41
35
|
};
|