This repository was archived by the owner on Feb 18, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11# 0.3.0
22
33- Contact client is now able to retrieve multiple contact messages
4+ - Includes pagination and other query parameters
45- Contact client is now able to retrieve a specific contact message
56- Portfolio client can now be configured with an authentication token
67- Restructured request interface to be more fine grained
Original file line number Diff line number Diff line change 11import axios , { AxiosInstance , AxiosResponse } from "axios" ;
22import { BaseClient , ClientConfig } from "../../common/client" ;
33import {
4+ PaginationQueryParameter ,
45 PortfolioRequest ,
56 RequestWithBody ,
67 RequestWithParameters ,
@@ -27,7 +28,8 @@ export interface GetContactMessageRequest extends PortfolioRequest {
2728 id : string ;
2829}
2930
30- export interface GetContactMessageQueryParameters {
31+ export interface GetContactMessageQueryParameters
32+ extends PaginationQueryParameter {
3133 reason ?: Reason ;
3234 archived ?: boolean ;
3335 responded ?: boolean ;
Original file line number Diff line number Diff line change @@ -19,3 +19,8 @@ export interface RequestWithBody<T> extends PortfolioRequest {
1919export interface CompletePortfolioRequest < B , Q >
2020 extends RequestWithBody < B > ,
2121 RequestWithParameters < Q > { }
22+
23+ export interface PaginationQueryParameter {
24+ page ?: number ;
25+ limit ?: number ;
26+ }
You can’t perform that action at this time.
0 commit comments