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>
  • 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>;
        },
    ]