Variable defaultConst

    default: {
        add: ((project: {
            id: string;
        }, geometry: {
            buffer: Buffer;
            name: string;
            uid: string;
        }) => Promise<IFrontNewGeometry>);
        del: ((geometry: {
            id: string;
        }) => Promise<void>);
        download: ((geometry: {
            id: string;
        }) => Promise<IGeometryFile>);
        getPart: ((geometry: {
            id: string;
        }) => Promise<IGeometryPart>);
        splitStep: ((project: {
            id: string;
        }, geometry: {
            id: string;
        }) => Promise<{
            message: string;
        }>);
        update: ((geometry: {
            id: string;
        }, data: any[]) => Promise<void>);
        useGeometries: ((ids?: string[]) => [IFrontGeometries, {
            addOneGeometry: ((geometry: IFrontNewGeometry) => Promise<void>);
            delOneGeometry: ((geometry: IFrontMutateGeometriesItem) => Promise<void>);
            errorGeometries: Error;
            loadingGeometries: boolean;
            mutateOneGeometry: ((geometry: IFrontMutateGeometriesItem) => Promise<void>);
        }]);
    } = ...

    Type declaration

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

          Parameters

          • project: {
                id: string;
            }

            Project

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

            Geometry

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

          Returns Promise<IFrontNewGeometry>

          Geometry

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

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string

          Returns Promise<void>

    • download: ((geometry: {
          id: string;
      }) => Promise<IGeometryFile>)
        • (geometry): Promise<IGeometryFile>
        • Download

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string

          Returns Promise<IGeometryFile>

          Geometry

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

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string

          Returns Promise<IGeometryPart>

          Part

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

          Parameters

          • project: {
                id: string;
            }

            Project

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

            Geometry

            • id: string

          Returns Promise<{
              message: string;
          }>

          Message

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

          Parameters

          • geometry: {
                id: string;
            }

            Geometry

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    • useGeometries: ((ids?: string[]) => [IFrontGeometries, {
          addOneGeometry: ((geometry: IFrontNewGeometry) => Promise<void>);
          delOneGeometry: ((geometry: IFrontMutateGeometriesItem) => Promise<void>);
          errorGeometries: Error;
          loadingGeometries: boolean;
          mutateOneGeometry: ((geometry: IFrontMutateGeometriesItem) => Promise<void>);
      }])

    Generated using TypeDoc and TypeDoc Airthium Plugin