@arbidocs/sdk 0.3.156 → 0.3.158
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/{browser-D49d0P1f.d.cts → browser-BGQtJuLS.d.cts} +3 -1
- package/dist/{browser-D49d0P1f.d.ts → browser-BGQtJuLS.d.ts} +3 -1
- package/dist/browser.cjs +4 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +4 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5630,10 +5630,12 @@ async function updateDocTag(arbi, tagId, docId, updates) {
|
|
|
5630
5630
|
"Failed to update doctag"
|
|
5631
5631
|
);
|
|
5632
5632
|
}
|
|
5633
|
-
async function generateDocTags(arbi, tagIds, docIds) {
|
|
5633
|
+
async function generateDocTags(arbi, tagIds, docIds, options) {
|
|
5634
5634
|
return requireData(
|
|
5635
5635
|
await arbi.fetch.POST("/v1/document/doctag/generate", {
|
|
5636
|
-
|
|
5636
|
+
// overwrite regenerates values for documents that already carry the tag;
|
|
5637
|
+
// the default skips them (the server's historical behaviour).
|
|
5638
|
+
body: { tag_ext_ids: tagIds, doc_ext_ids: docIds, overwrite: options?.overwrite ?? false }
|
|
5637
5639
|
}),
|
|
5638
5640
|
"Failed to generate doctags"
|
|
5639
5641
|
);
|