style(13-03): apply Prettier formatting across repo
Mechanical reformat — no logic changes. 398 files changed, 19125 insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc (singleQuote:true, semi:true, tabWidth:2, trailingComma:all, printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
@@ -38,10 +38,7 @@
|
||||
"method": "GET",
|
||||
"path": "/api/events",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"start (YYYY-MM-DD, required)",
|
||||
"end (YYYY-MM-DD, required)"
|
||||
],
|
||||
"params": ["start (YYYY-MM-DD, required)", "end (YYYY-MM-DD, required)"],
|
||||
"file": "apps/api/src/routes/events.ts",
|
||||
"response": "{ occurrences: CalendarOccurrence[] }",
|
||||
"description": "Windowed calendar events. Max 90-day window. Reads only from MariaDB cache; never hits Fastmail. Expands RRULEs server-side."
|
||||
@@ -59,9 +56,7 @@
|
||||
"method": "PATCH",
|
||||
"path": "/api/events/:uid/edit",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"uid (path)"
|
||||
],
|
||||
"params": ["uid (path)"],
|
||||
"body": "CreateEventPayload",
|
||||
"file": "apps/api/src/routes/events.ts",
|
||||
"response": "202 { uid: string }",
|
||||
@@ -71,9 +66,7 @@
|
||||
"method": "DELETE",
|
||||
"path": "/api/events/:uid",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"uid (path)"
|
||||
],
|
||||
"params": ["uid (path)"],
|
||||
"file": "apps/api/src/routes/events.ts",
|
||||
"response": "202 { uid: string }",
|
||||
"description": "Enqueues delete to calendarOutbox with cached etag (If-Match). Async write-back."
|
||||
@@ -82,9 +75,7 @@
|
||||
"method": "GET",
|
||||
"path": "/api/events/sync-status",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"uid (query, required)"
|
||||
],
|
||||
"params": ["uid (query, required)"],
|
||||
"file": "apps/api/src/routes/events.ts",
|
||||
"response": "{ uid: string, status: 'pending'|'done'|'failed'|'dead', error?: string }",
|
||||
"description": "Outbox status poll for a given event UID, scoped to current member. Used by SyncStateToast."
|
||||
@@ -134,9 +125,7 @@
|
||||
"method": "PATCH",
|
||||
"path": "/api/lists/:id",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"id (path)"
|
||||
],
|
||||
"params": ["id (path)"],
|
||||
"body": "{ name?: string, isShared?: boolean } — at least one field required",
|
||||
"file": "apps/api/src/routes/lists.ts",
|
||||
"response": "{ id, name, isShared, ownerId, createdAt, updatedAt }",
|
||||
@@ -146,9 +135,7 @@
|
||||
"method": "DELETE",
|
||||
"path": "/api/lists/:id",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"id (path)"
|
||||
],
|
||||
"params": ["id (path)"],
|
||||
"file": "apps/api/src/routes/lists.ts",
|
||||
"response": "{ id }",
|
||||
"description": "Owner-only delete. Cascade via FK onDelete:cascade removes items and shares. Non-owner sharees receive 403."
|
||||
@@ -157,9 +144,7 @@
|
||||
"method": "GET",
|
||||
"path": "/api/lists/:id/items",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"id (path)"
|
||||
],
|
||||
"params": ["id (path)"],
|
||||
"file": "apps/api/src/routes/lists.ts",
|
||||
"response": "{ items: [{ id, listId, text, checked, rank, createdAt, updatedAt }] }",
|
||||
"description": "Returns all items for the list ordered by rank ASC. Access-gated: owner or sharee only (T-04-05)."
|
||||
@@ -168,9 +153,7 @@
|
||||
"method": "POST",
|
||||
"path": "/api/lists/:id/items",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"id (path)"
|
||||
],
|
||||
"params": ["id (path)"],
|
||||
"body": "{ text: string (1..500) }",
|
||||
"file": "apps/api/src/routes/lists.ts",
|
||||
"response": "201 { id, listId, text, checked, rank, createdAt, updatedAt }",
|
||||
@@ -180,9 +163,7 @@
|
||||
"method": "PATCH",
|
||||
"path": "/api/list-items/:itemId",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"itemId (path)"
|
||||
],
|
||||
"params": ["itemId (path)"],
|
||||
"body": "exactly one of: { checked: boolean } | { text: string } | { position: string }",
|
||||
"file": "apps/api/src/routes/lists.ts",
|
||||
"response": "{ id, listId, text, checked, rank, createdAt, updatedAt }",
|
||||
@@ -192,9 +173,7 @@
|
||||
"method": "DELETE",
|
||||
"path": "/api/list-items/:itemId",
|
||||
"auth": "oidcAuthMiddleware",
|
||||
"params": [
|
||||
"itemId (path)"
|
||||
],
|
||||
"params": ["itemId (path)"],
|
||||
"file": "apps/api/src/routes/lists.ts",
|
||||
"response": "{ id }",
|
||||
"description": "Delete item instantly (D-06). Delete-wins semantics (D-09): no rollback path. Access-gated: owner or sharee. publishListEvent item:deleted fan-out."
|
||||
|
||||
Reference in New Issue
Block a user