@strapi/content-manager 0.0.0-experimental.e60ec1829240dae21c1e1d29076681c322288813 → 0.0.0-experimental.f31889311d753b5f7d95198ae84d8fce1d156cd6

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 (175) hide show
  1. package/LICENSE +18 -3
  2. package/dist/_chunks/{CardDragPreview-DSVYodBX.js → CardDragPreview-C0QyJgRA.js} +10 -14
  3. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +1 -0
  4. package/dist/_chunks/{CardDragPreview-ikSG4M46.mjs → CardDragPreview-DOxamsuj.mjs} +7 -9
  5. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -0
  6. package/dist/_chunks/{ComponentConfigurationPage-DjWJdz6Y.js → ComponentConfigurationPage-BNxtMIfV.js} +3 -3
  7. package/dist/_chunks/{ComponentConfigurationPage-DjWJdz6Y.js.map → ComponentConfigurationPage-BNxtMIfV.js.map} +1 -1
  8. package/dist/_chunks/{ComponentConfigurationPage-BPvzFjM7.mjs → ComponentConfigurationPage-BWOQWCv2.mjs} +3 -3
  9. package/dist/_chunks/{ComponentConfigurationPage-BPvzFjM7.mjs.map → ComponentConfigurationPage-BWOQWCv2.mjs.map} +1 -1
  10. package/dist/_chunks/{ComponentIcon-BBQsYCVn.js → ComponentIcon-BXdiCGQp.js} +8 -2
  11. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +1 -0
  12. package/dist/_chunks/{ComponentIcon-BOFnK76n.mjs → ComponentIcon-u4bIXTFY.mjs} +9 -3
  13. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +1 -0
  14. package/dist/_chunks/{EditConfigurationPage-Dmv83RlS.js → EditConfigurationPage-D340bYlT.js} +3 -3
  15. package/dist/_chunks/{EditConfigurationPage-Dmv83RlS.js.map → EditConfigurationPage-D340bYlT.js.map} +1 -1
  16. package/dist/_chunks/{EditConfigurationPage-DacbqQ_f.mjs → EditConfigurationPage-GTp-Ucnw.mjs} +3 -3
  17. package/dist/_chunks/{EditConfigurationPage-DacbqQ_f.mjs.map → EditConfigurationPage-GTp-Ucnw.mjs.map} +1 -1
  18. package/dist/_chunks/{EditViewPage-DDS6H9HO.mjs → EditViewPage-BVMS5hT-.mjs} +47 -47
  19. package/dist/_chunks/EditViewPage-BVMS5hT-.mjs.map +1 -0
  20. package/dist/_chunks/{EditViewPage-DvNpQkam.js → EditViewPage-CXkmnAvI.js} +46 -48
  21. package/dist/_chunks/EditViewPage-CXkmnAvI.js.map +1 -0
  22. package/dist/_chunks/{Field-DmVKIAOo.js → Field-Ibi32diw.js} +953 -782
  23. package/dist/_chunks/Field-Ibi32diw.js.map +1 -0
  24. package/dist/_chunks/{Field-6gvGdPBV.mjs → Field-nNgv5bpd.mjs} +901 -729
  25. package/dist/_chunks/Field-nNgv5bpd.mjs.map +1 -0
  26. package/dist/_chunks/{Form-CPZC9vWa.js → Form-Dhnh34ym.js} +39 -38
  27. package/dist/_chunks/Form-Dhnh34ym.js.map +1 -0
  28. package/dist/_chunks/{Form-DW6K1IH-.mjs → Form-DodJsI2A.mjs} +39 -37
  29. package/dist/_chunks/Form-DodJsI2A.mjs.map +1 -0
  30. package/dist/_chunks/{History-DeAPlvtv.js → History-C9auUkDi.js} +149 -56
  31. package/dist/_chunks/History-C9auUkDi.js.map +1 -0
  32. package/dist/_chunks/{History-Dmr9fmUA.mjs → History-CKCSQXz_.mjs} +148 -54
  33. package/dist/_chunks/History-CKCSQXz_.mjs.map +1 -0
  34. package/dist/_chunks/{ListConfigurationPage-DPCwW5Vr.js → ListConfigurationPage-Bg4rWUjX.js} +58 -59
  35. package/dist/_chunks/ListConfigurationPage-Bg4rWUjX.js.map +1 -0
  36. package/dist/_chunks/{ListConfigurationPage-DhwvYcNv.mjs → ListConfigurationPage-CKEC4ttG.mjs} +54 -54
  37. package/dist/_chunks/ListConfigurationPage-CKEC4ttG.mjs.map +1 -0
  38. package/dist/_chunks/{ListViewPage-BtAwuYLE.mjs → ListViewPage-B7_WJUjG.mjs} +93 -104
  39. package/dist/_chunks/ListViewPage-B7_WJUjG.mjs.map +1 -0
  40. package/dist/_chunks/{ListViewPage-5ySZ-VUs.js → ListViewPage-C2gIeYHG.js} +98 -109
  41. package/dist/_chunks/ListViewPage-C2gIeYHG.js.map +1 -0
  42. package/dist/_chunks/{NoContentTypePage-DSPxnxxp.mjs → NoContentTypePage-Ckem6Ll6.mjs} +3 -3
  43. package/dist/_chunks/NoContentTypePage-Ckem6Ll6.mjs.map +1 -0
  44. package/dist/_chunks/{NoContentTypePage-DOC_yWOf.js → NoContentTypePage-DqgdUfyn.js} +3 -3
  45. package/dist/_chunks/NoContentTypePage-DqgdUfyn.js.map +1 -0
  46. package/dist/_chunks/{NoPermissionsPage-UWDC-1Tw.mjs → NoPermissionsPage-BO-GEjA4.mjs} +2 -2
  47. package/dist/_chunks/{NoPermissionsPage-UWDC-1Tw.mjs.map → NoPermissionsPage-BO-GEjA4.mjs.map} +1 -1
  48. package/dist/_chunks/{NoPermissionsPage-Dwu8rRJu.js → NoPermissionsPage-CF29Q-sW.js} +2 -2
  49. package/dist/_chunks/{NoPermissionsPage-Dwu8rRJu.js.map → NoPermissionsPage-CF29Q-sW.js.map} +1 -1
  50. package/dist/_chunks/{Relations-CgWtgnPe.js → Relations-C0uC9J4f.js} +70 -61
  51. package/dist/_chunks/Relations-C0uC9J4f.js.map +1 -0
  52. package/dist/_chunks/{Relations-J8cscLlR.mjs → Relations-DItV5eow.mjs} +66 -56
  53. package/dist/_chunks/Relations-DItV5eow.mjs.map +1 -0
  54. package/dist/_chunks/{en-MBPul9Su.mjs → en-BrCTWlZv.mjs} +11 -4
  55. package/dist/_chunks/{en-MBPul9Su.mjs.map → en-BrCTWlZv.mjs.map} +1 -1
  56. package/dist/_chunks/{en-C-V1_90f.js → en-uOUIxfcQ.js} +11 -4
  57. package/dist/_chunks/{en-C-V1_90f.js.map → en-uOUIxfcQ.js.map} +1 -1
  58. package/dist/_chunks/{index-C6AH2hEl.js → index-Dd0nXyJF.js} +1649 -905
  59. package/dist/_chunks/index-Dd0nXyJF.js.map +1 -0
  60. package/dist/_chunks/{index-CwRRo1V9.mjs → index-DrNe6ctw.mjs} +1671 -926
  61. package/dist/_chunks/index-DrNe6ctw.mjs.map +1 -0
  62. package/dist/_chunks/{layout-jIDzX0Fp.mjs → layout-B3ez7kvr.mjs} +43 -26
  63. package/dist/_chunks/layout-B3ez7kvr.mjs.map +1 -0
  64. package/dist/_chunks/{layout-B_SXLhqf.js → layout-CLLtt_5O.js} +43 -28
  65. package/dist/_chunks/layout-CLLtt_5O.js.map +1 -0
  66. package/dist/_chunks/{relations-CuvIgCqI.mjs → relations-B0hlsUU_.mjs} +2 -2
  67. package/dist/_chunks/{relations-CuvIgCqI.mjs.map → relations-B0hlsUU_.mjs.map} +1 -1
  68. package/dist/_chunks/{relations-iBMa_OFG.js → relations-bRxcNv1q.js} +2 -2
  69. package/dist/_chunks/{relations-iBMa_OFG.js.map → relations-bRxcNv1q.js.map} +1 -1
  70. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +1 -1
  71. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +1 -1
  72. package/dist/_chunks/usePrev-B9w_-eYc.js +15 -0
  73. package/dist/_chunks/usePrev-B9w_-eYc.js.map +1 -0
  74. package/dist/_chunks/usePrev-DH6iah0A.mjs +16 -0
  75. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +1 -0
  76. package/dist/admin/index.js +2 -1
  77. package/dist/admin/index.js.map +1 -1
  78. package/dist/admin/index.mjs +5 -4
  79. package/dist/admin/src/components/ComponentIcon.d.ts +6 -3
  80. package/dist/admin/src/content-manager.d.ts +3 -3
  81. package/dist/admin/src/exports.d.ts +1 -0
  82. package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
  83. package/dist/admin/src/history/index.d.ts +3 -0
  84. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  85. package/dist/admin/src/hooks/useDocument.d.ts +5 -8
  86. package/dist/admin/src/hooks/useDocumentActions.d.ts +24 -3
  87. package/dist/admin/src/hooks/useDocumentLayout.d.ts +2 -2
  88. package/dist/admin/src/hooks/useDragAndDrop.d.ts +4 -4
  89. package/dist/admin/src/hooks/useKeyboardDragAndDrop.d.ts +1 -1
  90. package/dist/admin/src/index.d.ts +1 -0
  91. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +11 -4
  92. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksInput.d.ts +3 -3
  93. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +4 -0
  94. package/dist/admin/src/pages/EditView/components/FormInputs/Component/Input.d.ts +2 -2
  95. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentCategory.d.ts +3 -5
  96. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +1 -1
  97. package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +30 -18
  98. package/dist/admin/src/pages/EditView/components/FormInputs/UID.d.ts +2 -2
  99. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +3 -49
  100. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/Field.d.ts +2 -2
  101. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +59 -52
  102. package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +2 -10
  103. package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
  104. package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
  105. package/dist/admin/src/pages/ListView/components/BulkActions/PublishAction.d.ts +9 -26
  106. package/dist/admin/src/services/api.d.ts +2 -3
  107. package/dist/admin/src/services/components.d.ts +2 -2
  108. package/dist/admin/src/services/contentTypes.d.ts +5 -5
  109. package/dist/admin/src/services/documents.d.ts +29 -17
  110. package/dist/admin/src/services/init.d.ts +2 -2
  111. package/dist/admin/src/services/relations.d.ts +3 -3
  112. package/dist/admin/src/services/uid.d.ts +3 -3
  113. package/dist/admin/src/utils/api.d.ts +4 -18
  114. package/dist/admin/src/utils/validation.d.ts +1 -6
  115. package/dist/server/index.js +392 -261
  116. package/dist/server/index.js.map +1 -1
  117. package/dist/server/index.mjs +400 -269
  118. package/dist/server/index.mjs.map +1 -1
  119. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  120. package/dist/server/src/controllers/single-types.d.ts.map +1 -1
  121. package/dist/server/src/controllers/uid.d.ts.map +1 -1
  122. package/dist/server/src/controllers/utils/metadata.d.ts +8 -0
  123. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -0
  124. package/dist/server/src/controllers/validation/dimensions.d.ts +11 -0
  125. package/dist/server/src/controllers/validation/dimensions.d.ts.map +1 -0
  126. package/dist/server/src/controllers/validation/index.d.ts +1 -1
  127. package/dist/server/src/history/services/history.d.ts.map +1 -1
  128. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  129. package/dist/server/src/history/services/utils.d.ts +1 -1
  130. package/dist/server/src/history/services/utils.d.ts.map +1 -1
  131. package/dist/server/src/index.d.ts +18 -39
  132. package/dist/server/src/index.d.ts.map +1 -1
  133. package/dist/server/src/services/document-manager.d.ts +13 -12
  134. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  135. package/dist/server/src/services/document-metadata.d.ts +8 -29
  136. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  137. package/dist/server/src/services/index.d.ts +18 -39
  138. package/dist/server/src/services/index.d.ts.map +1 -1
  139. package/dist/server/src/services/utils/populate.d.ts +8 -1
  140. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  141. package/dist/shared/contracts/collection-types.d.ts +14 -6
  142. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  143. package/dist/shared/contracts/relations.d.ts +2 -2
  144. package/dist/shared/contracts/relations.d.ts.map +1 -1
  145. package/package.json +13 -14
  146. package/dist/_chunks/CardDragPreview-DSVYodBX.js.map +0 -1
  147. package/dist/_chunks/CardDragPreview-ikSG4M46.mjs.map +0 -1
  148. package/dist/_chunks/ComponentIcon-BBQsYCVn.js.map +0 -1
  149. package/dist/_chunks/ComponentIcon-BOFnK76n.mjs.map +0 -1
  150. package/dist/_chunks/EditViewPage-DDS6H9HO.mjs.map +0 -1
  151. package/dist/_chunks/EditViewPage-DvNpQkam.js.map +0 -1
  152. package/dist/_chunks/Field-6gvGdPBV.mjs.map +0 -1
  153. package/dist/_chunks/Field-DmVKIAOo.js.map +0 -1
  154. package/dist/_chunks/Form-CPZC9vWa.js.map +0 -1
  155. package/dist/_chunks/Form-DW6K1IH-.mjs.map +0 -1
  156. package/dist/_chunks/History-DeAPlvtv.js.map +0 -1
  157. package/dist/_chunks/History-Dmr9fmUA.mjs.map +0 -1
  158. package/dist/_chunks/ListConfigurationPage-DPCwW5Vr.js.map +0 -1
  159. package/dist/_chunks/ListConfigurationPage-DhwvYcNv.mjs.map +0 -1
  160. package/dist/_chunks/ListViewPage-5ySZ-VUs.js.map +0 -1
  161. package/dist/_chunks/ListViewPage-BtAwuYLE.mjs.map +0 -1
  162. package/dist/_chunks/NoContentTypePage-DOC_yWOf.js.map +0 -1
  163. package/dist/_chunks/NoContentTypePage-DSPxnxxp.mjs.map +0 -1
  164. package/dist/_chunks/Relations-CgWtgnPe.js.map +0 -1
  165. package/dist/_chunks/Relations-J8cscLlR.mjs.map +0 -1
  166. package/dist/_chunks/index-C6AH2hEl.js.map +0 -1
  167. package/dist/_chunks/index-CwRRo1V9.mjs.map +0 -1
  168. package/dist/_chunks/layout-B_SXLhqf.js.map +0 -1
  169. package/dist/_chunks/layout-jIDzX0Fp.mjs.map +0 -1
  170. package/dist/_chunks/urls-CbOsUOoW.mjs +0 -7
  171. package/dist/_chunks/urls-CbOsUOoW.mjs.map +0 -1
  172. package/dist/_chunks/urls-DzZya_gm.js +0 -6
  173. package/dist/_chunks/urls-DzZya_gm.js.map +0 -1
  174. package/dist/server/src/controllers/utils/dimensions.d.ts +0 -5
  175. package/dist/server/src/controllers/utils/dimensions.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"collection-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/collection-types.ts"],"names":[],"mappings":";cA+GkB,GAAG;iBAuDA,GAAG;gBAuDJ,GAAG;gBA2BH,GAAG;eAaJ,GAAG;mBA6CC,GAAG;gBAmBN,GAAG;IAoCrB;;;OAGG;iBACgB,GAAG;qBA4CC,GAAG;uBAwCD,GAAG;mBAsCP,GAAG;iBAyDL,GAAG;oBAyCA,GAAG;6BA+BM,GAAG;wCAkCQ,GAAG;;AA5hB/C,wBA6jBE"}
