@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.
- package/dist/_chunks/{Layout-Cwbb9usb.js → Layout-B8FL2x6-.js} +7 -8
- package/dist/_chunks/Layout-B8FL2x6-.js.map +1 -0
- package/dist/_chunks/{Layout-BpMLb-Oo.mjs → Layout-Dx59M7TT.mjs} +7 -8
- package/dist/_chunks/Layout-Dx59M7TT.mjs.map +1 -0
- package/dist/_chunks/{_id-KpezMzxO.mjs → _id-AtadE_bb.mjs} +6 -32
- package/dist/_chunks/_id-AtadE_bb.mjs.map +1 -0
- package/dist/_chunks/{_id-p9NnvlMP.js → _id-C-SYBc57.js} +6 -32
- package/dist/_chunks/_id-C-SYBc57.js.map +1 -0
- package/dist/_chunks/{index-BxkGN0Yj.mjs → index-0pB4f3ex.mjs} +3 -3
- package/dist/_chunks/{index-BxkGN0Yj.mjs.map → index-0pB4f3ex.mjs.map} +1 -1
- package/dist/_chunks/{index-DqT_oXGP.js → index-CI4KFjfU.js} +3 -3
- package/dist/_chunks/{index-DqT_oXGP.js.map → index-CI4KFjfU.js.map} +1 -1
- package/dist/_chunks/{index-DtJI5ZoC.mjs → index-CtpGMTO2.mjs} +31 -51
- package/dist/_chunks/index-CtpGMTO2.mjs.map +1 -0
- package/dist/_chunks/{index-BTr8zF-9.js → index-Dj2vG7H2.js} +30 -50
- package/dist/_chunks/index-Dj2vG7H2.js.map +1 -0
- package/dist/_chunks/{router-B8G2sh6V.mjs → router-C6NXX9-N.mjs} +3 -3
- package/dist/_chunks/{router-B8G2sh6V.mjs.map → router-C6NXX9-N.mjs.map} +1 -1
- package/dist/_chunks/{router-Bqj-105s.js → router-Co81pRA9.js} +3 -3
- package/dist/_chunks/{router-Bqj-105s.js.map → router-Co81pRA9.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/services/settings.d.ts +1731 -5
- package/dist/server/index.js +0 -41
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +0 -41
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/index.d.ts +0 -1
- package/dist/server/src/controllers/index.d.ts.map +1 -1
- package/dist/server/src/controllers/workflows.d.ts +0 -7
- package/dist/server/src/controllers/workflows.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +0 -1
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/routes/review-workflows.d.ts.map +1 -1
- package/dist/shared/contracts/review-workflows.d.ts +1 -14
- package/dist/shared/contracts/review-workflows.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/_chunks/Layout-BpMLb-Oo.mjs.map +0 -1
- package/dist/_chunks/Layout-Cwbb9usb.js.map +0 -1
- package/dist/_chunks/_id-KpezMzxO.mjs.map +0 -1
- package/dist/_chunks/_id-p9NnvlMP.js.map +0 -1
- package/dist/_chunks/index-BTr8zF-9.js.map +0 -1
- package/dist/_chunks/index-DtJI5ZoC.mjs.map +0 -1
package/dist/server/index.mjs
CHANGED
|
@@ -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) {
|