Function
buildDocAppendBlocksRequest
(input: {
docToken: string;
parentBlockId: string;
children: Record<string, unknown>[];
})
Source from the content-addressed store, hash-verified
| 984 | } |
| 985 | |
| 986 | function buildDocAppendBlocksRequest(input: { |
| 987 | docToken: string; |
| 988 | parentBlockId: string; |
| 989 | children: Record<string, unknown>[]; |
| 990 | }): FeishuApiRequest { |
| 991 | return { |
| 992 | method: "POST", |
| 993 | path: `/open-apis/docx/v1/documents/${encodeURIComponent(input.docToken)}/blocks/${encodeURIComponent(input.parentBlockId)}/children`, |
| 994 | body: { |
| 995 | children: input.children, |
| 996 | index: -1, |
| 997 | }, |
| 998 | }; |
| 999 | } |
| 1000 | |
| 1001 | function buildSheetMetadataRequest(sheetToken: string): FeishuApiRequest { |
| 1002 | return { |
Tested by
no test coverage detected