-
Notifications
You must be signed in to change notification settings - Fork 180
/
mediaItemResponsePage.ts
63 lines (54 loc) · 1.15 KB
/
mediaItemResponsePage.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
53
54
55
56
57
58
59
60
61
62
63
import { APILinks, APILink } from '@vonage/server-client';
import { MediaItemResponse } from './mediaItemResponse';
/**
* Represents the response data for a page of media items.
*
* @remarks
* Vonage API's will return information using `snake_case`. This represents the
* pure response before the client will transform the keys into `camelCase`.
*/
export type MediaItemPageResponse = {
/**
* The amount of records returned in this response.
*/
page_size: number;
/**
* The page_index used in your request.
*/
page_index: number;
/**
* The total number of records returned by your request.
*/
count: number;
/**
* A collection of media items.
*/
_embedded: {
media: Array<MediaItemResponse>;
};
/**
* Links to navigate through pages.
*/
_links: {
/**
* Link to the first page.
*/
first?: APILink;
/**
* Link to the last page.
*/
last?: APILink;
/**
* Link to the next page.
*/
next?: APILink;
/**
* Link to the previous page.
*/
prev?: APILink;
/**
* Link to the start page.
*/
start?: APILink;
} & APILinks;
};