/** A REST resource type, i.e. a description of items in one REST collection. */ export interface ResourceType { /** The REST collection name, which is used in constructing its path. */ collectionName: string; /** The property path (in dot notation) for each resource's primary key. */ idProperty?: string; /** Subcollections of each resource. */ subcollections?: ResourceSubcollection[]; /** Custom data attached by the client. */ custom?: { [key: string]: any; }; } /** A subcollection belonging to each resource of a certain type. */ export interface ResourceSubcollection { /** The subcollection name, which is used in constructing its path. */ name: string; /** The resource type of subcollection members. */ type: ResourceType; } /** * A primary key value identifying a resource within its collection. * * Every resource must have an ID, which is currently assumed to be stored in its _id property. */ export type ResourceId = T; /** A resource from a REST collection. */ export type Resource = object; export type RestCollectionQuery = any; export type RestCollectionOrder = any; //# sourceMappingURL=rest-collection-resources.d.ts.map