@strapi/review-workflows 5.3.0 → 5.4.0

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.
@@ -1 +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;;IAOjC;;;;;;;;;;;;OAYG;sBACqB,OAAO;;AAdjC,wBAiEE"}
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;;IAOjC;;;;;;;;;;;;OAYG;sBACqB,OAAO;;AAdjC,wBA4DE"}
@@ -1 +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;IAsD/B;;;;;;;;OAQG;6BAC4B,OAAO;;AApHxC,wBAiLE"}
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,wBA4KE"}
@@ -132,7 +132,12 @@ declare const _default: {
132
132
  deleteStagePermissions(stages: any): Promise<void>;
133
133
  count({ workflowId }?: any): Promise<number>;
134
134
  replaceStages(srcStages: any, destStages: any, contentTypesToMigrate?: never[]): Promise<any>;
135
- updateEntity(documentId: string, locale: string, model: import("@strapi/types/dist/uid").ContentType, stageId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
135
+ updateEntity(entityToUpdate: {
136
+ id: string | number;
137
+ documentId: string;
138
+ locale: string;
139
+ updatedAt: string;
140
+ }, model: import("@strapi/types/dist/uid").ContentType, stageId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
136
141
  updateEntitiesStage(contentTypeUID: any, { fromStageId, toStageId }: any): Promise<number | number[]>;
137
142
  deleteAllEntitiesStage(contentTypeUID: any): Promise<number>;
138
143
  };
@@ -147,9 +152,13 @@ declare const _default: {
147
152
  assignees: ({ strapi }: {
148
153
  strapi: import("@strapi/types/dist/core").Strapi;
149
154
  }) => {
150
- findEntityAssigneeId(id: string, model: import("@strapi/types/dist/uid").ContentType): Promise<any>;
151
- updateEntityAssignee(documentId: string, locale: string, model: import("@strapi/types/dist/uid").ContentType, assigneeId: string): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
152
- deleteEntityAssignee(documentId: string, locale: string, model: import("@strapi/types/dist/uid").ContentType): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
155
+ findEntityAssigneeId(id: string | number, model: import("@strapi/types/dist/uid").ContentType): Promise<any>;
156
+ updateEntityAssignee(entityToUpdate: {
157
+ id: string | number;
158
+ documentId: string;
159
+ locale: string;
160
+ updatedAt: string;
161
+ }, model: import("@strapi/types/dist/uid").ContentType, assigneeId: string | null): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
153
162
  };
154
163
  validation: ({ strapi }: {
155
164
  strapi: import("@strapi/types/dist/core").Strapi;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,wBAA2B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,wBAA2B"}
@@ -1,13 +1,17 @@
1
- import type { Core, UID } from '@strapi/types';
1
+ import type { Core, UID, Modules } from '@strapi/types';
2
2
  declare const _default: ({ strapi }: {
3
3
  strapi: Core.Strapi;
4
4
  }) => {
5
- findEntityAssigneeId(id: string, model: UID.ContentType): Promise<any>;
5
+ findEntityAssigneeId(id: string | number, model: UID.ContentType): Promise<any>;
6
6
  /**
7
7
  * Update the assignee of an entity
8
8
  */
9
- updateEntityAssignee(documentId: string, locale: string, model: UID.ContentType, assigneeId: string): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
10
- deleteEntityAssignee(documentId: string, locale: string, model: UID.ContentType): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
9
+ updateEntityAssignee(entityToUpdate: {
10
+ id: number | string;
11
+ documentId: string;
12
+ locale: string;
13
+ updatedAt: string;
14
+ }, model: UID.ContentType, assigneeId: string | null): Promise<Modules.Documents.AnyDocument | null>;
11
15
  };
12
16
  export default _default;
13
17
  //# sourceMappingURL=assignees.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assignees.d.ts","sourceRoot":"","sources":["../../../../server/src/services/assignees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;qCAQnB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;6BAIhB,MAAM,SAAS,IAAI,WAAW;IAU7D;;OAEG;qCAEW,MAAM,UACV,MAAM,SACP,IAAI,WAAW,cACV,MAAM;qCAuBmB,MAAM,UAAU,MAAM,SAAS,IAAI,WAAW;;AA5CzF,wBAwDE"}
1
+ {"version":3,"file":"assignees.d.ts","sourceRoot":"","sources":["../../../../server/src/services/assignees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;qCAQ5B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;6BAIhB,MAAM,GAAG,MAAM,SAAS,IAAI,WAAW;IAUtE;;OAEG;yCAEe;QACd,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,SACM,IAAI,WAAW,cACV,MAAM,GAAG,IAAI;;AAzB/B,wBA8DE"}
@@ -29,7 +29,12 @@ declare const _default: {
29
29
  deleteStagePermissions(stages: any): Promise<void>;
30
30
  count({ workflowId }?: any): Promise<number>;
31
31
  replaceStages(srcStages: any, destStages: any, contentTypesToMigrate?: never[]): Promise<any>;
32
- updateEntity(documentId: string, locale: string, model: import("@strapi/types/dist/uid").ContentType, stageId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
32
+ updateEntity(entityToUpdate: {
33
+ id: string | number;
34
+ documentId: string;
35
+ locale: string;
36
+ updatedAt: string;
37
+ }, model: import("@strapi/types/dist/uid").ContentType, stageId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
33
38
  updateEntitiesStage(contentTypeUID: any, { fromStageId, toStageId }: any): Promise<number | number[]>;
34
39
  deleteAllEntitiesStage(contentTypeUID: any): Promise<number>;
35
40
  };
@@ -44,9 +49,13 @@ declare const _default: {
44
49
  assignees: ({ strapi }: {
45
50
  strapi: import("@strapi/types/dist/core").Strapi;
46
51
  }) => {
47
- findEntityAssigneeId(id: string, model: import("@strapi/types/dist/uid").ContentType): Promise<any>;
48
- updateEntityAssignee(documentId: string, locale: string, model: import("@strapi/types/dist/uid").ContentType, assigneeId: string): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
49
- deleteEntityAssignee(documentId: string, locale: string, model: import("@strapi/types/dist/uid").ContentType): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
52
+ findEntityAssigneeId(id: string | number, model: import("@strapi/types/dist/uid").ContentType): Promise<any>;
53
+ updateEntityAssignee(entityToUpdate: {
54
+ id: string | number;
55
+ documentId: string;
56
+ locale: string;
57
+ updatedAt: string;
58
+ }, model: import("@strapi/types/dist/uid").ContentType, assigneeId: string | null): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
50
59
  };
51
60
  validation: ({ strapi }: {
52
61
  strapi: import("@strapi/types/dist/core").Strapi;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
@@ -14,7 +14,12 @@ declare const _default: ({ strapi }: {
14
14
  /**
15
15
  * Update the stage of an entity
16
16
  */
17
- updateEntity(documentId: string, locale: string, model: UID.ContentType, stageId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
17
+ updateEntity(entityToUpdate: {
18
+ id: number | string;
19
+ documentId: string;
20
+ locale: string;
21
+ updatedAt: string;
22
+ }, model: UID.ContentType, stageId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
18
23
  /**
19
24
  * Updates entity stages of a content type:
20
25
  * - If fromStageId is undefined, all entities with an existing stage will be assigned the new stage
@@ -1 +1 @@
1
- {"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../../../../server/src/services/stages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;qCAWnB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;mCAMhB,GAAG;iBAOrB,MAAM,GAAG,MAAM,iBAAgB,GAAG;2BAOlB,GAAG,eAAc,GAAG;qBA+C1B,GAAG,aAAa,GAAG;kBA8BtB,GAAG;uBAaE,GAAG;mCAQS,GAAG;2BAMlB,GAAG;6BAYM,GAAG,cAAc,GAAG;IAkDnD;;OAEG;6BAC4B,MAAM,UAAU,MAAM,SAAS,IAAI,WAAW,WAAW,GAAG;IAuB3F;;;;;;;;;;;;;OAaG;wCACuC,GAAG,8BAA8B,GAAG;IAwC9E;;;;OAIG;2CAC0C,GAAG;;AA/QpD,wBAyRE"}
1
+ {"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../../../../server/src/services/stages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;qCAWnB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;mCAMhB,GAAG;iBAOrB,MAAM,GAAG,MAAM,iBAAgB,GAAG;2BAOlB,GAAG,eAAc,GAAG;qBA+C1B,GAAG,aAAa,GAAG;kBA8BtB,GAAG;uBAaE,GAAG;mCAQS,GAAG;2BAMlB,GAAG;6BAYM,GAAG,cAAc,GAAG;IAkDnD;;OAEG;iCAEe;QACd,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,SACM,IAAI,WAAW,WACb,GAAG;IAoCd;;;;;;;;;;;;;OAaG;wCACuC,GAAG,8BAA8B,GAAG;IAwC9E;;;;OAIG;2CAC0C,GAAG;;AApSpD,wBA8SE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/review-workflows",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "Review workflows for your content",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,7 +55,7 @@
55
55
  "@reduxjs/toolkit": "1.9.7",
56
56
  "@strapi/design-system": "2.0.0-rc.12",
57
57
  "@strapi/icons": "2.0.0-rc.12",
58
- "@strapi/utils": "5.3.0",
58
+ "@strapi/utils": "5.4.0",
59
59
  "fractional-indexing": "3.2.0",
60
60
  "react-dnd": "16.0.1",
61
61
  "react-dnd-html5-backend": "16.0.1",
@@ -65,10 +65,10 @@
65
65
  "yup": "0.32.9"
66
66
  },
67
67
  "devDependencies": {
68
- "@strapi/admin": "5.3.0",
69
- "@strapi/content-manager": "5.3.0",
68
+ "@strapi/admin": "5.4.0",
69
+ "@strapi/content-manager": "5.4.0",
70
70
  "@strapi/pack-up": "5.0.0",
71
- "@strapi/types": "5.3.0",
71
+ "@strapi/types": "5.4.0",
72
72
  "@strapi/utils": "workspace:*",
73
73
  "@testing-library/react": "15.0.7",
74
74
  "msw": "1.3.0",
@@ -78,8 +78,8 @@
78
78
  "styled-components": "6.1.8"
79
79
  },
80
80
  "peerDependencies": {
81
- "@strapi/admin": "^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rc",
82
- "@strapi/content-manager": "^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rc",
81
+ "@strapi/admin": "^5.0.0",
82
+ "@strapi/content-manager": "^5.0.0",
83
83
  "react": "^17.0.0 || ^18.0.0",
84
84
  "react-dom": "^17.0.0 || ^18.0.0",
85
85
  "react-router-dom": "^6.0.0",
@@ -96,5 +96,5 @@
96
96
  "displayName": "Review Workflows",
97
97
  "required": true
98
98
  },
99
- "gitHead": "a83471de7de7757b0e50c1b4cbb84b01028ba5d1"
99
+ "gitHead": "186981dd710bedbe48a84bd819f95f9764da61e1"
100
100
  }