Skip to main content

Interface: ModularAutoSyncRulesByType

Groups the configured auto-sync rules for option blocks. Use it to explain related option changes. An empty autoSync list means no usable rules are published. Optional product and selection restrictions can be absent.

Example​

const rules = window.mimeeqApp.observers.modular.autoSyncRulesByType.getValue();
console.log(rules?.autoSync.flatMap(({ values }) => values.blocks) ?? []);

Properties​

autoSync​

autoSync: object[]

ordinal?​

optional ordinal?: number

ruleId​

ruleId: string

ruleName​

ruleName: string

ruleType​

ruleType: "AUTO_SYNC_BLOCKS"

values​

values: object

values.blocks​

blocks: string[]

values.onlySelected?​

optional onlySelected?: boolean

values.products?​

optional products?: string[]