feat(F-181): completed feature
This commit is contained in:
@@ -48,6 +48,11 @@ export const posApi = {
|
||||
productByEan: (ean: string) => apiFetch(`/pos/products/by-ean/${encodeURIComponent(ean)}`),
|
||||
/** Get product by SKU. */
|
||||
productBySku: (sku: string) => apiFetch(`/pos/products/by-sku/${encodeURIComponent(sku)}`),
|
||||
/** Search identity customers for sale association. */
|
||||
searchCustomers: (q: string) => apiFetch(`/pos/customers/search?q=${encodeURIComponent(q)}`),
|
||||
/** Create an identity customer from the register. */
|
||||
createCustomer: <T>(data: { email: string; displayName?: string; phone?: string }) =>
|
||||
apiFetch<T>('/pos/customers', { method: 'POST', body: JSON.stringify(data) }),
|
||||
};
|
||||
|
||||
export const authApi = {
|
||||
|
||||
Reference in New Issue
Block a user