feat(SW-353): dynamic rewards
This commit is contained in:
@@ -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}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user