/**
 * @private
 * Determines if the Events API can be targeted with the given
 * search parameters
 * @param targetEntity
 * @param options
 * @returns boolean
 */
export function shouldUseEventsApi(targetEntity, options) {
    const { requestOptions: { isPortal }, } = options;
    return ["event", "eventAttendee"].includes(targetEntity) && !isPortal;
}
//# sourceMappingURL=shouldUseEventsApi.js.map