lemmy-js-client 1.0.0-multi-community.13 → 1.0.0-name-and-message.1

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.
Files changed (38) hide show
  1. package/dist/http.d.ts +6 -20
  2. package/dist/http.js +10 -65
  3. package/dist/index.d.ts +0 -12
  4. package/dist/types/CommunityActions.d.ts +0 -5
  5. package/dist/types/CreateSite.d.ts +0 -2
  6. package/dist/types/EditSite.d.ts +0 -5
  7. package/dist/types/GetPosts.d.ts +0 -2
  8. package/dist/types/LemmyErrorType.d.ts +0 -4
  9. package/dist/types/ListingType.d.ts +1 -1
  10. package/dist/types/LocalImage.d.ts +2 -7
  11. package/dist/types/LocalImageView.d.ts +0 -2
  12. package/dist/types/LocalSite.d.ts +0 -2
  13. package/dist/types/ResolveObjectResponse.d.ts +0 -2
  14. package/package.json +1 -1
  15. package/dist/types/CreateMultiCommunity.d.ts +0 -5
  16. package/dist/types/CreateMultiCommunity.js +0 -3
  17. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +0 -6
  18. package/dist/types/CreateOrDeleteMultiCommunityEntry.js +0 -2
  19. package/dist/types/FollowMultiCommunity.d.ts +0 -5
  20. package/dist/types/FollowMultiCommunity.js +0 -2
  21. package/dist/types/GetMultiCommunity.d.ts +0 -4
  22. package/dist/types/GetMultiCommunity.js +0 -2
  23. package/dist/types/GetMultiCommunityResponse.d.ts +0 -6
  24. package/dist/types/GetMultiCommunityResponse.js +0 -2
  25. package/dist/types/ListMultiCommunities.d.ts +0 -5
  26. package/dist/types/ListMultiCommunities.js +0 -2
  27. package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
  28. package/dist/types/ListMultiCommunitiesResponse.js +0 -2
  29. package/dist/types/MultiCommunity.d.ts +0 -15
  30. package/dist/types/MultiCommunity.js +0 -2
  31. package/dist/types/MultiCommunityFollow.d.ts +0 -8
  32. package/dist/types/MultiCommunityFollow.js +0 -2
  33. package/dist/types/MultiCommunityId.d.ts +0 -1
  34. package/dist/types/MultiCommunityId.js +0 -3
  35. package/dist/types/MultiCommunityView.d.ts +0 -6
  36. package/dist/types/MultiCommunityView.js +0 -2
  37. package/dist/types/UpdateMultiCommunity.d.ts +0 -7
  38. package/dist/types/UpdateMultiCommunity.js +0 -2
package/dist/http.d.ts CHANGED
@@ -107,7 +107,6 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
107
107
  import { UpdateTotp } from "./types/UpdateTotp";
108
108
  import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
109
109
  import { SuccessResponse } from "./types/SuccessResponse";
110
- import { LoginToken } from "./types/LoginToken";
111
110
  import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
112
111
  import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
113
112
  import { HidePost } from "./types/HidePost";
@@ -139,16 +138,8 @@ import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
139
138
  import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
140
139
  import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
141
140
  import { CommunityIdQuery } from "./types/CommunityIdQuery";
142
- import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
143
- import { MultiCommunity } from "./types/MultiCommunity";
144
- import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
145
- import { ListMultiCommunities } from "./types/ListMultiCommunities";
146
- import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
147
141
  import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
148
- import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
149
- import { GetMultiCommunity } from "./types/GetMultiCommunity";
150
- import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
151
- import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
142
+ import { ListLoginsResponse } from "./types/ListLoginsResponse";
152
143
  type RequestOptions = Pick<RequestInit, "signal">;
153
144
  /**
154
145
  * Helps build lemmy HTTP requests.
@@ -207,7 +198,7 @@ export declare class LemmyHttp extends Controller {
207
198
  /**
208
199
  * @summary List login tokens for your user
209
200
  */
210
- listLogins(options?: RequestOptions): Promise<LoginToken[]>;
201
+ listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
211
202
  /**
212
203
  * @summary Returns an error message if your auth token is invalid
213
204
  */
