lemmy-js-client 0.19.11-beta.0 → 0.19.11-donation-dialog.0
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 +6 -0
- package/dist/http.js +9 -0
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
|
@@ -766,6 +766,12 @@ export declare class LemmyHttp {
|
|
|
766
766
|
* Delete a pictrs image
|
|
767
767
|
*/
|
|
768
768
|
deleteImage({ token, filename }: DeleteImage): Promise<boolean>;
|
|
769
|
+
/**
|
|
770
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
771
|
+
*
|
|
772
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
|
773
|
+
*/
|
|
774
|
+
donation_dialog_shown(hide_permanently: boolean): Promise<SuccessResponse>;
|
|
769
775
|
/**
|
|
770
776
|
* Set the headers (can be used to set the auth header)
|
|
771
777
|
*/
|
package/dist/http.js
CHANGED
|
@@ -899,6 +899,15 @@ class LemmyHttp {
|
|
|
899
899
|
return response.status == 204;
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
+
/**
|
|
903
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
904
|
+
*
|
|
905
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
|
906
|
+
*/
|
|
907
|
+
donation_dialog_shown(hide_permanently) {
|
|
908
|
+
const form = { hide_permanently };
|
|
909
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", form);
|
|
910
|
+
}
|
|
902
911
|
/**
|
|
903
912
|
* Set the headers (can be used to set the auth header)
|
|
904
913
|
*/
|
package/package.json
CHANGED