store user login

This commit is contained in:
2026-08-25 18:00:16 +05:30
parent 1dc582ba07
commit 517a99d577
62 changed files with 8059 additions and 650 deletions

View File

@@ -10,7 +10,11 @@
export const queryKeys = {
tenants: {
all: ['tenants'] as const,
list: () => [...queryKeys.tenants.all, 'list'] as const,
list: (params: Record<string, unknown> = {}) =>
[...queryKeys.tenants.all, 'list', params] as const,
appCategories: () => [...queryKeys.tenants.all, 'appCategories'] as const,
approval: (status: string, keyword: string) =>
[...queryKeys.tenants.all, 'approval', status, keyword] as const,
locations: (tenantid: number) =>
[...queryKeys.tenants.all, 'locations', tenantid] as const,
search: (keyword: string) => [...queryKeys.tenants.all, 'search', keyword] as const,
@@ -23,6 +27,8 @@ export const queryKeys = {
brands: () => [...queryKeys.catalogue.all, 'brands'] as const,
importedRefs: (tenantid: number) =>
[...queryKeys.catalogue.all, 'imported', tenantid] as const,
product: (brand: string, sku: string) =>
[...queryKeys.catalogue.all, 'product', brand, sku] as const,
},
products: {
@@ -34,6 +40,8 @@ export const queryKeys = {
subCategories: (tenantid: number, categoryid: number) =>
[...queryKeys.products.all, 'subcategories', tenantid, categoryid] as const,
count: (tenantid: number) => [...queryKeys.products.all, 'count', tenantid] as const,
tenantCategories: (tenantid: number) =>
[...queryKeys.products.all, 'tenantcategories', tenantid] as const,
},
insights: {
@@ -67,6 +75,12 @@ export const queryKeys = {
[...queryKeys.people.all, 'shifts', tenantid, locationid] as const,
},
customers: {
all: ['customers'] as const,
list: (params: Record<string, unknown>) =>
[...queryKeys.customers.all, 'list', params] as const,
},
stock: {
all: ['stock'] as const,
requests: (params: Record<string, unknown>) =>