2022-11-06 16:29:58 +00:00
|
|
|
import {APBase} from "../apBase/APBase.model";
|
2022-11-14 16:26:06 +00:00
|
|
|
import {ASModelType} from "../../common/types";
|
2022-10-30 20:32:42 +00:00
|
|
|
import {TombstoneFields} from "./Tombstone.types";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A Tombstone represents a content object that has been deleted.
|
|
|
|
* It can be used in Collections to signify that there used to be an object
|
|
|
|
* at this position, but it has been deleted.
|
|
|
|
*
|
|
|
|
* {@link https://www.w3.org/ns/activitystreams#Tombstone Docs}
|
|
|
|
*/
|
2022-11-06 16:29:58 +00:00
|
|
|
export class Tombstone extends APBase<TombstoneFields>{
|
2022-11-14 16:26:06 +00:00
|
|
|
static create(fields: TombstoneFields) {
|
|
|
|
return APBase._create<TombstoneFields>({
|
2022-10-30 20:32:42 +00:00
|
|
|
type: ASModelType.Tombstone,
|
2022-11-14 16:26:06 +00:00
|
|
|
...fields,
|
|
|
|
});
|
2022-10-30 20:32:42 +00:00
|
|
|
}
|
|
|
|
}
|