Home > @infiniteobjects/shopify-data-manager > AdminTypes > CollectionRuleConditions
This object defines all columns and allowed relations that can be used in rules for smart collections to automatically include the matching products.
Signature:
export interface CollectionRuleConditions
Property | Modifiers | Type | Description |
---|---|---|---|
allowedRelations | Array<CollectionRuleRelation | `${CollectionRuleRelation}`> | Allowed relations of the rule. | |
defaultRelation | CollectionRuleRelation | `${CollectionRuleRelation}` | Most commonly used relation for this rule. | |
ruleObject? | Maybe<CollectionRuleConditionsRuleObject> | (Optional) Additional attributes defining the rule. | |
ruleType | CollectionRuleColumn | `${CollectionRuleColumn}` | Type of the rule. |