@formio/reporting 2.0.1-rc.3 → 2.0.1-rc.6

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 (46) hide show
  1. package/lib/Report.d.ts +8 -0
  2. package/lib/ReportForm.d.ts +7 -0
  3. package/lib/components/ReportingControls/ReportingControls.d.ts +36 -0
  4. package/lib/components/ReportingGrid/ReportingGrid.d.ts +56 -0
  5. package/lib/components/ReportingGrid/customFilters.d.ts +12 -0
  6. package/lib/components/index.d.ts +7 -0
  7. package/lib/index.d.ts +32 -0
  8. package/lib/licenseCheck/common.d.ts +5 -0
  9. package/lib/licenseCheck/index.d.ts +1 -0
  10. package/lib/licenseCheck/noLicenseCheck.d.ts +5 -0
  11. package/lib/providers/ReportingUrlFetchProvider.d.ts +85 -0
  12. package/lib/providers/index.d.ts +5 -0
  13. package/lib/services/ReportingStorageService.d.ts +7 -0
  14. package/lib/templates/bootstrap/index.d.ts +6 -0
  15. package/lib/templates/bootstrap/reportingGrid/index.d.ts +4 -0
  16. package/lib/templates/index.d.ts +23 -0
  17. package/lib/utils/AggregationOperators/AggregationOperator.d.ts +24 -0
  18. package/lib/utils/AggregationOperators/Avg.d.ts +15 -0
  19. package/lib/utils/AggregationOperators/Concat.d.ts +16 -0
  20. package/lib/utils/AggregationOperators/Count.d.ts +17 -0
  21. package/lib/utils/AggregationOperators/DateDiff.d.ts +20 -0
  22. package/lib/utils/AggregationOperators/DayOfMonth.d.ts +18 -0
  23. package/lib/utils/AggregationOperators/DayOfWeek.d.ts +18 -0
  24. package/lib/utils/AggregationOperators/DayOfYear.d.ts +18 -0
  25. package/lib/utils/AggregationOperators/Divide.d.ts +22 -0
  26. package/lib/utils/AggregationOperators/Max.d.ts +15 -0
  27. package/lib/utils/AggregationOperators/Min.d.ts +15 -0
  28. package/lib/utils/AggregationOperators/Month.d.ts +18 -0
  29. package/lib/utils/AggregationOperators/Multiply.d.ts +15 -0
  30. package/lib/utils/AggregationOperators/Percentage.d.ts +15 -0
  31. package/lib/utils/AggregationOperators/Size.d.ts +23 -0
  32. package/lib/utils/AggregationOperators/Subtract.d.ts +16 -0
  33. package/lib/utils/AggregationOperators/Sum.d.ts +18 -0
  34. package/lib/utils/AggregationOperators/Week.d.ts +18 -0
  35. package/lib/utils/AggregationOperators/Year.d.ts +18 -0
  36. package/lib/utils/AggregationOperators/index.d.ts +22 -0
  37. package/lib/utils/FilterOperators.d.ts +4 -0
  38. package/lib/utils/configurationFormUtils.d.ts +72 -0
  39. package/lib/utils/controlsUtils.d.ts +255 -0
  40. package/lib/utils/filtersQueries.d.ts +21 -0
  41. package/lib/utils/gridUtils.d.ts +3 -0
  42. package/lib/utils/index.d.ts +314 -0
  43. package/lib/utils/libraryName.d.ts +2 -0
  44. package/lib/utils/utils.d.ts +31 -0
  45. package/package.json +2 -2
  46. package/reporting.js +1 -1
