From 3a9ad1bf80967541d49d9edfe65972dcc968e558 Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Thu, 25 Apr 2024 16:46:20 +0200 Subject: [PATCH] [DEV-12883] Add `contactTags` client to the grand API client --- src/Client.ts | 5 ++++- src/endpoints/index.ts | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index 2fe28ab8..f33da9b5 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -1,12 +1,13 @@ import type { DeferredJobsApiClient } from './api'; import { createApiClient, createDeferredJobsApiClient, type Fetch } from './api'; -import { Contacts } from './endpoints'; import { Accounts, Billing, NewsroomSubscriptions, Campaigns, CampaignRecipients, + Contacts, + ContactTags, ContactsExports, Coverage, Jobs, @@ -47,6 +48,7 @@ export interface Client { campaigns: Campaigns.Client; campaignRecipients: CampaignRecipients.Client; contacts: Contacts.Client; + contactTags: ContactTags.Client; contactsExports: ContactsExports.Client; coverage: Coverage.Client; jobs: Jobs.Client; @@ -93,6 +95,7 @@ export function createClient({ campaigns: Campaigns.createClient(api), campaignRecipients: CampaignRecipients.createClient(api), contacts: Contacts.createClient(api), + contactTags: ContactTags.createClient(api), contactsExports: ContactsExports.createClient(api), coverage: Coverage.createClient(api), jobs: Jobs.createClient(api), diff --git a/src/endpoints/index.ts b/src/endpoints/index.ts index a120d96d..2cdde40e 100644 --- a/src/endpoints/index.ts +++ b/src/endpoints/index.ts @@ -2,6 +2,7 @@ export * as Accounts from './Accounts'; export * as Billing from './Billing'; export * as CampaignRecipients from './CampaignRecipients'; export * as Campaigns from './Campaigns'; +export * as ContactTags from './ContactTags'; export * as Contacts from './Contacts'; export * as ContactsExports from './ContactsExports'; export * as Coverage from './Coverage';