import Base, { MaybeRaw } from "../../../../../../../Base"; import { PaginatedResponse, SearchParams } from "../../../../../../../interfaces/global"; import DesignSnapshot from "../../../../../../../interfaces/high5/space/event/stream/design/snapshot"; export default class High5DesignSnapshots extends Base { /** * Search the snapshots of stream's design. * @param orgName Name of the organization * @param spaceName Name of the space * @param eventName Name of the event * @param streamId ID of the stream * @param content (optional) Is it necessary to retrieve content for each snapshot (disabled by default) * @param filters Search filters to apply * @param sorting Sorting criteria for the result * @param limit (optional) Max number of results (1-100; defaults to 25) * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0) * @returns Object containing an array of snapshots of the stream design and the total number of results found in the database (independent of limit and page) */ search(orgName: string, spaceName: string, eventName: string, streamId: string, content: boolean | undefined, { filters, sorting, limit, page }: SearchParams, raw?: { raw: R; }): Promise>>; /** * Create a snapshot of stream's design. * @param orgName Name of the organization * @param spaceName Name of the space * @param eventName Name of the event * @param streamId ID of the stream * @param name Name of the snapshot * @returns The snapshot */ create(orgName: string, spaceName: string, eventName: string, streamId: string, name: string, raw?: { raw: R; }): Promise>; /** * Update a snapshot's name. * @param orgName Name of the organization * @param spaceName Name of the space * @param eventName Name of the event * @param streamId ID of the stream * @param snapshotId ID of the snapshot * @param name Name of the snapshot * @returns The snapshot */ update(orgName: string, spaceName: string, eventName: string, streamId: string, snapshotId: string, name: string, raw?: { raw: R; }): Promise>; /** * Delete a stream design's snapshot. * @param orgName Name of the organization * @param spaceName Name of the space * @param eventName Name of the event * @param streamId ID of the stream * @param snapshotId ID of the snapshot */ delete(orgName: string, spaceName: string, eventName: string, streamId: string, snapshotId: string, raw?: { raw: R; }): Promise>; /** * Restore a stream's design to a certain snapshot. * * **WARNING**: This is a destructive action. It will overwrite the current design for the stream. * * @param orgName Name of the organization * @param spaceName Name of the space * @param eventName Name of the event * @param streamId ID of the stream * @param snapshotId ID of the snapshot */ restore(orgName: string, spaceName: string, eventName: string, streamId: string, snapshotId: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }