@musnows/scriverse 0.5.7 → 0.5.8
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/app.js +5 -0
- package/dist/app.js.map +1 -1
- package/dist/public/app.js +37 -3
- package/dist/public/index.html +3 -3
- package/dist/public/styles.css +3 -1
- package/dist/store.js +30 -1
- package/dist/store.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -1013,6 +1013,11 @@ export function createRuntime(options) {
|
|
|
1013
1013
|
store.deleteChapter(request.params.chapterId, input.expectedVersionNo);
|
|
1014
1014
|
noContent(response);
|
|
1015
1015
|
});
|
|
1016
|
+
app.delete("/api/chapters/:chapterId/permanent", (request, response) => {
|
|
1017
|
+
const input = parse(z.object({ expectedVersionNo: expectedVersionNoSchema }).strict(), request.body ?? {});
|
|
1018
|
+
store.permanentlyDeleteChapter(request.params.chapterId, input.expectedVersionNo);
|
|
1019
|
+
noContent(response);
|
|
1020
|
+
});
|
|
1016
1021
|
app.get("/api/chapters/:chapterId/versions", (request, response) => {
|
|
1017
1022
|
const pagination = parsePagination(request.query);
|
|
1018
1023
|
data(response, pagination ? store.listChapterVersionsPage(request.params.chapterId, pagination) : store.listChapterVersions(request.params.chapterId));
|