Variable defaultConst

    default: {
        add: ((project: {
            id: string;
        }, geometry: {
            buffer: Buffer;
            name: string;
            uid: string;
        }) => Promise<INewGeometryWithData>);
        archive: ((geometry: {
            id: string;
        }, to: string) => Promise<void>);
        del: ((geometry: {
            brep?: string;
            glb?: string;
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IGeometry<T>>);
        read: ((geometry: {
            id: string;
        }) => Promise<IGeometryFile>);
        readPart: ((geometry: {
            id: string;
        }) => Promise<IGeometryPart>);
        splitStep: ((project: {
            id: string;
        }, geometry: {
            id: string;
        }) => Promise<string>);
        update: ((geometry: {
            id: string;
        }, data: any[]) => Promise<void>);
    } = ...

    Type declaration

    • add: ((project: {
          id: string;
      }, geometry: {
          buffer: Buffer;
          name: string;
          uid: string;
      }) => Promise<INewGeometryWithData>)
        • (project, geometry): Promise<INewGeometryWithData>
        • Add

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • geometry: {
                buffer: Buffer;
                name: string;
                uid: string;
            }

            Geometry

            • buffer: Buffer
            • name: string
            • uid: string

          Returns Promise<INewGeometryWithData>

          New geometry

    • archive: ((geometry: {
          id: string;
      }, to: string) => Promise<void>)
        • (geometry, to): Promise<void>
        • Archive geometry

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string
          • to: string

            Target

          Returns Promise<void>

    • del: ((geometry: {
          brep?: string;
          glb?: string;
          id: string;
      }) => Promise<void>)
        • (geometry): Promise<void>
        • Delete

          Parameters

          • geometry: {
                brep?: string;
                glb?: string;
                id: string;
            }

            Geometry

            • Optionalbrep?: string
            • Optionalglb?: string
            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | IGeometry<T>>)
        • <T>(id, data): Promise<undefined | IGeometry<T>>
        • Get

          Type Parameters

          Parameters

          • id: string

            Id

          • data: T

            Data

          Returns Promise<undefined | IGeometry<T>>

          Geometry

    • read: ((geometry: {
          id: string;
      }) => Promise<IGeometryFile>)
        • (geometry): Promise<IGeometryFile>
        • Read

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string

          Returns Promise<IGeometryFile>

          Geometry file

    • readPart: ((geometry: {
          id: string;
      }) => Promise<IGeometryPart>)
        • (geometry): Promise<IGeometryPart>
        • Read part

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string

          Returns Promise<IGeometryPart>

          Geometry part

    • splitStep: ((project: {
          id: string;
      }, geometry: {
          id: string;
      }) => Promise<string>)
        • (project, geometry): Promise<string>
        • Split step

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • geometry: {
                id: string;
            }

            Geometry

            • id: string

          Returns Promise<string>

          Message

    • update: ((geometry: {
          id: string;
      }, data: any[]) => Promise<void>)
        • (geometry, data): Promise<void>
        • Update geometry

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin