Skip to content

Commit a0fe9f7

Browse files
authored
chore: more document-api standardization and clean up (#2176)
* chore: more document-api standardization and clean up * chore: fix test
1 parent e11acc5 commit a0fe9f7

44 files changed

Lines changed: 107 additions & 384 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/docs/document-api/reference/_generated-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@
119119
}
120120
],
121121
"marker": "{/* GENERATED FILE: DO NOT EDIT. Regenerate via `pnpm run docapi:sync`. */}",
122-
"sourceHash": "71719d809aa97aaaf7d9200dedd1edf47dc16486b208b473cc009257667bed77"
122+
"sourceHash": "ef0d931b0ccec18b0cc91efee5ed117a0d3328adc8406faaab4119e2f07b2ca5"
123123
}

apps/docs/document-api/reference/comments/create.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ _No fields._
7272
## Pre-apply throws
7373

7474
- `TARGET_NOT_FOUND`
75-
- `COMMAND_UNAVAILABLE`
7675
- `CAPABILITY_UNAVAILABLE`
7776
- `INVALID_TARGET`
7877

apps/docs/document-api/reference/comments/delete.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ _No fields._
6161
## Pre-apply throws
6262

6363
- `TARGET_NOT_FOUND`
64-
- `COMMAND_UNAVAILABLE`
6564
- `CAPABILITY_UNAVAILABLE`
6665

6766
## Non-applied failure codes

apps/docs/document-api/reference/comments/list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ description: Reference for comments.list
7878

7979
## Pre-apply throws
8080

81-
- None
81+
- `INVALID_INPUT`
8282

8383
## Non-applied failure codes
8484

apps/docs/document-api/reference/comments/patch.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ _No fields._
7474
## Pre-apply throws
7575

7676
- `TARGET_NOT_FOUND`
77-
- `COMMAND_UNAVAILABLE`
7877
- `CAPABILITY_UNAVAILABLE`
7978
- `INVALID_TARGET`
8079
- `INVALID_INPUT`

apps/docs/document-api/reference/create/heading.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ _No fields._
7373
## Pre-apply throws
7474

7575
- `TARGET_NOT_FOUND`
76-
- `COMMAND_UNAVAILABLE`
77-
- `TRACK_CHANGE_COMMAND_UNAVAILABLE`
7876
- `CAPABILITY_UNAVAILABLE`
7977
- `INVALID_TARGET`
8078
- `AMBIGUOUS_TARGET`

apps/docs/document-api/reference/create/paragraph.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ _No fields._
7171
## Pre-apply throws
7272

7373
- `TARGET_NOT_FOUND`
74-
- `COMMAND_UNAVAILABLE`
75-
- `TRACK_CHANGE_COMMAND_UNAVAILABLE`
7674
- `CAPABILITY_UNAVAILABLE`
7775
- `INVALID_TARGET`
7876
- `AMBIGUOUS_TARGET`

apps/docs/document-api/reference/delete.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ _No fields._
9191
## Pre-apply throws
9292

9393
- `TARGET_NOT_FOUND`
94-
- `TRACK_CHANGE_COMMAND_UNAVAILABLE`
9594
- `CAPABILITY_UNAVAILABLE`
9695
- `INVALID_TARGET`
9796

apps/docs/document-api/reference/find.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ description: Reference for find
132132

133133
## Pre-apply throws
134134

135-
- None
135+
- `CAPABILITY_UNAVAILABLE`
136+
- `INVALID_INPUT`
136137

137138
## Non-applied failure codes
138139

apps/docs/document-api/reference/format/apply.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ _No fields._
9696
## Pre-apply throws
9797

9898
- `TARGET_NOT_FOUND`
99-
- `COMMAND_UNAVAILABLE`
100-
- `TRACK_CHANGE_COMMAND_UNAVAILABLE`
10199
- `CAPABILITY_UNAVAILABLE`
102100
- `INVALID_TARGET`
103101
- `INVALID_INPUT`

0 commit comments

Comments
 (0)