lemmy-js-client 0.17.0-rc.57 → 0.17.0-rc.59
Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.js
CHANGED
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
26
26
|
function step(op) {
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
28
|
-
while (_) try {
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
31
31
|
switch (op[0]) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Option } from "@sniptt/monads";
|
2
2
|
import "reflect-metadata";
|
3
3
|
import { ListingType, ModlogActionType, SearchType, SortType } from "../others";
|
4
|
-
import { Language, Tagline } from "../source";
|
4
|
+
import { Language, RegistrationMode, Tagline } from "../source";
|
5
5
|
import { AdminPurgeCommentView, AdminPurgeCommunityView, AdminPurgePersonView, AdminPurgePostView, CommentView, CommunityBlockView, CommunityFollowerView, CommunityModeratorView, CommunityView, LocalUserSettingsView, ModAddCommunityView, ModAddView, ModBanFromCommunityView, ModBanView, ModFeaturePostView, ModLockPostView, ModRemoveCommentView, ModRemoveCommunityView, ModRemovePostView, ModTransferCommunityView, PersonBlockView, PersonViewSafe, PostView, RegistrationApplicationView, SiteView } from "../views";
|
6
6
|
/**
|
7
7
|
* Search lemmy for different types of data.
|
@@ -65,11 +65,10 @@ export declare class CreateSite {
|
|
65
65
|
icon: Option<string>;
|
66
66
|
banner: Option<string>;
|
67
67
|
enable_downvotes: Option<boolean>;
|
68
|
-
open_registration: Option<boolean>;
|
69
68
|
enable_nsfw: Option<boolean>;
|
70
69
|
community_creation_admin_only: Option<boolean>;
|
71
70
|
require_email_verification: Option<boolean>;
|
72
|
-
|
71
|
+
registration_mode: Option<RegistrationMode>;
|
73
72
|
application_question: Option<string>;
|
74
73
|
private_instance: Option<boolean>;
|
75
74
|
default_theme: Option<string>;
|
@@ -110,11 +109,10 @@ export declare class EditSite {
|
|
110
109
|
icon: Option<string>;
|
111
110
|
banner: Option<string>;
|
112
111
|
enable_downvotes: Option<boolean>;
|
113
|
-
open_registration: Option<boolean>;
|
114
112
|
enable_nsfw: Option<boolean>;
|
115
113
|
community_creation_admin_only: Option<boolean>;
|
116
114
|
require_email_verification: Option<boolean>;
|
117
|
-
|
115
|
+
registration_mode: Option<RegistrationMode>;
|
118
116
|
application_question: Option<string>;
|
119
117
|
private_instance: Option<boolean>;
|
120
118
|
default_theme: Option<string>;
|
@@ -319,17 +319,6 @@ var CreateSite = /** @class */ (function () {
|
|
319
319
|
}, { toPlainOnly: true }),
|
320
320
|
(0, class_transformer_1.Expose)()
|
321
321
|
], CreateSite.prototype, "enable_downvotes", void 0);
|
322
|
-
__decorate([
|
323
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
324
|
-
var value = _a.value;
|
325
|
-
return (0, utils_1.toOption)(value);
|
326
|
-
}, { toClassOnly: true }),
|
327
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
328
|
-
var value = _a.value;
|
329
|
-
return (0, utils_1.toUndefined)(value);
|
330
|
-
}, { toPlainOnly: true }),
|
331
|
-
(0, class_transformer_1.Expose)()
|
332
|
-
], CreateSite.prototype, "open_registration", void 0);
|
333
322
|
__decorate([
|
334
323
|
(0, class_transformer_1.Transform)(function (_a) {
|
335
324
|
var value = _a.value;
|
@@ -373,7 +362,7 @@ var CreateSite = /** @class */ (function () {
|
|
373
362
|
return (0, utils_1.toUndefined)(value);
|
374
363
|
}, { toPlainOnly: true }),
|
375
364
|
(0, class_transformer_1.Expose)()
|
376
|
-
], CreateSite.prototype, "
|
365
|
+
], CreateSite.prototype, "registration_mode", void 0);
|
377
366
|
__decorate([
|
378
367
|
(0, class_transformer_1.Transform)(function (_a) {
|
379
368
|
var value = _a.value;
|
@@ -777,17 +766,6 @@ var EditSite = /** @class */ (function () {
|
|
777
766
|
}, { toPlainOnly: true }),
|
778
767
|
(0, class_transformer_1.Expose)()
|
779
768
|
], EditSite.prototype, "enable_downvotes", void 0);
|
780
|
-
__decorate([
|
781
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
782
|
-
var value = _a.value;
|
783
|
-
return (0, utils_1.toOption)(value);
|
784
|
-
}, { toClassOnly: true }),
|
785
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
786
|
-
var value = _a.value;
|
787
|
-
return (0, utils_1.toUndefined)(value);
|
788
|
-
}, { toPlainOnly: true }),
|
789
|
-
(0, class_transformer_1.Expose)()
|
790
|
-
], EditSite.prototype, "open_registration", void 0);
|
791
769
|
__decorate([
|
792
770
|
(0, class_transformer_1.Transform)(function (_a) {
|
793
771
|
var value = _a.value;
|
@@ -831,7 +809,7 @@ var EditSite = /** @class */ (function () {
|
|
831
809
|
return (0, utils_1.toUndefined)(value);
|
832
810
|
}, { toPlainOnly: true }),
|
833
811
|
(0, class_transformer_1.Expose)()
|
834
|
-
], EditSite.prototype, "
|
812
|
+
], EditSite.prototype, "registration_mode", void 0);
|
835
813
|
__decorate([
|
836
814
|
(0, class_transformer_1.Transform)(function (_a) {
|
837
815
|
var value = _a.value;
|
@@ -55,16 +55,20 @@ export declare class Site {
|
|
55
55
|
public_key: string;
|
56
56
|
instance_id: number;
|
57
57
|
}
|
58
|
+
export declare enum RegistrationMode {
|
59
|
+
Closed = "closed",
|
60
|
+
RequireApplication = "require_application",
|
61
|
+
Open = "open"
|
62
|
+
}
|
58
63
|
export declare class LocalSite {
|
59
64
|
id: number;
|
60
65
|
site_id: number;
|
61
66
|
site_setup: boolean;
|
62
67
|
enable_downvotes: boolean;
|
63
|
-
|
68
|
+
registration_mode: RegistrationMode;
|
64
69
|
enable_nsfw: boolean;
|
65
70
|
community_creation_admin_only: boolean;
|
66
71
|
require_email_verification: boolean;
|
67
|
-
require_application: boolean;
|
68
72
|
application_question: Option<string>;
|
69
73
|
private_instance: boolean;
|
70
74
|
default_theme: string;
|
@@ -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.Tagline = exports.PrivateMessageReport = exports.Language = exports.RegistrationApplication = exports.CommentReply = exports.PersonMention = exports.Comment = exports.CommentReport = exports.CommunitySafe = exports.AdminPurgeComment = exports.AdminPurgePost = exports.AdminPurgeCommunity = exports.AdminPurgePerson = exports.ModAdd = exports.ModTransferCommunity = exports.ModAddCommunity = exports.ModBan = exports.ModBanFromCommunity = exports.ModRemoveCommunity = exports.ModRemoveComment = exports.ModFeaturePost = exports.ModLockPost = exports.ModRemovePost = exports.PasswordResetRequest = exports.Post = exports.PostReport = exports.PrivateMessage = exports.LocalSiteRateLimit = exports.LocalSite = exports.Site = exports.PersonSafe = exports.LocalUserSettings = void 0;
|
9
|
+
exports.Tagline = exports.PrivateMessageReport = exports.Language = exports.RegistrationApplication = exports.CommentReply = exports.PersonMention = exports.Comment = exports.CommentReport = exports.CommunitySafe = exports.AdminPurgeComment = exports.AdminPurgePost = exports.AdminPurgeCommunity = exports.AdminPurgePerson = exports.ModAdd = exports.ModTransferCommunity = exports.ModAddCommunity = exports.ModBan = exports.ModBanFromCommunity = exports.ModRemoveCommunity = exports.ModRemoveComment = exports.ModFeaturePost = exports.ModLockPost = exports.ModRemovePost = exports.PasswordResetRequest = exports.Post = exports.PostReport = exports.PrivateMessage = exports.LocalSiteRateLimit = exports.LocalSite = exports.RegistrationMode = exports.Site = exports.PersonSafe = exports.LocalUserSettings = void 0;
|
10
10
|
var class_transformer_1 = require("class-transformer");
|
11
11
|
var utils_1 = require("../utils");
|
12
12
|
var LocalUserSettings = /** @class */ (function () {
|
@@ -181,6 +181,12 @@ var Site = /** @class */ (function () {
|
|
181
181
|
return Site;
|
182
182
|
}());
|
183
183
|
exports.Site = Site;
|
184
|
+
var RegistrationMode;
|
185
|
+
(function (RegistrationMode) {
|
186
|
+
RegistrationMode["Closed"] = "closed";
|
187
|
+
RegistrationMode["RequireApplication"] = "require_application";
|
188
|
+
RegistrationMode["Open"] = "open";
|
189
|
+
})(RegistrationMode = exports.RegistrationMode || (exports.RegistrationMode = {}));
|
184
190
|
var LocalSite = /** @class */ (function () {
|
185
191
|
function LocalSite() {
|
186
192
|
}
|
package/package.json
CHANGED