feat(import-fifa17): seed unopenedPackIds as Core entitlements

Carry unopenedPackIds through the importer: Profile model -> Report ->
ApplyPlan. GenericImportRequest now emits entitlements[] (one definition_id
per unopened pack instance, order+duplicates preserved), which Core's import
seeds as unconsumed packs rows in the same transaction. Closes the economy
import gap so a migrated profile's unopened packs become Core entitlements
(feeding purchasegroup/credits/userMassInfo). Idempotency unchanged (import
fingerprint). +1 test; 26 pass, clippy -D warnings clean.
This commit is contained in:
OpenFUT Agent
2026-08-13 19:38:04 +00:00
parent 49c5185ae3
commit 96e80ab293
4 changed files with 46 additions and 0 deletions
+3
View File
@@ -632,6 +632,8 @@ pub struct Report {
pub definitions: DefinitionPlan,
pub identity: IdentityPlan,
pub squad: SquadCoverage,
/// Unconsumed pack entitlements to seed (from `unopenedPackIds`).
pub unopened_pack_ids: Vec<i64>,
}
impl Report {
@@ -729,6 +731,7 @@ pub fn analyze(
definitions,
identity,
squad,
unopened_pack_ids: profile.unopened_pack_ids.clone(),
}
}