1
+ {"version":3,"file":"collection-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/collection-types.ts"],"names":[],"mappings":";cAsHkB,GAAG;iBAuDA,GAAG;gBAyDJ,GAAG;gBA0BH,GAAG;eAYJ,GAAG;mBA4CC,GAAG;gBAmBN,GAAG;IAoCrB;;;OAGG;iBACgB,GAAG;qBAiFC,GAAG;uBA6CD,GAAG;mBAuCP,GAAG;iBAyDL,GAAG;oBAwCA,GAAG;6BA6CM,GAAG;wCAkCQ,GAAG;;AAnlB/C,wBAonBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"single-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/single-types.ts"],"names":[],"mappings":";cAyFkB,GAAG;wBA+CO,GAAG;gBAYX,GAAG;iBAsCF,GAAG;mBAkCD,GAAG;iBAkDL,GAAG;6BAkCS,GAAG;;AAxNpC,wBAoPE"}
1
+ {"version":3,"file":"single-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/single-types.ts"],"names":[],"mappings":";cA4FkB,GAAG;wBAgDO,GAAG;gBAWX,GAAG;iBAsCF,GAAG;mBAmCD,GAAG;iBAiDL,GAAG;6BAiCS,GAAG;;AAvNpC,wBAmPE"}
@@ -1 +1 @@
1
- {"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/uid.ts"],"names":[],"mappings":";qBAUyB,GAAG;8BAeM,GAAG;;AAhBrC,wBA0CE"}
1
+ {"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/uid.ts"],"names":[],"mappings":";qBAWyB,GAAG;8BAeM,GAAG;;AAhBrC,wBA0CE"}
@@ -0,0 +1,8 @@
1
+ import { UID } from '@strapi/types';
2
+ import { DocumentVersion, GetMetadataOptions } from '../../services/document-metadata';
3
+ /**
4
+ * Format a document with metadata. Making sure the metadata response is
5
+ * correctly sanitized for the current user
6
+ */
7
+ export declare const formatDocumentWithMetadata: (permissionChecker: any, uid: UID.ContentType, document: DocumentVersion, opts?: GetMetadataOptions) => Promise<any>;
8
+ //# sourceMappingURL=metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../server/src/controllers/utils/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAKpC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAOvF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,sBAClB,GAAG,OACjB,IAAI,WAAW,YACV,eAAe,SACnB,kBAAkB,iBA6BzB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { UID } from '@strapi/types';
2
+ interface Options {
3
+ allowMultipleLocales?: boolean;
4
+ }
5
+ /**
6
+ * From a request or query object, validates and returns the locale and status of the document.
7
+ * If the status is not provided and Draft & Publish is disabled, it defaults to 'published'.
8
+ */
9
+ export declare const getDocumentLocaleAndStatus: (request: any, model: UID.Schema, opts?: Options) => Promise<any>;
10
+ export {};
11
+ //# sourceMappingURL=dimensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../../../server/src/controllers/validation/dimensions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,UAAU,OAAO;IACf,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAUD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,YAC5B,GAAG,SACL,IAAI,MAAM,SACX,OAAO,iBAsBd,CAAC"}
@@ -4,7 +4,7 @@ declare const validateUIDField: (contentTypeUID: any, field: any) => void;
4
4
  declare const validatePagination: ({ page, pageSize }: any) => void;
