From d4b466a50a4aa88b1d217be53264aad17f38f843 Mon Sep 17 00:00:00 2001 From: Julian Date: Tue, 26 Sep 2023 14:08:07 +0200 Subject: [PATCH] Update FacetType enum --- lib/Client/Options/Facets/FacetType.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/Client/Options/Facets/FacetType.php b/lib/Client/Options/Facets/FacetType.php index 36baf59..14f9a21 100644 --- a/lib/Client/Options/Facets/FacetType.php +++ b/lib/Client/Options/Facets/FacetType.php @@ -20,11 +20,20 @@ enum FacetType: string case TITLE = "title"; case AUTHOR = "author"; - case DATE_MODIFIED = "date_modified"; case FOLLOWS = "follows"; case PROJECT_ID = "project_id"; case LICENSE = "license"; - case DATE_CREATED = "date_created"; case DOWNLOADS = "downloads"; case COLOR = "color"; + case CREATED_TIMESTAMP = "created_timestamp"; + case MODIFIED_TIMESTAMP = "modified_timestamp"; + + /** + * @deprecated Use {@link FacetType::CREATED_TIMESTAMP} instead. This option doesn't work. + */ + case DATE_CREATED = "date_created"; + /** + * @deprecated Use {@link FacetType::MODIFIED_TIMESTAMP} instead. This option doesn't work. + */ + case DATE_MODIFIED = "date_modified"; }