@@ -7,39 +7,39 @@ export class QueryHelper {
7
7
/**
8
8
* Time requested key
9
9
*/
10
- public static TIME_REQUESTED : string = 'timeRequested ' ;
10
+ public static readonly REQUESTED_TIME_KEY : string = 'requested_times_key ' ;
11
11
12
12
/**
13
13
* Selected items key
14
14
*/
15
- public static SELECTED_ITEMS : string = 'items ' ;
15
+ public static readonly REQUESTED_ITEMS_KEY : string = 'requested_items_key ' ;
16
16
17
17
/**
18
18
* Starting index key
19
19
*/
20
- public static INDEX : string = 'index ' ;
20
+ public static readonly REQUESTED_TABLE_INDEX_KEY : string = 'requested_table_index_key ' ;
21
21
22
22
/**
23
23
* Key for the number of element to return
24
24
*/
25
- public static COUNT : string = 'count ' ;
25
+ public static readonly REQUESTED_TABLE_COUNT_KEY : string = 'requested_table_count_key ' ;
26
26
27
27
/**
28
28
* Table column IDs key
29
29
*/
30
- public static SELECTED_COLUMNS = 'columnId ' ;
30
+ public static readonly REQUESTED_COLUMN_IDS_KEY = 'requested_table_column_ids_key ' ;
31
31
32
32
/**
33
33
* Build a simple time query
34
34
* @param timeRequested Array of requested times
35
35
* @param filters Array of filter IDs
36
36
* @param additionalProperties Use this optional parameter to add custom properties to your query
37
37
*/
38
- public static timeQuery ( timeRequested : number [ ] , filters ?: number [ ] , additionalProperties ?: { [ key : string ] : any } ) : Query {
38
+ public static timeQuery ( timeRequested : number [ ] , additionalProperties ?: { [ key : string ] : any } ) : Query {
39
39
const timeObj = {
40
- [ this . TIME_REQUESTED ] : timeRequested
40
+ [ this . REQUESTED_TIME_KEY ] : timeRequested
41
41
} ;
42
- return new Query ( { ...timeObj , ...additionalProperties } , filters ) ;
42
+ return new Query ( { ...timeObj , ...additionalProperties } ) ;
43
43
}
44
44
45
45
/**
@@ -49,13 +49,13 @@ export class QueryHelper {
49
49
* @param filters Array of filter IDs
50
50
* @param additionalProperties Use this optional parameter to add custom properties to your query
51
51
*/
52
- public static selectionTimeQuery ( timeRequested : number [ ] , items : number [ ] , filters ?: number [ ] , additionalProperties ?: { [ key : string ] : any } ) : Query {
52
+ public static selectionTimeQuery ( timeRequested : number [ ] , items : number [ ] , additionalProperties ?: { [ key : string ] : any } ) : Query {
53
53
const selectionTimeObj = {
54
- [ this . TIME_REQUESTED ] : timeRequested ,
55
- [ this . SELECTED_ITEMS ] : items
54
+ [ this . REQUESTED_TIME_KEY ] : timeRequested ,
55
+ [ this . REQUESTED_ITEMS_KEY ] : items
56
56
} ;
57
57
58
- return new Query ( { ...selectionTimeObj , ...additionalProperties } , filters ) ;
58
+ return new Query ( { ...selectionTimeObj , ...additionalProperties } ) ;
59
59
}
60
60
61
61
/**
@@ -66,14 +66,14 @@ export class QueryHelper {
66
66
* @param filters Array of filter IDs
67
67
* @param additionalProperties Use this optional parameter to add custom properties to your query
68
68
*/
69
- public static tableQuery ( columnsId : number [ ] , index : number , count : number , filters ?: number [ ] , additionalProperties ?: { [ key : string ] : any } ) {
69
+ public static tableQuery ( columnsId : number [ ] , index : number , count : number , additionalProperties ?: { [ key : string ] : any } ) {
70
70
const tableObj = {
71
- [ this . INDEX ] : index ,
72
- [ this . COUNT ] : count ,
73
- [ this . SELECTED_COLUMNS ] : columnsId
71
+ [ this . REQUESTED_TABLE_INDEX_KEY ] : index ,
72
+ [ this . REQUESTED_TABLE_COUNT_KEY ] : count ,
73
+ [ this . REQUESTED_COLUMN_IDS_KEY ] : columnsId
74
74
} ;
75
75
76
- return new Query ( { ...tableObj , ...additionalProperties } , filters ) ;
76
+ return new Query ( { ...tableObj , ...additionalProperties } ) ;
77
77
}
78
78
79
79
/**
0 commit comments