5
5
  declare const validateKind: (body: unknown, errorMessage?: string | undefined) => Promise<string | null | undefined>;
6
6
  declare const validateBulkActionInput: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<{
7
- ids: import("yup/lib/array").RequiredArraySchema<yup.StrapiIDSchema, import("yup/lib/types").AnyObject, any[] | undefined>;
7
+ documentIds: import("yup/lib/array").RequiredArraySchema<yup.StrapiIDSchema, import("yup/lib/types").AnyObject, any[] | undefined>;
8
8
  }>>;
9
9
  declare const validateGenerateUIDInput: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<{
10
10
  contentTypeUID: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/history.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAkB,MAAM,eAAe,CAAC;AAKhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,+CAA+C,CAAC;AAQvD,QAAA,MAAM,oBAAoB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;sCAKrB,oCAAoC;6BAU7C,gBAAgB,kBAAkB,QAAQ,GAAG,QAAQ;QAClF,OAAO,EAAE,0CAA0C,EAAE,CAAC;QACtD,UAAU,EAAE,gBAAgB,UAAU,CAAC;KACxC,CAAC;8BAuI8B,KAAK,EAAE;CAqE1C,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/history.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAkB,MAAM,eAAe,CAAC;AAKhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,+CAA+C,CAAC;AAQvD,QAAA,MAAM,oBAAoB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;sCAKrB,oCAAoC;6BAU7C,gBAAgB,kBAAkB,QAAQ,GAAG,QAAQ;QAClF,OAAO,EAAE,0CAA0C,EAAE,CAAC;QACtD,UAAU,EAAE,gBAAgB,UAAU,CAAC;KACxC,CAAC;8BAsI8B,KAAK,EAAE;CAqE1C,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycles.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/lifecycles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,eAAe,CAAC;AAYnD,QAAA,MAAM,uBAAuB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;CA+HnE,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"lifecycles.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/lifecycles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AA4FxD,QAAA,MAAM,uBAAuB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;CAkGnE,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -31,7 +31,7 @@ export declare const createServiceUtils: ({ strapi }: {
31
31
  }>;
