From 38fbf7e67f1ef71716a9a50e92a5de04957b7cfa Mon Sep 17 00:00:00 2001 From: Thomas Lefebvre Date: Mon, 8 May 2023 09:59:33 -0400 Subject: [PATCH] Add plus search param --- src/methods/search/index.ts | 3 ++- src/types/request.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/methods/search/index.ts b/src/methods/search/index.ts index 310ee5d..a25fdd2 100644 --- a/src/methods/search/index.ts +++ b/src/methods/search/index.ts @@ -2,7 +2,7 @@ import { compactDefined } from '../../helpers/fp'; import * as Query from '../../helpers/query'; import { createRequestHandler, makeEndpoint } from '../../helpers/request'; import { castResponse } from '../../helpers/response'; -import { OrientationParam, PaginationParams } from '../../types/request'; +import { OrientationParam, PaginationParams, Plus } from '../../types/request'; import { ColorId, ContentFilter, Language, SearchOrderBy } from './types/request'; import * as SearchResponse from './types/response'; @@ -19,6 +19,7 @@ type SearchPhotosParams = SearchParams & */ orderBy?: SearchOrderBy; color?: ColorId; + plus?: Plus; /** * API defaults to `en` (English) if no value is provided */ diff --git a/src/types/request.ts b/src/types/request.ts index 81c19a0..b7f9bf7 100644 --- a/src/types/request.ts +++ b/src/types/request.ts @@ -9,6 +9,7 @@ export type Orientation = 'landscape' | 'portrait' | 'squarish'; export type OrientationParam = { orientation?: Orientation; }; +export type Plus = 'mixed' | 'only' | 'none'; export type PaginationParams = { /**