@opencxh/domain 1.235.0 → 1.236.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/company/types.d.ts +2 -0
- package/dist/entities/contact/types.d.ts +8 -0
- package/dist/entities/document-template/index.d.ts +3 -0
- package/dist/entities/document-template/locale.d.ts +38 -0
- package/dist/entities/document-template/locale.test.d.ts +1 -0
- package/dist/entities/document-template/tokens.d.ts +27 -0
- package/dist/entities/document-template/tokens.test.d.ts +1 -0
- package/dist/entities/document-template/types.d.ts +87 -0
- package/dist/entities/kb/types.d.ts +9 -0
- package/dist/entities/organization/types.d.ts +8 -0
- package/dist/index.cjs +21 -14
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1619 -1392
- package/dist/platform/document-parse.d.ts +2 -0
- package/dist/platform/document-text.d.ts +14 -0
- package/dist/platform/document-text.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DocumentBlock } from './document-blocks';
|
|
2
|
+
/**
|
|
3
|
+
* The document as plain text: what an embedding and a keyword search should see.
|
|
4
|
+
*
|
|
5
|
+
* Markdown and plain text are not the same job. `**Yealink**` embeds as three tokens where two of
|
|
6
|
+
* them are punctuation, a table's pipes are noise in a cosine, and a search for "reset" should
|
|
7
|
+
* match `## Reset` without the reader having typed a hash. So this strips the markers markdown put
|
|
8
|
+
* there and keeps the words they wrapped.
|
|
9
|
+
*
|
|
10
|
+
* Built on top of {@link documentToMarkdown} rather than beside it: one place decides what a block
|
|
11
|
+
* says and in which order, and a second walk over the union would drift from it on the first new
|
|
12
|
+
* block type.
|
|
13
|
+
*/
|
|
14
|
+
export declare function documentToText(blocks: DocumentBlock[], title?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|