feat(SW-353): dynamic rewards

This commit is contained in:
Christel Westerberg
2024-09-25 15:59:16 +02:00
parent 6a85cfd19c
commit 56cd02f90b
78 changed files with 1568 additions and 4587 deletions

View File

@@ -83,3 +83,19 @@ export function generateTagsFromSystem(
)
})
}
/**
* Function to generate tags for loyalty configuration models
*
* @param lang Lang
* @param contentTypeUid content_type_uid of reference
* @param id system shared identifier, e.g reward_id, level_id
* @returns string
*/
export function generateLoyaltyConfigTag(
lang: Lang,
contentTypeUid: string,
id: string
) {
return `${lang}:loyalty_config:${contentTypeUid}:${id}`
}