feat(contracts,automation): add multi-group scopes, SMS macros and operator registry
- Allow scheduled operations to resolve multiple device groups. - Add reusable SMS time and random-value macros. - Add China operator PLMN metadata shared by API and UI.
This commit is contained in:
@@ -64,7 +64,7 @@ describe('resolveTargets', () => {
|
||||
db.close();
|
||||
});
|
||||
|
||||
it('resolves the Hub all-devices and single-group selectors', () => {
|
||||
it('resolves the Hub all-devices and group selectors', () => {
|
||||
const db = fixture();
|
||||
const now = '2026-07-30T00:00:00.000Z';
|
||||
db.prepare(
|
||||
@@ -78,6 +78,9 @@ describe('resolveTargets', () => {
|
||||
expect(resolveTargets(db, { mode: 'group', groupId: 'g-lab' })).toEqual([
|
||||
{ id: 'a', revision: 3 },
|
||||
]);
|
||||
expect(resolveTargets(db, { mode: 'groups', groupIds: ['g-lab', 'g-office'] })).toEqual([
|
||||
{ id: 'a', revision: 3 },
|
||||
]);
|
||||
db.close();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user