Skip to content

Commit 8e58e7b

Browse files
committed
fix: update schemas to follow breaking changes introduced in the API
1 parent f7f9a37 commit 8e58e7b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/model/pagination.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ export interface Pagination {
22
/**
33
* Current page number.
44
*/
5-
page: number;
5+
Page: number;
66

77
/**
88
* Next page number, equals false if there's no next page (when you're on the last one).
99
*/
10-
page_next: number | boolean;
10+
PageNext: number | boolean;
1111

1212
/**
1313
* Previous page number, equals false if there's no previous page (when you're on the first one)
1414
*/
15-
page_prev: number | boolean;
15+
PagePrev: number | boolean;
1616

1717
/**
1818
* Total amount of pages.
1919
*/
20-
page_total: number;
20+
PageTotal: number;
2121

2222
/**
2323
* Total amount of results in the current page.
2424
*/
25-
results: number;
25+
Results: number;
2626

2727
/**
2828
* Current maximum amount of results per page.
2929
*/
30-
results_per_page: number;
30+
ResultsPerPage: number;
3131

3232
/**
3333
* Total amount of results.
3434
*/
35-
results_total: number;
35+
ResultsTotal: number;
3636
}

src/model/schema/character/character.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { GrandCompany } from './grand-company';
44

55
export interface Character {
66
ActiveClassJob: ClassJob;
7-
Added: number;
87
Avatar: string;
98
Bio: string;
109
ClassJobs: { [index: string]: ClassJob };

src/model/search-algo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export enum SearchAlgo {
33
* A very basic wild card, for example: ard would match: b-ard-ing or h-ard etc.
44
*/
55
WILDCARD = 'wildcard',
6+
WILDCARD_PLUS = 'wildcard_plus',
67
MULTI_MATCH = 'multi_match',
78
QUERY_STRING = 'query_string',
89
TERM = 'term',

0 commit comments

Comments
 (0)