From 4edf79b56686138745159684c468397926f5b833 Mon Sep 17 00:00:00 2001 From: mowaleed96 Date: Sun, 24 Sep 2023 13:58:20 +0300 Subject: [PATCH] fix: properly set paginated requests type --- src/contact/contact.type.ts | 4 ++-- src/recurringTemplate/recurringTemplate.type.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contact/contact.type.ts b/src/contact/contact.type.ts index a19dc91..65378d1 100644 --- a/src/contact/contact.type.ts +++ b/src/contact/contact.type.ts @@ -142,6 +142,6 @@ export type OptionalFilters = { vendor?: boolean; }; -export type ContactFilterRetrieveResponse = { - content: Partial[] & Partial; +export type ContactFilterRetrieveResponse = Partial & { + content: Partial[]; }; diff --git a/src/recurringTemplate/recurringTemplate.type.ts b/src/recurringTemplate/recurringTemplate.type.ts index e341ab7..73fd093 100644 --- a/src/recurringTemplate/recurringTemplate.type.ts +++ b/src/recurringTemplate/recurringTemplate.type.ts @@ -30,8 +30,8 @@ export type PagingParameters = { sort?: string; }; -export type RecurringTemplates = { - content: Partial & Partial; +export type RecurringTemplates = Partial & { + content: Partial; }; export type PagingOfRessources = {