UNPKG

@vendure/core

Version:

A modern, headless ecommerce framework

23 lines (22 loc) 879 B
import { ID, Type } from '@vendure/common/lib/shared-types'; import { RequestContext } from '../../api'; import { ChannelAware } from '../../common'; import { VendureEntity } from '../../entity'; import { VendureEvent } from '../vendure-event'; /** * @description * This event is fired whenever an {@link ChannelAware} entity is assigned or removed * from a channel. The entity property contains the value before updating the channels. * * @docsCategory events * @docsPage Event Types * @since 1.4 */ export declare class ChangeChannelEvent<T extends ChannelAware & VendureEntity> extends VendureEvent { ctx: RequestContext; entity: T; channelIds: ID[]; type: 'assigned' | 'removed'; entityType?: Type<T> | undefined; constructor(ctx: RequestContext, entity: T, channelIds: ID[], type: 'assigned' | 'removed', entityType?: Type<T> | undefined); }