@strapi/content-manager 0.0.0-experimental.e60ec1829240dae21c1e1d29076681c322288813 → 0.0.0-experimental.e8d8fc824d0f6a695b2a9ebaa4680ed21c3645ca
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/LICENSE +18 -3
- package/dist/_chunks/{CardDragPreview-DSVYodBX.js → CardDragPreview-C0QyJgRA.js} +10 -14
- package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +1 -0
- package/dist/_chunks/{CardDragPreview-ikSG4M46.mjs → CardDragPreview-DOxamsuj.mjs} +7 -9
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -0
- package/dist/_chunks/{ComponentConfigurationPage-DjWJdz6Y.js → ComponentConfigurationPage-BlzvDpbX.js} +5 -6
- package/dist/_chunks/{ComponentConfigurationPage-DjWJdz6Y.js.map → ComponentConfigurationPage-BlzvDpbX.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-BPvzFjM7.mjs → ComponentConfigurationPage-DaPOlQaD.mjs} +4 -4
- package/dist/_chunks/{ComponentConfigurationPage-BPvzFjM7.mjs.map → ComponentConfigurationPage-DaPOlQaD.mjs.map} +1 -1
- package/dist/_chunks/{ComponentIcon-BBQsYCVn.js → ComponentIcon-CRbtQEUV.js} +9 -4
- package/dist/_chunks/ComponentIcon-CRbtQEUV.js.map +1 -0
- package/dist/_chunks/{ComponentIcon-BOFnK76n.mjs → ComponentIcon-u4bIXTFY.mjs} +9 -3
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +1 -0
- package/dist/_chunks/{EditConfigurationPage-DacbqQ_f.mjs → EditConfigurationPage-BZPXItXo.mjs} +4 -4
- package/dist/_chunks/{EditConfigurationPage-DacbqQ_f.mjs.map → EditConfigurationPage-BZPXItXo.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Dmv83RlS.js → EditConfigurationPage-uy-v43AR.js} +5 -6
- package/dist/_chunks/{EditConfigurationPage-Dmv83RlS.js.map → EditConfigurationPage-uy-v43AR.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-DvNpQkam.js → EditViewPage-DT6A4ayX.js} +102 -54
- package/dist/_chunks/EditViewPage-DT6A4ayX.js.map +1 -0
- package/dist/_chunks/EditViewPage-oOLeTySr.mjs +254 -0
- package/dist/_chunks/EditViewPage-oOLeTySr.mjs.map +1 -0
- package/dist/_chunks/{Field-6gvGdPBV.mjs → Field-D7dv2aUX.mjs} +1192 -896
- package/dist/_chunks/Field-D7dv2aUX.mjs.map +1 -0
- package/dist/_chunks/{Field-DmVKIAOo.js → Field-kYFVIGiP.js} +1238 -943
- package/dist/_chunks/Field-kYFVIGiP.js.map +1 -0
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +1 -1
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +1 -1
- package/dist/_chunks/{Form-DW6K1IH-.mjs → Form-BxR6sc29.mjs} +67 -46
- package/dist/_chunks/Form-BxR6sc29.mjs.map +1 -0
- package/dist/_chunks/{Form-CPZC9vWa.js → Form-CCijSg3V.js} +68 -49
- package/dist/_chunks/Form-CCijSg3V.js.map +1 -0
- package/dist/_chunks/{History-DeAPlvtv.js → History-BMndx49M.js} +182 -147
- package/dist/_chunks/History-BMndx49M.js.map +1 -0
- package/dist/_chunks/{History-Dmr9fmUA.mjs → History-D8F7aYQU.mjs} +181 -144
- package/dist/_chunks/History-D8F7aYQU.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DPCwW5Vr.js → ListConfigurationPage-DouY1EWM.js} +72 -63
- package/dist/_chunks/ListConfigurationPage-DouY1EWM.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DhwvYcNv.mjs → ListConfigurationPage-DqAdSPwC.mjs} +68 -57
- package/dist/_chunks/ListConfigurationPage-DqAdSPwC.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-5ySZ-VUs.js → ListViewPage-BPVmh9pq.js} +179 -164
- package/dist/_chunks/ListViewPage-BPVmh9pq.js.map +1 -0
- package/dist/_chunks/{ListViewPage-BtAwuYLE.mjs → ListViewPage-C73F0jPh.mjs} +175 -159
- package/dist/_chunks/ListViewPage-C73F0jPh.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DSPxnxxp.mjs → NoContentTypePage-B5w7iJOF.mjs} +3 -3
- package/dist/_chunks/NoContentTypePage-B5w7iJOF.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DOC_yWOf.js → NoContentTypePage-BwcL--4H.js} +3 -3
- package/dist/_chunks/NoContentTypePage-BwcL--4H.js.map +1 -0
- package/dist/_chunks/{NoPermissionsPage-Dwu8rRJu.js → NoPermissionsPage-BMFKVcwJ.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-Dwu8rRJu.js.map → NoPermissionsPage-BMFKVcwJ.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-UWDC-1Tw.mjs → NoPermissionsPage-UnEgMGK4.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-UWDC-1Tw.mjs.map → NoPermissionsPage-UnEgMGK4.mjs.map} +1 -1
- package/dist/_chunks/Preview-B7PR3Ok_.js +312 -0
- package/dist/_chunks/Preview-B7PR3Ok_.js.map +1 -0
- package/dist/_chunks/Preview-DECOhK0D.mjs +294 -0
- package/dist/_chunks/Preview-DECOhK0D.mjs.map +1 -0
- package/dist/_chunks/{Relations-J8cscLlR.mjs → Relations-DinMQJ4B.mjs} +138 -94
- package/dist/_chunks/Relations-DinMQJ4B.mjs.map +1 -0
- package/dist/_chunks/{Relations-CgWtgnPe.js → Relations-lndx3aQk.js} +142 -100
- package/dist/_chunks/Relations-lndx3aQk.js.map +1 -0
- package/dist/_chunks/{en-C-V1_90f.js → en-BK8Xyl5I.js} +38 -18
- package/dist/_chunks/{en-C-V1_90f.js.map → en-BK8Xyl5I.js.map} +1 -1
- package/dist/_chunks/{en-MBPul9Su.mjs → en-Dtk_ot79.mjs} +38 -18
- package/dist/_chunks/{en-MBPul9Su.mjs.map → en-Dtk_ot79.mjs.map} +1 -1
- package/dist/_chunks/{es-EUonQTon.js → es-9K52xZIr.js} +2 -2
- package/dist/_chunks/{ja-CcFe8diO.js.map → es-9K52xZIr.js.map} +1 -1
- package/dist/_chunks/{es-CeXiYflN.mjs → es-D34tqjMw.mjs} +2 -2
- package/dist/_chunks/{es-CeXiYflN.mjs.map → es-D34tqjMw.mjs.map} +1 -1
- package/dist/_chunks/{fr-CD9VFbPM.mjs → fr--pg5jUbt.mjs} +13 -3
- package/dist/_chunks/{fr-CD9VFbPM.mjs.map → fr--pg5jUbt.mjs.map} +1 -1
- package/dist/_chunks/{fr-B7kGGg3E.js → fr-B2Kyv8Z9.js} +13 -3
- package/dist/_chunks/{fr-B7kGGg3E.js.map → fr-B2Kyv8Z9.js.map} +1 -1
- package/dist/_chunks/hooks-BAaaKPS_.js.map +1 -1
- package/dist/_chunks/{index-CwRRo1V9.mjs → index-C2SagWVW.mjs} +2070 -988
- package/dist/_chunks/index-C2SagWVW.mjs.map +1 -0
- package/dist/_chunks/{index-C6AH2hEl.js → index-Cnw4gqee.js} +2047 -966
- package/dist/_chunks/index-Cnw4gqee.js.map +1 -0
- package/dist/_chunks/{ja-CcFe8diO.js → ja-7sfIbjxE.js} +2 -2
- package/dist/_chunks/{es-EUonQTon.js.map → ja-7sfIbjxE.js.map} +1 -1
- package/dist/_chunks/{ja-CtsUxOvk.mjs → ja-BHqhDq4V.mjs} +2 -2
- package/dist/_chunks/{ja-CtsUxOvk.mjs.map → ja-BHqhDq4V.mjs.map} +1 -1
- package/dist/_chunks/{layout-jIDzX0Fp.mjs → layout-DY_D9MGA.mjs} +46 -28
- package/dist/_chunks/layout-DY_D9MGA.mjs.map +1 -0
- package/dist/_chunks/{layout-B_SXLhqf.js → layout-ivwIVPnV.js} +47 -32
- package/dist/_chunks/layout-ivwIVPnV.js.map +1 -0
- package/dist/_chunks/{objects-gigeqt7s.js → objects-BcXOv6_9.js} +2 -4
- package/dist/_chunks/{objects-gigeqt7s.js.map → objects-BcXOv6_9.js.map} +1 -1
- package/dist/_chunks/{objects-mKMAmfec.mjs → objects-D6yBsdmx.mjs} +2 -4
- package/dist/_chunks/{objects-mKMAmfec.mjs.map → objects-D6yBsdmx.mjs.map} +1 -1
- package/dist/_chunks/{relations-iBMa_OFG.js → relations-B7C7O_Pv.js} +6 -7
- package/dist/_chunks/relations-B7C7O_Pv.js.map +1 -0
- package/dist/_chunks/{relations-CuvIgCqI.mjs → relations-Boc5Y9kX.mjs} +6 -7
- package/dist/_chunks/relations-Boc5Y9kX.mjs.map +1 -0
- package/dist/_chunks/useDebounce-CtcjDB3L.js +28 -0
- package/dist/_chunks/useDebounce-CtcjDB3L.js.map +1 -0
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs +29 -0
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +1 -0
- package/dist/_chunks/{useDragAndDrop-J0TUUbR6.js → useDragAndDrop-BMtgCYzL.js} +5 -9
- package/dist/_chunks/useDragAndDrop-BMtgCYzL.js.map +1 -0
- package/dist/_chunks/{useDragAndDrop-DdHgKsqq.mjs → useDragAndDrop-DJ6jqvZN.mjs} +4 -7
- package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs.map +1 -0
- package/dist/admin/index.js +3 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +9 -7
- package/dist/admin/src/components/ComponentIcon.d.ts +6 -3
- package/dist/admin/src/content-manager.d.ts +6 -5
- package/dist/admin/src/exports.d.ts +2 -1
- package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
- package/dist/admin/src/history/index.d.ts +3 -0
- package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
- package/dist/admin/src/hooks/useDocument.d.ts +37 -9
- package/dist/admin/src/hooks/useDocumentActions.d.ts +24 -3
- package/dist/admin/src/hooks/useDocumentLayout.d.ts +2 -2
- package/dist/admin/src/hooks/useDragAndDrop.d.ts +4 -4
- package/dist/admin/src/hooks/useKeyboardDragAndDrop.d.ts +1 -1
- package/dist/admin/src/index.d.ts +1 -0
- package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +12 -5
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +7 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +49 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksInput.d.ts +3 -3
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +5 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/Component/Input.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentCategory.d.ts +3 -5
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +30 -18
- package/dist/admin/src/pages/EditView/components/FormInputs/UID.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +3 -49
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/Field.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygFooter.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +16 -53
- package/dist/admin/src/pages/EditView/components/Header.d.ts +11 -11
- package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +2 -10
- package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
- package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
- package/dist/admin/src/pages/ListView/components/BulkActions/PublishAction.d.ts +9 -26
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
- package/dist/admin/src/preview/index.d.ts +4 -0
- package/dist/admin/src/preview/pages/Preview.d.ts +11 -0
- package/dist/admin/src/preview/routes.d.ts +3 -0
- package/dist/admin/src/preview/services/preview.d.ts +3 -0
- package/dist/admin/src/router.d.ts +1 -1
- package/dist/admin/src/services/api.d.ts +2 -3
- package/dist/admin/src/services/components.d.ts +2 -2
- package/dist/admin/src/services/contentTypes.d.ts +5 -5
- package/dist/admin/src/services/documents.d.ts +31 -20
- package/dist/admin/src/services/init.d.ts +2 -2
- package/dist/admin/src/services/relations.d.ts +3 -3
- package/dist/admin/src/services/uid.d.ts +3 -3
- package/dist/admin/src/utils/api.d.ts +4 -18
- package/dist/admin/src/utils/validation.d.ts +5 -7
- package/dist/server/index.js +886 -480
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +892 -485
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
- package/dist/server/src/controllers/index.d.ts.map +1 -1
- package/dist/server/src/controllers/relations.d.ts.map +1 -1
- package/dist/server/src/controllers/single-types.d.ts.map +1 -1
- package/dist/server/src/controllers/uid.d.ts.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +23 -0
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/dimensions.d.ts +11 -0
- package/dist/server/src/controllers/validation/dimensions.d.ts.map +1 -0
- package/dist/server/src/controllers/validation/index.d.ts +1 -1
- package/dist/server/src/history/services/history.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.d.ts +4 -4
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +22 -42
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/policies/hasPermissions.d.ts.map +1 -1
- package/dist/server/src/preview/controllers/index.d.ts +2 -0
- package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/preview.d.ts +13 -0
- package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
- package/dist/server/src/preview/index.d.ts +4 -0
- package/dist/server/src/preview/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/index.d.ts +8 -0
- package/dist/server/src/preview/routes/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/preview.d.ts +4 -0
- package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
- package/dist/server/src/preview/services/index.d.ts +16 -0
- package/dist/server/src/preview/services/index.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview-config.d.ts +32 -0
- package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview.d.ts +12 -0
- package/dist/server/src/preview/services/preview.d.ts.map +1 -0
- package/dist/server/src/preview/utils.d.ts +19 -0
- package/dist/server/src/preview/utils.d.ts.map +1 -0
- package/dist/server/src/register.d.ts.map +1 -1
- package/dist/server/src/routes/index.d.ts.map +1 -1
- package/dist/server/src/services/document-manager.d.ts +13 -12
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +16 -35
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +22 -42
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/permission-checker.d.ts.map +1 -1
- package/dist/server/src/services/utils/populate.d.ts +8 -1
- package/dist/server/src/services/utils/populate.d.ts.map +1 -1
- package/dist/server/src/utils/index.d.ts +2 -0
- package/dist/server/src/utils/index.d.ts.map +1 -1
- package/dist/shared/contracts/collection-types.d.ts +17 -7
- package/dist/shared/contracts/collection-types.d.ts.map +1 -1
- package/dist/shared/contracts/index.d.ts +1 -0
- package/dist/shared/contracts/index.d.ts.map +1 -1
- package/dist/shared/contracts/preview.d.ts +27 -0
- package/dist/shared/contracts/preview.d.ts.map +1 -0
- package/dist/shared/contracts/relations.d.ts +2 -2
- package/dist/shared/contracts/relations.d.ts.map +1 -1
- package/dist/shared/index.js +4 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +4 -0
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +22 -21
- package/dist/_chunks/CardDragPreview-DSVYodBX.js.map +0 -1
- package/dist/_chunks/CardDragPreview-ikSG4M46.mjs.map +0 -1
- package/dist/_chunks/ComponentIcon-BBQsYCVn.js.map +0 -1
- package/dist/_chunks/ComponentIcon-BOFnK76n.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DDS6H9HO.mjs +0 -203
- package/dist/_chunks/EditViewPage-DDS6H9HO.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DvNpQkam.js.map +0 -1
- package/dist/_chunks/Field-6gvGdPBV.mjs.map +0 -1
- package/dist/_chunks/Field-DmVKIAOo.js.map +0 -1
- package/dist/_chunks/Form-CPZC9vWa.js.map +0 -1
- package/dist/_chunks/Form-DW6K1IH-.mjs.map +0 -1
- package/dist/_chunks/History-DeAPlvtv.js.map +0 -1
- package/dist/_chunks/History-Dmr9fmUA.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DPCwW5Vr.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DhwvYcNv.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-5ySZ-VUs.js.map +0 -1
- package/dist/_chunks/ListViewPage-BtAwuYLE.mjs.map +0 -1
- package/dist/_chunks/NoContentTypePage-DOC_yWOf.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-DSPxnxxp.mjs.map +0 -1
- package/dist/_chunks/Relations-CgWtgnPe.js.map +0 -1
- package/dist/_chunks/Relations-J8cscLlR.mjs.map +0 -1
- package/dist/_chunks/index-C6AH2hEl.js.map +0 -1
- package/dist/_chunks/index-CwRRo1V9.mjs.map +0 -1
- package/dist/_chunks/layout-B_SXLhqf.js.map +0 -1
- package/dist/_chunks/layout-jIDzX0Fp.mjs.map +0 -1
- package/dist/_chunks/relations-CuvIgCqI.mjs.map +0 -1
- package/dist/_chunks/relations-iBMa_OFG.js.map +0 -1
- package/dist/_chunks/urls-CbOsUOoW.mjs +0 -7
- package/dist/_chunks/urls-CbOsUOoW.mjs.map +0 -1
- package/dist/_chunks/urls-DzZya_gm.js +0 -6
- package/dist/_chunks/urls-DzZya_gm.js.map +0 -1
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
- package/dist/server/src/controllers/utils/dimensions.d.ts +0 -5
- package/dist/server/src/controllers/utils/dimensions.d.ts.map +0 -1
- package/strapi-server.js +0 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":";AAKA,wBAYE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collection-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/collection-types.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"collection-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/collection-types.ts"],"names":[],"mappings":";cAwHkB,GAAG;iBAuDA,GAAG;gBAyDJ,GAAG;gBA0BH,GAAG;eAYJ,GAAG;mBA4CC,GAAG;gBAmBN,GAAG;IAoCrB;;;OAGG;iBACgB,GAAG;qBA6FC,GAAG;uBA6CD,GAAG;mBAyCP,GAAG;iBAyDL,GAAG;oBAwCA,GAAG;6BA6CM,GAAG;wCAkCQ,GAAG;;AAjmB/C,wBAkoBE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAUE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/relations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;;
|
1
|
+
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/relations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;;uCA6Ib,GAAG,OAAO,KAAK,EAAE;IA4H1D;;;;OAIG;uBACsB,GAAG;sBAwIJ,GAAG;;AA1Q7B,wBAkXE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"single-types.d.ts","sourceRoot":"","sources":["../../../../server/src/controllers/single-types.ts"],"names":[],"mappings":";
|
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":";
|
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,23 @@
|
|
1
|
+
import { UID } from '@strapi/types';
|
2
|
+
import { DocumentVersion, GetMetadataOptions } from '../../services/document-metadata';
|
3
|
+
import type { AvailableLocaleDocument } from '../../../../shared/contracts/collection-types';
|
4
|
+
/**
|
5
|
+
* Format a document with metadata. Making sure the metadata response is
|
6
|
+
* correctly sanitized for the current user
|
7
|
+
*/
|
8
|
+
export declare const formatDocumentWithMetadata: (permissionChecker: any, uid: UID.ContentType, document: DocumentVersion, opts?: GetMetadataOptions) => Promise<{
|
9
|
+
meta: {
|
10
|
+
availableLocales: AvailableLocaleDocument[];
|
11
|
+
availableStatus: Partial<DocumentVersion>[];
|
12
|
+
};
|
13
|
+
data: {
|
14
|
+
status: string | undefined;
|
15
|
+
id: string | number;
|
16
|
+
documentId: string;
|
17
|
+
locale?: string | undefined;
|
18
|
+
localizations?: DocumentVersion[] | undefined;
|
19
|
+
updatedAt?: string | Date | null | undefined;
|
20
|
+
publishedAt?: string | Date | null | undefined;
|
21
|
+
};
|
22
|
+
}>;
|
23
|
+
//# 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;AAEvF,OAAO,KAAK,EACV,uBAAuB,EAExB,MAAM,+CAA+C,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,sBAClB,GAAG,OACjB,IAAI,WAAW,YACV,eAAe,SACnB,kBAAkB;;;;;;;;;;;;;;EA6BzB,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
|
-
|
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;
|
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;8BAoJ8B,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,
|
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;AA6FxD,QAAA,MAAM,uBAAuB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;CA8GnE,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
@@ -17,12 +17,12 @@ export declare const createServiceUtils: ({ strapi }: {
|
|
17
17
|
removed: Struct.SchemaAttributes;
|
18
18
|
};
|
19
19
|
getRelationRestoreValue: (versionRelationData: Data.Entity, attribute: Schema.Attribute.RelationWithTarget) => Promise<Modules.Documents.AnyDocument | Modules.Documents.AnyDocument[] | ({
|
20
|
-
id: Data.ID;
|
21
|
-
} & Pick<{
|
22
20
|
[x: string]: any;
|
23
|
-
|
21
|
+
id: Data.ID;
|
22
|
+
} & any[]) | null>;
|
24
23
|
getMediaRestoreValue: (versionRelationData: Data.Entity, attribute: Schema.Attribute.Media<any, boolean>) => Promise<any>;
|
25
24
|
getDefaultLocale: () => Promise<any>;
|
25
|
+
isLocalizedContentType: (model: Schema.ContentType) => any;
|
26
26
|
getLocaleDictionary: () => Promise<{
|
27
27
|
[key: string]: {
|
28
28
|
name: string;
|
@@ -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
|
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;;oCAuBV,OAAO,WAAW;+BAQnB,QAAQ;QAC5C,CAAC,GAAG,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;2BAmClB,IAAI,MAAM;iCA+DE;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;CAmD7B,CAAC"}
|
@@ -167,46 +167,26 @@ 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[]):
|
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[]): 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<
|
180
|
-
getStatus(version: import("./services/document-metadata").DocumentVersion, otherDocumentStatuses?:
|
172
|
+
getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./services/document-metadata").DocumentVersion[]): Promise<any[]>;
|
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:
|
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: string | number;
|
196
182
|
documentId: string;
|
197
|
-
locale
|
198
|
-
|
199
|
-
|
183
|
+
locale?: string | undefined;
|
184
|
+
localizations?: import("./services/document-metadata").DocumentVersion[] | undefined;
|
185
|
+
updatedAt?: string | Date | null | undefined;
|
186
|
+
publishedAt?: string | Date | null | undefined;
|
200
187
|
};
|
201
188
|
meta: {
|
202
|
-
availableLocales:
|
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)[];
|
189
|
+
availableLocales: import("../../shared/contracts/collection-types").AvailableLocaleDocument[];
|
210
190
|
availableStatus: Partial<import("./services/document-metadata").DocumentVersion>[];
|
211
191
|
};
|
212
192
|
}>;
|
@@ -215,37 +195,37 @@ declare const _default: () => {
|
|
215
195
|
strapi: import("@strapi/types/dist/core").Strapi;
|
216
196
|
}) => {
|
217
197
|
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: {
|
198
|
+
findLocales(id: string | string[] | undefined, uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, opts: {
|
219
199
|
populate?: {
|
220
200
|
populate?: import("@strapi/types/dist/modules/documents/params/populate").Any<any> | undefined;
|
221
201
|
} | undefined;
|
222
202
|
locale?: string | string[] | undefined;
|
203
|
+
isPublished?: boolean | undefined;
|
223
204
|
}): Promise<any[]>;
|
224
205
|
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
206
|
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
207
|
results: import("@strapi/types/dist/modules/documents").AnyDocument[];
|
227
|
-
pagination:
|
228
|
-
page: number;
|
229
|
-
pageSize: number;
|
230
|
-
pageCount: number;
|
231
|
-
total: number;
|
232
|
-
};
|
208
|
+
pagination: import("@strapi/utils/dist/pagination").PagePatinationInformation;
|
233
209
|
}>;
|
234
210
|
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
211
|
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
212
|
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
213
|
exists(uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, id?: string | undefined): Promise<boolean>;
|
238
214
|
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(
|
215
|
+
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) & {
|
216
|
+
locale?: string | undefined;
|
217
|
+
}): Promise<{
|
218
|
+
count: number;
|
219
|
+
}>;
|
220
|
+
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[]>;
|
221
|
+
publishMany(uid: import("@strapi/types/dist/uid").ContentType, documentIds: string[], locale?: string | string[] | undefined): Promise<number>;
|
222
|
+
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
223
|
count: number;
|
241
224
|
}>;
|
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
225
|
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
226
|
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
227
|
countDraftRelations(id: string, uid: import("@strapi/types/dist/uid").ContentType, locale: string): Promise<number>;
|
248
|
-
countManyEntriesDraftRelations(
|
228
|
+
countManyEntriesDraftRelations(documentIds: string[], uid: `admin::${string}` | `strapi::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}`, locale: string | string[]): Promise<number>;
|
249
229
|
};
|
250
230
|
'field-sizes': ({ strapi }: {
|
251
231
|
strapi: import("@strapi/types/dist/core").Strapi;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAUE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hasPermissions.d.ts","sourceRoot":"","sources":["../../../../server/src/policies/hasPermissions.ts"],"names":[],"mappings":";;;;;AAMA,
|
1
|
+
{"version":3,"file":"hasPermissions.d.ts","sourceRoot":"","sources":["../../../../server/src/policies/hasPermissions.ts"],"names":[],"mappings":";;;;;AAMA,wBAqBG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/controllers/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,8DAM0B,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
declare const createPreviewController: () => {
|
2
|
+
/**
|
3
|
+
* Transforms an entry into a preview URL, so that it can be previewed
|
4
|
+
* in the Content Manager.
|
5
|
+
*/
|
6
|
+
getPreviewUrl(ctx: import("koa").Context): Promise<{
|
7
|
+
data: {
|
8
|
+
url: string | undefined;
|
9
|
+
};
|
10
|
+
}>;
|
11
|
+
};
|
12
|
+
export { createPreviewController };
|
13
|
+
//# sourceMappingURL=preview.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/controllers/preview.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,uBAAuB;IAEzB;;;OAGG;;;;;;CAwBN,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type { Core, UID } from '@strapi/types';
|
3
|
+
import { Preview } from '../../../../../shared/contracts';
|
4
|
+
import type { HandlerParams } from '../../services/preview-config';
|
5
|
+
export declare const validatePreviewUrl: (strapi: Core.Strapi, uid: UID.ContentType, params: Preview.GetPreviewUrl.Request['query']) => Promise<HandlerParams>;
|
6
|
+
//# sourceMappingURL=preview.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../../server/src/preview/controllers/validation/preview.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAYnE,eAAO,MAAM,kBAAkB,WACrB,KAAK,MAAM,OACd,IAAI,WAAW,UACZ,QAAQ,aAAa,QAAQ,CAAC,OAAO,CAAC,KAC7C,QAAQ,aAAa,CAwCvB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/preview/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;;AAyB5C,wBAA4B"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* The routes will be merged with the other Content Manager routers,
|
3
|
+
* so we need to avoid conficts in the router name, and to prefix the path for each route.
|
4
|
+
*/
|
5
|
+
export declare const routes: {
|
6
|
+
preview: import("@strapi/types/dist/core").Router;
|
7
|
+
};
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/routes/index.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,MAAM;;CAEsB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/routes/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,MAAM,CAaxD,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare const services: {
|
2
|
+
preview: ({ strapi }: {
|
3
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
4
|
+
}) => {
|
5
|
+
getPreviewUrl(uid: import("@strapi/types/dist/uid").ContentType, params: import("./preview-config").HandlerParams): Promise<string | undefined>;
|
6
|
+
};
|
7
|
+
'preview-config': ({ strapi }: {
|
8
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
9
|
+
}) => {
|
10
|
+
register(): void;
|
11
|
+
isEnabled(): boolean;
|
12
|
+
validate(): void;
|
13
|
+
getPreviewHandler(): (uid: import("@strapi/types/dist/uid").Schema, params: import("./preview-config").HandlerParams) => string | undefined;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/services/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAGsB,CAAC"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { Core, UID } from '@strapi/types';
|
2
|
+
export type HandlerParams = {
|
3
|
+
documentId: string;
|
4
|
+
locale: string;
|
5
|
+
status: 'published' | 'draft';
|
6
|
+
};
|
7
|
+
export interface PreviewConfig {
|
8
|
+
enabled: boolean;
|
9
|
+
config: {
|
10
|
+
allowedOrigins: string[];
|
11
|
+
handler: (uid: UID.Schema, params: HandlerParams) => string | undefined;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* Read configuration for static preview
|
16
|
+
*/
|
17
|
+
declare const createPreviewConfigService: ({ strapi }: {
|
18
|
+
strapi: Core.Strapi;
|
19
|
+
}) => {
|
20
|
+
register(): void;
|
21
|
+
isEnabled(): boolean;
|
22
|
+
/**
|
23
|
+
* Validate if the configuration is valid
|
24
|
+
*/
|
25
|
+
validate(): void;
|
26
|
+
/**
|
27
|
+
* Utility to get the preview handler from the configuration
|
28
|
+
*/
|
29
|
+
getPreviewHandler(): PreviewConfig['config']['handler'];
|
30
|
+
};
|
31
|
+
export { createPreviewConfigService };
|
32
|
+
//# sourceMappingURL=preview-config.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"preview-config.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/services/preview-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QAEN,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,KAAK,MAAM,GAAG,SAAS,CAAC;KACzE,CAAC;CACH;AAoCD;;GAEG;AACH,QAAA,MAAM,0BAA0B,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;IAoCnE;;OAEG;;IAgBH;;OAEG;yBACkB,aAAa,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;CAc1D,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Core, UID } from '@strapi/types';
|
2
|
+
import type { HandlerParams } from './preview-config';
|
3
|
+
/**
|
4
|
+
* Responsible of routing an entry to a preview URL.
|
5
|
+
*/
|
6
|
+
declare const createPreviewService: ({ strapi }: {
|
7
|
+
strapi: Core.Strapi;
|
8
|
+
}) => {
|
9
|
+
getPreviewUrl(uid: UID.ContentType, params: HandlerParams): Promise<string | undefined>;
|
10
|
+
};
|
11
|
+
export { createPreviewService };
|
12
|
+
//# sourceMappingURL=preview.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/services/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAI/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,QAAA,MAAM,oBAAoB,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;uBAIpC,IAAI,WAAW,UAAU,aAAa;CAelE,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { Core } from '@strapi/types';
|
2
|
+
type PreviewServices = typeof import('./services').services;
|
3
|
+
declare function getService<T extends keyof PreviewServices>(strapi: Core.Strapi, name: T): ReturnType<{
|
4
|
+
preview: ({ strapi }: {
|
5
|
+
strapi: Core.Strapi;
|
6
|
+
}) => {
|
7
|
+
getPreviewUrl(uid: import("@strapi/types/dist/uid").ContentType, params: import("./services/preview-config").HandlerParams): Promise<string | undefined>;
|
8
|
+
};
|
9
|
+
'preview-config': ({ strapi }: {
|
10
|
+
strapi: Core.Strapi;
|
11
|
+
}) => {
|
12
|
+
register(): void;
|
13
|
+
isEnabled(): boolean;
|
14
|
+
validate(): void;
|
15
|
+
getPreviewHandler(): (uid: import("@strapi/types/dist/uid").Schema, params: import("./services/preview-config").HandlerParams) => string | undefined;
|
16
|
+
};
|
17
|
+
}[T]>;
|
18
|
+
export { getService };
|
19
|
+
//# sourceMappingURL=utils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../server/src/preview/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,KAAK,eAAe,GAAG,cAAc,YAAY,EAAE,QAAQ,CAAC;AAE5D,iBAAS,UAAU,CAAC,CAAC,SAAS,MAAM,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC;;;;;;;;;;;;;;MAGhF;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,QAAA,MAAM,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU,CAG7C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
@@ -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(
|
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(
|
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":"
|
1
|
+
{"version":3,"file":"document-manager.d.ts","sourceRoot":"","sources":["../../../../server/src/services/document-manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,UAAU,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAKxD,KAAK,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC;AACpD,KAAK,gBAAgB,CAAC,OAAO,SAAS,MAAM,UAAU,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7F,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAQjE,QAAA,MAAM,eAAe,eAAgB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;gBAGlD,MAAM,OACL,IAAI,cAAc,SACjB,KAAK,iBAAiB,SAAS,CAAC,EAAE,YAAY,CAAC;IAKvD;;OAEG;oBAEG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,OAC5B,IAAI,cAAc,QACjB;QACJ,QAAQ,CAAC,EAAE,QAAQ,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;QAC1D,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,GAAG,CAAC;QACjC,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;mBA0BkB,iBAAiB,UAAU,CAAC,OAAO,IAAI,cAAc;mBAKrD,iBAAiB,UAAU,CAAC,OAAO,IAAI,cAAc;;;;gBAgBxD,IAAI,cAAc,SAAQ,iBAAiB,QAAQ,CAAC;eAQhE,QAAQ,SAAS,CAAC,EAAE,OACnB,IAAI,cAAc,SACjB,KAAK,iBAAiB,QAAQ,CAAC,EAAE,YAAY,CAAC;cAUhD,QAAQ,SAAS,CAAC,EAAE,QAClB,QAAQ,QAAQ,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,cAAc,CAAC,CAAC,OACjE,IAAI,cAAc;IAczB;;OAEG;gBACe,IAAI,cAAc,OAAO,MAAM;eAa3C,QAAQ,SAAS,CAAC,EAAE,OACnB,IAAI,cAAc,SACjB,KAAK,iBAAiB,QAAQ,CAAC,EAAE,YAAY,CAAC;4BAcvC,QAAQ,SAAS,CAAC,EAAE,EAAE,OAC9B,IAAI,cAAc,SACjB,iBAAiB,UAAU,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;gBAUpD,QAAQ,SAAS,CAAC,EAAE,OACnB,IAAI,cAAc,SACjB,KAAK,iBAAiB,SAAS,CAAC,EAAE,YAAY,CAAC;qBAWhC,IAAI,WAAW,eAAe,MAAM,EAAE,WAAW,MAAM,GAAG,MAAM,EAAE;+BAY1E,QAAQ,SAAS,CAAC,EAAE,EAAE,OAC9B,IAAI,cAAc,SACjB,KAAK,iBAAiB,WAAW,CAAC,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;gDAkB3D,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,11 +1,12 @@
|
|
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:
|
6
|
-
locale
|
7
|
-
|
8
|
-
|
4
|
+
id: string | number;
|
5
|
+
documentId: Modules.Documents.ID;
|
6
|
+
locale?: string;
|
7
|
+
localizations?: DocumentVersion[];
|
8
|
+
updatedAt?: string | null | Date;
|
9
|
+
publishedAt?: string | null | Date;
|
9
10
|
}
|
10
11
|
/**
|
11
12
|
* Controls the metadata properties to be returned
|
@@ -26,14 +27,7 @@ declare const _default: ({ strapi }: {
|
|
26
27
|
/**
|
27
28
|
* Returns available locales of a document for the current status
|
28
29
|
*/
|
29
|
-
getAvailableLocales(uid: UID.ContentType, version: DocumentVersion, allVersions: 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)[];
|
30
|
+
getAvailableLocales(uid: UID.ContentType, version: DocumentVersion, allVersions: DocumentVersion[]): Promise<import("../../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
|
37
31
|
/**
|
38
32
|
* Returns available status of a document for the current locale
|
39
33
|
*/
|
@@ -44,17 +38,10 @@ declare const _default: ({ strapi }: {
|
|
44
38
|
* @param documents
|
45
39
|
* @returns
|
46
40
|
*/
|
47
|
-
getManyAvailableStatus(uid: UID.ContentType, documents: DocumentVersion[]): Promise<
|
41
|
+
getManyAvailableStatus(uid: UID.ContentType, documents: DocumentVersion[]): Promise<any[]>;
|
48
42
|
getStatus(version: DocumentVersion, otherDocumentStatuses?: DocumentMetadata['availableStatus']): string;
|
49
43
|
getMetadata(uid: UID.ContentType, version: DocumentVersion, { availableLocales, availableStatus }?: GetMetadataOptions): Promise<{
|
50
|
-
availableLocales: (
|
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)[];
|
44
|
+
availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
|
58
45
|
availableStatus: Partial<DocumentVersion>[];
|
59
46
|
}>;
|
60
47
|
/**
|
@@ -65,21 +52,15 @@ declare const _default: ({ strapi }: {
|
|
65
52
|
formatDocumentWithMetadata(uid: UID.ContentType, document: DocumentVersion, opts?: GetMetadataOptions): Promise<{
|
66
53
|
data: {
|
67
54
|
status: string | undefined;
|
68
|
-
id: string;
|
55
|
+
id: string | number;
|
69
56
|
documentId: string;
|
70
|
-
locale
|
71
|
-
|
72
|
-
|
57
|
+
locale?: string | undefined;
|
58
|
+
localizations?: DocumentVersion[] | undefined;
|
59
|
+
updatedAt?: string | Date | null | undefined;
|
60
|
+
publishedAt?: string | Date | null | undefined;
|
73
61
|
};
|
74
62
|
meta: {
|
75
|
-
availableLocales: (
|
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)[];
|
63
|
+
availableLocales: import("../../../shared/contracts/collection-types").AvailableLocaleDocument[];
|
83
64
|
availableStatus: Partial<DocumentVersion>[];
|
84
65
|
};
|
85
66
|
}>;
|