import Base, { MaybeRaw } from "../../../../Base"; import { Node, NodeCategory } from "../../../../interfaces/high5/space/event/stream/node"; export default class High5Node extends Base { /** * Retrieves all Nodes for the specified stream. * @param orgName Name of the organization * @param spaceName Name of the space * @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 Array containg the Nodes */ getAllNodes(orgName: string, spaceName: string, limit?: number, page?: number, raw?: { raw: R; }): Promise>; /** * Retrieves a Node by its ID. * @param orgName Name of the organization * @param spaceName Name of the space * @param nodeId Id of the Node * @returns The requested Node */ getNode(orgName: string, spaceName: string, nodeId: string, raw?: { raw: R; }): Promise>; /** * Adds a new Node to a stream. * @param orgName Name of the organization * @param spaceName Name of the space * @param nodeCategory Category of the node * @param specification Specification of the node as a base64 string * @param typescript Typescript code as a base64 string * @returns The created Node */ createNode(orgName: string, spaceName: string, nodeCategory: NodeCategory, specification: string, typescript: string, raw?: { raw: R; }): Promise>; /** * Deletes a Node by its ID * @param orgName Name of the organization * @param spaceName Name of the space * @param nodeId Id of the node */ deleteNode(orgName: string, spaceName: string, nodeId: string, raw?: { raw: R; }): Promise>; /** * Patches the Typescript code and specification of the Node. * @param orgName Name of the organization * @param spaceName Name of the space * @param nodeId ID of the node * @param regenerateSecret Boolean to specify if a new secret shall be created * @param specification (optional) Specification of the node as a base64 string * @param typescript (optional) Typescript code as a base64 string * @return The updated Node */ patchNode(orgName: string, spaceName: string, nodeId: string, regenerateSecret: boolean, specification?: string, typescript?: string, raw?: { raw: R; }): Promise>; /** * Retrieves the content (raw javascript code) of a Node. * @param orgName Name of the organization * @param spaceName Name of the space * @param secret Secret of the Node (a unique sha512 hash) * @returns Raw javascript representation of the Node's content */ getNodeContent(orgName: string, spaceName: string, secret: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }