activitypub-models/src/models/orderedCollectionPage/OrderedCollectionPage.types.ts

46 wiersze
1.5 KiB
TypeScript

import {OrderedCollectionFields} from "../orderedCollection/OrderedCollection.types";
import {
Modify,
OrderedCollectionPageNextValue,
OrderedCollectionPagePartOfValue,
OrderedCollectionPagePrevValue,
StartIndexValue
} from "../../common/common.types";
import {CollectionPageFields} from "../collectionPage/CollectionPage.types";
export interface OrderedCollectionPageFields
extends
OrderedCollectionFields,
Modify<CollectionPageFields, {
/**
* Identifies the OrderedCollection to which a OrderedCollectionPage objects items belong.
*
* {@link https://www.w3.org/ns/activitystreams#partOf Docs}
*/
partOf?: OrderedCollectionPagePartOfValue;
/**
* In a paged OrderedCollection, indicates the next page of items.
*
* {@link https://www.w3.org/ns/activitystreams#next Docs}
*/
next?: OrderedCollectionPageNextValue;
/**
* In a paged OrderedCollection, identifies the previous page of items.
*
* {@link https://www.w3.org/ns/activitystreams#prev Docs}
*/
prev?: OrderedCollectionPagePrevValue;
}> {
/**
* A non-negative integer value identifying the relative position
* within the logical view of a strictly ordered collection.
*
* {@link https://www.w3.org/ns/activitystreams#startIndex Docs}
*/
startIndex?: StartIndexValue;
}