feat(sms): complete SmsConfig bundle export/import wiring + GetSmsConfigurationByIdAsync (S10b)
This commit is contained in:
@@ -2721,6 +2721,8 @@ public class ManagementActor : ReceiveActor
|
||||
var dbConnections = await externalRepo.GetAllDatabaseConnectionsAsync();
|
||||
var notificationLists = await notifRepo.GetAllNotificationListsAsync();
|
||||
var smtpConfigs = await notifRepo.GetAllSmtpConfigurationsAsync();
|
||||
// SMS (S10b): central-only SMS provider configs, mirroring smtpConfigs.
|
||||
var smsConfigs = await notifRepo.GetAllSmsConfigurationsAsync();
|
||||
// Inbound API keys are not transported between environments (re-arch C4); only methods.
|
||||
var apiMethods = await inboundRepo.GetAllApiMethodsAsync();
|
||||
// M8 (B4): site/instance-scoped selection. Sites match on SiteIdentifier
|
||||
@@ -2787,7 +2789,10 @@ public class ManagementActor : ReceiveActor
|
||||
// M8 (B4): site/instance-scoped selection. Under All=true include every
|
||||
// site + instance, mirroring how All includes every template/etc.
|
||||
SiteIds: ResolveSiteIds(),
|
||||
InstanceIds: ResolveIds(instances, cmd.InstanceNames, i => i.UniqueName, i => i.Id, "instance"));
|
||||
InstanceIds: ResolveIds(instances, cmd.InstanceNames, i => i.UniqueName, i => i.Id, "instance"),
|
||||
// SMS (S10b): SmsConfiguration is keyed by AccountSid (no Name column);
|
||||
// the bundle preview row shows AccountSid, so the CLI uses AccountSid too.
|
||||
SmsConfigurationIds: ResolveIds(smsConfigs, cmd.SmsConfigurationNames, s => s.AccountSid, s => s.Id, "SMS configuration"));
|
||||
|
||||
var exporter = sp.GetRequiredService<IBundleExporter>();
|
||||
await using var stream = await exporter.ExportAsync(
|
||||
|
||||
Reference in New Issue
Block a user