refactor: rebrand project to HartOMat
This commit is contained in:
@@ -5,7 +5,7 @@ export interface Material {
|
||||
name: string
|
||||
description: string | null
|
||||
source: string
|
||||
schaeffler_code: number | null
|
||||
hartomat_code: number | null
|
||||
created_by_name: string | null
|
||||
aliases: string[]
|
||||
created_at: string
|
||||
@@ -27,7 +27,7 @@ export async function createMaterial(data: {
|
||||
name: string
|
||||
description?: string
|
||||
source?: string
|
||||
schaeffler_code?: number | null
|
||||
hartomat_code?: number | null
|
||||
}) {
|
||||
const res = await api.post<Material>('/materials', data)
|
||||
return res.data
|
||||
@@ -54,8 +54,8 @@ export async function saveCadPartMaterials(
|
||||
return res.data
|
||||
}
|
||||
|
||||
export async function seedSchaefflerMaterials() {
|
||||
const res = await api.post<{ inserted: number; total: number }>('/materials/seed-schaeffler')
|
||||
export async function seedHartOMatMaterials() {
|
||||
const res = await api.post<{ inserted: number; total: number }>('/materials/seed-hartomat')
|
||||
return res.data
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ export async function seedAliases(): Promise<{ inserted: number; total: number }
|
||||
export interface MaterialSuggestion {
|
||||
id: string
|
||||
name: string
|
||||
schaeffler_code: string
|
||||
hartomat_code: string
|
||||
}
|
||||
|
||||
export interface UnmappedMaterial {
|
||||
|
||||
Reference in New Issue
Block a user