@strapi/review-workflows 5.0.0-rc.7 → 5.0.0-rc.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.
Files changed (43) hide show
  1. package/dist/_chunks/{Layout-Cwbb9usb.js → Layout-B8FL2x6-.js} +7 -8
  2. package/dist/_chunks/Layout-B8FL2x6-.js.map +1 -0
  3. package/dist/_chunks/{Layout-BpMLb-Oo.mjs → Layout-Dx59M7TT.mjs} +7 -8
  4. package/dist/_chunks/Layout-Dx59M7TT.mjs.map +1 -0
  5. package/dist/_chunks/{_id-KpezMzxO.mjs → _id-AtadE_bb.mjs} +6 -32
  6. package/dist/_chunks/_id-AtadE_bb.mjs.map +1 -0
  7. package/dist/_chunks/{_id-p9NnvlMP.js → _id-C-SYBc57.js} +6 -32
  8. package/dist/_chunks/_id-C-SYBc57.js.map +1 -0
  9. package/dist/_chunks/{index-BxkGN0Yj.mjs → index-0pB4f3ex.mjs} +3 -3
  10. package/dist/_chunks/{index-BxkGN0Yj.mjs.map → index-0pB4f3ex.mjs.map} +1 -1
  11. package/dist/_chunks/{index-DqT_oXGP.js → index-CI4KFjfU.js} +3 -3
  12. package/dist/_chunks/{index-DqT_oXGP.js.map → index-CI4KFjfU.js.map} +1 -1
  13. package/dist/_chunks/{index-DtJI5ZoC.mjs → index-CtpGMTO2.mjs} +31 -51
  14. package/dist/_chunks/index-CtpGMTO2.mjs.map +1 -0
  15. package/dist/_chunks/{index-BTr8zF-9.js → index-Dj2vG7H2.js} +30 -50
  16. package/dist/_chunks/index-Dj2vG7H2.js.map +1 -0
  17. package/dist/_chunks/{router-B8G2sh6V.mjs → router-C6NXX9-N.mjs} +3 -3
  18. package/dist/_chunks/{router-B8G2sh6V.mjs.map → router-C6NXX9-N.mjs.map} +1 -1
  19. package/dist/_chunks/{router-Bqj-105s.js → router-Co81pRA9.js} +3 -3
  20. package/dist/_chunks/{router-Bqj-105s.js.map → router-Co81pRA9.js.map} +1 -1
  21. package/dist/admin/index.js +1 -1
  22. package/dist/admin/index.mjs +1 -1
  23. package/dist/admin/src/services/settings.d.ts +1731 -5
  24. package/dist/server/index.js +0 -41
  25. package/dist/server/index.js.map +1 -1
  26. package/dist/server/index.mjs +0 -41
  27. package/dist/server/index.mjs.map +1 -1
  28. package/dist/server/src/controllers/index.d.ts +0 -1
  29. package/dist/server/src/controllers/index.d.ts.map +1 -1
  30. package/dist/server/src/controllers/workflows.d.ts +0 -7
  31. package/dist/server/src/controllers/workflows.d.ts.map +1 -1
  32. package/dist/server/src/index.d.ts +0 -1
  33. package/dist/server/src/index.d.ts.map +1 -1
  34. package/dist/server/src/routes/review-workflows.d.ts.map +1 -1
  35. package/dist/shared/contracts/review-workflows.d.ts +1 -14
  36. package/dist/shared/contracts/review-workflows.d.ts.map +1 -1
  37. package/package.json +6 -6
  38. package/dist/_chunks/Layout-BpMLb-Oo.mjs.map +0 -1
  39. package/dist/_chunks/Layout-Cwbb9usb.js.map +0 -1
  40. package/dist/_chunks/_id-KpezMzxO.mjs.map +0 -1
  41. package/dist/_chunks/_id-p9NnvlMP.js.map +0 -1
  42. package/dist/_chunks/index-BTr8zF-9.js.map +0 -1
  43. package/dist/_chunks/index-DtJI5ZoC.mjs.map +0 -1
@@ -6838,23 +6838,6 @@ const reviewWorkflows = {
6838
6838
  ]
6839
6839
  }
6840
6840
  },
6841
- {
6842
- method: "GET",
6843
- path: "/workflows/:id",
6844
- handler: "workflows.findById",
6845
- config: {
6846
- middlewares: [enableFeatureMiddleware("review-workflows")],
6847
- policies: [
6848
- "admin::isAuthenticatedAdmin",
6849
- {
6850
- name: "admin::hasPermissions",
6851
- config: {
6852
- actions: ["admin::review-workflows.read"]
6853
- }
6854
- }
6855
- ]
6856
- }
6857
- },
6858
6841
  {
6859
6842
  method: "GET",
6860
6843
  path: "/workflows/:workflow_id/stages",
@@ -8029,30 +8012,6 @@ const workflows = {
8029
8012
  workflowCount
8030
8013
  }
8031
8014
  };
8032
- },
8033
- /**
8034
- * Get one workflow based on its id contained in request parameters
8035
- * Returns count of workflows in meta, used to prevent workflow edition when
8036
- * max workflow count is reached for the current plan
8037
- * @param {import('koa').BaseContext} ctx - koa context
8038
- */
8039
- async findById(ctx) {
8040
- const { id } = ctx.params;
8041
- const { query } = ctx.request;
8042
- const { sanitizeOutput, sanitizedQuery } = getWorkflowsPermissionChecker(
8043
- { strapi },
8044
- ctx.state.userAbility
8045
- );
8046
- const { populate } = await sanitizedQuery.read(query);
8047
- const workflowService = getService("workflows");
8048
- const [workflow2, workflowCount] = await Promise.all([
8049
- workflowService.findById(id, { populate }).then(formatWorkflowToAdmin),
8050
- workflowService.count()
8051
- ]);
8052
- ctx.body = {
8053
- data: await sanitizeOutput(workflow2),
8054
- meta: { workflowCount }
8055
- };
8056
8015
  }
8057
8016
  };
8058
8017
  function sanitizeStage({ strapi: strapi2 }, userAbility) {