lemmy-js-client 0.17.0-rc.29 → 0.17.0-rc.31
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.
@@ -847,6 +847,9 @@ exports.ListRegistrationApplications = ListRegistrationApplications;
|
|
847
847
|
var ListRegistrationApplicationsResponse = /** @class */ (function () {
|
848
848
|
function ListRegistrationApplicationsResponse() {
|
849
849
|
}
|
850
|
+
__decorate([
|
851
|
+
(0, class_transformer_1.Type)(function () { return views_1.RegistrationApplicationView; })
|
852
|
+
], ListRegistrationApplicationsResponse.prototype, "registration_applications", void 0);
|
850
853
|
return ListRegistrationApplicationsResponse;
|
851
854
|
}());
|
852
855
|
exports.ListRegistrationApplicationsResponse = ListRegistrationApplicationsResponse;
|
@@ -144,6 +144,14 @@ export declare enum SearchType {
|
|
144
144
|
Users = "Users",
|
145
145
|
Url = "Url"
|
146
146
|
}
|
147
|
+
/**
|
148
|
+
* Different Subscribed states
|
149
|
+
*/
|
150
|
+
export declare enum SubscribedType {
|
151
|
+
Subscribed = "Subscribed",
|
152
|
+
NotSubscribed = "NotSubscribed",
|
153
|
+
Pending = "Pending"
|
154
|
+
}
|
147
155
|
/**
|
148
156
|
* A holder for a site's metadata ( such as opengraph tags ), used for post links.
|
149
157
|
*/
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
7
|
};
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
-
exports.SiteMetadata = exports.SearchType = exports.ListingType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
|
9
|
+
exports.SiteMetadata = exports.SubscribedType = exports.SearchType = exports.ListingType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
|
10
10
|
var class_transformer_1 = require("class-transformer");
|
11
11
|
var utils_1 = require("../utils");
|
12
12
|
exports.VERSION = "v3";
|
@@ -158,6 +158,15 @@ var SearchType;
|
|
158
158
|
SearchType["Users"] = "Users";
|
159
159
|
SearchType["Url"] = "Url";
|
160
160
|
})(SearchType = exports.SearchType || (exports.SearchType = {}));
|
161
|
+
/**
|
162
|
+
* Different Subscribed states
|
163
|
+
*/
|
164
|
+
var SubscribedType;
|
165
|
+
(function (SubscribedType) {
|
166
|
+
SubscribedType["Subscribed"] = "Subscribed";
|
167
|
+
SubscribedType["NotSubscribed"] = "NotSubscribed";
|
168
|
+
SubscribedType["Pending"] = "Pending";
|
169
|
+
})(SubscribedType = exports.SubscribedType || (exports.SubscribedType = {}));
|
161
170
|
/**
|
162
171
|
* A holder for a site's metadata ( such as opengraph tags ), used for post links.
|
163
172
|
*/
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Option } from "@sniptt/monads";
|
2
2
|
import "reflect-metadata";
|
3
3
|
import { CommentAggregates, CommunityAggregates, PersonAggregates, PostAggregates, SiteAggregates } from "./aggregates";
|
4
|
+
import { SubscribedType } from "./others";
|
4
5
|
import { Comment, CommentReport, CommunitySafe, LocalUserSettings, ModAdd, ModAddCommunity, ModBan, ModBanFromCommunity, ModLockPost, ModRemoveComment, ModRemoveCommunity, ModRemovePost, ModStickyPost, ModTransferCommunity, PersonMention, PersonSafe, Post, PostReport, PrivateMessage, RegistrationApplication, Site } from "./source";
|
5
6
|
export declare class PersonViewSafe {
|
6
7
|
person: PersonSafe;
|
@@ -15,7 +16,7 @@ export declare class PersonMentionView {
|
|
15
16
|
recipient: PersonSafe;
|
16
17
|
counts: CommentAggregates;
|
17
18
|
creator_banned_from_community: boolean;
|
18
|
-
subscribed:
|
19
|
+
subscribed: SubscribedType;
|
19
20
|
saved: boolean;
|
20
21
|
creator_blocked: boolean;
|
21
22
|
my_vote: Option<number>;
|
@@ -40,7 +41,7 @@ export declare class PostView {
|
|
40
41
|
community: CommunitySafe;
|
41
42
|
creator_banned_from_community: boolean;
|
42
43
|
counts: PostAggregates;
|
43
|
-
subscribed:
|
44
|
+
subscribed: SubscribedType;
|
44
45
|
saved: boolean;
|
45
46
|
read: boolean;
|
46
47
|
creator_blocked: boolean;
|
@@ -65,7 +66,7 @@ export declare class CommentView {
|
|
65
66
|
community: CommunitySafe;
|
66
67
|
counts: CommentAggregates;
|
67
68
|
creator_banned_from_community: boolean;
|
68
|
-
subscribed:
|
69
|
+
subscribed: SubscribedType;
|
69
70
|
saved: boolean;
|
70
71
|
creator_blocked: boolean;
|
71
72
|
my_vote: Option<number>;
|
@@ -163,7 +164,7 @@ export declare class PersonBlockView {
|
|
163
164
|
}
|
164
165
|
export declare class CommunityView {
|
165
166
|
community: CommunitySafe;
|
166
|
-
subscribed:
|
167
|
+
subscribed: SubscribedType;
|
167
168
|
blocked: boolean;
|
168
169
|
counts: CommunityAggregates;
|
169
170
|
}
|
package/package.json
CHANGED