32
32
  getRetentionDays: () => number;
33
33
  getVersionStatus: (contentTypeUid: HistoryVersions.CreateHistoryVersion['contentType'], document: Modules.Documents.AnyDocument | null) => Promise<any>;
34
- getDeepPopulate: (uid: UID.Schema) => any;
34
+ getDeepPopulate: (uid: UID.Schema, useDatabaseSyntax?: boolean) => any;
35
35
  buildMediaResponse: (values: {
36
36
  id: Data.ID;
37
37
  }[]) => Promise<RelationResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../server/src/history/services/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAIxE,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;uDAMzC,oBAAoB,CAAC,QAAQ,CAAC,+BAC1B,OAAO,gBAAgB;;;;mDA4C/B,KAAK,MAAM,aACrB,OAAO,SAAS,CAAC,kBAAkB;;;;;gDAgCzB,KAAK,MAAM,aACrB,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC;;+BA2BX,QAAQ;QAC5C,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAA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AAG,EAAE,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KAC/C,CAAC;;uCAsCgB,oCAAoC,CAAC,aAAa,CAAC,YACzD,QAAQ,SAAS,CAAC,WAAW,GAAG,IAAI;2BAgBlB,IAAI,MAAM;iCAyDE;QAAE,EAAE,EAAE,KAAK,EAAE,CAAA;KAAE,EAAE,KAAG,QAAQ,gBAAgB,CAAC;mCAwC7E;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,EAAE,mBACc,OAAO,SAAS,CAAC,kBAAkB,KACnD,QAAQ,gBAAgB,CAAC;CAkD7B,CAAC"}
