-
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.
fix: refactor pagination into models and build complex listrespone ty…
…pe issue #10
- Loading branch information
Showing
3 changed files
with
59 additions
and
31 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
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,47 @@ | ||
declare module 'aifi' { | ||
namespace Aifi { | ||
namespace Models { | ||
interface PaginatedParams { | ||
/** | ||
* Count | ||
*/ | ||
count?: number; | ||
|
||
/** | ||
* Sort oder ASC ascending or DESC descending | ||
*/ | ||
direction?: string; | ||
|
||
/** | ||
* Pagination after | ||
*/ | ||
after?: string; | ||
|
||
/** | ||
* Pagination before | ||
*/ | ||
before?: string; | ||
|
||
/** | ||
* Id of the store where the order was placed | ||
*/ | ||
storeId?: number; | ||
} | ||
|
||
interface PaginationResponse { | ||
next: Next; | ||
previous: Previous; | ||
} | ||
|
||
interface Next { | ||
after: string; | ||
count: number; | ||
} | ||
|
||
interface Previous { | ||
before: string; | ||
count: number; | ||
} | ||
} | ||
} | ||
} |
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