Skip to content

Commit

Permalink
Merge pull request CleverTap#8 from CleverTap/using_localisation_api
Browse files Browse the repository at this point in the history
preheader text fixed
  • Loading branch information
parastaneja2709 authored Aug 28, 2024
2 parents a370542 + 9d90d3d commit a4c71e3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/integrations/clevertap/client/clevertapApiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/clevertap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = []
Expand Down
4 changes: 2 additions & 2 deletions src/integrations/clevertap/mapper/integrationMapperTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}

Expand Down
1 change: 1 addition & 0 deletions src/modules/publish/PublishService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions src/modules/translate/TranslateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit a4c71e3

Please sign in to comment.