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 extends TGeometryGet>(
        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>
  • archive: (geometry: { id: string }, to: string) => Promise<void>
  • del: (geometry: { brep?: string; glb?: string; id: string }) => Promise<void>
  • get: <T extends TGeometryGet>(
        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>