@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
49 lines (48 loc) • 1.49 kB
TypeScript
export interface IMemberCondition {
memberName: string;
}
export declare class MemberCondition implements IMemberCondition {
readonly memberName: string;
constructor(memberName: string);
}
/**
* Condition triggered if the relation does not have ancestor of given definition id.
*/
export declare class NoAncestorMemberCondition extends MemberCondition {
/**
* Gets or sets id of the linked {@link IEntityDefinition}.
*/
definitionId: number;
constructor(memberName: string, definitionId: number);
}
/**
* Condition triggered on the value of the property.
*/
export declare class StringMemberCondition extends MemberCondition {
/**
* Non null case insensitive and culture agnostic value which is compared against entity property value.
* Note that the value equal to an empty string is treated as unspecified value not triggering the condition.
*/
value: string;
constructor(memberName: string, value: string);
}
/**
* Condition triggered on the value of the property.
*/
export declare class BooleanMemberCondition extends MemberCondition {
/**
* Boolean value for the condition.
*/
value: boolean;
constructor(memberName: string, value: boolean);
}
/**
* Condition triggered on ancestor id of the relation.
*/
export declare class RelationMemberCondition extends MemberCondition {
/**
* Id of the entity.
*/
entityId: number;
constructor(memberName: string, entityId: number);
}