From 85f19d28da08a5002a8dfb8f1e721eee8742796e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 18 Feb 2021 10:54:10 -0500 Subject: [PATCH] New comment sort (#5) * Adding NewComments sort. * v0.9.8-rc.3 --- package.json | 2 +- src/interfaces/aggregates.ts | 1 + src/interfaces/others.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f1cffb8..eee3213 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.9.4", + "version": "0.9.8-rc.3", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", diff --git a/src/interfaces/aggregates.ts b/src/interfaces/aggregates.ts index 2d4f393..01f5af7 100644 --- a/src/interfaces/aggregates.ts +++ b/src/interfaces/aggregates.ts @@ -27,6 +27,7 @@ export interface PostAggregates { score: number; upvotes: number; downvotes: number; + newest_comment_time_necro: string; newest_comment_time: string; } diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 6a3aa28..03b7f3d 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -74,6 +74,7 @@ export enum SortType { TopYear = 'TopYear', TopAll = 'TopAll', MostComments = 'MostComments', + NewComments = 'NewComments', } export enum ListingType {