@@ -0,0 +1,8 @@
1
+ declare const Report_base: any;
2
+ declare class Report extends Report_base {
3
+ setForm(reportParam: any): any;
4
+ create(): any;
5
+ static create(): any;
6
+ }
7
+ declare const _default: typeof Report;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const ReportForm_base: any;
2
+ export default class ReportForm extends ReportForm_base {
3
+ [x: string]: any;
4
+ init(): any;
5
+ render(): any;
6
+ }
7
+ export {};
@@ -0,0 +1,36 @@
1
+ declare const ReportingControls_base: any;
2
+ export default class ReportingControls extends ReportingControls_base {
3
+ static schema(...extend: any[]): any;
4
+ static get builderInfo(): {};
5
+ constructor(component: any, options: any, data: any);
6
+ get controlsEvents(): {
7
+ applyColumns: string;
8
+ filter: string;
9
+ clearFilters: string;
10
+ performAction: string;
11
+ };
12
+ get singleFilterOperators(): string[];
13
+ get reportingConfig(): any;
14
+ get reportingForms(): any;
15
+ get reportingId(): any;
16
+ get formioGrid(): any;
17
+ get controlsSaveKey(): string;
18
+ attach(element: any): any;
19
+ getFilterComponents(): any[];
20
+ getFilterValueCompFromGridComp(gridComp: any, filter: any, ind: any): any;
21
+ toggleFilterClass(filterInstance: any): void;
22
+ getTabs(): any[];
23
+ formatFilterValue(filterSettings: any, value: any): any;
24
+ getActionComponents(applyActionFor: any): any;
25
+ setGridFilters(filters?: {}): void;
26
+ getGridFilters(): {} | Exclude<this["formioGrid.options.fetchProvider.defaultFilters"], undefined>;
27
+ downloadPDF(action: any): Promise<void>;
28
+ exportCSV(action: any): void;
29
+ onApplyColumns(): void;
30
+ performCustomAction(action: any): any;
31
+ executeAction(action: any): void;
32
+ onApplyFilters(): void;
33
+ get preview(): any;
34
+ init(): any;
35
+ }
36
+ export {};
@@ -0,0 +1,56 @@
1
+ /// <reference types="lodash" />
2
+ import { Utils } from '@formio/js';
3
+ import ReportingUrlFetchProvider from '../../providers/ReportingUrlFetchProvider';
4
+ declare const ReportingGrid_base: any;
5
+ export default class ReportingGrid extends ReportingGrid_base {
6
+ static schema(...extend: any[]): any;
7
+ static get builderInfo(): {};
8
+ formioGrid: any;
9
+ columns: {};
10
+ initComponents: any[];
11
+ dataTableReady: any;
12
+ constructor(...args: any[]);
13
+ get dataReady(): any;
14
+ get reportingConfig(): any;
15
+ get reportingForms(): any;
16
+ get reportingId(): any;
17
+ get visibility(): {};
18
+ get fetchProvider(): ReportingUrlFetchProvider;
19
+ get iteratableRows(): any[];
20
+ addReportingColumnProperties(comp: any, columnSettings: any): void;
21
+ getCalculatedColumnSchema(columnSettings: any): any;
22
+ formatGridComponent(comp: any, columnSettings: any): Utils._.Omit<any, "logic" | "prefix" | "suffix" | "action" | "defaultValue" | "conditional" | "hideLabel" | "calculateValue" | "validate" | "hidden" | "customConditional">;
23
+ isDefaultColumn(columnReportingSettings: any): boolean;
24
+ addColumnsFromReportingForms(allColumns: any, fieldsGroupedByForm: any): void;
25
+ checkDeconstructions(fieldSettings: any): void;
26
+ checkDeconstructionRequirement(formId: any, compPath: any): void;
27
+ addCalculatedColumns(allColumns: any, allCalculatedColumns?: any[], requiredCalculatedColumnsPaths?: any): void;
28
+ init(): any;
29
+ render(): any;
30
+ attach(element: any): any;
31
+ loadFormioGrid(): any;
32
+ attachComponent({ key, element, value, onChange, rowIndex, row, index, readOnly }: {
33
+ key: any;
34
+ element: any;
35
+ value: any;
36
+ onChange: any;
37
+ rowIndex: any;
38
+ row: any;
39
+ index: any;
40
+ readOnly: any;
41
+ }): {
42
+ component: any;
43
+ resetValue: () => void;
44
+ };
45
+ customFilters(component: any): any;
46
+ getGridColumns(): any[];
47
+ get preview(): any;
48
+ initFormioGrid(FormioGrid: any): Promise<any>;
49
+ transformFetchedData(responseData: any): any;
50
+ createRowComponents(row: any, rowIndex: any): any;
51
+ createComponent(component: any, options: any, data: any, before?: any, fromAttach?: any): any;
52
+ format(key: string, data: any): any;
53
+ setValue(value: any): void;
54
+ destroy(): void;
55
+ }
56
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare const filterByComponentType: {
2
+ select: {
3
+ type: string;
4
+ label: string;
5
+ filter: () => string;
6
+ }[];
7
+ checkbox: {
8
+ type: string;
9
+ label: string;
10
+ filter: () => string;
11
+ }[];
12
+ };
@@ -0,0 +1,7 @@
1
+ import reportinggrid from './ReportingGrid/ReportingGrid';
2
+ import reportingcontrols from './ReportingControls/ReportingControls';
3
+ declare const _default: {
4
+ reportingcontrols: typeof reportingcontrols;
5
+ reportinggrid: typeof reportinggrid;
6
+ };
7
+ export default _default;
package/lib/index.d.ts ADDED
@@ -0,0 +1,32 @@
1
+ import * as ReportingConfigUtils from './utils/configurationFormUtils';
2
+ declare const _default: {
3
+ components: {
4
+ reportingcontrols: typeof import("./components/ReportingControls/ReportingControls").default;
5
+ reportinggrid: typeof import("./components/ReportingGrid/ReportingGrid").default;
6
+ };
7
+ templates: {
8
+ bootstrap: {
9
+ reportingGrid: {
10
+ form: string;
11
+ };
12
+ };
13
+ bootstrap3: {
14
+ reportingGrid: {
15
+ form: string;
16
+ };
17
+ };
18
+ bootstrap4: {
19
+ reportingGrid: {
20
+ form: string;
21
+ };
22
+ };
23
+ semantic: {
24
+ reportingGrid: {
25
+ form: string;
26
+ };
27
+ };
28
+ };
29
+ utils: typeof ReportingConfigUtils;
30
+ library: string;
31
+ };
32
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ checkLicense: () => Promise<void>;
3
+ checkEndpointAllowed: (endpointUrl: string) => Promise<void>;
4
+ };
5
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const checkLicense: () => Promise<void>, checkEndpointAllowed: (endpointUrl: string) => Promise<void>;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ checkLicense: () => Promise<void>;
3
+ checkEndpointAllowed: (endpointUrl: string) => Promise<void>;
4
+ };
5
+ export default _default;
@@ -0,0 +1,85 @@
1
+ export default class ReportingUrlFetchProvider {
2
+ options: {
3
+ [key: string]: any;
4
+ reportingConfig: any;
5
+ formio: any;
6
+ dataDeconstructions: any;
7
+ };
8
+ defaultFilters: any;
9
+ constructor(options: any);
10
+ get reportingUrl(): string;
11
+ get requestHeaders(): {
12
+ key: string;
13
+ value: string;
14
+ }[];
15
+ get requestMethod(): string;
16
+ getRequestHeaders(): any;
17
+ getAggregatedRequestFilterQuery(filterName: any, filterSettings: any): {
18
+ [x: number]: {
19
+ $eq: any;
20
+ };
21
+ $or?: undefined;
22
+ $and?: undefined;
23
+ } | {
24
+ [x: number]: {
25
+ $ne: any;
26
+ };
27
+ $or?: undefined;
28
+ $and?: undefined;
29
+ } | {
30
+ [x: number]: {
31
+ $regex: any;
32
+ $options: string;
33
+ };
34
+ $or?: undefined;
35
+ $and?: undefined;
36
+ } | {
37
+ [x: number]: {
38
+ $gt: any;
39
+ };
40
+ $or?: undefined;
41
+ $and?: undefined;
42
+ } | {
43
+ [x: number]: {
44
+ $gte: any;
45
+ };
46
+ $or?: undefined;
47
+ $and?: undefined;
48
+ } | {
49
+ [x: number]: {
50
+ $lt: any;
51
+ };
52
+ $or?: undefined;
53
+ $and?: undefined;
54
+ } | {
55
+ [x: number]: {
56
+ $lte: any;
57
+ };
58
+ $or?: undefined;
59
+ $and?: undefined;
60
+ } | {
61
+ [x: number]: {
62
+ $exists: boolean;
63
+ };
64
+ $or?: undefined;
65
+ $and?: undefined;
66
+ } | {
67
+ $or: {
68
+ [x: number]: {
69
+ $eq: any;
70
+ };
71
+ }[];
72
+ $and?: undefined;
73
+ } | {
74
+ $and: {
75
+ [x: number]: {
76
+ $ne: any;
77
+ };
78
+ }[];
79
+ $or?: undefined;
80
+ };
81
+ addDataDeconscructionStages(requestBody: any[], formId: string, pathToFormData: string): void;
82
+ getAggregatedRequestBody(params?: any): any[];
83
+ makeRequest(params?: any): Promise<any>;
84
+ getData(params?: any): Promise<any>;
85
+ }
@@ -0,0 +1,5 @@
1
+ import ReportingUrlFetchProvider from './ReportingUrlFetchProvider';
2
+ declare const _default: {
3
+ ReportingUrlFetchProvider: typeof ReportingUrlFetchProvider;
4
+ };
5
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export default class ReportingStorageService {
2
+ storageKey: string;
3
+ constructor(reportingId: string, controls: boolean);
4
+ saveData(value: object): void;
5
+ getAllData(): any;
6
+ getData(path: string): any;
7
+ }
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ reportingGrid: {
3
+ form: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ form: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare const _default: {
2
+ bootstrap: {
3
+ reportingGrid: {
4
+ form: string;
5
+ };
6
+ };
7
+ bootstrap3: {
8
+ reportingGrid: {
9
+ form: string;
10
+ };
11
+ };
12
+ bootstrap4: {
13
+ reportingGrid: {
14
+ form: string;
15
+ };
16
+ };
17
+ semantic: {
18
+ reportingGrid: {
19
+ form: string;
20
+ };
21
+ };
22
+ };
23
+ export default _default;
@@ -0,0 +1,24 @@
1
+ interface IAggregationOperator {
2
+ getRequest(object: any): object;
3
+ getGroupRequest(object: any, groupIds: any): object;
4
+ transformServerValue(response: any, settings: any): any;
5
+ getGroupProjectRequest(settings: any): object;
6
+ }
7
+ export default class AggregationOperator implements IAggregationOperator {
8
+ static get operatorKey(): string;
9
+ static getDisplayField(settings: any, reportingConfig?: any): {
10
+ type: string;
11
+ };
12
+ static getFieldArgs(settings: any): any[];
13
+ static get acceptedValueTypes(): any[];
14
+ static get operatorTitle(): string;
15
+ static get aggregatedGroupOperator(): boolean;
16
+ static get aggregatedCalculationOperator(): boolean;
17
+ static get calculationArgs(): any[];
18
+ static get transformResponse(): boolean;
19
+ getRequest(settings: any): any;
20
+ getGroupRequest(settings: any, groupIds: any): any;
21
+ getGroupProjectRequest(settings: any): any;
22
+ transformServerValue(response: any, settings: any): any;
23
+ }
24
+ export {};
@@ -0,0 +1,15 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Avg extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static get operatorTitle(): string;
5
+ static getDisplayField(settings: any, reportingConfig?: any): {
6
+ type: string;
7
+ };
8
+ static get acceptedValueTypes(): any[];
9
+ static get aggregatedGroupOperator(): boolean;
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static get calculationArgs(): string[];
12
+ getGroupRequest(settings: any): {
13
+ $avg: string;
14
+ };
15
+ }
@@ -0,0 +1,16 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Concat extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any): {
5
+ type: string;
6
+ };
7
+ static getFieldArgs(settings: any): any[];
8
+ static get operatorTitle(): string;
9
+ static get acceptedValueTypes(): any[];
10
+ static get aggregatedGroupOperator(): boolean;
11
+ static get aggregatedCalculationOperator(): boolean;
12
+ static get calculationArgs(): string[];
13
+ getRequest(settings: any): {
14
+ $concat: any[];
15
+ };
16
+ }
@@ -0,0 +1,17 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Count extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get aggregatedCalculationOperator(): boolean;
10
+ static get acceptedValueTypes(): any[];
11
+ getGroupRequest(settings: any, groupIds: any): {
12
+ $push: any;
13
+ };
14
+ getGroupProjectRequest(settings: any): {
15
+ $size: string;
16
+ };
17
+ }
@@ -0,0 +1,20 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class DateDiff extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static getFieldArgs(settings: any): any[];
8
+ static get operatorTitle(): string;
9
+ static get acceptedValueTypes(): any[];
10
+ static get aggregatedGroupOperator(): boolean;
11
+ static get aggregatedCalculationOperator(): boolean;
12
+ static get unitOptions(): string[];
13
+ static get calculationArgs(): string[];
14
+ static get transformResponse(): boolean;
15
+ transformServerValue(response: any, settings: any): any;
16
+ getRequest(settings: any): {
17
+ startDate: string;
18
+ endDate: string;
19
+ };
20
+ }
@@ -0,0 +1,18 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class DayOfMonth extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get acceptedValueTypes(): any[];
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static get calculationArgs(): string[];
12
+ getRequest(settings: any): {
13
+ $dayOfMonth: {
14
+ date: string;
15
+ timezone: string;
16
+ };
17
+ };
18
+ }
@@ -0,0 +1,18 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class DayOfWeek extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get acceptedValueTypes(): any[];
9
+ static get aggregatedGroupOperator(): boolean;
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static get calculationArgs(): string[];
12
+ getRequest(settings: any): {
13
+ $dayOfWeek: {
14
+ date: string;
15
+ timezone: string;
16
+ };
17
+ };
18
+ }
@@ -0,0 +1,18 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class DayOfYear extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get aggregatedCalculationOperator(): boolean;
10
+ static get acceptedValueTypes(): any[];
11
+ static get calculationArgs(): string[];
12
+ getRequest(settings: any): {
13
+ $dayOfYear: {
14
+ date: string;
15
+ timezone: string;
16
+ };
17
+ };
18
+ }
@@ -0,0 +1,22 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Divide extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static getFieldArgs(settings: any): any[];
8
+ static get operatorTitle(): string;
9
+ static get aggregatedGroupOperator(): boolean;
10
+ static get acceptedValueTypes(): any[];
11
+ static get aggregatedCalculationOperator(): boolean;
12
+ static get calculationArgs(): string[];
13
+ getRequest(settings: any): {
14
+ $cond: (string | {
15
+ $eq: (string | number)[];
16
+ $divide?: undefined;
17
+ } | {
18
+ $divide: string[];
19
+ $eq?: undefined;
20
+ })[];
21
+ };
22
+ }
@@ -0,0 +1,15 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Max extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get aggregatedCalculationOperator(): boolean;
10
+ static get calculationArgs(): string[];
11
+ static get acceptedValueTypes(): any[];
12
+ getGroupRequest(settings: any): {
13
+ $max: string;
14
+ };
15
+ }
@@ -0,0 +1,15 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Min extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get acceptedValueTypes(): any[];
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static get calculationArgs(): string[];
12
+ getGroupRequest(settings: any): {
13
+ $min: string;
14
+ };
15
+ }
@@ -0,0 +1,18 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Month extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get acceptedValueTypes(): any[];
9
+ static get aggregatedGroupOperator(): boolean;
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static get calculationArgs(): string[];
12
+ getRequest(settings: any): {
13
+ $month: {
14
+ date: string;
15
+ timezone: string;
16
+ };
17
+ };
18
+ }
@@ -0,0 +1,15 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Multiply extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get acceptedValueTypes(): any[];
9
+ static get aggregatedGroupOperator(): boolean;
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static get calculationArgs(): string[];
12
+ getRequest(settings: any): {
13
+ $multiply: string[];
14
+ };
15
+ }
@@ -0,0 +1,15 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Percentage extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get acceptedValueTypes(): any[];
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static get calculationArgs(): string[];
12
+ getRequest(settings: any): {
13
+ $multiply: (string | number)[];
14
+ };
15
+ }
@@ -0,0 +1,23 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Size extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get acceptedValueTypes(): any[];
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static get calculationArgs(): string[];
12
+ getRequest(settings: any): {
13
+ $cond: {
14
+ if: {
15
+ $isArray: string;
16
+ };
17
+ then: {
18
+ $size: string;
19
+ };
20
+ else: number;
21
+ };
22
+ };
23
+ }
@@ -0,0 +1,16 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Subtract extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get acceptedValueTypes(): any[];
10
+ static get aggregatedCalculationOperator(): boolean;
11
+ static getFieldArgs(settings: any): any[];
12
+ static get calculationArgs(): string[];
13
+ getRequest(settings: any): {
14
+ $subtract: string[];
15
+ };
16
+ }
@@ -0,0 +1,18 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Sum extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: any): {
5
+ type: string;
6
+ };
7
+ static get operatorTitle(): string;
8
+ static get aggregatedGroupOperator(): boolean;
9
+ static get aggregatedCalculationOperator(): boolean;
10
+ static get acceptedValueTypes(): any[];
11
+ static get calculationArgs(): string[];
12
+ getRequest(settings: any): {
13
+ $sum: string[];
14
+ };
15
+ getGroupRequest(settings: any): {
16
+ $sum: string;
17
+ };
18
+ }