You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 19e1d49
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: content/docs/references/api/record-page.mdx
+53-4Lines changed: 53 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Record Page schema — API Protocol reference
3
3
navTitle: Record Page
4
-
description: "Record page payload — POST /api/v1/data/{object}/{id}/page. Reference for RecordPageActivityRequest and 16 more: every property with its type and default."
4
+
description: "Record page payload — POST /api/v1/data/{object}/{id}/page. Reference for RecordPageActivityRequest and 18 more: every property with its type and default."
5
5
---
6
6
7
7
{/* ⚠️ AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs live in the module folders under content/docs/. */}
@@ -39,7 +39,10 @@ The three stream parts are each that read exactly as the table on
39
39
`RecordPageActivityRequestSchema` spells it: the route composes the record's
40
40
scope and the order, and the request names only whether a stream is wanted
41
41
and how many rows. Paging further, posting, reacting and uploading keep
42
-
their own routes. Object permissions, row-level security, sharing and
42
+
their own routes. [#28737] The `timeline` part is the size of the record's
43
+
动态 stream — the comments, the activity and the field changes it merges —
44
+
counted by those reads as the caller (`RecordPageTimelineRequestSchema`), so
45
+
a page draws the stream's count without holding every row of it. Object permissions, row-level security, sharing and
43
46
field-level security therefore apply exactly as they apply to those reads.
44
47
A part whose read refuses carries that refusal in place of an answer — a
45
48
related list the caller may not read carries neither a count nor rows — and
@@ -54,8 +57,8 @@ no part discloses a record the caller could not open.
const result =RecordPageActivityRequestSchema.parse(data);
@@ -397,6 +400,7 @@ This schema accepts one of the following structures:
397
400
|**discussion**|`boolean`| optional | Return the record's discussion: its comment thread and those comments' reactions (`RecordPageDiscussionSchema`). |
398
401
|**activity**|`{ top: integer }`| optional | Return the record's newest activity rows and their count (`RecordPageStreamRowsSchema`). |
399
402
|**attachments**|`{ top: integer }`| optional | Return the record's newest attachments and their count (`RecordPageStreamRowsSchema`). |
403
+
|**timeline**|`{ discussion: boolean; activity: boolean; fieldChanges: boolean }`| optional | Return the size of the record's timeline stream over the sources named (`RecordPageTimelineCountSchema`). |
@@ -421,6 +425,14 @@ This schema accepts one of the following structures:
421
425
| :--- | :--- | :--- | :--- |
422
426
|**top**|`integer`| ✅ | How many of the record's newest attachments to return with their count; 0 returns the count alone. |
423
427
428
+
### Nested Shape: `RecordPageRequest.timeline`
429
+
430
+
| Property | Type | Required | Description |
431
+
| :--- | :--- | :--- | :--- |
432
+
|**discussion**|`boolean`| ✅ | Count the record's comment thread: every comment and reply. |
433
+
|**activity**|`boolean`| ✅ | Count the record's activity rows the stream draws an entry for (not `RECORD_TIMELINE_UNDRAWN_ACTIVITY_TYPES`). |
434
+
|**fieldChanges**|`boolean`| ✅ | Count the record's field changes (its `sys_audit_log` writes); with any, its `updated` activity rows step aside. |
435
+
424
436
425
437
---
426
438
@@ -440,6 +452,7 @@ This schema accepts one of the following structures:
440
452
|**discussion**|`{ comments: Record<string, any>[]; reactions: object \| object } \| { error: object }`| optional | The discussion part, when the request asked for it: the thread and its reactions, or the refusal of the comment read. |
441
453
|**activity**|`{ total: integer; records: Record<string, any>[] } \| { error: object }`| optional | The activity part, when the request asked for it: the newest rows and their count, or the refusal of their read. |
442
454
|**attachments**|`{ total: integer; records: Record<string, any>[] } \| { error: object }`| optional | The attachments part, when the request asked for it: the newest rows and their count, or the refusal of their read. |
455
+
|**timeline**|`{ total: integer } \| { error: object }`| optional | The timeline part, when the request asked for it: the stream's size, or the refusal of a comment or activity read. |
|[Automation Protocol](/docs/references/automation)| 15 | 78 | Flows and their nodes, approvals, ETL pipelines, webhooks, state machines, execution records. |
26
26
|[Data Protocol](/docs/references/data)| 31 | 174 | Objects, fields, queries, filters, datasources and drivers — the ObjectQL layer. |
0 commit comments