chore(): Promotion auto managed joiner config (#14115)

* chore(): Promotion auto managed joiner config

* Create light-trainers-tie.md

* chore(): align tests expectactions
This commit is contained in:
Adrien de Peretti
2025-11-27 12:45:17 +01:00
committed by GitHub
parent ccc8588ea3
commit 91499081f4
5 changed files with 45 additions and 111 deletions
@@ -35,8 +35,12 @@ moduleIntegrationTestRunner({
expect(Object.keys(linkable)).toEqual([
"promotion",
"applicationMethod",
"campaign",
"campaignBudget",
"campaignBudgetUsage",
"promotionRule",
"promotionRuleValue",
])
Object.keys(linkable).forEach((key) => {
@@ -53,6 +57,15 @@ moduleIntegrationTestRunner({
field: "promotion",
},
},
applicationMethod: {
id: {
linkable: "application_method_id",
entity: "ApplicationMethod",
primaryKey: "id",
serviceName: "promotion",
field: "applicationMethod",
},
},
campaign: {
id: {
linkable: "campaign_id",
@@ -62,6 +75,24 @@ moduleIntegrationTestRunner({
field: "campaign",
},
},
campaignBudget: {
id: {
linkable: "campaign_budget_id",
entity: "CampaignBudget",
primaryKey: "id",
serviceName: "promotion",
field: "campaignBudget",
},
},
campaignBudgetUsage: {
id: {
linkable: "campaign_budget_usage_id",
entity: "CampaignBudgetUsage",
primaryKey: "id",
serviceName: "promotion",
field: "campaignBudgetUsage",
},
},
promotionRule: {
id: {
linkable: "promotion_rule_id",
@@ -71,6 +102,15 @@ moduleIntegrationTestRunner({
field: "promotionRule",
},
},
promotionRuleValue: {
id: {
linkable: "promotion_rule_value_id",
entity: "PromotionRuleValue",
primaryKey: "id",
serviceName: "promotion",
field: "promotionRuleValue",
},
},
})
})