From 9fc4b768e24c66d18a877796493f265b48bb7be3 Mon Sep 17 00:00:00 2001 From: paranarimasu <33796518+paranarimasu@users.noreply.github.com> Date: Sat, 5 Nov 2022 22:02:46 -0500 Subject: [PATCH] feat: require active resource for destroy & update endpoints (#58) --- docs/admin/announcement/destroy/index.md | 2 ++ docs/admin/announcement/update/index.md | 2 ++ docs/admin/dump/destroy/index.md | 2 ++ docs/admin/dump/update/index.md | 2 ++ docs/billing/balance/destroy/index.md | 2 ++ docs/billing/balance/update/index.md | 2 ++ docs/billing/transaction/destroy/index.md | 2 ++ docs/billing/transaction/update/index.md | 2 ++ docs/document/page/destroy/index.md | 2 ++ docs/document/page/update/index.md | 2 ++ docs/list/playlist/destroy/index.md | 2 +- docs/list/playlist/update/index.md | 2 ++ docs/list/playlisttrack/destroy/index.md | 2 +- docs/list/playlisttrack/update/index.md | 2 +- docs/wiki/anime/destroy/index.md | 2 ++ docs/wiki/anime/update/index.md | 2 ++ docs/wiki/animesynonym/destroy/index.md | 2 ++ docs/wiki/animesynonym/update/index.md | 2 ++ docs/wiki/animetheme/destroy/index.md | 2 ++ docs/wiki/animetheme/update/index.md | 2 ++ docs/wiki/animethemeentry/destroy/index.md | 2 ++ docs/wiki/animethemeentry/update/index.md | 2 ++ docs/wiki/artist/destroy/index.md | 2 ++ docs/wiki/artist/update/index.md | 2 ++ docs/wiki/audio/destroy/index.md | 2 ++ docs/wiki/audio/update/index.md | 2 ++ docs/wiki/image/destroy/index.md | 2 ++ docs/wiki/image/update/index.md | 2 ++ docs/wiki/resource/destroy/index.md | 2 ++ docs/wiki/resource/update/index.md | 2 ++ docs/wiki/series/destroy/index.md | 2 ++ docs/wiki/series/update/index.md | 2 ++ docs/wiki/song/destroy/index.md | 2 ++ docs/wiki/song/update/index.md | 2 ++ docs/wiki/studio/destroy/index.md | 2 ++ docs/wiki/studio/update/index.md | 2 ++ docs/wiki/video/destroy/index.md | 2 ++ docs/wiki/video/update/index.md | 2 ++ docs/wiki/videoscript/destroy/index.md | 2 ++ docs/wiki/videoscript/update/index.md | 2 ++ package-lock.json | 12 ++++++------ 41 files changed, 83 insertions(+), 9 deletions(-) diff --git a/docs/admin/announcement/destroy/index.md b/docs/admin/announcement/destroy/index.md index 2407ea9..ff62fe3 100644 --- a/docs/admin/announcement/destroy/index.md +++ b/docs/admin/announcement/destroy/index.md @@ -20,6 +20,8 @@ DELETE /announcement/{id} **Roles with Permission**: Admin +**Other Requirements**: Announcement must not be soft deleted + ## Parameters None diff --git a/docs/admin/announcement/update/index.md b/docs/admin/announcement/update/index.md index 39cff6f..53d9a13 100644 --- a/docs/admin/announcement/update/index.md +++ b/docs/admin/announcement/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /announcement/{id} **Roles with Permission**: Admin +**Other Requirements**: Announcement must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/admin/dump/destroy/index.md b/docs/admin/dump/destroy/index.md index 2f134c7..642bf26 100644 --- a/docs/admin/dump/destroy/index.md +++ b/docs/admin/dump/destroy/index.md @@ -20,6 +20,8 @@ DELETE /dump/{id} **Roles with Permission**: Admin +**Other Requirements**: Dump must not be soft deleted + ## Parameters None diff --git a/docs/admin/dump/update/index.md b/docs/admin/dump/update/index.md index d9d10e0..5d6a79f 100644 --- a/docs/admin/dump/update/index.md +++ b/docs/admin/dump/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /dump/{id} **Roles with Permission**: Admin +**Other Requirements**: Dump must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/billing/balance/destroy/index.md b/docs/billing/balance/destroy/index.md index a628c54..c975bfb 100644 --- a/docs/billing/balance/destroy/index.md +++ b/docs/billing/balance/destroy/index.md @@ -20,6 +20,8 @@ DELETE /balance/{id} **Roles with Permission**: Admin +**Other Requirements**: Balance must not be soft deleted + ## Parameters None diff --git a/docs/billing/balance/update/index.md b/docs/billing/balance/update/index.md index f80ed4d..6434d6b 100644 --- a/docs/billing/balance/update/index.md +++ b/docs/billing/balance/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /balance/{id} **Roles with Permission**: Admin +**Other Requirements**: Balance must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/billing/transaction/destroy/index.md b/docs/billing/transaction/destroy/index.md index 71655f9..56c63fb 100644 --- a/docs/billing/transaction/destroy/index.md +++ b/docs/billing/transaction/destroy/index.md @@ -20,6 +20,8 @@ DELETE /transaction/{id} **Roles with Permission**: Admin +**Other Requirements**: Transaction must not be soft deleted + ## Parameters None diff --git a/docs/billing/transaction/update/index.md b/docs/billing/transaction/update/index.md index 1850e2e..961155c 100644 --- a/docs/billing/transaction/update/index.md +++ b/docs/billing/transaction/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /transaction/{id} **Roles with Permission**: Admin +**Other Requirements**: Transaction must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/document/page/destroy/index.md b/docs/document/page/destroy/index.md index d5d604c..a60fcd9 100644 --- a/docs/document/page/destroy/index.md +++ b/docs/document/page/destroy/index.md @@ -20,6 +20,8 @@ DELETE /page/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Page must not be soft deleted + ## Parameters None diff --git a/docs/document/page/update/index.md b/docs/document/page/update/index.md index 55c528d..69529dd 100644 --- a/docs/document/page/update/index.md +++ b/docs/document/page/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /page/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Page must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/list/playlist/destroy/index.md b/docs/list/playlist/destroy/index.md index 63bccfc..5f6f560 100644 --- a/docs/list/playlist/destroy/index.md +++ b/docs/list/playlist/destroy/index.md @@ -18,7 +18,7 @@ DELETE /playlist/{id} **Required Permission**: delete playlist -**Other Requirements**: User must own playlist +**Other Requirements**: User must own playlist & playlist must not be soft deleted ## Parameters diff --git a/docs/list/playlist/update/index.md b/docs/list/playlist/update/index.md index e7034f5..7fdcf10 100644 --- a/docs/list/playlist/update/index.md +++ b/docs/list/playlist/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /playlist/{id} **Other Requirements**: User must own playlist +**Other Requirements**: User must own playlist & playlist must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/list/playlisttrack/destroy/index.md b/docs/list/playlisttrack/destroy/index.md index fafddbb..5d313f9 100644 --- a/docs/list/playlisttrack/destroy/index.md +++ b/docs/list/playlisttrack/destroy/index.md @@ -18,7 +18,7 @@ DELETE /playlist/{id}/playlisttrack/{id} **Required Permission**: delete playlist track -**Other Requirements**: User must own playlist +**Other Requirements**: User must own playlist & playlist track must not be soft deleted ## Parameters diff --git a/docs/list/playlisttrack/update/index.md b/docs/list/playlisttrack/update/index.md index a0f6f74..9c4acf8 100644 --- a/docs/list/playlisttrack/update/index.md +++ b/docs/list/playlisttrack/update/index.md @@ -18,7 +18,7 @@ PUT|PATCH /playlist/{id}/playlisttrack/{id} **Required Permission**: update playlist track -**Other Requirements**: User must own playlist +**Other Requirements**: User must own playlist & playlist track must not be soft deleted ## Parameters diff --git a/docs/wiki/anime/destroy/index.md b/docs/wiki/anime/destroy/index.md index d706ba3..3e0953a 100644 --- a/docs/wiki/anime/destroy/index.md +++ b/docs/wiki/anime/destroy/index.md @@ -20,6 +20,8 @@ DELETE /anime/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Anime must not be soft deleted + ## Parameters None diff --git a/docs/wiki/anime/update/index.md b/docs/wiki/anime/update/index.md index ece8dae..eca11f8 100644 --- a/docs/wiki/anime/update/index.md +++ b/docs/wiki/anime/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /anime/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Anime must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/animesynonym/destroy/index.md b/docs/wiki/animesynonym/destroy/index.md index a37cf98..373f8fa 100644 --- a/docs/wiki/animesynonym/destroy/index.md +++ b/docs/wiki/animesynonym/destroy/index.md @@ -20,6 +20,8 @@ DELETE /animesynonym/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Anime synonym must not be soft deleted + ## Parameters None diff --git a/docs/wiki/animesynonym/update/index.md b/docs/wiki/animesynonym/update/index.md index 5b226ce..35c2e59 100644 --- a/docs/wiki/animesynonym/update/index.md +++ b/docs/wiki/animesynonym/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /animesynonym/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Anime synonym must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/animetheme/destroy/index.md b/docs/wiki/animetheme/destroy/index.md index 4974ef7..2c5fe9d 100644 --- a/docs/wiki/animetheme/destroy/index.md +++ b/docs/wiki/animetheme/destroy/index.md @@ -20,6 +20,8 @@ DELETE /animetheme/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Anime theme must not be soft deleted + ## Parameters None diff --git a/docs/wiki/animetheme/update/index.md b/docs/wiki/animetheme/update/index.md index 927a528..e43c1d8 100644 --- a/docs/wiki/animetheme/update/index.md +++ b/docs/wiki/animetheme/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /animetheme/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Anime theme must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/animethemeentry/destroy/index.md b/docs/wiki/animethemeentry/destroy/index.md index 9b0ccd3..023ba6d 100644 --- a/docs/wiki/animethemeentry/destroy/index.md +++ b/docs/wiki/animethemeentry/destroy/index.md @@ -20,6 +20,8 @@ DELETE /animethemeentry/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Anime theme entry must not be soft deleted + ## Parameters None diff --git a/docs/wiki/animethemeentry/update/index.md b/docs/wiki/animethemeentry/update/index.md index 4cd2a7b..e137469 100644 --- a/docs/wiki/animethemeentry/update/index.md +++ b/docs/wiki/animethemeentry/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /animethemeentry/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Anime theme entry must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/artist/destroy/index.md b/docs/wiki/artist/destroy/index.md index 4e0fc9d..22dfc3e 100644 --- a/docs/wiki/artist/destroy/index.md +++ b/docs/wiki/artist/destroy/index.md @@ -20,6 +20,8 @@ DELETE /artist/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Artist must not be soft deleted + ## Parameters None diff --git a/docs/wiki/artist/update/index.md b/docs/wiki/artist/update/index.md index 6fda7e7..105c920 100644 --- a/docs/wiki/artist/update/index.md +++ b/docs/wiki/artist/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /artist/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Artist must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/audio/destroy/index.md b/docs/wiki/audio/destroy/index.md index af084a3..f382e72 100644 --- a/docs/wiki/audio/destroy/index.md +++ b/docs/wiki/audio/destroy/index.md @@ -20,6 +20,8 @@ DELETE /audio/{basename} **Roles with Permission**: Admin +**Other Requirements**: Audio must not be soft deleted + ## Parameters None diff --git a/docs/wiki/audio/update/index.md b/docs/wiki/audio/update/index.md index d55510b..09cb5b8 100644 --- a/docs/wiki/audio/update/index.md +++ b/docs/wiki/audio/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /audio/{basename} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Audio must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/image/destroy/index.md b/docs/wiki/image/destroy/index.md index 2995d34..be5114a 100644 --- a/docs/wiki/image/destroy/index.md +++ b/docs/wiki/image/destroy/index.md @@ -20,6 +20,8 @@ DELETE /image/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Image must not be soft deleted + ## Parameters None diff --git a/docs/wiki/image/update/index.md b/docs/wiki/image/update/index.md index b07c934..40150a3 100644 --- a/docs/wiki/image/update/index.md +++ b/docs/wiki/image/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /image/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Image must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/resource/destroy/index.md b/docs/wiki/resource/destroy/index.md index df6b221..1fc1eb5 100644 --- a/docs/wiki/resource/destroy/index.md +++ b/docs/wiki/resource/destroy/index.md @@ -20,6 +20,8 @@ DELETE /resource/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Resource must not be soft deleted + ## Parameters None diff --git a/docs/wiki/resource/update/index.md b/docs/wiki/resource/update/index.md index 9077eac..dfa9681 100644 --- a/docs/wiki/resource/update/index.md +++ b/docs/wiki/resource/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /resource/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Resource must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/series/destroy/index.md b/docs/wiki/series/destroy/index.md index b6e8aaa..c356499 100644 --- a/docs/wiki/series/destroy/index.md +++ b/docs/wiki/series/destroy/index.md @@ -20,6 +20,8 @@ DELETE /series/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Series must not be soft deleted + ## Parameters None diff --git a/docs/wiki/series/update/index.md b/docs/wiki/series/update/index.md index 2b2e992..8341f1a 100644 --- a/docs/wiki/series/update/index.md +++ b/docs/wiki/series/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /series/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Series must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/song/destroy/index.md b/docs/wiki/song/destroy/index.md index 583e787..816f47d 100644 --- a/docs/wiki/song/destroy/index.md +++ b/docs/wiki/song/destroy/index.md @@ -20,6 +20,8 @@ DELETE /song/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Song must not be soft deleted + ## Parameters None diff --git a/docs/wiki/song/update/index.md b/docs/wiki/song/update/index.md index 9ce3cfa..44b913a 100644 --- a/docs/wiki/song/update/index.md +++ b/docs/wiki/song/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /song/{id} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Song must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/studio/destroy/index.md b/docs/wiki/studio/destroy/index.md index 58a2f47..af709cc 100644 --- a/docs/wiki/studio/destroy/index.md +++ b/docs/wiki/studio/destroy/index.md @@ -20,6 +20,8 @@ DELETE /studio/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Studio must not be soft deleted + ## Parameters None diff --git a/docs/wiki/studio/update/index.md b/docs/wiki/studio/update/index.md index 7e48f4b..08e54eb 100644 --- a/docs/wiki/studio/update/index.md +++ b/docs/wiki/studio/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /studio/{slug} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Studio must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/video/destroy/index.md b/docs/wiki/video/destroy/index.md index f9400fc..aa013e5 100644 --- a/docs/wiki/video/destroy/index.md +++ b/docs/wiki/video/destroy/index.md @@ -20,6 +20,8 @@ DELETE /video/{basename} **Roles with Permission**: Admin +**Other Requirements**: Video must not be soft deleted + ## Parameters None diff --git a/docs/wiki/video/update/index.md b/docs/wiki/video/update/index.md index 14f32d0..136eeee 100644 --- a/docs/wiki/video/update/index.md +++ b/docs/wiki/video/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /video/{basename} **Roles with Permission**: Wiki Editor, Admin +**Other Requirements**: Video must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/docs/wiki/videoscript/destroy/index.md b/docs/wiki/videoscript/destroy/index.md index 6ab4d08..ced5b3a 100644 --- a/docs/wiki/videoscript/destroy/index.md +++ b/docs/wiki/videoscript/destroy/index.md @@ -20,6 +20,8 @@ DELETE /videoscript/{id} **Roles with Permission**: Admin +**Other Requirements**: Video script must not be soft deleted + ## Parameters None diff --git a/docs/wiki/videoscript/update/index.md b/docs/wiki/videoscript/update/index.md index 629d722..4a3ca44 100644 --- a/docs/wiki/videoscript/update/index.md +++ b/docs/wiki/videoscript/update/index.md @@ -20,6 +20,8 @@ PUT|PATCH /videoscript/{id} **Roles with Permission**: Admin +**Other Requirements**: Video script must not be soft deleted + ## Parameters | Name | Required | Rules | diff --git a/package-lock.json b/package-lock.json index f725e60..eeef02c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -154,9 +154,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz", - "integrity": "sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw==", + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.2.tgz", + "integrity": "sha512-afk318kh2uKbo7BEj2QtEi8HVCGrwHUffrYDy7dgVcSa2j9lY3LDjPzcyGdpX7xgm35aWqvciZJ4WKmdF/SxYg==", "bin": { "parser": "bin/babel-parser.js" }, @@ -1224,9 +1224,9 @@ } }, "@babel/parser": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz", - "integrity": "sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw==" + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.2.tgz", + "integrity": "sha512-afk318kh2uKbo7BEj2QtEi8HVCGrwHUffrYDy7dgVcSa2j9lY3LDjPzcyGdpX7xgm35aWqvciZJ4WKmdF/SxYg==" }, "@docsearch/css": { "version": "3.3.0",