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