/
publication-details.ts
53 lines (50 loc) · 1.63 KB
/
publication-details.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
module dk {
/**
The response to a successful getPublicationDetails request.
*/
export interface IPublicationDetailsResponse {
/** The reference a.k.a key of the publication */
r: string;
/** The name of the pubication */
n: string;
/** The comma separated names of the collections to which the publication belongs */
c: string;
/** The current edition key */
e: string;
/** The type of publication */
t: string;
/** The priority */
p: string;
/** The downloadURL */
durl: string;
/** The coverURL */
curl: string;
/** The accessibility, public or private */
accessibility: string;
/** The language */
l: string;
/** distributionIsAllowed, determines if publication can be mailed */
distributionIsAllowed: boolean;
/** The last update, date in string format */
lu: string;
/** The comma separated names of the keywords */
k: string;
/** The url of the video if applicable and available */
videoUrl: string;
/** Custom extra info about the publication */
metaData: string;
}
/**
@param result a json stringified IPublicationDetailsResponse object,
so you'll need to parse the json before accessing the IPublicationDetailsResponse properties
*/
export interface IPublicationDetailsSuccessFn {
(result: string): null;
}
/**
@param result is an error message
*/
export interface IPublicationDetailsFailureFn {
(result: string): null;
}
}