-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into greenkeeper/semantic-release-12.2.2
- Loading branch information
Showing
14 changed files
with
429 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { AggregatorMode, Operation } from '../@enums/enum' | ||
|
||
export interface IAggregatorModeInput { | ||
mode: AggregatorMode | ||
} | ||
export interface IAggregatorArrayModeInput extends IAggregatorModeInput { | ||
attrs: string[] | ||
aggr: Operation[] | ||
} | ||
|
||
export interface IAggregatorMapModeInput extends IAggregatorModeInput { | ||
attrToAggrMap: Map<string, Operation[]> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { IAggregateInterface, IExecute, IGroupInterface } from '../@types/types' | ||
|
||
export interface IDataWorkerBase { | ||
result: any[] | ||
misc?: any | ||
} | ||
|
||
export interface IDataWorker { | ||
group: IGroupInterface | ||
aggregate: IAggregateInterface | ||
execute: IExecute | ||
} | ||
|
||
export interface IFunctionWithArgs { | ||
func: any | ||
args: any[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { GroupingMode } from '../@enums/enum' | ||
import { IAttrSortingMode } from './sorting-interface' | ||
|
||
export interface IGroupBase { | ||
flat: boolean | ||
mode: GroupingMode.GROUP_SORT | GroupingMode.ONLY_GROUP | ||
} | ||
|
||
export interface IGroupOnlyMode extends IGroupBase { | ||
groupOn: string[] | ||
} | ||
|
||
export interface IGroupSortingMode extends IGroupBase { | ||
groupingOptions: IAttrSortingMode[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { SortingMode } from '../@enums/enum' | ||
|
||
export interface IAttrSortingMode { | ||
attribute: string | ||
sortMode: SortingMode | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
IAggregatorArrayModeInput, | ||
IAggregatorMapModeInput | ||
} from '../@interfaces/aggregator-interface' | ||
import { IDataWorker, IDataWorkerBase } from '../@interfaces/data-worker-interface' | ||
import { IGroupOnlyMode, IGroupSortingMode } from '../@interfaces/group-interface' | ||
|
||
export type IGroupInterface = (options: IGroupOnlyMode | IGroupSortingMode) => IDataWorker | ||
export type IAggregateInterface = ( | ||
aggregatorOptions: IAggregatorArrayModeInput | IAggregatorMapModeInput | ||
) => IDataWorker | ||
export type IExecute = (inputData: any[]) => any[] | ||
|
||
export type IGroupInnerInterface = ( | ||
_this: IDataWorkerBase, | ||
options: IGroupOnlyMode | IGroupSortingMode | ||
) => IDataWorkerBase | ||
export type IAggregateInnerInterface = ( | ||
_this: IDataWorkerBase, | ||
aggregatorOptions: IAggregatorArrayModeInput | IAggregatorMapModeInput | ||
) => IDataWorkerBase |
Oops, something went wrong.