mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
feat: add workflow profiles to restrict status filtering and sync queue counts by license type
This commit is contained in:
@@ -398,8 +398,11 @@ export const licensingApi = baseApi
|
||||
* claim or a decision refreshes the badges along with the list and the
|
||||
* numbers can never drift from what the grid is showing.
|
||||
*/
|
||||
getQueueCounts: builder.query<QueueCounts, void>({
|
||||
query: () => ({ url: '/license-application-review/counts' }),
|
||||
getQueueCounts: builder.query<QueueCounts, string | void>({
|
||||
query: (licenseTypeKey) => ({
|
||||
url: '/license-application-review/counts',
|
||||
params: licenseTypeKey ? { licenseTypeKey } : undefined,
|
||||
}),
|
||||
providesTags: () => [listTag('ApplicationQueue')],
|
||||
}),
|
||||
|
||||
|
||||
@@ -141,6 +141,11 @@ export interface LicenseType {
|
||||
*/
|
||||
requiresOperatorMode: boolean;
|
||||
formSchema: { sections: FormSectionConfig[] };
|
||||
/**
|
||||
* Which course an application of this type runs. REGISTRATION skips the
|
||||
* evaluation and inspection stages, so those statuses are unreachable for it.
|
||||
*/
|
||||
workflowProfile?: WorkflowProfile;
|
||||
isActive: boolean;
|
||||
/** Display order set by EMA; lower comes first. */
|
||||
sortOrder: number;
|
||||
@@ -382,6 +387,9 @@ export type QueueSortField =
|
||||
| "dueAt"
|
||||
| "claimedAt";
|
||||
|
||||
/** Review → evaluation → (inspection) → approval, or the short registration course. */
|
||||
export type WorkflowProfile = "STANDARD" | "REGISTRATION";
|
||||
|
||||
/** Row counts behind the queue's saved-view tabs. */
|
||||
export interface QueueCounts {
|
||||
unassigned: number;
|
||||
|
||||
Reference in New Issue
Block a user