@baasix/sdk 0.1.15 → 0.1.16
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.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/items.cjs +4 -1
- package/dist/modules/items.cjs.map +1 -1
- package/dist/modules/items.d.cts +3 -0
- package/dist/modules/items.d.ts +3 -0
- package/dist/modules/items.js +4 -1
- package/dist/modules/items.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1570,13 +1570,16 @@ var ItemsModule = class {
|
|
|
1570
1570
|
/**
|
|
1571
1571
|
* Restore a soft-deleted item
|
|
1572
1572
|
*
|
|
1573
|
+
* Only works for collections with `paranoid: true`. Clears the `deletedAt`
|
|
1574
|
+
* timestamp so the record reappears in normal queries.
|
|
1575
|
+
*
|
|
1573
1576
|
* @example
|
|
1574
1577
|
* ```typescript
|
|
1575
1578
|
* await items.restore('product-uuid');
|
|
1576
1579
|
* ```
|
|
1577
1580
|
*/
|
|
1578
1581
|
async restore(id) {
|
|
1579
|
-
await this.
|
|
1582
|
+
await this.client.post(`/items/${this.collection}/${id}/restore`);
|
|
1580
1583
|
}
|
|
1581
1584
|
/**
|
|
1582
1585
|
* Aggregate data with grouping
|