export interface Metadata { uri: string; etag: string; type: string; id: string; } export interface SpResults { results: T; } export interface SpDataObject { results: T[]; __next?: string; __count?: number; } export interface SpGetResponse { d: SpDataObject & T[]; value?: SpDataObject & T[]; } export interface SpGetTopResponse { d: Array; } export interface SpPostResponse { d: T; } export interface AttachmentsMetadata { content_type: string; edit_media: string; media_etag: string; media_src: string; type: string; uri: string; } export interface AttachmentsResult { EntitySet: string; ItemId: number; Name: string; __metadata: AttachmentsMetadata; } export interface Attachments { results: AttachmentsResult[]; } export interface Slide { Attachments: Attachments; Id: number; Title: string; __metadata: Metadata; } export declare class SpPostHeaders { headers: {}; constructor(obj: any, remove?: boolean, match?: string, digest?: string); } /** * @property $filter filters the list * @property $select columns to view * @property $top number of records to return * @property $skip record to start with * @property $expand opens the item if deferred * @property $orderby orders retured data * @property $inlinecount used to get total count of querry, even when $top is used or row limit is reached * @property $skiptoken used when server returns a token */ export interface SpParams { $filter?: string; $select?: string; $top?: string; $skip?: string; $expand?: string; $orderby?: string; $inlinecount?: 'allpages' | 'none'; $skiptoken?: string; } export declare function spDate(date: Date | string): Date; export declare function spDateTime(date: Date | string): Date;