interfaces.ts
2.02 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
export interface NoosferoRootScope extends ng.IScope {
currentUser: User;
}
export interface Event extends Article {
id: number;
}
export interface Article {
id: number;
}
/**
* @ngdoc interface
* @name models.Profile
* @description
* A representation of a Noosfero Profile.
*/
export interface Profile {
/**
* @ngdoc property
* @name id
* @propertyOf models.Profile
* @returns {number} The Profile id
*/
id: number;
/**
* @ngdoc property
* @name identifier
* @propertyOf models.Profile
* @returns {string} The unque identifier for the Profile
*/
identifier: string;
/**
* @ngdoc property
* @name type
* @propertyOf models.Profile
* @returns {string} The Profile type (e.g.: "Person", etc.)
*/
type: string;
}
/**
* @ngdoc interface
* @name models.Person
* @description
* A representation of a Person in Noosfero.
*/
export interface Person extends Profile {
/**
* @ngdoc property
* @name id
* @propertyOf models.Person
* @returns {number} The Person id
*/
id: number;
}
export interface TynyMceArticle extends Article {
id: number;
}
export interface Blog extends Article {
id: number;
}
export interface Credentials {
username: string;
password: string;
}
export interface User {
id: number;
login: string;
email: string;
person: Person;
private_token: string;
userRole: string;
}
export interface UserResponse {
user: User;
}
export interface Box {
id: number;
position: number;
}
/**
* @ngdoc interface
* @name models.Activity
* @description
* A representation of a {@link models.Profile} activity in Noosfero.
*/
export interface Activity {
/**
* @ngdoc property
* @name verb
* @propertyOf models.Activity
* @returns {string} The activity verb.
*/
verb: string;
}
export interface INoosferoLocalStorage extends angular.storage.ILocalStorageService {
currentUser: User;
}