Contains methods relating to Channel entities.
(entity: T, ctx: RequestContext) => Promise<T>Assigns a ChannelAware entity to the default Channel as well as any channel
specified in the RequestContext. This method will not save the entity to the database, but
assigns the channels property of the entity.
(ctx: RequestContext, entityType: Type<T>, entityId: ID, channelIds: ID[]) => Promise<T>Assigns the entity to the given Channels and saves all changes to the database.
(ctx: RequestContext, entityType: Type<T>, entityId: ID, channelIds: ID[]) => Promise<T | undefined>Removes the entity from the given Channels and saves.
(token: string) => Promise<Channel>Given a channel token, returns the corresponding Channel if it exists, else will throw a ChannelNotFoundError.
(ctx: RequestContext, token: string) => Promise<Channel>(ctxOrToken: RequestContext | string, token?: string) => Promise<Channel>(ctx?: RequestContext) => Promise<Channel>Returns the default Channel.
(ctx: RequestContext, options?: ListQueryOptions<Channel>, relations?: RelationPaths<Channel>) => Promise<PaginatedList<Channel>>(ctx: RequestContext, id: ID) => Promise<Channel | undefined>(ctx: RequestContext, input: CreateChannelInput) => Promise<ErrorResultUnion<CreateChannelResult, Channel>>(ctx: RequestContext, input: UpdateChannelInput) => Promise<ErrorResultUnion<UpdateChannelResult, Channel>>(ctx: RequestContext, id: ID) => Promise<DeletionResponse>(entity: VendureEntity) => entity is VendureEntity & ChannelAwareType guard method which returns true if the given entity is an instance of a class which implements the ChannelAware interface.