lemmy-js-client 1.0.0-multi-community.2 → 1.0.0-multi-community.4
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.
- package/dist/http.d.ts +4 -4
- package/dist/http.js +9 -9
- package/dist/types/ResolveObjectResponse.d.ts +2 -0
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
@@ -729,10 +729,10 @@ export declare class LemmyHttp extends Controller {
|
|
729
729
|
/**
|
730
730
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
731
731
|
*/
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
732
|
+
donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
|
733
|
+
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<MultiCommunity>;
|
734
|
+
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
735
|
+
listMultiCommunities(form: ListMultiCommunities, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
|
736
736
|
/**
|
737
737
|
* Set the headers (can be used to set the auth header)
|
738
738
|
*/
|
package/dist/http.js
CHANGED
@@ -901,16 +901,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
901
901
|
/**
|
902
902
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
903
903
|
*/
|
904
|
-
|
904
|
+
donationDialogShown(options) {
|
905
905
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
|
906
906
|
}
|
907
|
-
|
907
|
+
createMultiCommunity(form, options) {
|
908
908
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
|
909
909
|
}
|
910
|
-
|
910
|
+
updateMultiCommunity(form, options) {
|
911
911
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
|
912
912
|
}
|
913
|
-
|
913
|
+
listMultiCommunities(form, options) {
|
914
914
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
|
915
915
|
}
|
916
916
|
/**
|
@@ -1947,24 +1947,24 @@ __decorate([
|
|
1947
1947
|
(0, runtime_1.Security)("bearerAuth"),
|
1948
1948
|
(0, runtime_1.Post)("/user/donation_dialog_shown"),
|
1949
1949
|
__param(0, (0, runtime_1.Inject)())
|
1950
|
-
], LemmyHttp.prototype, "
|
1950
|
+
], LemmyHttp.prototype, "donationDialogShown", null);
|
1951
1951
|
__decorate([
|
1952
1952
|
(0, runtime_1.Security)("bearerAuth"),
|
1953
1953
|
(0, runtime_1.Post)("/multi_community"),
|
1954
1954
|
__param(0, (0, runtime_1.Body)()),
|
1955
1955
|
__param(1, (0, runtime_1.Inject)())
|
1956
|
-
], LemmyHttp.prototype, "
|
1956
|
+
], LemmyHttp.prototype, "createMultiCommunity", null);
|
1957
1957
|
__decorate([
|
1958
1958
|
(0, runtime_1.Security)("bearerAuth"),
|
1959
1959
|
(0, runtime_1.Put)("/multi_community"),
|
1960
1960
|
__param(0, (0, runtime_1.Body)()),
|
1961
1961
|
__param(1, (0, runtime_1.Inject)())
|
1962
|
-
], LemmyHttp.prototype, "
|
1962
|
+
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
1963
1963
|
__decorate([
|
1964
|
-
(0, runtime_1.
|
1964
|
+
(0, runtime_1.Get)("/multi_community/list"),
|
1965
1965
|
__param(0, (0, runtime_1.Body)()),
|
1966
1966
|
__param(1, (0, runtime_1.Inject)())
|
1967
|
-
], LemmyHttp.prototype, "
|
1967
|
+
], LemmyHttp.prototype, "listMultiCommunities", null);
|
1968
1968
|
exports.LemmyHttp = LemmyHttp = __decorate([
|
1969
1969
|
(0, runtime_1.Route)("api/v4")
|
1970
1970
|
], LemmyHttp);
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { CommentView } from "./CommentView";
|
2
2
|
import type { CommunityView } from "./CommunityView";
|
3
|
+
import { MultiCommunityView } from "./MultiCommunityView";
|
3
4
|
import type { PersonView } from "./PersonView";
|
4
5
|
import type { PostView } from "./PostView";
|
5
6
|
/**
|
@@ -10,4 +11,5 @@ export type ResolveObjectResponse = {
|
|
10
11
|
post?: PostView;
|
11
12
|
community?: CommunityView;
|
12
13
|
person?: PersonView;
|
14
|
+
multi_community?: MultiCommunityView;
|
13
15
|
};
|
package/package.json
CHANGED