Add asPlain to ISubscription
This commit is contained in:
parent
83701d002f
commit
360afcdd45
|
@ -96,7 +96,6 @@ export interface ISubscription {
|
||||||
avatarETag?: string;
|
avatarETag?: string;
|
||||||
teamId?: string;
|
teamId?: string;
|
||||||
teamMain?: boolean;
|
teamMain?: boolean;
|
||||||
unsubscribe: () => Promise<any>;
|
|
||||||
separator?: boolean;
|
separator?: boolean;
|
||||||
onHold?: boolean;
|
onHold?: boolean;
|
||||||
source?: IOmnichannelSource;
|
source?: IOmnichannelSource;
|
||||||
|
@ -108,7 +107,11 @@ export interface ISubscription {
|
||||||
uploads: RelationModified<TUploadModel>;
|
uploads: RelationModified<TUploadModel>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TSubscriptionModel = ISubscription & Model;
|
export type TSubscriptionModel = ISubscription &
|
||||||
|
Model & {
|
||||||
|
unsubscribe: () => Promise<any>;
|
||||||
|
asPlain: () => ISubscription;
|
||||||
|
};
|
||||||
export type TSubscription = TSubscriptionModel | ISubscription;
|
export type TSubscription = TSubscriptionModel | ISubscription;
|
||||||
|
|
||||||
// https://github.com/RocketChat/Rocket.Chat/blob/a88a96fcadd925b678ff27ada37075e029f78b5e/definition/ISubscription.ts#L8
|
// https://github.com/RocketChat/Rocket.Chat/blob/a88a96fcadd925b678ff27ada37075e029f78b5e/definition/ISubscription.ts#L8
|
||||||
|
|
Loading…
Reference in New Issue