@@ -343,7 +334,7 @@ export declare class LemmyHttp extends Controller {
343
334
  /**
344
335
  * @summary Mark a post as read.
345
336
  */
346
- markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
337
+ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
347
338
  /**
348
339
  * @summary Mark multiple posts as read.
349
340
  */
@@ -742,15 +733,10 @@ export declare class LemmyHttp extends Controller {
742
733
  imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
743
734
  /**
744
735
  * Mark donation dialog as shown, so it isn't displayed anymore.
736
+ *
737
+ * `HTTP.POST /user/donation_dialog_shown`
745
738
  */
746
- donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
747
- createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunity>;
748
- updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
749
- getMultiCommunity(form: GetMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
750
- createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
751
- deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
752
- listMultiCommunities(form: ListMultiCommunities, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
753
- followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
739
+ donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
754
740
  /**
755
741
  * Set the headers (can be used to set the auth header)
756
742
  */
package/dist/http.js CHANGED
@@ -912,31 +912,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
912
912
  }
913
913
  /**
914
914
  * Mark donation dialog as shown, so it isn't displayed anymore.
915
+ *
916
+ * `HTTP.POST /user/donation_dialog_shown`
915
917
  */
916
- donationDialogShown(options) {
918
+ donation_dialog_shown(options) {
917
919
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
918
920
  }
919
- createMultiCommunity(form, options) {
920
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
921
- }
922
- updateMultiCommunity(form, options) {
923
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
924
- }
925
- getMultiCommunity(form, options) {
926
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
927
- }
928
- createMultiCommunityEntry(form, options) {
929
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
930
- }
931
- deleteMultiCommunityEntry(form, options) {
932
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
933
- }
934
- listMultiCommunities(form, options) {
935
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
936
- }
937
- followMultiCommunity(form, options) {
938
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
939
- }
940
921
  /**
941
922
  * Set the headers (can be used to set the auth header)
942
923
  */
@@ -994,7 +975,12 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
994
975
  throw new Error(response.statusText);
995
976
  }
996
977
  if (!response.ok) {
997
- throw new Error(json["error"] ?? response.statusText);
978
+ let err = {
979
+ name: json.error ?? response.statusText,
980
+ // Leave an empty error message if undefined
981
+ message: json.message ?? "",
982
+ };
983
+ throw err;
998
984
  }
999
985
  else {
1000
986
  return json;
@@ -1982,49 +1968,8 @@ __decorate([
1982
1968
  __param(0, (0, runtime_1.Inject)())
1983
1969
  ], LemmyHttp.prototype, "imageHealth", null);
1984
1970
  __decorate([
1985
- (0, runtime_1.Security)("bearerAuth"),
1986
- (0, runtime_1.Post)("/user/donation_dialog_shown"),
1987
1971
  __param(0, (0, runtime_1.Inject)())
1988
- ], LemmyHttp.prototype, "donationDialogShown", null);
1989
- __decorate([
1990
- (0, runtime_1.Security)("bearerAuth"),
1991
- (0, runtime_1.Post)("/multi_community"),
1992
- __param(0, (0, runtime_1.Body)()),
1993
- __param(1, (0, runtime_1.Inject)())
1994
- ], LemmyHttp.prototype, "createMultiCommunity", null);
1995
- __decorate([
1996
- (0, runtime_1.Security)("bearerAuth"),
1997
- (0, runtime_1.Put)("/multi_community"),
1998
- __param(0, (0, runtime_1.Body)()),
1999
- __param(1, (0, runtime_1.Inject)())
2000
- ], LemmyHttp.prototype, "updateMultiCommunity", null);
2001
- __decorate([
2002
- (0, runtime_1.Get)("/multi_community"),
2003
- __param(0, (0, runtime_1.Body)()),
2004
- __param(1, (0, runtime_1.Inject)())
2005
- ], LemmyHttp.prototype, "getMultiCommunity", null);
2006
- __decorate([
2007
- (0, runtime_1.Security)("bearerAuth"),
2008
- (0, runtime_1.Post)("/multi_community/entry"),
2009
- __param(0, (0, runtime_1.Body)()),
2010
- __param(1, (0, runtime_1.Inject)())
2011
- ], LemmyHttp.prototype, "createMultiCommunityEntry", null);
2012
- __decorate([
2013
- (0, runtime_1.Security)("bearerAuth"),
2014
- (0, runtime_1.Delete)("/multi_community/entry"),
2015
- __param(0, (0, runtime_1.Body)()),
2016
- __param(1, (0, runtime_1.Inject)())
2017
- ], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
2018
- __decorate([
2019
- (0, runtime_1.Get)("/multi_community/list"),
2020
- __param(0, (0, runtime_1.Body)()),
2021
- __param(1, (0, runtime_1.Inject)())
2022
- ], LemmyHttp.prototype, "listMultiCommunities", null);
2023
- __decorate([
2024
- (0, runtime_1.Post)("/multi_community/follow"),
2025
- __param(0, (0, runtime_1.Body)()),
2026
- __param(1, (0, runtime_1.Inject)())
2027
- ], LemmyHttp.prototype, "followMultiCommunity", null);
1972
+ ], LemmyHttp.prototype, "donation_dialog_shown", null);
2028
1973
  exports.LemmyHttp = LemmyHttp = __decorate([
2029
1974
  (0, runtime_1.Route)("api/v4")
2030
1975
  ], LemmyHttp);
package/dist/index.d.ts CHANGED
@@ -76,9 +76,7 @@ export { CreateCommunity } from "./types/CreateCommunity";
76
76
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
77
77
  export { CreateCommunityTag } from "./types/CreateCommunityTag";
78
78
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
79
- export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
80
79
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
81
- export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
82
80
  export { CreatePost } from "./types/CreatePost";
83
81
  export { CreatePostLike } from "./types/CreatePostLike";
84
82
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -116,7 +114,6 @@ export { FederationBlockList } from "./types/FederationBlockList";
116
114
  export { FederationError } from "./types/FederationError";
117
115
  export { FederationMode } from "./types/FederationMode";
118
116
  export { FollowCommunity } from "./types/FollowCommunity";
119
- export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
120
117
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
121
118
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
122
119
  export { GetComment } from "./types/GetComment";
@@ -130,8 +127,6 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
130
127
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
131
128
  export { GetModlog } from "./types/GetModlog";
132
129
  export { GetModlogResponse } from "./types/GetModlogResponse";
133
- export { GetMultiCommunity } from "./types/GetMultiCommunity";
134
- export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
135
130
  export { GetPersonDetails } from "./types/GetPersonDetails";
136
131
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
137
132
  export { GetPost } from "./types/GetPost";
@@ -175,8 +170,6 @@ export { ListInboxResponse } from "./types/ListInboxResponse";
175
170
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
176
171
  export { ListMedia } from "./types/ListMedia";
177
172
  export { ListMediaResponse } from "./types/ListMediaResponse";
178
- export { ListMultiCommunities } from "./types/ListMultiCommunities";
179
- export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
180
173
  export { ListPersonContent } from "./types/ListPersonContent";
181
174
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
182
175
  export { ListPersonHidden } from "./types/ListPersonHidden";
@@ -248,10 +241,6 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
248
241
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
249
242
  export { ModlogActionType } from "./types/ModlogActionType";
250
243
  export { ModlogCombinedView } from "./types/ModlogCombinedView";
251
- export { MultiCommunity } from "./types/MultiCommunity";
252
- export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
253
- export { MultiCommunityId } from "./types/MultiCommunityId";
254
- export { MultiCommunityView } from "./types/MultiCommunityView";
255
244
  export { MyUserInfo } from "./types/MyUserInfo";
256
245
  export { OAuthAccount } from "./types/OAuthAccount";
257
246
  export { OAuthProvider } from "./types/OAuthProvider";
@@ -341,7 +330,6 @@ export { TaglineResponse } from "./types/TaglineResponse";
341
330
  export { TagsView } from "./types/TagsView";
342
331
  export { TransferCommunity } from "./types/TransferCommunity";
343
332
  export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
344
- export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
345
333
  export { UpdateTagline } from "./types/UpdateTagline";
346
334
  export { UpdateTotp } from "./types/UpdateTotp";
347
335
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
@@ -32,9 +32,4 @@ export type CommunityActions = {
32
32
  * When their ban expires.
33
33
  */
34
34
  ban_expires?: string;
35
- /**
36
- * True indicates that user is following this community as part of multi-comm (not part of
37
- * subscribed feed)
38
- */
39
- is_multi_community_follow: boolean | null;
40
35
  };
@@ -2,7 +2,6 @@ import type { CommentSortType } from "./CommentSortType";
2
2
  import type { FederationMode } from "./FederationMode";
3
3
  import type { LanguageId } from "./LanguageId";
4
4
  import type { ListingType } from "./ListingType";
5
- import type { MultiCommunityId } from "./MultiCommunityId";
6
5
  import type { PostListingMode } from "./PostListingMode";
7
6
  import type { PostSortType } from "./PostSortType";
8
7
  import type { RegistrationMode } from "./RegistrationMode";
@@ -53,5 +52,4 @@ export type CreateSite = {
53
52
  comment_downvotes?: FederationMode;
54
53
  disallow_nsfw_content?: boolean;
55
54
  disable_email_notifications?: boolean;
56
- suggested_communities?: MultiCommunityId;
57
55
  };
@@ -2,7 +2,6 @@ import type { CommentSortType } from "./CommentSortType";
2
2
  import type { FederationMode } from "./FederationMode";
3
3
  import type { LanguageId } from "./LanguageId";
4
4
  import type { ListingType } from "./ListingType";
5
- import type { MultiCommunityId } from "./MultiCommunityId";
6
5
  import type { PostListingMode } from "./PostListingMode";
7
6
  import type { PostSortType } from "./PostSortType";
8
7
  import type { RegistrationMode } from "./RegistrationMode";
@@ -167,8 +166,4 @@ export type EditSite = {
167
166
  * Dont send email notifications to users for new replies, mentions etc
168
167
  */
169
168
  disable_email_notifications?: boolean;
170
- /**
171
- * A multicommunity with suggested communities which is shown on the homepage
172
- */
173
- suggested_communities?: MultiCommunityId;
174
169
  };
@@ -1,6 +1,5 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  import type { ListingType } from "./ListingType";
3
- import type { MultiCommunityId } from "./MultiCommunityId";
4
3
  import type { PaginationCursor } from "./PaginationCursor";
5
4
  import type { PostSortType } from "./PostSortType";
6
5
  /**
@@ -17,7 +16,6 @@ export type GetPosts = {
17
16
  time_range_seconds?: number;
18
17
  community_id?: CommunityId;
19
18
  community_name?: string;
20
- multi_community_id?: MultiCommunityId;
21
19
  liked_only?: boolean;
22
20
  disliked_only?: boolean;
23
21
  show_hidden?: boolean;
@@ -356,8 +356,4 @@ export type LemmyErrorType = {
356
356
  error: "couldnt_create_email_verification";
357
357
  } | {
358
358
  error: "email_notifications_disabled";
359
- } | {
360
- error: "multi_community_update_wrong_user";
361
- } | {
362
- error: "cannot_combine_community_id_and_multi_community_id";
363
359
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * A listing type for post and comment list fetches.
3
3
  */
4
- export type ListingType = "All" | "Local" | "Subscribed" | "ModeratorView" | "Suggested";
4
+ export type ListingType = "All" | "Local" | "Subscribed" | "ModeratorView";
@@ -1,11 +1,6 @@
1
- import type { PersonId } from "./PersonId";
2
- import type { PostId } from "./PostId";
1
+ import type { LocalUserId } from "./LocalUserId";
3
2
  export type LocalImage = {
3
+ local_user_id?: LocalUserId;
4
4
  pictrs_alias: string;
5
5
  published: string;
6
- person_id: PersonId;
7
- /**
8
- * This means the image is an auto-generated thumbnail, for a post.
9
- */
10
- thumbnail_for_post_id?: PostId;
11
6
  };
@@ -1,11 +1,9 @@
1
1
  import type { LocalImage } from "./LocalImage";
2
2
  import type { Person } from "./Person";
3
- import type { Post } from "./Post";
4
3
  /**
5
4
  * A local image view.
6
5
  */
7
6
  export type LocalImageView = {
8
7
  local_image: LocalImage;
9
8
  person: Person;
10
- post?: Post;
11
9
  };
@@ -2,7 +2,6 @@ import type { CommentSortType } from "./CommentSortType";
2
2
  import type { FederationMode } from "./FederationMode";
3
3
  import type { ListingType } from "./ListingType";
4
4
  import type { LocalSiteId } from "./LocalSiteId";
5
- import type { MultiCommunityId } from "./MultiCommunityId";
6
5
  import type { PostListingMode } from "./PostListingMode";
7
6
  import type { PostSortType } from "./PostSortType";
8
7
  import type { RegistrationMode } from "./RegistrationMode";
@@ -146,5 +145,4 @@ export type LocalSite = {
146
145
  * Dont send email notifications to users for new replies, mentions etc
147
146
  */
148
147
  disable_email_notifications: boolean;
149
- suggested_communities?: MultiCommunityId;
150
148
  };
@@ -1,6 +1,5 @@
1
1
  import type { CommentView } from "./CommentView";
2
2
  import type { CommunityView } from "./CommunityView";
3
- import type { MultiCommunity } from "./MultiCommunity";
4
3
  import type { PersonView } from "./PersonView";
5
4
  import type { PostView } from "./PostView";
6
5
  /**
@@ -11,5 +10,4 @@ export type ResolveObjectResponse = {
11
10
  post?: PostView;
12
11
  community?: CommunityView;
13
12
  person?: PersonView;
14
- multi_community?: MultiCommunity;
15
13
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "1.0.0-multi-community.13",
4
+ "version": "1.0.0-name-and-message.1",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -1,5 +0,0 @@
1
- export type CreateMultiCommunity = {
2
- name: string;
3
- title?: string;
4
- description?: string;
5
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { MultiCommunityId } from "./MultiCommunityId";
3
- export type CreateOrDeleteMultiCommunityEntry = {
4
- id: MultiCommunityId;
5
- community_id: CommunityId;
6
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type { MultiCommunityId } from "./MultiCommunityId";
2
- export type FollowMultiCommunity = {
3
- multi_community_id: MultiCommunityId;
4
- follow: boolean;
5
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import type { MultiCommunityId } from "./MultiCommunityId";
2
- export type GetMultiCommunity = {
3
- id: MultiCommunityId;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import type { CommunityView } from "./CommunityView";
2
- import type { MultiCommunity } from "./MultiCommunity";
3
- export type GetMultiCommunityResponse = {
4
- multi: MultiCommunity;
5
- entries: Array<CommunityView>;
6
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type { PersonId } from "./PersonId";
2
- export type ListMultiCommunities = {
3
- creator_id?: PersonId;
4
- followed_only?: boolean;
5
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import type { MultiCommunity } from "./MultiCommunity";
2
- export type ListMultiCommunitiesResponse = {
3
- multi_communities: Array<MultiCommunity>;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import type { DbUrl } from "./DbUrl";
2
- import type { MultiCommunityId } from "./MultiCommunityId";
3
- import type { PersonId } from "./PersonId";
4
- export type MultiCommunity = {
5
- id: MultiCommunityId;
6
- creator_id: PersonId;
7
- name: string;
8
- title?: string;
9
- description?: string;
10
- local: boolean;
11
- deleted: boolean;
12
- ap_id: DbUrl;
13
- published: string;
14
- updated?: string;
15
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import type { CommunityFollowerState } from "./CommunityFollowerState";
2
- import type { MultiCommunityId } from "./MultiCommunityId";
3
- import type { PersonId } from "./PersonId";
4
- export type MultiCommunityFollow = {
5
- multi_community_id: MultiCommunityId;
6
- person_id: PersonId;
7
- follow_state: CommunityFollowerState;
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type MultiCommunityId = number;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { MultiCommunity } from "./MultiCommunity";
3
- export type MultiCommunityView = {
4
- multi: MultiCommunity;
5
- entries: Array<CommunityId>;
6
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import type { MultiCommunityId } from "./MultiCommunityId";
2
- export type UpdateMultiCommunity = {
3
- id: MultiCommunityId;
4
- title?: string;
5
- description?: string;
6
- deleted?: boolean;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });