@vectorize-io/hindsight-client 0.4.19 → 0.4.20
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/index.d.mts +41 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/generated/types.gen.ts +36 -0
- package/package.json +1 -1
- package/src/index.ts +14 -0
package/dist/index.mjs
CHANGED
|
@@ -1492,6 +1492,7 @@ var HindsightClient = class {
|
|
|
1492
1492
|
client: this.client,
|
|
1493
1493
|
path: { bank_id: bankId },
|
|
1494
1494
|
body: {
|
|
1495
|
+
id: options?.id,
|
|
1495
1496
|
name,
|
|
1496
1497
|
source_query: sourceQuery,
|
|
1497
1498
|
tags: options?.tags,
|
|
@@ -1561,6 +1562,16 @@ var HindsightClient = class {
|
|
|
1561
1562
|
throw new Error(`deleteMentalModel failed: ${JSON.stringify(response.error)}`);
|
|
1562
1563
|
}
|
|
1563
1564
|
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Get the change history of a mental model.
|
|
1567
|
+
*/
|
|
1568
|
+
async getMentalModelHistory(bankId, mentalModelId) {
|
|
1569
|
+
const response = await getMentalModelHistory({
|
|
1570
|
+
client: this.client,
|
|
1571
|
+
path: { bank_id: bankId, mental_model_id: mentalModelId }
|
|
1572
|
+
});
|
|
1573
|
+
return this.validateResponse(response, "getMentalModelHistory");
|
|
1574
|
+
}
|
|
1564
1575
|
};
|
|
1565
1576
|
export {
|
|
1566
1577
|
HindsightClient,
|