lemmy-js-client 0.17.2-rc.15 → 0.17.2-rc.17

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.js CHANGED
@@ -56,7 +56,7 @@ var form_data_1 = __importDefault(require("form-data"));
56
56
  var others_1 = require("./types/others");
57
57
  // @ts-ignore
58
58
  BigInt.prototype["toJSON"] = function () {
59
- return this.toString();
59
+ return parseInt(this.toString());
60
60
  };
61
61
  var HttpType;
62
62
  (function (HttpType) {
@@ -6,6 +6,6 @@ export interface BanFromCommunity {
6
6
  ban: boolean;
7
7
  remove_data?: boolean;
8
8
  reason?: string;
9
- expires?: bigint;
9
+ expires?: number;
10
10
  auth: string;
11
11
  }
@@ -4,6 +4,6 @@ export interface BanPerson {
4
4
  ban: boolean;
5
5
  remove_data?: boolean;
6
6
  reason?: string;
7
- expires?: bigint;
7
+ expires?: number;
8
8
  auth: string;
9
9
  }
@@ -2,9 +2,9 @@ import type { CommentId } from "./CommentId";
2
2
  export interface CommentAggregates {
3
3
  id: number;
4
4
  comment_id: CommentId;
5
- score: bigint;
6
- upvotes: bigint;
7
- downvotes: bigint;
5
+ score: number;
6
+ upvotes: number;
7
+ downvotes: number;
8
8
  published: string;
9
9
  child_count: number;
10
10
  }
@@ -2,12 +2,12 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface CommunityAggregates {
3
3
  id: number;
4
4
  community_id: CommunityId;
5
- subscribers: bigint;
6
- posts: bigint;
7
- comments: bigint;
5
+ subscribers: number;
6
+ posts: number;
7
+ comments: number;
8
8
  published: string;
9
- users_active_day: bigint;
10
- users_active_week: bigint;
11
- users_active_month: bigint;
12
- users_active_half_year: bigint;
9
+ users_active_day: number;
10
+ users_active_week: number;
11
+ users_active_month: number;
12
+ users_active_half_year: number;
13
13
  }
@@ -7,8 +7,8 @@ export interface GetComments {
7
7
  type_?: ListingType;
8
8
  sort?: CommentSortType;
9
9
  max_depth?: number;
10
- page?: bigint;
11
- limit?: bigint;
10
+ page?: number;
11
+ limit?: number;
12
12
  community_id?: CommunityId;
13
13
  community_name?: string;
14
14
  post_id?: PostId;
@@ -4,8 +4,8 @@ import type { PersonId } from "./PersonId";
4
4
  export interface GetModlog {
5
5
  mod_person_id?: PersonId;
6
6
  community_id?: CommunityId;
7
- page?: bigint;
8
- limit?: bigint;
7
+ page?: number;
8
+ limit?: number;
9
9
  type_?: ModlogActionType;
10
10
  other_person_id?: PersonId;
11
11
  auth?: string;
@@ -5,8 +5,8 @@ export interface GetPersonDetails {
5
5
  person_id?: PersonId;
6
6
  username?: string;
7
7
  sort?: SortType;
8
- page?: bigint;
9
- limit?: bigint;
8
+ page?: number;
9
+ limit?: number;
10
10
  community_id?: CommunityId;
11
11
  saved_only?: boolean;
12
12
  auth?: string;
@@ -1,8 +1,8 @@
1
1
  import type { CommentSortType } from "./CommentSortType";
2
2
  export interface GetPersonMentions {
3
3
  sort?: CommentSortType;
4
- page?: bigint;
5
- limit?: bigint;
4
+ page?: number;
5
+ limit?: number;
6
6
  unread_only?: boolean;
7
7
  auth: string;
8
8
  }
@@ -4,8 +4,8 @@ import type { SortType } from "./SortType";
4
4
  export interface GetPosts {
5
5
  type_?: ListingType;
6
6
  sort?: SortType;
7
- page?: bigint;
8
- limit?: bigint;
7
+ page?: number;
8
+ limit?: number;
9
9
  community_id?: CommunityId;
10
10
  community_name?: string;
11
11
  saved_only?: boolean;
@@ -1,6 +1,6 @@
1
1
  export interface GetPrivateMessages {
2
2
  unread_only?: boolean;
3
- page?: bigint;
4
- limit?: bigint;
3
+ page?: number;
4
+ limit?: number;
5
5
  auth: string;
6
6
  }
@@ -1,8 +1,8 @@
1
1
  import type { CommentSortType } from "./CommentSortType";
2
2
  export interface GetReplies {
3
3
  sort?: CommentSortType;
4
- page?: bigint;
5
- limit?: bigint;
4
+ page?: number;
5
+ limit?: number;
6
6
  unread_only?: boolean;
7
7
  auth: string;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  export interface GetReportCountResponse {
3
3
  community_id?: CommunityId;
4
- comment_reports: bigint;
5
- post_reports: bigint;
6
- private_message_reports?: bigint;
4
+ comment_reports: number;
5
+ post_reports: number;
6
+ private_message_reports?: number;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  export interface GetUnreadCountResponse {
2
- replies: bigint;
3
- mentions: bigint;
4
- private_messages: bigint;
2
+ replies: number;
3
+ mentions: number;
4
+ private_messages: number;
5
5
  }
@@ -1,3 +1,3 @@
1
1
  export interface GetUnreadRegistrationApplicationCountResponse {
2
- registration_applications: bigint;
2
+ registration_applications: number;
3
3
  }
@@ -1,7 +1,7 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  export interface ListCommentReports {
3
- page?: bigint;
4
- limit?: bigint;
3
+ page?: number;
4
+ limit?: number;
5
5
  unresolved_only?: boolean;
6
6
  community_id?: CommunityId;
7
7
  auth: string;
@@ -3,7 +3,7 @@ import type { SortType } from "./SortType";
3
3
  export interface ListCommunities {
4
4
  type_?: ListingType;
5
5
  sort?: SortType;
6
- page?: bigint;
7
- limit?: bigint;
6
+ page?: number;
7
+ limit?: number;
8
8
  auth?: string;
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  export interface ListPostReports {
3
- page?: bigint;
4
- limit?: bigint;
3
+ page?: number;
4
+ limit?: number;
5
5
  unresolved_only?: boolean;
6
6
  community_id?: CommunityId;
7
7
  auth: string;
@@ -1,6 +1,6 @@
1
1
  export interface ListPrivateMessageReports {
2
- page?: bigint;
3
- limit?: bigint;
2
+ page?: number;
3
+ limit?: number;
4
4
  unresolved_only?: boolean;
5
5
  auth: string;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  export interface ListRegistrationApplications {
2
2
  unread_only?: boolean;
3
- page?: bigint;
4
- limit?: bigint;
3
+ page?: number;
4
+ limit?: number;
5
5
  auth: string;
6
6
  }
@@ -4,7 +4,7 @@ export interface ModlogListParams {
4
4
  community_id?: CommunityId;
5
5
  mod_person_id?: PersonId;
6
6
  other_person_id?: PersonId;
7
- page?: bigint;
8
- limit?: bigint;
7
+ page?: number;
8
+ limit?: number;
9
9
  hide_modlog_names: boolean;
10
10
  }
@@ -2,8 +2,8 @@ import type { PersonId } from "./PersonId";
2
2
  export interface PersonAggregates {
3
3
  id: number;
4
4
  person_id: PersonId;
5
- post_count: bigint;
6
- post_score: bigint;
7
- comment_count: bigint;
8
- comment_score: bigint;
5
+ post_count: number;
6
+ post_score: number;
7
+ comment_count: number;
8
+ comment_score: number;
9
9
  }
@@ -2,10 +2,10 @@ import type { PostId } from "./PostId";
2
2
  export interface PostAggregates {
3
3
  id: number;
4
4
  post_id: PostId;
5
- comments: bigint;
6
- score: bigint;
7
- upvotes: bigint;
8
- downvotes: bigint;
5
+ comments: number;
6
+ score: number;
7
+ upvotes: number;
8
+ downvotes: number;
9
9
  published: string;
10
10
  newest_comment_time_necro: string;
11
11
  newest_comment_time: string;
@@ -14,5 +14,5 @@ export interface PostView {
14
14
  read: boolean;
15
15
  creator_blocked: boolean;
16
16
  my_vote?: number;
17
- unread_comments: bigint;
17
+ unread_comments: number;
18
18
  }
@@ -3,6 +3,6 @@ export interface RemoveCommunity {
3
3
  community_id: CommunityId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
- expires?: bigint;
6
+ expires?: number;
7
7
  auth: string;
8
8
  }
@@ -11,7 +11,7 @@ export interface Search {
11
11
  type_?: SearchType;
12
12
  sort?: SortType;
13
13
  listing_type?: ListingType;
14
- page?: bigint;
15
- limit?: bigint;
14
+ page?: number;
15
+ limit?: number;
16
16
  auth?: string;
17
17
  }
@@ -2,12 +2,12 @@ import type { SiteId } from "./SiteId";
2
2
  export interface SiteAggregates {
3
3
  id: number;
4
4
  site_id: SiteId;
5
- users: bigint;
6
- posts: bigint;
7
- comments: bigint;
8
- communities: bigint;
9
- users_active_day: bigint;
10
- users_active_week: bigint;
11
- users_active_month: bigint;
12
- users_active_half_year: bigint;
5
+ users: number;
6
+ posts: number;
7
+ comments: number;
8
+ communities: number;
9
+ users_active_day: number;
10
+ users_active_week: number;
11
+ users_active_month: number;
12
+ users_active_half_year: number;
13
13
  }
package/dist/websocket.js CHANGED
@@ -4,7 +4,7 @@ exports.wsJsonToRes = exports.wsUserOp = exports.LemmyWebsocket = void 0;
4
4
  var others_1 = require("./types/others");
5
5
  // @ts-ignore
6
6
  BigInt.prototype["toJSON"] = function () {
7
- return this.toString();
7
+ return parseInt(this.toString());
8
8
  };
9
9
  /**
10
10
  * Helps build lemmy websocket message requests, that you can use in your Websocket sends.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.17.2-rc.15",
3
+ "version": "0.17.2-rc.17",
4
4
  "description": "A javascript / typescript client for Lemmy",
5
5
  "repository": "https://github.com/LemmyNet/lemmy-js-client",
6
6
  "license": "AGPL-3.0",