@arbidocs/sdk 0.3.155 → 0.3.157
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
|
@@ -5162,7 +5162,9 @@ declare function updateDocTag(arbi: ArbiClient, tagId: string, docId: string, up
|
|
|
5162
5162
|
created_at: string;
|
|
5163
5163
|
updated_at: string;
|
|
5164
5164
|
}>;
|
|
5165
|
-
declare function generateDocTags(arbi: ArbiClient, tagIds: string[], docIds: string[]
|
|
5165
|
+
declare function generateDocTags(arbi: ArbiClient, tagIds: string[], docIds: string[], options?: {
|
|
5166
|
+
overwrite?: boolean;
|
|
5167
|
+
}): Promise<{
|
|
5166
5168
|
doc_ext_ids: string[];
|
|
5167
5169
|
tag_ext_ids: string[];
|
|
5168
5170
|
}>;
|
|
@@ -5162,7 +5162,9 @@ declare function updateDocTag(arbi: ArbiClient, tagId: string, docId: string, up
|
|
|
5162
5162
|
created_at: string;
|
|
5163
5163
|
updated_at: string;
|
|
5164
5164
|
}>;
|
|
5165
|
-
declare function generateDocTags(arbi: ArbiClient, tagIds: string[], docIds: string[]
|
|
5165
|
+
declare function generateDocTags(arbi: ArbiClient, tagIds: string[], docIds: string[], options?: {
|
|
5166
|
+
overwrite?: boolean;
|
|
5167
|
+
}): Promise<{
|
|
5166
5168
|
doc_ext_ids: string[];
|
|
5167
5169
|
tag_ext_ids: string[];
|
|
5168
5170
|
}>;
|
package/dist/browser.cjs
CHANGED
|
@@ -5073,10 +5073,12 @@ async function updateDocTag(arbi, tagId, docId, updates) {
|
|
|
5073
5073
|
"Failed to update doctag"
|
|
5074
5074
|
);
|
|
5075
5075
|
}
|
|
5076
|
-
async function generateDocTags(arbi, tagIds, docIds) {
|
|
5076
|
+
async function generateDocTags(arbi, tagIds, docIds, options) {
|
|
5077
5077
|
return requireData(
|
|
5078
5078
|
await arbi.fetch.POST("/v1/document/doctag/generate", {
|
|
5079
|
-
|
|
5079
|
+
// overwrite regenerates values for documents that already carry the tag;
|
|
5080
|
+
// the default skips them (the server's historical behaviour).
|
|
5081
|
+
body: { tag_ext_ids: tagIds, doc_ext_ids: docIds, overwrite: options?.overwrite ?? false }
|
|
5080
5082
|
}),
|
|
5081
5083
|
"Failed to generate doctags"
|
|
5082
5084
|
);
|