-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathigdb-options.interface.ts
52 lines (43 loc) · 1.46 KB
/
igdb-options.interface.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { FilterOption } from './filter-option.interface';
import { OrderOption } from './order-option.interface';
/**
* IGDBOptions interface
*/
export interface IGDBOptions {
/**
* One ore more game ID's. When ID is provided, the search parameter will be ignored.
*/
id? : number[],
/**
* The query will search the name field looking for this value. If id is provided in the same options object, than this value will be ignored.
*/
search? : string,
/**
* The fields you want to see in the result array.
*/
fields? : string[],
/**
* The maximum number of results in a single query. This value must be a number between 1 and 50.
*/
limit? : number,
/**
* This will start the result list at the provided value and will give limit number of results. This value must be 0 or greater.
*/
offset? : number,
/**
* The expander feature is used to combine multiple requests.
*/
expand? : string[],
/**
* Filters are used to swift through results to get what you want. You can exclude and include results based on their properties.
*/
filters? : FilterOption[],
/**
* Ordering (sorting) is used to order results by a specific field. When not provided, the results will be ordered ASCENDING by ID.
*/
order? : OrderOption,
/**
* Whether you want to get the elements of the result, or the count of the elements.
*/
count? : boolean
}