@arbidocs/sdk 0.3.182 → 0.3.183
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-B0IkKXmI.d.cts → browser-CJnhV_5b.d.cts} +53 -15
- package/dist/{browser-B0IkKXmI.d.ts → browser-CJnhV_5b.d.ts} +53 -15
- package/dist/browser.cjs +13 -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 +13 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +13 -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 +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6127,6 +6127,7 @@ async function runTask(arbi, taskId) {
|
|
|
6127
6127
|
var facts_exports = {};
|
|
6128
6128
|
__export(facts_exports, {
|
|
6129
6129
|
createFact: () => createFact,
|
|
6130
|
+
createFactsBatch: () => createFactsBatch,
|
|
6130
6131
|
deleteFact: () => deleteFact,
|
|
6131
6132
|
listFacts: () => listFacts,
|
|
6132
6133
|
remindFact: () => remindFact,
|
|
@@ -6136,6 +6137,9 @@ __export(facts_exports, {
|
|
|
6136
6137
|
async function createFact(arbi, body) {
|
|
6137
6138
|
return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
|
|
6138
6139
|
}
|
|
6140
|
+
async function createFactsBatch(arbi, body) {
|
|
6141
|
+
return requireData(await arbi.fetch.POST("/v1/facts/batch", { body }), "Failed to create notes");
|
|
6142
|
+
}
|
|
6139
6143
|
async function listFacts(arbi, options) {
|
|
6140
6144
|
return requireData(
|
|
6141
6145
|
await arbi.fetch.GET("/v1/facts/list", {
|
|
@@ -6144,7 +6148,11 @@ async function listFacts(arbi, options) {
|
|
|
6144
6148
|
pinned_only: options?.pinnedOnly ?? false,
|
|
6145
6149
|
date_from: options?.from,
|
|
6146
6150
|
date_to: options?.to,
|
|
6147
|
-
dated_only: options?.datedOnly
|
|
6151
|
+
dated_only: options?.datedOnly,
|
|
6152
|
+
tag_ext_id: options?.tagExtIds,
|
|
6153
|
+
doc_ext_id: options?.docExtId,
|
|
6154
|
+
limit: options?.limit,
|
|
6155
|
+
offset: options?.offset
|
|
6148
6156
|
}
|
|
6149
6157
|
}
|
|
6150
6158
|
}),
|
|
@@ -6653,8 +6661,11 @@ var Arbi = class {
|
|
|
6653
6661
|
// ── Workspace facts ─────────────────────────────────────────────────
|
|
6654
6662
|
facts = {
|
|
6655
6663
|
create: (body) => createFact(this.requireClient(), body),
|
|
6664
|
+
/** Create up to 200 notes in one all-or-nothing request. */
|
|
6665
|
+
createBatch: (body) => createFactsBatch(this.requireClient(), body),
|
|
6656
6666
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6657
|
-
* ordered by when they happened.
|
|
6667
|
+
* ordered by when they happened. `tagExtIds` / `docExtId` narrow the list;
|
|
6668
|
+
* `limit` / `offset` page it. */
|
|
6658
6669
|
list: (options) => listFacts(this.requireClient(), options),
|
|
6659
6670
|
search: (body) => searchFacts(this.requireClient(), body),
|
|
6660
6671
|
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|