diff --git a/src/integrations/clevertap/client/clevertapApiTypes.ts b/src/integrations/clevertap/client/clevertapApiTypes.ts index 97f2a44..82010a2 100644 --- a/src/integrations/clevertap/client/clevertapApiTypes.ts +++ b/src/integrations/clevertap/client/clevertapApiTypes.ts @@ -50,8 +50,9 @@ export type ClevertapEmailTemplate = { fromEmail?: string replyToName?: string replyToEmail?: string - subject: string - preheader: string + subject?: string + plainText?: string + preheader?: string ccEmails?: string[] bccEmails?: string[] annotationMeta?: string diff --git a/src/integrations/clevertap/index.ts b/src/integrations/clevertap/index.ts index 2eb0263..28b1751 100644 --- a/src/integrations/clevertap/index.ts +++ b/src/integrations/clevertap/index.ts @@ -343,7 +343,7 @@ export const getContent = async ( items: ContentItem[] errors: ErrorInfoWithPerLocaleErrors[] }> => { - globalLogger.info('accountId: %s, passcode: %s locales: %s', accountId, passcode) + globalLogger.info('accountId: %s, passcode: %s', accountId, passcode) globalLogger.info({ locales }, 'locales in translate request: ') globalLogger.info({ items }, 'item identifiers in translate request: ') let result: ContentItem[] = [] diff --git a/src/integrations/clevertap/mapper/integrationMapperTypes.ts b/src/integrations/clevertap/mapper/integrationMapperTypes.ts index 77e2e87..83f1caf 100644 --- a/src/integrations/clevertap/mapper/integrationMapperTypes.ts +++ b/src/integrations/clevertap/mapper/integrationMapperTypes.ts @@ -15,13 +15,13 @@ export type CacheResponseBodyItemField = { export enum EmailContentTypes { Subject = 'subject', - PreheaderText = 'preheaderText', + PreheaderText = 'preheader', Html = 'html', } export enum EmailContentTitles { subject = 'Subject', - preheaderText = 'Preheader text', + preheader = 'Preheader text', html = 'Html', } diff --git a/src/modules/publish/PublishService.ts b/src/modules/publish/PublishService.ts index a0551fa..62d4b8d 100644 --- a/src/modules/publish/PublishService.ts +++ b/src/modules/publish/PublishService.ts @@ -15,6 +15,7 @@ export class PublishService extends DynamicHostService { ): Promise<{ errors: ErrorInfoWithPerLocaleErrors[] }> { + globalLogger.info(defaultLocale, 'Value of defaultLocale in publish call is: ') globalLogger.info('Setting region for region %s', auth.region as string) this.setApiHost(config) globalLogger.info('Region is set successfully') diff --git a/src/modules/translate/TranslateService.ts b/src/modules/translate/TranslateService.ts index 3dc2a71..b1f18d9 100644 --- a/src/modules/translate/TranslateService.ts +++ b/src/modules/translate/TranslateService.ts @@ -13,6 +13,7 @@ export class TranslateService extends DynamicHostService { // eslint-disable-next-line @typescript-eslint/no-unused-vars defaultLocale: string, ) { + globalLogger.info(defaultLocale, 'Value of defaultLocale in translate call is: ') globalLogger.info('Setting region for region %s', auth.region as string) this.setApiHost(config) globalLogger.info('Region is set successfully')