changes on global catalogue

This commit is contained in:
2026-06-20 18:45:25 +05:30
parent 2e9ffb15bb
commit 8707004405
22 changed files with 3137 additions and 2070 deletions

View File

@@ -809,6 +809,7 @@ export async function getProductSubcategories(opts: {
/** Best-effort role label from the numeric roleid (roles aren't fully resolvable for every config). */
export function roleName(roleid: number): string {
const map: Record<number, string> = {
[-1]: 'Unassigned',
0: 'Unassigned',
1: 'Owner',
2: 'Manager',
@@ -914,6 +915,9 @@ export interface UpdateUserInput {
state?: string;
postcode?: string;
status?: string;
roleid?: number | null;
locationid?: number | null;
applocationid?: number | null;
}
/** PUT /users/update — update an existing web staff user. */