Server backup 2026-11-07 of uncommitted work in projects/pharma-web-celtic
Snapshot of the working tree on srv1071960 (branch main), taken during server cleanup. .env files, node_modules, builds, logs and media were excluded.
This commit is contained in:
+26
-15
@@ -2,7 +2,7 @@
|
||||
"openapi": "3.1.0",
|
||||
"info": {
|
||||
"title": "Pharma Field Force Reporting",
|
||||
"description": "Pharmaceutical field-force reporting \u2014 MVP. One MR, Daily Call Report, AM review, GM approval, locked PDF, audit trail.",
|
||||
"description": "Pharmaceutical field-force reporting \u2014 MVP. MRs file Daily Call Reports, ABMs review and approve them, and AGMs have a read-only overview.",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
@@ -325,7 +325,7 @@
|
||||
"organization"
|
||||
],
|
||||
"summary": "List Headquarters",
|
||||
"description": "Scoped: an MR sees their own HQ, an AM sees theirs, GM/Admin see all.",
|
||||
"description": "Scoped: an MR sees their own HQ, an ABM sees theirs, AGM/Admin see all.",
|
||||
"operationId": "list_headquarters_api_v1_headquarters_get",
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -399,7 +399,7 @@
|
||||
"tags": [
|
||||
"organization"
|
||||
],
|
||||
"summary": "Assign Area Manager",
|
||||
"summary": "Assign Area Business Manager",
|
||||
"operationId": "assign_area_manager_api_v1_headquarters__headquarters_id__area_manager_post",
|
||||
"security": [
|
||||
{
|
||||
@@ -592,7 +592,7 @@
|
||||
"doctors"
|
||||
],
|
||||
"summary": "Assign Doctor",
|
||||
"description": "An AM may assign only within their own headquarters \u2014 enforced by data scope.",
|
||||
"description": "An ABM may assign only within their own headquarters \u2014 enforced by data scope.",
|
||||
"operationId": "assign_doctor_api_v1_doctors__doctor_id__assign_post",
|
||||
"security": [
|
||||
{
|
||||
@@ -1397,7 +1397,7 @@
|
||||
"reports"
|
||||
],
|
||||
"summary": "Forward",
|
||||
"description": "The Area Manager forwards or returns \u2014 it does NOT approve (A4/Q4).",
|
||||
"description": "The Area Business Manager forwards or returns \u2014 it does NOT approve (A4/Q4).",
|
||||
"operationId": "forward_api_v1_dcr__dcr_id__forward_post",
|
||||
"security": [
|
||||
{
|
||||
@@ -1514,7 +1514,7 @@
|
||||
"reports"
|
||||
],
|
||||
"summary": "Approve",
|
||||
"description": "GM only. SEC-2: ADMIN is absent from this dependency by design.",
|
||||
"description": "AGM only. SEC-2: ADMIN is absent from this dependency by design.",
|
||||
"operationId": "approve_api_v1_dcr__dcr_id__approve_post",
|
||||
"security": [
|
||||
{
|
||||
@@ -1719,7 +1719,7 @@
|
||||
"area_manager_user_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"title": "Area Manager User Id"
|
||||
"title": "Area Business Manager User Id"
|
||||
},
|
||||
"headquarters_id": {
|
||||
"type": "string",
|
||||
@@ -1818,7 +1818,7 @@
|
||||
"area_manager_user_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"title": "Area Manager User Id"
|
||||
"title": "Area Business Manager User Id"
|
||||
},
|
||||
"effective_from": {
|
||||
"anyOf": [
|
||||
@@ -2530,13 +2530,13 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"DRAFT",
|
||||
"PENDING_AM",
|
||||
"PENDING_ABM",
|
||||
"PENDING_GM",
|
||||
"RETURNED",
|
||||
"APPROVED"
|
||||
],
|
||||
"title": "DCRStatus",
|
||||
"description": "5 states, down from the 7 originally proposed.\n\n- \"Returned by AM\" and \"Returned by GM\" collapse into RETURNED; who returned it\n is stored in `returned_by_role`, which is data, not state.\n- \"Finally Approved\" and \"Locked\" collapse into APPROVED. Immutability is a\n property of APPROVED enforced in one guard, not a second status."
|
||||
"description": "5 states, down from the 7 originally proposed.\n\n- \"Returned by ABM\" and \"Returned by AGM\" collapse into RETURNED; who returned it\n is stored in `returned_by_role`, which is data, not state.\n- \"Finally Approved\" and \"Locked\" collapse into APPROVED. Immutability is a\n property of APPROVED enforced in one guard, not a second status."
|
||||
},
|
||||
"DCRUpdate": {
|
||||
"properties": {
|
||||
@@ -2806,6 +2806,17 @@
|
||||
"is_active": {
|
||||
"type": "boolean",
|
||||
"title": "Is Active"
|
||||
},
|
||||
"assigned_mr_name": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Assigned Mr Name"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
@@ -3185,7 +3196,7 @@
|
||||
"reporting_manager_name"
|
||||
],
|
||||
"title": "MyProfile",
|
||||
"description": "S4 \u2014 the MR profile screen. Includes the DERIVED reporting Area Manager."
|
||||
"description": "S4 \u2014 the MR profile screen. Includes the DERIVED reporting Area Business Manager."
|
||||
},
|
||||
"RefreshRequest": {
|
||||
"properties": {
|
||||
@@ -3220,12 +3231,12 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"ADMIN",
|
||||
"GM",
|
||||
"AM",
|
||||
"AGM",
|
||||
"ABM",
|
||||
"MR"
|
||||
],
|
||||
"title": "Role",
|
||||
"description": "Operational roles (MR/AM/GM) plus the technical ADMIN role.\n\nADMIN sits OUTSIDE the business hierarchy. It provisions users and masters but\ncan never approve a report or read report content (report \u00a78, SEC-2)."
|
||||
"description": "Operational roles (MR/ABM/AGM) plus the technical ADMIN role.\n\nADMIN sits OUTSIDE the business hierarchy. It provisions users and masters, may monitor and read reports, but can never approve one (report \u00a78, SEC-2)."
|
||||
},
|
||||
"StatusCounts": {
|
||||
"properties": {
|
||||
@@ -3234,7 +3245,7 @@
|
||||
"title": "Draft",
|
||||
"default": 0
|
||||
},
|
||||
"PENDING_AM": {
|
||||
"PENDING_ABM": {
|
||||
"type": "integer",
|
||||
"title": "Pending Am",
|
||||
"default": 0
|
||||
|
||||
Reference in New Issue
Block a user