refactor: rebrand project to HartOMat
This commit is contained in:
@@ -9,7 +9,7 @@ const api = axios.create({
|
||||
api.interceptors.request.use((config) => {
|
||||
const token = useAuthStore.getState().token
|
||||
if (token) config.headers.Authorization = `Bearer ${token}`
|
||||
const tenantId = localStorage.getItem('schaeffler_tenant_id')
|
||||
const tenantId = localStorage.getItem('hartomat_tenant_id')
|
||||
if (tenantId) config.headers['X-Tenant-ID'] = tenantId
|
||||
return config
|
||||
})
|
||||
|
||||
@@ -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