@@ -167,46 +167,25 @@ declare const _default: () => {
167
167
  'document-metadata': ({ strapi }: {
168
168
  strapi: import("@strapi/types/dist/core").Strapi;
169
169
  }) => {
170
- getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[]): (Partial<import("./services/document-metadata").DocumentVersion> | {
171
- status: string;
172
- id?: string | undefined;
173
- documentId?: string | undefined;
174
- locale?: string | undefined;
175
- updatedAt?: string | Date | null | undefined;
176
- publishedAt?: string | Date | null | undefined;
177
- } | undefined)[];
170
+ getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[], validatableFields?: string[]): Promise<import("../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
178
171
  getAvailableStatus(version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[]): Partial<import("./services/document-metadata").DocumentVersion> | undefined;
179
- getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./services/document-metadata").DocumentVersion[]): Promise<Pick<import("@strapi/types/dist/modules/documents").AnyDocument, "id" | ("createdAt" | "updatedAt" | "publishedAt") | ("createdBy" | "updatedBy" | "publishedBy")>[]>;
180
- getStatus(version: import("./services/document-metadata").DocumentVersion, otherDocumentStatuses?: Pick<import("@strapi/types/dist/modules/documents").AnyDocument, "id" | ("createdAt" | "updatedAt" | "publishedAt") | ("createdBy" | "updatedBy" | "publishedBy")>[] | undefined): string;
172
+ getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./services/document-metadata").DocumentVersion[]): Promise<import("../../shared/contracts/collection-types").AvailableStatusDocument[]>;
173
+ getStatus(version: import("./services/document-metadata").DocumentVersion, otherDocumentStatuses?: import("../../shared/contracts/collection-types").AvailableStatusDocument[] | undefined): string;
181
174
  getMetadata(uid: import("@strapi/types/dist/uid").ContentType, version: import("./services/document-metadata").DocumentVersion, { availableLocales, availableStatus }?: import("./services/document-metadata").GetMetadataOptions): Promise<{
182
- availableLocales: (Partial<import("./services/document-metadata").DocumentVersion> | {
183
- status: string;
184
- id?: string | undefined;
185
- documentId?: string | undefined;
186
- locale?: string | undefined;
187
- updatedAt?: string | Date | null | undefined;
188
- publishedAt?: string | Date | null | undefined;
189
- } | undefined)[];
175
+ availableLocales: import("../../shared/contracts/collection-types").AvailableLocaleDocument[];
190
176
  availableStatus: Partial<import("./services/document-metadata").DocumentVersion>[];
191
177
  }>;
192
178
  formatDocumentWithMetadata(uid: import("@strapi/types/dist/uid").ContentType, document: import("./services/document-metadata").DocumentVersion, opts?: import("./services/document-metadata").GetMetadataOptions): Promise<{
193
179
  data: {
194
180
  status: string | undefined;
195
- id: string;
181
+ id: number;
196
182
  documentId: string;
197
183
  locale: string;
198
184
  updatedAt: string | Date | null;
199
185
  publishedAt: string | Date | null;
200
186
  };
201
187
  meta: {
202
- availableLocales: (Partial<import("./services/document-metadata").DocumentVersion> | {
203
- status: string;
204
- id?: string | undefined;
205
- documentId?: string | undefined;
206
- locale?: string | undefined;
207
- updatedAt?: string | Date | null | undefined;
208
- publishedAt?: string | Date | null | undefined;
209
- } | undefined)[];
188
+ availableLocales: import("../../shared/contracts/collection-types").AvailableLocaleDocument[];
210
189
  availableStatus: Partial<import("./services/document-metadata").DocumentVersion>[];
211
190
  };
212
191
  }>;
@@ -215,37 +194,37 @@ declare const _default: () => {
215
194
  strapi: import("@strapi/types/dist/core").Strapi;
216
195
  }) => {
217
196
  findOne(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").FindOne<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
218
- findLocales(id: string | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts: {
197
+ findLocales(id: string | string[] | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts: {
219
198
  populate?: {
220
199
  populate?: import("@strapi/types/dist/modules/documents/params/populate").Any<any> | undefined;
221
200
  } | undefined;
222
201
  locale?: string | string[] | undefined;
202
+ isPublished?: boolean | undefined;
223
203
  }): Promise<any[]>;
224
204
  findMany(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
225
205
  findPage(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<{
226
206
  results: import("@strapi/types/dist/modules/documents").AnyDocument[];
227
- pagination: {
228
- page: number;
229
- pageSize: number;
230
- pageCount: number;
231
- total: number;
232
- };
207
+ pagination: import("@strapi/utils/dist/pagination").PagePatinationInformation;
233
208
  }>;
234
209
  create(uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: import("@strapi/types/dist/modules/documents/params/document-engine").Create<import("@strapi/types/dist/uid").ContentType>): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
235
210
  update(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Update<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
236
211
  clone(id: string, body: Partial<import("@strapi/types/dist/modules/documents/params/data").Input<`admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`>>, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
237
212
  exists(uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, id?: string | undefined): Promise<boolean>;
238
213
  delete(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Delete<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<{}>;
239
- deleteMany(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<{
214
+ deleteMany(documentIds: string[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: (import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined) & {
215
+ locale?: string | undefined;
216
+ }): Promise<{
217
+ count: number;
218
+ }>;
219
+ publish(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Publish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
220
+ publishMany(uid: import("@strapi/types/dist/uid").ContentType, documentIds: string[], locale?: string | string[] | undefined): Promise<number>;
221
+ unpublishMany(documentIds: string[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Unpublish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<{
240
222
  count: number;
241
223
  }>;
242
- publish(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Publish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
243
- publishMany(entities: import("@strapi/types/dist/modules/documents").AnyDocument[], uid: import("@strapi/types/dist/uid").ContentType): Promise<import("@strapi/database/dist/types").CountResult | null>;
244
- unpublishMany(documents: import("@strapi/types/dist/modules/documents").AnyDocument[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<import("@strapi/database/dist/types").CountResult | null>;
245
224
  unpublish(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Unpublish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
246
225
  discardDraft(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").DiscardDraft<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
247
226
  countDraftRelations(id: string, uid: import("@strapi/types/dist/uid").ContentType, locale: string): Promise<number>;
248
- countManyEntriesDraftRelations(ids: number[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, locale: string): Promise<number>;
227
+ countManyEntriesDraftRelations(documentIds: string[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, locale: string | string[]): Promise<number>;
249
228
  };
250
229
  'field-sizes': ({ strapi }: {
251
230
  strapi: import("@strapi/types/dist/core").Strapi;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAUE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAUE"}
@@ -1,3 +1,4 @@
1
+ import { pagination } from '@strapi/utils';
1
2
  import type { Core, Modules, UID } from '@strapi/types';
2
3
  type DocService = Modules.Documents.ServiceInstance;
3
4
  type DocServiceParams<TAction extends keyof DocService> = Parameters<DocService[TAction]>[0];
@@ -9,19 +10,15 @@ declare const documentManager: ({ strapi }: {
9
10
  /**
10
11
  * Find multiple (or all) locales for a document
11
12
  */
12
- findLocales(id: string | undefined, uid: UID.CollectionType, opts: {
13
+ findLocales(id: string | string[] | undefined, uid: UID.CollectionType, opts: {
13
14
  populate?: Modules.Documents.Params.Pick<any, 'populate'>;
14
15
  locale?: string | string[] | '*';
16
+ isPublished?: boolean;
15
17
  }): Promise<any[]>;
16
18
  findMany(opts: DocServiceParams<'findMany'>, uid: UID.CollectionType): Promise<Modules.Documents.AnyDocument[]>;
17
19
  findPage(opts: DocServiceParams<'findMany'>, uid: UID.CollectionType): Promise<{
18
20
  results: Modules.Documents.AnyDocument[];
19
- pagination: {
20
- page: number;
21
- pageSize: number;
22
- pageCount: number;
23
- total: number;
24
- };
21
+ pagination: pagination.PagePatinationInformation;
25
22
  }>;
26
23
  create(uid: UID.CollectionType, opts?: DocServiceParams<'create'>): Promise<Modules.Documents.AnyDocument>;
27
24
  update(id: Modules.Documents.ID, uid: UID.CollectionType, opts?: Omit<DocServiceParams<'update'>, 'documentId'>): Promise<Modules.Documents.AnyDocument | null>;
@@ -31,16 +28,20 @@ declare const documentManager: ({ strapi }: {
31
28
  */
32
29
  exists(uid: UID.CollectionType, id?: string): Promise<boolean>;
33
30
  delete(id: Modules.Documents.ID, uid: UID.CollectionType, opts?: Omit<DocServiceParams<'delete'>, 'documentId'>): Promise<{}>;
34
- deleteMany(opts: DocServiceParams<'findMany'>, uid: UID.CollectionType): Promise<{
31
+ deleteMany(documentIds: Modules.Documents.ID[], uid: UID.CollectionType, opts?: DocServiceParams<'findMany'> & {
32
+ locale?: string;
33
+ }): Promise<{
34
+ count: number;
35
+ }>;
36
+ publish(id: Modules.Documents.ID, uid: UID.CollectionType, opts?: Omit<DocServiceParams<'publish'>, 'documentId'>): Promise<Modules.Documents.AnyDocument[]>;
37
+ publishMany(uid: UID.ContentType, documentIds: string[], locale?: string | string[]): Promise<number>;
38
+ unpublishMany(documentIds: Modules.Documents.ID[], uid: UID.CollectionType, opts?: Omit<DocServiceParams<'unpublish'>, 'documentId'>): Promise<{
35
39
  count: number;
36
40
  }>;
37
- publish(id: Modules.Documents.ID, uid: UID.CollectionType, opts?: Omit<DocServiceParams<'publish'>, 'documentId'>): Promise<Modules.Documents.AnyDocument | undefined>;
38
- publishMany(entities: Document[], uid: UID.ContentType): Promise<import("@strapi/database/dist/types").CountResult | null>;
39
- unpublishMany(documents: Document[], uid: UID.CollectionType): Promise<import("@strapi/database/dist/types").CountResult | null>;
40
41
  unpublish(id: Modules.Documents.ID, uid: UID.CollectionType, opts?: Omit<DocServiceParams<'unpublish'>, 'documentId'>): Promise<Modules.Documents.AnyDocument | undefined>;
41
42
  discardDraft(id: Modules.Documents.ID, uid: UID.CollectionType, opts?: Omit<DocServiceParams<'discardDraft'>, 'documentId'>): Promise<Modules.Documents.AnyDocument | undefined>;
42
43
  countDraftRelations(id: string, uid: UID.ContentType, locale: string): Promise<number>;
43
- countManyEntriesDraftRelations(ids: number[], uid: UID.CollectionType, locale: string): Promise<number>;
44
+ countManyEntriesDraftRelations(documentIds: Modules.Documents.ID[], uid: UID.CollectionType, locale: string | string[]): Promise<number>;
44
45
  };
45
46
  export type DocumentManagerService = typeof documentManager;
46
47
  export default documentManager;
@@ -1 +1 @@
1
- {"version":3,"file":"document-manager.d.ts","sourceRoot":"","sources":["../../../../server/src/services/document-manager.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAMxD,KAAK,UA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C,EAAE,YAAY,CAAC;;;kBAoBnD,QAAQ,SAAS,CAAC,EAAE,OACnB,IAAI,cAAc,SACjB,KAAK,iBAAiB,WAAW,CAAC,EAAE,YAAY,CAAC;qBAYnD,QAAQ,SAAS,CAAC,EAAE,OACnB,IAAI,cAAc,SACjB,KAAK,iBAAiB,cAAc,CAAC,EAAE,YAAY,CAAC;4BAW9B,MAAM,OAAO,IAAI,WAAW,UAAU,MAAM;gDAiB3D,QAAQ,SAAS,CAAC,EAAE,EAAE,OAC9B,IAAI,cAAc,UACf,MAAM,GAAG,MAAM,EAAE;CA6B9B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,eAAe,CAAC;AAE5D,eAAe,eAAe,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Core, UID } from '@strapi/types';
1
+ import type { Core, UID, Modules } from '@strapi/types';
2
2
  import type { DocumentMetadata } from '../../../shared/contracts/collection-types';
3
3
  export interface DocumentVersion {
4
- id: string;
5
- documentId: string;
4
+ id: number;
5
+ documentId: Modules.Documents.ID;
6
6
  locale: string;
7
7
  updatedAt: string | null | Date;
8
8
  publishedAt: string | null | Date;
@@ -26,14 +26,7 @@ declare const _default: ({ strapi }: {
26
26
  /**
27
27
  * Returns available locales of a document for the current status
28
28
  */
29
- getAvailableLocales(uid: UID.ContentType, version: DocumentVersion, allVersions: DocumentVersion[]): (Partial<DocumentVersion> | {
30
- status: string;
31
- id?: string | undefined;
32
- documentId?: string | undefined;
33
- locale?: string | undefined;
34
- updatedAt?: string | Date | null | undefined;
35
- publishedAt?: string | Date | null | undefined;
36
- } | undefined)[];
29
+ getAvailableLocales(uid: UID.ContentType, version: DocumentVersion, allVersions: DocumentVersion[], validatableFields?: string[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
37
30
  /**
38
31
  * Returns available status of a document for the current locale
39
32
  */
@@ -44,17 +37,10 @@ declare const _default: ({ strapi }: {
44
37
  * @param documents
45
38
  * @returns
46
39
  */
47
- getManyAvailableStatus(uid: UID.ContentType, documents: DocumentVersion[]): Promise<Pick<import("@strapi/types/dist/modules/documents").AnyDocument, "id" | ("createdAt" | "updatedAt" | "publishedAt") | ("createdBy" | "updatedBy" | "publishedBy")>[]>;
40
+ getManyAvailableStatus(uid: UID.ContentType, documents: DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableStatusDocument[]>;
48
41
  getStatus(version: DocumentVersion, otherDocumentStatuses?: DocumentMetadata['availableStatus']): string;
49
42
  getMetadata(uid: UID.ContentType, version: DocumentVersion, { availableLocales, availableStatus }?: GetMetadataOptions): Promise<{
50
- availableLocales: (Partial<DocumentVersion> | {
51
- status: string;
52
- id?: string | undefined;
53
- documentId?: string | undefined;
54
- locale?: string | undefined;
55
- updatedAt?: string | Date | null | undefined;
56
- publishedAt?: string | Date | null | undefined;
57
- } | undefined)[];
43
+ availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
58
44
  availableStatus: Partial<DocumentVersion>[];
59
45
  }>;
60
46
  /**
@@ -65,21 +51,14 @@ declare const _default: ({ strapi }: {
65
51
  formatDocumentWithMetadata(uid: UID.ContentType, document: DocumentVersion, opts?: GetMetadataOptions): Promise<{
66
52
  data: {
67
53
  status: string | undefined;
68
- id: string;
54
+ id: number;
69
55
  documentId: string;
70
56
  locale: string;
71
57
  updatedAt: string | Date | null;
72
58
  publishedAt: string | Date | null;
73
59
  };
74
60
  meta: {
75
- availableLocales: (Partial<DocumentVersion> | {
76
- status: string;
77
- id?: string | undefined;
78
- documentId?: string | undefined;
79
- locale?: string | undefined;
80
- updatedAt?: string | Date | null | undefined;
81
- publishedAt?: string | Date | null | undefined;
82
- } | undefined)[];
61
+ availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
83
62
  availableStatus: Partial<DocumentVersion>[];
84
63
  };
85
64
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"document-metadata.d.ts","sourceRoot":"","sources":["../../../../server/src/services/document-metadata.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAEnF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CACnC;AA4CD;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;qCAE2B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;IACjD;;OAEG;6BAEI,IAAI,WAAW,WACX,eAAe,eACX,eAAe,EAAE;;;;;;;;IAgChC;;OAEG;gCACyB,eAAe,eAAe,eAAe,EAAE;IAmB3E;;;;;OAKG;gCAC+B,IAAI,WAAW,aAAa,eAAe,EAAE;uBAkB5D,eAAe,0BAA0B,gBAAgB,CAAC,iBAAiB,CAAC;qBA0BxF,IAAI,WAAW,WACX,eAAe,0CAC6B,kBAAkB;;;;;;;;;;;IA+BzE;;;;OAIG;oCAEI,IAAI,WAAW,YACV,eAAe,SACnB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;AAxJ5B,wBAiLG"}
1
+ {"version":3,"file":"document-metadata.d.ts","sourceRoot":"","sources":["../../../../server/src/services/document-metadata.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CACnC;AA4BD;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;qCAoB2B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;IACjD;;OAEG;6BAEI,IAAI,WAAW,WACX,eAAe,eACX,eAAe,EAAE,sBACX,MAAM,EAAE;IA+D7B;;OAEG;gCACyB,eAAe,eAAe,eAAe,EAAE;IAmB3E;;;;;OAKG;gCAC+B,IAAI,WAAW,aAAa,eAAe,EAAE;uBAkB5D,eAAe,0BAA0B,gBAAgB,CAAC,iBAAiB,CAAC;qBAgCxF,IAAI,WAAW,WACX,eAAe,0CAC6B,kBAAkB;;;;IAkCzE;;;;OAIG;oCAEI,IAAI,WAAW,YACV,eAAe,SACnB,kBAAkB;;;;;;;;;;;;;;;AAjM5B,wBAiOG"}
@@ -60,46 +60,25 @@ declare const _default: {
60
60
  'document-metadata': ({ strapi }: {
61
61
  strapi: import("@strapi/types/dist/core").Strapi;
62
62
  }) => {
63
- getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[]): (Partial<import("./document-metadata").DocumentVersion> | {
64
- status: string;
65
- id?: string | undefined;
66
- documentId?: string | undefined;
67
- locale?: string | undefined;
68
- updatedAt?: string | Date | null | undefined;
69
- publishedAt?: string | Date | null | undefined;
70
- } | undefined)[];
63
+ getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[], validatableFields?: string[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
71
64
  getAvailableStatus(version: import("./document-metadata").DocumentVersion, allVersions: import("./document-metadata").DocumentVersion[]): Partial<import("./document-metadata").DocumentVersion> | undefined;
72
- getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./document-metadata").DocumentVersion[]): Promise<Pick<import("@strapi/types/dist/modules/documents").AnyDocument, "id" | ("createdAt" | "updatedAt" | "publishedAt") | ("createdBy" | "updatedBy" | "publishedBy")>[]>;
73
- getStatus(version: import("./document-metadata").DocumentVersion, otherDocumentStatuses?: Pick<import("@strapi/types/dist/modules/documents").AnyDocument, "id" | ("createdAt" | "updatedAt" | "publishedAt") | ("createdBy" | "updatedBy" | "publishedBy")>[] | undefined): string;
65
+ getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./document-metadata").DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableStatusDocument[]>;
66
+ getStatus(version: import("./document-metadata").DocumentVersion, otherDocumentStatuses?: import("../../../shared/contracts/collection-types").AvailableStatusDocument[] | undefined): string;
74
67
  getMetadata(uid: import("@strapi/types/dist/uid").ContentType, version: import("./document-metadata").DocumentVersion, { availableLocales, availableStatus }?: import("./document-metadata").GetMetadataOptions): Promise<{
75
- availableLocales: (Partial<import("./document-metadata").DocumentVersion> | {
76
- status: string;
77
- id?: string | undefined;
78
- documentId?: string | undefined;
79
- locale?: string | undefined;
80
- updatedAt?: string | Date | null | undefined;
81
- publishedAt?: string | Date | null | undefined;
82
- } | undefined)[];
68
+ availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
83
69
  availableStatus: Partial<import("./document-metadata").DocumentVersion>[];
84
70
  }>;
85
71
  formatDocumentWithMetadata(uid: import("@strapi/types/dist/uid").ContentType, document: import("./document-metadata").DocumentVersion, opts?: import("./document-metadata").GetMetadataOptions): Promise<{
86
72
  data: {
87
73
  status: string | undefined;
88
- id: string;
74
+ id: number;
89
75
  documentId: string;
90
76
  locale: string;
91
77
  updatedAt: string | Date | null;
92
78
  publishedAt: string | Date | null;
93
79
  };
94
80
  meta: {
95
- availableLocales: (Partial<import("./document-metadata").DocumentVersion> | {
96
- status: string;
97
- id?: string | undefined;
98
- documentId?: string | undefined;
99
- locale?: string | undefined;
100
- updatedAt?: string | Date | null | undefined;
101
- publishedAt?: string | Date | null | undefined;
102
- } | undefined)[];
81
+ availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
103
82
  availableStatus: Partial<import("./document-metadata").DocumentVersion>[];
104
83
  };
105
84
  }>;
@@ -108,37 +87,37 @@ declare const _default: {
108
87
  strapi: import("@strapi/types/dist/core").Strapi;
109
88
  }) => {
110
89
  findOne(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").FindOne<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
111
- findLocales(id: string | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts: {
90
+ findLocales(id: string | string[] | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts: {
112
91
  populate?: {
113
92
  populate?: import("@strapi/types/dist/modules/documents/params/populate").Any<any> | undefined;
114
93
  } | undefined;
115
94
  locale?: string | string[] | undefined;
95
+ isPublished?: boolean | undefined;
116
96
  }): Promise<any[]>;
117
97
  findMany(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
118
98
  findPage(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<{
119
99
  results: import("@strapi/types/dist/modules/documents").AnyDocument[];
120
- pagination: {
121
- page: number;
122
- pageSize: number;
123
- pageCount: number;
124
- total: number;
125
- };
100
+ pagination: import("@strapi/utils/dist/pagination").PagePatinationInformation;
126
101
  }>;
127
102
  create(uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: import("@strapi/types/dist/modules/documents/params/document-engine").Create<import("@strapi/types/dist/uid").ContentType>): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
128
103
  update(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Update<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
129
104
  clone(id: string, body: Partial<import("@strapi/types/dist/modules/documents/params/data").Input<`admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`>>, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
130
105
  exists(uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, id?: string | undefined): Promise<boolean>;
131
106
  delete(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Delete<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<{}>;
132
- deleteMany(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<{
107
+ deleteMany(documentIds: string[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: (import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined) & {
108
+ locale?: string | undefined;
109
+ }): Promise<{
110
+ count: number;
111
+ }>;
112
+ publish(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Publish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
113
+ publishMany(uid: import("@strapi/types/dist/uid").ContentType, documentIds: string[], locale?: string | string[] | undefined): Promise<number>;
114
+ unpublishMany(documentIds: string[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Unpublish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<{
133
115
  count: number;
134
116
  }>;
135
- publish(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Publish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
136
- publishMany(entities: import("@strapi/types/dist/modules/documents").AnyDocument[], uid: import("@strapi/types/dist/uid").ContentType): Promise<import("@strapi/database/dist/types").CountResult | null>;
137
- unpublishMany(documents: import("@strapi/types/dist/modules/documents").AnyDocument[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`): Promise<import("@strapi/database/dist/types").CountResult | null>;
138
117
  unpublish(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Unpublish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
139
118
  discardDraft(id: string, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").DiscardDraft<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
140
119
  countDraftRelations(id: string, uid: import("@strapi/types/dist/uid").ContentType, locale: string): Promise<number>;
141
- countManyEntriesDraftRelations(ids: number[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, locale: string): Promise<number>;
120
+ countManyEntriesDraftRelations(documentIds: string[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, locale: string | string[]): Promise<number>;
142
121
  };
143
122
  'field-sizes': ({ strapi }: {
144
123
  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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,wBAaE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,wBAaE"}
@@ -13,6 +13,13 @@ type PopulateOptions = {
13
13
  * @param level - Current level of nested call
14
14
  */
15
15
  declare const getDeepPopulate: (uid: UID.Schema, { initialPopulate, countMany, countOne, maxLevel, }?: PopulateOptions, level?: number) => {};
16
+ /**
17
+ * Deeply populate a model based on UID. Only populating fields that require validation.
18
+ * @param uid - Unique identifier of the model
19
+ * @param options - Options to apply while populating
20
+ * @param level - Current level of nested call
21
+ */
22
+ declare const getValidatableFieldsPopulate: (uid: UID.Schema, { initialPopulate, countMany, countOne, maxLevel, }?: PopulateOptions, level?: number) => {};
16
23
  /**
17
24
  * getDeepPopulateDraftCount works recursively on the attributes of a model
18
25
  * creating a populated object to count all the unpublished relations within the model
@@ -31,5 +38,5 @@ declare const getDeepPopulateDraftCount: (uid: UID.Schema) => {
31
38
  */
32
39
  declare const getQueryPopulate: (uid: UID.Schema, query: object) => Promise<Populate>;
33
40
  declare const buildDeepPopulate: (uid: UID.CollectionType) => any;
34
- export { getDeepPopulate, getDeepPopulateDraftCount, getQueryPopulate, buildDeepPopulate };
41
+ export { getDeepPopulate, getDeepPopulateDraftCount, getQueryPopulate, buildDeepPopulate, getValidatableFieldsPopulate, };
35
42
  //# sourceMappingURL=populate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"populate.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/populate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAU,OAAO,EAAE,MAAM,eAAe,CAAC;AAgBrD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAE7E,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE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AAI,MAAM,SAAS,MAAM,KAAG,QAAQ,QAAQ,CA8BhF,CAAC;AAEF,QAAA,MAAM,iBAAiB,QAAS,IAAI,cAAc,QAEjD,CAAC;AAEF,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,GAC7B,CAAC"}
@@ -5,9 +5,11 @@ type SortQuery = Modules.Documents.Params.Sort.StringNotation<UID.Schema> & stri
5
5
  type Document = Modules.Documents.Document<any>;
6
6
  type AT_FIELDS = 'updatedAt' | 'createdAt' | 'publishedAt';
7
7
  type BY_FIELDS = 'createdBy' | 'updatedBy' | 'publishedBy';
8
+ export type AvailableLocaleDocument = Pick<Document, 'id' | 'locale' | AT_FIELDS | 'status'>;
9
+ export type AvailableStatusDocument = Pick<Document, 'id' | 'documentId' | 'locale' | BY_FIELDS | AT_FIELDS>;
8
10
  export type DocumentMetadata = {
9
- availableStatus: Pick<Document, 'id' | BY_FIELDS | AT_FIELDS>[];
10
- availableLocales: Pick<Document, 'id' | 'locale' | AT_FIELDS | 'status'>[];
11
+ availableStatus: AvailableStatusDocument[];
12
+ availableLocales: AvailableLocaleDocument[];
11
13
  };
12
14
  /**
13
15
  * GET /collection-types/:model
@@ -237,7 +239,9 @@ export declare namespace BulkDelete {
237
239
  body: {
238
240
  documentIds: Modules.Documents.ID[];
239
241
  };
240
- query: {};
242
+ query: {
243
+ locale?: string;
244
+ };
241
245
  }
242
246
  interface Params {
243
247
  model: string;
@@ -257,13 +261,17 @@ export declare namespace BulkPublish {
257
261
  body: {
258
262
  documentIds: Modules.Documents.ID[];
259
263
  };
260
- query: {};
264
+ query: {
265
+ locale?: string | string[] | null;
266
+ };
261
267
  }
262
268
  interface Params {
263
269
  model: string;
264
270
  }
265
271
  interface Response {
266
- count: number;
272
+ data: {
273
+ count: number;
274
+ };
267
275
  error?: errors.ApplicationError | errors.YupValidationError;
268
276
  }
269
277
  }
@@ -313,7 +321,7 @@ export declare namespace CountManyEntriesDraftRelations {
313
321
  body: {};
314
322
  query: {
315
323
  documentIds?: Modules.Documents.ID[];
316
- locale?: string;
324
+ locale?: string | string[] | null;
317
325
  };
318
326
  }
319
327
  interface Params {
@@ -1 +1 @@
1
- {"version":3,"file":"collection-types.d.ts","sourceRoot":"","sources":["../../../shared/contracts/collection-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAE1D,KAAK,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAExE,KAAK,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAGnF,KAAK,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAChD,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAC3D,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG;IAE7B,eAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,SAAS,GAAG,SAAS,CAAC,EAAE,CAAC;IAEhE,gBAAgB,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAC;CAC5E,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE;YACL,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,IAAI,CAAC,EAAE,SA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