lemmy-js-client 0.19.9 → 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 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/dist/index.d.ts CHANGED
@@ -72,6 +72,7 @@ export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
72
72
  export { DeletePost } from "./types/DeletePost";
73
73
  export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
74
74
  export { DistinguishComment } from "./types/DistinguishComment";
75
+ export { DonationDialogShown } from "./types/DonationDialogShown";
75
76
  export { EditComment } from "./types/EditComment";
76
77
  export { EditCommunity } from "./types/EditCommunity";
77
78
  export { EditCustomEmoji } from "./types/EditCustomEmoji";
@@ -0,0 +1,3 @@
1
+ export interface DonationDialogShown {
2
+ hide_permanently?: boolean;
3
+ }
@@ -0,0 +1,3 @@
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 });
@@ -29,4 +29,5 @@ export interface LocalUser {
29
29
  enable_keyboard_navigation: boolean;
30
30
  enable_animated_images: boolean;
31
31
  collapse_bot_comments: boolean;
32
+ last_donation_notification: string;
32
33
  }
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": "0.19.9",
4
+ "version": "0.19.11-donation-dialog.0",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",