@strapi/review-workflows 0.0.1 → 5.0.0-beta.11
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-BWzD-Tfe.js +252 -0
- package/dist/_chunks/Layout-BWzD-Tfe.js.map +1 -0
- package/dist/_chunks/Layout-D292CXD6.mjs +234 -0
- package/dist/_chunks/Layout-D292CXD6.mjs.map +1 -0
- package/dist/_chunks/_id-CoX9yljN.js +1274 -0
- package/dist/_chunks/_id-CoX9yljN.js.map +1 -0
- package/dist/_chunks/_id-DqEUzU_u.mjs +1254 -0
- package/dist/_chunks/_id-DqEUzU_u.mjs.map +1 -0
- package/dist/_chunks/en-D9ZrQAV6.mjs +12 -0
- package/dist/_chunks/en-D9ZrQAV6.mjs.map +1 -0
- package/dist/_chunks/en-xcewH2pC.js +12 -0
- package/dist/_chunks/en-xcewH2pC.js.map +1 -0
- package/dist/_chunks/index-2nkLt-AE.mjs +234 -0
- package/dist/_chunks/index-2nkLt-AE.mjs.map +1 -0
- package/dist/_chunks/index-CDMcvtW9.js +253 -0
- package/dist/_chunks/index-CDMcvtW9.js.map +1 -0
- package/dist/_chunks/index-D-KMrml_.js +819 -0
- package/dist/_chunks/index-D-KMrml_.js.map +1 -0
- package/dist/_chunks/index-udedGkii.mjs +801 -0
- package/dist/_chunks/index-udedGkii.mjs.map +1 -0
- package/dist/_chunks/purchase-review-workflows-BN-5Ube7.mjs +52 -0
- package/dist/_chunks/purchase-review-workflows-BN-5Ube7.mjs.map +1 -0
- package/dist/_chunks/purchase-review-workflows-DlCDg0fD.js +52 -0
- package/dist/_chunks/purchase-review-workflows-DlCDg0fD.js.map +1 -0
- package/dist/_chunks/router-C19H1Rju.js +24 -0
- package/dist/_chunks/router-C19H1Rju.js.map +1 -0
- package/dist/_chunks/router-bmjk-Tpf.mjs +24 -0
- package/dist/_chunks/router-bmjk-Tpf.mjs.map +1 -0
- package/dist/admin/index.js +4 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +5 -0
- package/dist/admin/index.mjs.map +1 -0
- package/dist/admin/src/components/LimitsModal.d.ts +13 -0
- package/dist/admin/src/constants.d.ts +9 -0
- package/dist/admin/src/index.d.ts +3 -0
- package/dist/admin/src/modules/hooks.d.ts +7 -0
- package/dist/admin/src/router.d.ts +2 -0
- package/dist/admin/src/routes/content-manager/[model]/[id]/components/AssigneeSelect.d.ts +2 -0
- package/dist/admin/src/routes/content-manager/[model]/[id]/components/Panel.d.ts +3 -0
- package/dist/admin/src/routes/content-manager/[model]/[id]/components/StageSelect.d.ts +1 -0
- package/dist/admin/src/routes/content-manager/[model]/[id]/components/constants.d.ts +2 -0
- package/dist/admin/src/routes/content-manager/[model]/components/AssigneeFilter.d.ts +7 -0
- package/dist/admin/src/routes/content-manager/[model]/components/StageFilter.d.ts +8 -0
- package/dist/admin/src/routes/content-manager/[model]/components/TableColumns.d.ts +18 -0
- package/dist/admin/src/routes/content-manager/[model]/configure/constants.d.ts +7 -0
- package/dist/admin/src/routes/content-manager/[model]/constants.d.ts +71 -0
- package/dist/admin/src/routes/purchase-review-workflows.d.ts +2 -0
- package/dist/admin/src/routes/settings/:id.d.ts +2 -0
- package/dist/admin/src/routes/settings/components/AddStage.d.ts +2 -0
- package/dist/admin/src/routes/settings/components/Layout.d.ts +12 -0
- package/dist/admin/src/routes/settings/components/StageDragPreview.d.ts +6 -0
- package/dist/admin/src/routes/settings/components/Stages.d.ts +12 -0
- package/dist/admin/src/routes/settings/components/WorkflowAttributes.d.ts +6 -0
- package/dist/admin/src/routes/settings/constants.d.ts +2 -0
- package/dist/admin/src/routes/settings/hooks/useDragAndDrop.d.ts +51 -0
- package/dist/admin/src/routes/settings/hooks/useKeyboardDragAndDrop.d.ts +14 -0
- package/dist/admin/src/routes/settings/hooks/useReviewWorkflows.d.ts +25 -0
- package/dist/admin/src/routes/settings/index.d.ts +3 -0
- package/dist/admin/src/services/admin.d.ts +5 -0
- package/dist/admin/src/services/api.d.ts +2 -0
- package/dist/admin/src/services/content-manager.d.ts +38 -0
- package/dist/admin/src/services/settings.d.ts +13 -0
- package/dist/admin/src/utils/api.d.ts +23 -0
- package/dist/admin/src/utils/cm-hooks.d.ts +46 -0
- package/dist/admin/src/utils/colors.d.ts +9 -0
- package/dist/admin/src/utils/translations.d.ts +3 -0
- package/dist/admin/src/utils/users.d.ts +6 -0
- package/dist/server/index.js +8256 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +8257 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/src/bootstrap.d.ts +3 -0
- package/dist/server/src/bootstrap.d.ts.map +1 -0
- package/dist/server/src/config/actions.d.ts +19 -0
- package/dist/server/src/config/actions.d.ts.map +1 -0
- package/dist/server/src/constants/webhook-events.d.ts +6 -0
- package/dist/server/src/constants/webhook-events.d.ts.map +1 -0
- package/dist/server/src/constants/workflows.d.ts +34 -0
- package/dist/server/src/constants/workflows.d.ts.map +1 -0
- package/dist/server/src/content-types/index.d.ts +90 -0
- package/dist/server/src/content-types/index.d.ts.map +1 -0
- package/dist/server/src/content-types/workflow/index.d.ts +41 -0
- package/dist/server/src/content-types/workflow/index.d.ts.map +1 -0
- package/dist/server/src/content-types/workflow-stage/index.d.ts +49 -0
- package/dist/server/src/content-types/workflow-stage/index.d.ts.map +1 -0
- package/dist/server/src/controllers/assignees.d.ts +19 -0
- package/dist/server/src/controllers/assignees.d.ts.map +1 -0
- package/dist/server/src/controllers/index.d.ts +21 -0
- package/dist/server/src/controllers/index.d.ts.map +1 -0
- package/dist/server/src/controllers/stages.d.ts +39 -0
- package/dist/server/src/controllers/stages.d.ts.map +1 -0
- package/dist/server/src/controllers/workflows.d.ts +32 -0
- package/dist/server/src/controllers/workflows.d.ts.map +1 -0
- package/dist/server/src/destroy.d.ts +6 -0
- package/dist/server/src/destroy.d.ts.map +1 -0
- package/dist/server/src/index.d.ts +322 -0
- package/dist/server/src/index.d.ts.map +1 -0
- package/dist/server/src/middlewares/review-workflows.d.ts +17 -0
- package/dist/server/src/middlewares/review-workflows.d.ts.map +1 -0
- package/dist/server/src/migrations/handle-deleted-ct-in-workflows.d.ts +6 -0
- package/dist/server/src/migrations/handle-deleted-ct-in-workflows.d.ts.map +1 -0
- package/dist/server/src/migrations/multiple-workflows.d.ts +3 -0
- package/dist/server/src/migrations/multiple-workflows.d.ts.map +1 -0
- package/dist/server/src/migrations/set-stages-default-color.d.ts +6 -0
- package/dist/server/src/migrations/set-stages-default-color.d.ts.map +1 -0
- package/dist/server/src/migrations/set-stages-roles.d.ts +6 -0
- package/dist/server/src/migrations/set-stages-roles.d.ts.map +1 -0
- package/dist/server/src/migrations/set-workflow-default-name.d.ts +7 -0
- package/dist/server/src/migrations/set-workflow-default-name.d.ts.map +1 -0
- package/dist/server/src/migrations/shorten-stage-attribute.d.ts +6 -0
- package/dist/server/src/migrations/shorten-stage-attribute.d.ts.map +1 -0
- package/dist/server/src/register.d.ts +6 -0
- package/dist/server/src/register.d.ts.map +1 -0
- package/dist/server/src/routes/index.d.ts +21 -0
- package/dist/server/src/routes/index.d.ts.map +1 -0
- package/dist/server/src/routes/review-workflows.d.ts +19 -0
- package/dist/server/src/routes/review-workflows.d.ts.map +1 -0
- package/dist/server/src/routes/utils.d.ts +2 -0
- package/dist/server/src/routes/utils.d.ts.map +1 -0
- package/dist/server/src/services/assignees.d.ts +13 -0
- package/dist/server/src/services/assignees.d.ts.map +1 -0
- package/dist/server/src/services/document-service-middleware.d.ts +7 -0
- package/dist/server/src/services/document-service-middleware.d.ts.map +1 -0
- package/dist/server/src/services/index.d.ts +92 -0
- package/dist/server/src/services/index.d.ts.map +1 -0
- package/dist/server/src/services/metrics/index.d.ts +21 -0
- package/dist/server/src/services/metrics/index.d.ts.map +1 -0
- package/dist/server/src/services/metrics/weekly-metrics.d.ts +16 -0
- package/dist/server/src/services/metrics/weekly-metrics.d.ts.map +1 -0
- package/dist/server/src/services/stage-permissions.d.ts +11 -0
- package/dist/server/src/services/stage-permissions.d.ts.map +1 -0
- package/dist/server/src/services/stages.d.ts +46 -0
- package/dist/server/src/services/stages.d.ts.map +1 -0
- package/dist/server/src/services/validation.d.ts +26 -0
- package/dist/server/src/services/validation.d.ts.map +1 -0
- package/dist/server/src/services/workflow-content-types.d.ts +21 -0
- package/dist/server/src/services/workflow-content-types.d.ts.map +1 -0
- package/dist/server/src/services/workflows.d.ts +84 -0
- package/dist/server/src/services/workflows.d.ts.map +1 -0
- package/dist/server/src/utils/index.d.ts +17 -0
- package/dist/server/src/utils/index.d.ts.map +1 -0
- package/dist/server/src/utils/review-workflows.d.ts +31 -0
- package/dist/server/src/utils/review-workflows.d.ts.map +1 -0
- package/dist/server/src/validation/review-workflows.d.ts +31 -0
- package/dist/server/src/validation/review-workflows.d.ts.map +1 -0
- package/dist/shared/contracts/review-workflows.d.ts +152 -0
- package/dist/shared/contracts/review-workflows.d.ts.map +1 -0
- package/package.json +42 -19
- package/strapi-server.js +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"+BAwC4B,GAAG;AAA/B,wBAgBE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
reviewWorkflows: ({
|
|
3
|
+
uid: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
pluginName: string;
|
|
6
|
+
section: string;
|
|
7
|
+
category: string;
|
|
8
|
+
subCategory: string;
|
|
9
|
+
} | {
|
|
10
|
+
uid: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
pluginName: string;
|
|
13
|
+
section: string;
|
|
14
|
+
category?: undefined;
|
|
15
|
+
subCategory?: undefined;
|
|
16
|
+
})[];
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../server/src/config/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wBAyCE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-events.d.ts","sourceRoot":"","sources":["../../../../server/src/constants/webhook-events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,sCAAsC,CAAC;;;;AAEzE,wBAEE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const WORKFLOW_MODEL_UID = "plugin::review-workflows.workflow";
|
|
2
|
+
export declare const STAGE_MODEL_UID = "plugin::review-workflows.workflow-stage";
|
|
3
|
+
/**
|
|
4
|
+
* TODO: For V4 compatibility, the old UID was kept, when review workflows was in the admin package
|
|
5
|
+
*
|
|
6
|
+
* NOTE!: if you change this string you need to change it here too: strapi/packages/core/review-workflows/admin/src/routes/settings/components/Stages.tsx
|
|
7
|
+
*/
|
|
8
|
+
export declare const STAGE_TRANSITION_UID = "admin::review-workflows.stage.transition";
|
|
9
|
+
export declare const STAGE_DEFAULT_COLOR = "#4945FF";
|
|
10
|
+
export declare const ENTITY_STAGE_ATTRIBUTE = "strapi_stage";
|
|
11
|
+
export declare const ENTITY_ASSIGNEE_ATTRIBUTE = "strapi_assignee";
|
|
12
|
+
export declare const MAX_WORKFLOWS = 200;
|
|
13
|
+
export declare const MAX_STAGES_PER_WORKFLOW = 200;
|
|
14
|
+
export declare const ERRORS: {
|
|
15
|
+
WORKFLOW_WITHOUT_STAGES: string;
|
|
16
|
+
WORKFLOWS_LIMIT: string;
|
|
17
|
+
STAGES_LIMIT: string;
|
|
18
|
+
DUPLICATED_STAGE_NAME: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const WORKFLOW_POPULATE: {
|
|
21
|
+
stages: {
|
|
22
|
+
populate: {
|
|
23
|
+
permissions: {
|
|
24
|
+
fields: string[];
|
|
25
|
+
populate: {
|
|
26
|
+
role: {
|
|
27
|
+
fields: string[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../server/src/constants/workflows.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,sCAAsC,CAAC;AACtE,eAAO,MAAM,eAAe,4CAA4C,CAAC;AACzE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,6CAA6C,CAAC;AAE/E,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,sBAAsB,iBAAiB,CAAC;AACrD,eAAO,MAAM,yBAAyB,oBAAoB,CAAC;AAE3D,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,eAAO,MAAM,MAAM;;;;;CAOlB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAW7B,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
workflow: {
|
|
3
|
+
schema: {
|
|
4
|
+
collectionName: string;
|
|
5
|
+
info: {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
singularName: string;
|
|
9
|
+
pluralName: string;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
options: {};
|
|
13
|
+
pluginOptions: {
|
|
14
|
+
'content-manager': {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
};
|
|
17
|
+
'content-type-builder': {
|
|
18
|
+
visible: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
attributes: {
|
|
22
|
+
name: {
|
|
23
|
+
type: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
unique: boolean;
|
|
26
|
+
};
|
|
27
|
+
stages: {
|
|
28
|
+
type: string;
|
|
29
|
+
target: string;
|
|
30
|
+
relation: string;
|
|
31
|
+
mappedBy: string;
|
|
32
|
+
};
|
|
33
|
+
contentTypes: {
|
|
34
|
+
type: string;
|
|
35
|
+
required: boolean;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
'workflow-stage': {
|
|
42
|
+
schema: {
|
|
43
|
+
collectionName: string;
|
|
44
|
+
info: {
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
singularName: string;
|
|
48
|
+
pluralName: string;
|
|
49
|
+
displayName: string;
|
|
50
|
+
};
|
|
51
|
+
options: {
|
|
52
|
+
version: string;
|
|
53
|
+
};
|
|
54
|
+
pluginOptions: {
|
|
55
|
+
'content-manager': {
|
|
56
|
+
visible: boolean;
|
|
57
|
+
};
|
|
58
|
+
'content-type-builder': {
|
|
59
|
+
visible: boolean;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
attributes: {
|
|
63
|
+
name: {
|
|
64
|
+
type: string;
|
|
65
|
+
configurable: boolean;
|
|
66
|
+
};
|
|
67
|
+
color: {
|
|
68
|
+
type: string;
|
|
69
|
+
configurable: boolean;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
workflow: {
|
|
73
|
+
type: string;
|
|
74
|
+
target: string;
|
|
75
|
+
relation: string;
|
|
76
|
+
inversedBy: string;
|
|
77
|
+
configurable: boolean;
|
|
78
|
+
};
|
|
79
|
+
permissions: {
|
|
80
|
+
type: string;
|
|
81
|
+
target: string;
|
|
82
|
+
relation: string;
|
|
83
|
+
configurable: boolean;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export default _default;
|
|
90
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/content-types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
schema: {
|
|
3
|
+
collectionName: string;
|
|
4
|
+
info: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
singularName: string;
|
|
8
|
+
pluralName: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
options: {};
|
|
12
|
+
pluginOptions: {
|
|
13
|
+
'content-manager': {
|
|
14
|
+
visible: boolean;
|
|
15
|
+
};
|
|
16
|
+
'content-type-builder': {
|
|
17
|
+
visible: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
attributes: {
|
|
21
|
+
name: {
|
|
22
|
+
type: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
unique: boolean;
|
|
25
|
+
};
|
|
26
|
+
stages: {
|
|
27
|
+
type: string;
|
|
28
|
+
target: string;
|
|
29
|
+
relation: string;
|
|
30
|
+
mappedBy: string;
|
|
31
|
+
};
|
|
32
|
+
contentTypes: {
|
|
33
|
+
type: string;
|
|
34
|
+
required: boolean;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/content-types/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAsCE"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
schema: {
|
|
3
|
+
collectionName: string;
|
|
4
|
+
info: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
singularName: string;
|
|
8
|
+
pluralName: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
options: {
|
|
12
|
+
version: string;
|
|
13
|
+
};
|
|
14
|
+
pluginOptions: {
|
|
15
|
+
'content-manager': {
|
|
16
|
+
visible: boolean;
|
|
17
|
+
};
|
|
18
|
+
'content-type-builder': {
|
|
19
|
+
visible: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
attributes: {
|
|
23
|
+
name: {
|
|
24
|
+
type: string;
|
|
25
|
+
configurable: boolean;
|
|
26
|
+
};
|
|
27
|
+
color: {
|
|
28
|
+
type: string;
|
|
29
|
+
configurable: boolean;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
workflow: {
|
|
33
|
+
type: string;
|
|
34
|
+
target: string;
|
|
35
|
+
relation: string;
|
|
36
|
+
inversedBy: string;
|
|
37
|
+
configurable: boolean;
|
|
38
|
+
};
|
|
39
|
+
permissions: {
|
|
40
|
+
type: string;
|
|
41
|
+
target: string;
|
|
42
|
+
relation: string;
|
|
43
|
+
configurable: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/content-types/workflow-stage/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBA8CE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Context } from 'koa';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
/**
|
|
4
|
+
* Updates an entity's assignee.
|
|
5
|
+
* @async
|
|
6
|
+
* @param {Object} ctx - The Koa context object.
|
|
7
|
+
* @param {Object} ctx.params - An object containing the parameters from the request URL.
|
|
8
|
+
* @param {string} ctx.params.model_uid - The model UID of the entity.
|
|
9
|
+
* @param {string} ctx.params.id - The ID of the entity to update.
|
|
10
|
+
* @param {Object} ctx.request.body.data - Optional data object containing the new assignee ID for the entity.
|
|
11
|
+
* @param {string} ctx.request.body.data.id - The ID of the new assignee for the entity.
|
|
12
|
+
* @throws {ApplicationError} If review workflows is not activated on the specified model UID.
|
|
13
|
+
* @throws {ValidationError} If the `data` object in the request body fails to pass validation.
|
|
14
|
+
* @returns {Promise<void>} A promise that resolves when the entity's assignee has been updated.
|
|
15
|
+
*/
|
|
16
|
+
updateEntity(ctx: Context): Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=assignees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignees.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/assignees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;;IAMjC;;;;;;;;;;;;OAYG;sBACqB,OAAO;;AAdjC,wBA4CE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="koa" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
workflows: {
|
|
4
|
+
create(ctx: import("koa").Context): Promise<void>;
|
|
5
|
+
update(ctx: import("koa").Context): Promise<import("koa").Context | undefined>;
|
|
6
|
+
delete(ctx: import("koa").Context): Promise<import("koa").Context | undefined>;
|
|
7
|
+
find(ctx: import("koa").Context): Promise<void>;
|
|
8
|
+
findById(ctx: import("koa").Context): Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
stages: {
|
|
11
|
+
find(ctx: import("koa").Context): Promise<void>;
|
|
12
|
+
findById(ctx: import("koa").Context): Promise<void>;
|
|
13
|
+
updateEntity(ctx: import("koa").Context): Promise<void>;
|
|
14
|
+
listAvailableStages(ctx: import("koa").Context): Promise<import("koa").Context | undefined>;
|
|
15
|
+
};
|
|
16
|
+
assignees: {
|
|
17
|
+
updateEntity(ctx: import("koa").Context): Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,wBAIE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Context } from 'koa';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
/**
|
|
4
|
+
* List all stages
|
|
5
|
+
* @param {import('koa').BaseContext} ctx - koa context
|
|
6
|
+
*/
|
|
7
|
+
find(ctx: Context): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Get one stage
|
|
10
|
+
* @param {import('koa').BaseContext} ctx - koa context
|
|
11
|
+
*/
|
|
12
|
+
findById(ctx: Context): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Updates an entity's stage.
|
|
15
|
+
* @async
|
|
16
|
+
* @param {Object} ctx - The Koa context object.
|
|
17
|
+
* @param {Object} ctx.params - An object containing the parameters from the request URL.
|
|
18
|
+
* @param {string} ctx.params.model_uid - The model UID of the entity.
|
|
19
|
+
* @param {string} ctx.params.id - The ID of the entity to update.
|
|
20
|
+
* @param {Object} ctx.request.body.data - Optional data object containing the new stage ID for the entity.
|
|
21
|
+
* @param {string} ctx.request.body.data.id - The ID of the new stage for the entity.
|
|
22
|
+
* @throws {ApplicationError} If review workflows is not activated on the specified model UID.
|
|
23
|
+
* @throws {ValidationError} If the `data` object in the request body fails to pass validation.
|
|
24
|
+
* @returns {Promise<void>} A promise that resolves when the entity's stage has been updated.
|
|
25
|
+
*/
|
|
26
|
+
updateEntity(ctx: Context): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* List all the stages that are available for a user to transition an entity to.
|
|
29
|
+
* If the user has permission to change the current stage of the entity every other stage in the workflow is returned
|
|
30
|
+
* @async
|
|
31
|
+
* @param {*} ctx
|
|
32
|
+
* @param {string} ctx.params.model_uid - The model UID of the entity.
|
|
33
|
+
* @param {string} ctx.params.id - The ID of the entity.
|
|
34
|
+
* @throws {ApplicationError} If review workflows is not activated on the specified model UID.
|
|
35
|
+
*/
|
|
36
|
+
listAvailableStages(ctx: Context): Promise<Context | undefined>;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=stages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/stages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;;IA4BjC;;;OAGG;cACa,OAAO;IAevB;;;OAGG;kBACiB,OAAO;IAgB3B;;;;;;;;;;;;OAYG;sBACqB,OAAO;IAiD/B;;;;;;;;OAQG;6BAC4B,OAAO;;AA/GxC,wBA2KE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Context } from 'koa';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
/**
|
|
4
|
+
* Create a new workflow
|
|
5
|
+
* @param {import('koa').BaseContext} ctx - koa context
|
|
6
|
+
*/
|
|
7
|
+
create(ctx: Context): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Update a workflow
|
|
10
|
+
* @param {import('koa').BaseContext} ctx - koa context
|
|
11
|
+
*/
|
|
12
|
+
update(ctx: Context): Promise<Context | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Delete a workflow
|
|
15
|
+
* @param {import('koa').BaseContext} ctx - koa context
|
|
16
|
+
*/
|
|
17
|
+
delete(ctx: Context): Promise<Context | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* List all workflows
|
|
20
|
+
* @param {import('koa').BaseContext} ctx - koa context
|
|
21
|
+
*/
|
|
22
|
+
find(ctx: Context): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Get one workflow based on its id contained in request parameters
|
|
25
|
+
* Returns count of workflows in meta, used to prevent workflow edition when
|
|
26
|
+
* max workflow count is reached for the current plan
|
|
27
|
+
* @param {import('koa').BaseContext} ctx - koa context
|
|
28
|
+
*/
|
|
29
|
+
findById(ctx: Context): Promise<void>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;;IAuCjC;;;OAGG;gBACe,OAAO;IAuBzB;;;OAGG;gBACe,OAAO;IAmCzB;;;OAGG;gBACe,OAAO;IAwBzB;;;OAGG;cACa,OAAO;IAqBvB;;;;;OAKG;kBACiB,OAAO;;AA9H7B,wBAmJE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destroy.d.ts","sourceRoot":"","sources":["../../../server/src/destroy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCAER;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;AAAzD,wBAAiE"}
|