lemmy-js-client 0.17.0-rc.3 → 0.17.0-rc.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,12 @@
1
+ import { Option } from "@sniptt/monads";
2
+ import "reflect-metadata";
1
3
  import { CommentAggregates, CommunityAggregates, PersonAggregates, PostAggregates, SiteAggregates } from "./aggregates";
2
4
  import { Comment, CommentReport, CommunitySafe, LocalUserSettings, ModAdd, ModAddCommunity, ModBan, ModBanFromCommunity, ModLockPost, ModRemoveComment, ModRemoveCommunity, ModRemovePost, ModStickyPost, ModTransferCommunity, PersonMention, PersonSafe, Post, PostReport, PrivateMessage, RegistrationApplication, Site } from "./source";
3
- export interface PersonViewSafe {
5
+ export declare class PersonViewSafe {
4
6
  person: PersonSafe;
5
7
  counts: PersonAggregates;
6
8
  }
7
- export interface PersonMentionView {
9
+ export declare class PersonMentionView {
8
10
  person_mention: PersonMention;
9
11
  comment: Comment;
10
12
  creator: PersonSafe;
@@ -16,24 +18,23 @@ export interface PersonMentionView {
16
18
  subscribed: boolean;
17
19
  saved: boolean;
18
20
  creator_blocked: boolean;
19
- my_vote?: number;
21
+ my_vote: Option<number>;
20
22
  }
21
- export interface LocalUserSettingsView {
23
+ export declare class LocalUserSettingsView {
22
24
  local_user: LocalUserSettings;
23
25
  person: PersonSafe;
24
26
  counts: PersonAggregates;
25
27
  }
26
- export interface SiteView {
28
+ export declare class SiteView {
27
29
  site: Site;
28
- creator: PersonSafe;
29
30
  counts: SiteAggregates;
30
31
  }
31
- export interface PrivateMessageView {
32
+ export declare class PrivateMessageView {
32
33
  private_message: PrivateMessage;
33
34
  creator: PersonSafe;
34
35
  recipient: PersonSafe;
35
36
  }
36
- export interface PostView {
37
+ export declare class PostView {
37
38
  post: Post;
38
39
  creator: PersonSafe;
39
40
  community: CommunitySafe;
@@ -43,23 +44,23 @@ export interface PostView {
43
44
  saved: boolean;
44
45
  read: boolean;
45
46
  creator_blocked: boolean;
46
- my_vote?: number;
47
+ my_vote: Option<number>;
47
48
  }
48
- export interface PostReportView {
49
+ export declare class PostReportView {
49
50
  post_report: PostReport;
50
51
  post: Post;
51
52
  community: CommunitySafe;
52
53
  creator: PersonSafe;
53
54
  post_creator: PersonSafe;
54
55
  creator_banned_from_community: boolean;
55
- my_vote?: number;
56
+ my_vote: Option<number>;
56
57
  counts: PostAggregates;
57
- resolver?: PersonSafe;
58
+ resolver: Option<PersonSafe>;
58
59
  }
59
- export interface CommentView {
60
+ export declare class CommentView {
60
61
  comment: Comment;
61
62
  creator: PersonSafe;
62
- recipient?: PersonSafe;
63
+ recipient: Option<PersonSafe>;
63
64
  post: Post;
64
65
  community: CommunitySafe;
65
66
  counts: CommentAggregates;
@@ -67,9 +68,9 @@ export interface CommentView {
67
68
  subscribed: boolean;
68
69
  saved: boolean;
69
70
  creator_blocked: boolean;
70
- my_vote?: number;
71
+ my_vote: Option<number>;
71
72
  }
72
- export interface CommentReportView {
73
+ export declare class CommentReportView {
73
74
  comment_report: CommentReport;
74
75
  comment: Comment;
75
76
  post: Post;
@@ -78,44 +79,44 @@ export interface CommentReportView {
78
79
  comment_creator: PersonSafe;
79
80
  counts: CommentAggregates;
80
81
  creator_banned_from_community: boolean;
81
- my_vote?: number;
82
- resolver?: PersonSafe;
82
+ my_vote: Option<number>;
83
+ resolver: Option<PersonSafe>;
83
84
  }
84
- export interface ModAddCommunityView {
85
+ export declare class ModAddCommunityView {
85
86
  mod_add_community: ModAddCommunity;
86
87
  moderator: PersonSafe;
87
88
  community: CommunitySafe;
88
89
  modded_person: PersonSafe;
89
90
  }
90
- export interface ModTransferCommunityView {
91
+ export declare class ModTransferCommunityView {
91
92
  mod_transfer_community: ModTransferCommunity;
92
93
  moderator: PersonSafe;
93
94
  community: CommunitySafe;
94
95
  modded_person: PersonSafe;
95
96
  }
96
- export interface ModAddView {
97
+ export declare class ModAddView {
97
98
  mod_add: ModAdd;
98
99
  moderator: PersonSafe;
99
100
  modded_person: PersonSafe;
100
101
  }
101
- export interface ModBanFromCommunityView {
102
+ export declare class ModBanFromCommunityView {
102
103
  mod_ban_from_community: ModBanFromCommunity;
103
104
  moderator: PersonSafe;
104
105
  community: CommunitySafe;
105
106
  banned_person: PersonSafe;
106
107
  }
107
- export interface ModBanView {
108
+ export declare class ModBanView {
108
109
  mod_ban: ModBan;
109
110
  moderator: PersonSafe;
110
111
  banned_person: PersonSafe;
111
112
  }
112
- export interface ModLockPostView {
113
+ export declare class ModLockPostView {
113
114
  mod_lock_post: ModLockPost;
114
115
  moderator: PersonSafe;
115
116
  post: Post;
116
117
  community: CommunitySafe;
117
118
  }
118
- export interface ModRemoveCommentView {
119
+ export declare class ModRemoveCommentView {
119
120
  mod_remove_comment: ModRemoveComment;
120
121
  moderator: PersonSafe;
121
122
  comment: Comment;
@@ -123,53 +124,52 @@ export interface ModRemoveCommentView {
123
124
  post: Post;
124
125
  community: CommunitySafe;
125
126
  }
126
- export interface ModRemoveCommunityView {
127
+ export declare class ModRemoveCommunityView {
127
128
  mod_remove_community: ModRemoveCommunity;
128
129
  moderator: PersonSafe;
129
130
  community: CommunitySafe;
130
131
  }
131
- export interface ModRemovePostView {
132
+ export declare class ModRemovePostView {
132
133
  mod_remove_post: ModRemovePost;
133
134
  moderator: PersonSafe;
134
135
  post: Post;
135
136
  community: CommunitySafe;
136
137
  }
137
- export interface ModStickyPostView {
138
+ export declare class ModStickyPostView {
138
139
  mod_sticky_post: ModStickyPost;
139
140
  moderator: PersonSafe;
140
141
  post: Post;
141
142
  community: CommunitySafe;
142
143
  }
143
- export interface CommunityFollowerView {
144
+ export declare class CommunityFollowerView {
144
145
  community: CommunitySafe;
145
146
  follower: PersonSafe;
146
- pending: boolean;
147
147
  }
148
- export interface CommunityBlockView {
148
+ export declare class CommunityBlockView {
149
149
  person: PersonSafe;
150
150
  community: CommunitySafe;
151
151
  }
152
- export interface CommunityModeratorView {
152
+ export declare class CommunityModeratorView {
153
153
  community: CommunitySafe;
154
154
  moderator: PersonSafe;
155
155
  }
156
- export interface CommunityPersonBanView {
156
+ export declare class CommunityPersonBanView {
157
157
  community: CommunitySafe;
158
158
  person: PersonSafe;
159
159
  }
160
- export interface PersonBlockView {
160
+ export declare class PersonBlockView {
161
161
  person: PersonSafe;
162
162
  target: PersonSafe;
163
163
  }
164
- export interface CommunityView {
164
+ export declare class CommunityView {
165
165
  community: CommunitySafe;
166
166
  subscribed: boolean;
167
167
  blocked: boolean;
168
168
  counts: CommunityAggregates;
169
169
  }
170
- export interface RegistrationApplicationView {
170
+ export declare class RegistrationApplicationView {
171
171
  registration_application: RegistrationApplication;
172
172
  creator_local_user: LocalUserSettings;
173
173
  creator: PersonSafe;
174
- admin?: PersonSafe;
174
+ admin: Option<PersonSafe>;
175
175
  }