TF-4308 add data layer for addListLabelToListEmails

This commit is contained in:
Dang Dat
2026-04-01 16:16:39 +07:00
committed by Dat H. Pham
parent 1d594804b5
commit 979ba0f671
8 changed files with 117 additions and 0 deletions
@@ -970,4 +970,24 @@ class EmailAPI
),
);
}
Future<({
List<EmailId> emailIdsSuccess,
Map<Id, SetError> mapErrors,
})> addListLabelToListEmail(
Session session,
AccountId accountId,
List<EmailId> emailIds,
List<KeyWordIdentifier> labelKeywords,
) async {
return executeBatchSetEmail(
session: session,
accountId: accountId,
emailIds: emailIds,
httpClient: _httpClient,
debugLabel: 'addListLabelToListEmail',
onGenerateUpdates: (batchIds) =>
batchIds.generateMapUpdateObjectListLabel(labelKeywords),
);
}
}