@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
22 lines (21 loc) • 778 B
TypeScript
import { EntityLink } from "../entity-link";
import Resource from "./resource";
export declare class RelationResource extends Resource {
parents?: Array<EntityLink>;
parent?: EntityLink;
children?: Array<EntityLink>;
child?: EntityLink;
inheritsSecurity?: boolean;
parentTotal?: number;
childTotal?: number;
constructor(init?: Partial<RelationResource>);
/**
* Merges two relation resources.
*
* This should be used for self referencing relations, where there can be no conflicts
* between the two existing resources.
* @param main - Source to use as defaults
* @param toMerge - Source to use to set relation links
*/
static merge(main: RelationResource, toMerge: RelationResource): RelationResource;
}