@strapi/plugin-documentation 5.37.0 → 5.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/components/SettingsForm.js.map +1 -1
- package/dist/admin/components/SettingsForm.mjs +2 -2
- package/dist/admin/components/SettingsForm.mjs.map +1 -1
- package/dist/admin/constants.js.map +1 -1
- package/dist/admin/constants.mjs.map +1 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/pages/App.js.map +1 -1
- package/dist/admin/pages/App.mjs.map +1 -1
- package/dist/admin/pages/Settings.js.map +1 -1
- package/dist/admin/pages/Settings.mjs.map +1 -1
- package/dist/admin/services/api.js.map +1 -1
- package/dist/admin/services/api.mjs.map +1 -1
- package/dist/admin/utils/getTrad.js.map +1 -1
- package/dist/admin/utils/getTrad.mjs.map +1 -1
- package/dist/admin/utils/prefixPluginTranslations.js.map +1 -1
- package/dist/admin/utils/prefixPluginTranslations.mjs.map +1 -1
- package/dist/server/bootstrap.js.map +1 -1
- package/dist/server/bootstrap.mjs.map +1 -1
- package/dist/server/config/default-plugin-config.js.map +1 -1
- package/dist/server/config/default-plugin-config.mjs.map +1 -1
- package/dist/server/config/index.js.map +1 -1
- package/dist/server/config/index.mjs.map +1 -1
- package/dist/server/controllers/documentation.js.map +1 -1
- package/dist/server/controllers/documentation.mjs.map +1 -1
- package/dist/server/controllers/index.js.map +1 -1
- package/dist/server/controllers/index.mjs.map +1 -1
- package/dist/server/index.js +8 -8
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/middlewares/documentation.js.map +1 -1
- package/dist/server/middlewares/documentation.mjs.map +1 -1
- package/dist/server/middlewares/restrict-access.js.map +1 -1
- package/dist/server/middlewares/restrict-access.mjs.map +1 -1
- package/dist/server/register.js.map +1 -1
- package/dist/server/register.mjs.map +1 -1
- package/dist/server/routes/index.js.map +1 -1
- package/dist/server/routes/index.mjs.map +1 -1
- package/dist/server/services/documentation.js.map +1 -1
- package/dist/server/services/documentation.mjs.map +1 -1
- package/dist/server/services/helpers/build-api-endpoint-path.js.map +1 -1
- package/dist/server/services/helpers/build-api-endpoint-path.mjs.map +1 -1
- package/dist/server/services/helpers/build-component-schema.js.map +1 -1
- package/dist/server/services/helpers/build-component-schema.mjs.map +1 -1
- package/dist/server/services/helpers/utils/clean-schema-attributes.js.map +1 -1
- package/dist/server/services/helpers/utils/clean-schema-attributes.mjs.map +1 -1
- package/dist/server/services/helpers/utils/get-api-responses.js.map +1 -1
- package/dist/server/services/helpers/utils/get-api-responses.mjs.map +1 -1
- package/dist/server/services/helpers/utils/get-schema-data.js.map +1 -1
- package/dist/server/services/helpers/utils/get-schema-data.mjs.map +1 -1
- package/dist/server/services/helpers/utils/loop-content-type-names.js.map +1 -1
- package/dist/server/services/helpers/utils/loop-content-type-names.mjs.map +1 -1
- package/dist/server/services/helpers/utils/pascal-case.js.map +1 -1
- package/dist/server/services/helpers/utils/pascal-case.mjs.map +1 -1
- package/dist/server/services/helpers/utils/query-params.js.map +1 -1
- package/dist/server/services/helpers/utils/query-params.mjs.map +1 -1
- package/dist/server/services/helpers/utils/routes.js.map +1 -1
- package/dist/server/services/helpers/utils/routes.mjs.map +1 -1
- package/dist/server/services/index.js.map +1 -1
- package/dist/server/services/index.mjs +4 -4
- package/dist/server/services/index.mjs.map +1 -1
- package/dist/server/services/override.js.map +1 -1
- package/dist/server/services/override.mjs.map +1 -1
- package/dist/server/services/utils/get-plugins-that-need-documentation.js.map +1 -1
- package/dist/server/services/utils/get-plugins-that-need-documentation.mjs.map +1 -1
- package/dist/server/utils.js.map +1 -1
- package/dist/server/utils.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-content-type-names.js","sources":["../../../../../server/src/services/helpers/utils/loop-content-type-names.ts"],"sourcesContent":["import _ from 'lodash';\n\nimport type { Api, ApiInfo } from '../../../types';\n\n/**\n * @description A reusable loop for building api endpoint paths and component schemas\n */\nconst loopContentTypeNames = (api: Api, callback: (info: ApiInfo) => any) => {\n let result = {};\n for (const contentTypeName of api.ctNames) {\n // Get the attributes found on the api's contentType\n const uid = `${api.getter}::${api.name}.${contentTypeName}`;\n\n const { attributes, info: contentTypeInfo, kind } = strapi.contentType(uid as any);\n\n // Get the routes for the current api\n const routeInfo =\n api.getter === 'plugin'\n ? // @ts-expect-error – TODO: fix this\n strapi.plugin(api.name).routes['content-api']\n : strapi.api(api.name).routes[contentTypeName];\n\n // Continue to next iteration if routeInfo is undefined\n if (!routeInfo) {\n continue;\n }\n\n // Uppercase the first letter of the api name\n const apiName = _.upperFirst(api.name);\n\n // Create a unique name if the api name and contentType name don't match\n const uniqueName =\n api.name === contentTypeName ? apiName : `${apiName} - ${_.upperFirst(contentTypeName)}`;\n\n const apiInfo = {\n ...api,\n routeInfo,\n attributes,\n uniqueName,\n contentTypeInfo,\n kind,\n };\n\n result = {\n ...result,\n ...callback(apiInfo),\n };\n }\n\n return result;\n};\n\nexport default loopContentTypeNames;\n"],"names":["loopContentTypeNames","api","callback","result","contentTypeName","ctNames","uid","getter","name","attributes","info","contentTypeInfo","kind","strapi","contentType","routeInfo","plugin","routes","apiName","_","upperFirst","uniqueName","apiInfo"],"mappings":";;;;AAIA;;IAGA,MAAMA,
|
|
1
|
+
{"version":3,"file":"loop-content-type-names.js","sources":["../../../../../server/src/services/helpers/utils/loop-content-type-names.ts"],"sourcesContent":["import _ from 'lodash';\n\nimport type { Api, ApiInfo } from '../../../types';\n\n/**\n * @description A reusable loop for building api endpoint paths and component schemas\n */\nconst loopContentTypeNames = (api: Api, callback: (info: ApiInfo) => any) => {\n let result = {};\n for (const contentTypeName of api.ctNames) {\n // Get the attributes found on the api's contentType\n const uid = `${api.getter}::${api.name}.${contentTypeName}`;\n\n const { attributes, info: contentTypeInfo, kind } = strapi.contentType(uid as any);\n\n // Get the routes for the current api\n const routeInfo =\n api.getter === 'plugin'\n ? // @ts-expect-error – TODO: fix this\n strapi.plugin(api.name).routes['content-api']\n : strapi.api(api.name).routes[contentTypeName];\n\n // Continue to next iteration if routeInfo is undefined\n if (!routeInfo) {\n continue;\n }\n\n // Uppercase the first letter of the api name\n const apiName = _.upperFirst(api.name);\n\n // Create a unique name if the api name and contentType name don't match\n const uniqueName =\n api.name === contentTypeName ? apiName : `${apiName} - ${_.upperFirst(contentTypeName)}`;\n\n const apiInfo = {\n ...api,\n routeInfo,\n attributes,\n uniqueName,\n contentTypeInfo,\n kind,\n };\n\n result = {\n ...result,\n ...callback(apiInfo),\n };\n }\n\n return result;\n};\n\nexport default loopContentTypeNames;\n"],"names":["loopContentTypeNames","api","callback","result","contentTypeName","ctNames","uid","getter","name","attributes","info","contentTypeInfo","kind","strapi","contentType","routeInfo","plugin","routes","apiName","_","upperFirst","uniqueName","apiInfo"],"mappings":";;;;AAIA;;IAGA,MAAMA,oBAAAA,GAAuB,CAACC,GAAAA,EAAUC,QAAAA,GAAAA;AACtC,IAAA,IAAIC,SAAS,EAAC;AACd,IAAA,KAAK,MAAMC,eAAAA,IAAmBH,GAAAA,CAAII,OAAO,CAAE;;AAEzC,QAAA,MAAMC,GAAAA,GAAM,CAAA,EAAGL,GAAAA,CAAIM,MAAM,CAAC,EAAE,EAAEN,GAAAA,CAAIO,IAAI,CAAC,CAAC,EAAEJ,eAAAA,CAAAA,CAAiB;QAE3D,MAAM,EAAEK,UAAU,EAAEC,IAAAA,EAAMC,eAAe,EAAEC,IAAI,EAAE,GAAGC,MAAAA,CAAOC,WAAW,CAACR,GAAAA,CAAAA;;QAGvE,MAAMS,SAAAA,GACJd,IAAIM,MAAM,KAAK,WAEXM,MAAAA,CAAOG,MAAM,CAACf,GAAAA,CAAIO,IAAI,CAAA,CAAES,MAAM,CAAC,aAAA,CAAc,GAC7CJ,MAAAA,CAAOZ,GAAG,CAACA,IAAIO,IAAI,CAAA,CAAES,MAAM,CAACb,eAAAA,CAAgB;;AAGlD,QAAA,IAAI,CAACW,SAAAA,EAAW;AACd,YAAA;AACF,QAAA;;AAGA,QAAA,MAAMG,OAAAA,GAAUC,CAAAA,CAAEC,UAAU,CAACnB,IAAIO,IAAI,CAAA;;AAGrC,QAAA,MAAMa,UAAAA,GACJpB,GAAAA,CAAIO,IAAI,KAAKJ,eAAAA,GAAkBc,OAAAA,GAAU,CAAA,EAAGA,OAAAA,CAAQ,GAAG,EAAEC,CAAAA,CAAEC,UAAU,CAAChB,eAAAA,CAAAA,CAAAA,CAAkB;AAE1F,QAAA,MAAMkB,OAAAA,GAAU;AACd,YAAA,GAAGrB,GAAG;AACNc,YAAAA,SAAAA;AACAN,YAAAA,UAAAA;AACAY,YAAAA,UAAAA;AACAV,YAAAA,eAAAA;AACAC,YAAAA;AACF,SAAA;QAEAT,MAAAA,GAAS;AACP,YAAA,GAAGA,MAAM;AACT,YAAA,GAAGD,SAASoB,OAAAA;AACd,SAAA;AACF,IAAA;IAEA,OAAOnB,MAAAA;AACT;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-content-type-names.mjs","sources":["../../../../../server/src/services/helpers/utils/loop-content-type-names.ts"],"sourcesContent":["import _ from 'lodash';\n\nimport type { Api, ApiInfo } from '../../../types';\n\n/**\n * @description A reusable loop for building api endpoint paths and component schemas\n */\nconst loopContentTypeNames = (api: Api, callback: (info: ApiInfo) => any) => {\n let result = {};\n for (const contentTypeName of api.ctNames) {\n // Get the attributes found on the api's contentType\n const uid = `${api.getter}::${api.name}.${contentTypeName}`;\n\n const { attributes, info: contentTypeInfo, kind } = strapi.contentType(uid as any);\n\n // Get the routes for the current api\n const routeInfo =\n api.getter === 'plugin'\n ? // @ts-expect-error – TODO: fix this\n strapi.plugin(api.name).routes['content-api']\n : strapi.api(api.name).routes[contentTypeName];\n\n // Continue to next iteration if routeInfo is undefined\n if (!routeInfo) {\n continue;\n }\n\n // Uppercase the first letter of the api name\n const apiName = _.upperFirst(api.name);\n\n // Create a unique name if the api name and contentType name don't match\n const uniqueName =\n api.name === contentTypeName ? apiName : `${apiName} - ${_.upperFirst(contentTypeName)}`;\n\n const apiInfo = {\n ...api,\n routeInfo,\n attributes,\n uniqueName,\n contentTypeInfo,\n kind,\n };\n\n result = {\n ...result,\n ...callback(apiInfo),\n };\n }\n\n return result;\n};\n\nexport default loopContentTypeNames;\n"],"names":["loopContentTypeNames","api","callback","result","contentTypeName","ctNames","uid","getter","name","attributes","info","contentTypeInfo","kind","strapi","contentType","routeInfo","plugin","routes","apiName","_","upperFirst","uniqueName","apiInfo"],"mappings":";;AAIA;;IAGA,MAAMA,
|
|
1
|
+
{"version":3,"file":"loop-content-type-names.mjs","sources":["../../../../../server/src/services/helpers/utils/loop-content-type-names.ts"],"sourcesContent":["import _ from 'lodash';\n\nimport type { Api, ApiInfo } from '../../../types';\n\n/**\n * @description A reusable loop for building api endpoint paths and component schemas\n */\nconst loopContentTypeNames = (api: Api, callback: (info: ApiInfo) => any) => {\n let result = {};\n for (const contentTypeName of api.ctNames) {\n // Get the attributes found on the api's contentType\n const uid = `${api.getter}::${api.name}.${contentTypeName}`;\n\n const { attributes, info: contentTypeInfo, kind } = strapi.contentType(uid as any);\n\n // Get the routes for the current api\n const routeInfo =\n api.getter === 'plugin'\n ? // @ts-expect-error – TODO: fix this\n strapi.plugin(api.name).routes['content-api']\n : strapi.api(api.name).routes[contentTypeName];\n\n // Continue to next iteration if routeInfo is undefined\n if (!routeInfo) {\n continue;\n }\n\n // Uppercase the first letter of the api name\n const apiName = _.upperFirst(api.name);\n\n // Create a unique name if the api name and contentType name don't match\n const uniqueName =\n api.name === contentTypeName ? apiName : `${apiName} - ${_.upperFirst(contentTypeName)}`;\n\n const apiInfo = {\n ...api,\n routeInfo,\n attributes,\n uniqueName,\n contentTypeInfo,\n kind,\n };\n\n result = {\n ...result,\n ...callback(apiInfo),\n };\n }\n\n return result;\n};\n\nexport default loopContentTypeNames;\n"],"names":["loopContentTypeNames","api","callback","result","contentTypeName","ctNames","uid","getter","name","attributes","info","contentTypeInfo","kind","strapi","contentType","routeInfo","plugin","routes","apiName","_","upperFirst","uniqueName","apiInfo"],"mappings":";;AAIA;;IAGA,MAAMA,oBAAAA,GAAuB,CAACC,GAAAA,EAAUC,QAAAA,GAAAA;AACtC,IAAA,IAAIC,SAAS,EAAC;AACd,IAAA,KAAK,MAAMC,eAAAA,IAAmBH,GAAAA,CAAII,OAAO,CAAE;;AAEzC,QAAA,MAAMC,GAAAA,GAAM,CAAA,EAAGL,GAAAA,CAAIM,MAAM,CAAC,EAAE,EAAEN,GAAAA,CAAIO,IAAI,CAAC,CAAC,EAAEJ,eAAAA,CAAAA,CAAiB;QAE3D,MAAM,EAAEK,UAAU,EAAEC,IAAAA,EAAMC,eAAe,EAAEC,IAAI,EAAE,GAAGC,MAAAA,CAAOC,WAAW,CAACR,GAAAA,CAAAA;;QAGvE,MAAMS,SAAAA,GACJd,IAAIM,MAAM,KAAK,WAEXM,MAAAA,CAAOG,MAAM,CAACf,GAAAA,CAAIO,IAAI,CAAA,CAAES,MAAM,CAAC,aAAA,CAAc,GAC7CJ,MAAAA,CAAOZ,GAAG,CAACA,IAAIO,IAAI,CAAA,CAAES,MAAM,CAACb,eAAAA,CAAgB;;AAGlD,QAAA,IAAI,CAACW,SAAAA,EAAW;AACd,YAAA;AACF,QAAA;;AAGA,QAAA,MAAMG,OAAAA,GAAUC,CAAAA,CAAEC,UAAU,CAACnB,IAAIO,IAAI,CAAA;;AAGrC,QAAA,MAAMa,UAAAA,GACJpB,GAAAA,CAAIO,IAAI,KAAKJ,eAAAA,GAAkBc,OAAAA,GAAU,CAAA,EAAGA,OAAAA,CAAQ,GAAG,EAAEC,CAAAA,CAAEC,UAAU,CAAChB,eAAAA,CAAAA,CAAAA,CAAkB;AAE1F,QAAA,MAAMkB,OAAAA,GAAU;AACd,YAAA,GAAGrB,GAAG;AACNc,YAAAA,SAAAA;AACAN,YAAAA,UAAAA;AACAY,YAAAA,UAAAA;AACAV,YAAAA,eAAAA;AACAC,YAAAA;AACF,SAAA;QAEAT,MAAAA,GAAS;AACP,YAAA,GAAGA,MAAM;AACT,YAAA,GAAGD,SAASoB,OAAAA;AACd,SAAA;AACF,IAAA;IAEA,OAAOnB,MAAAA;AACT;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pascal-case.js","sources":["../../../../../server/src/services/helpers/utils/pascal-case.ts"],"sourcesContent":["import _ from 'lodash';\n\nconst pascalCase = (string: string) => {\n return _.upperFirst(_.camelCase(string));\n};\n\nexport default pascalCase;\n"],"names":["pascalCase","string","_","upperFirst","camelCase"],"mappings":";;;;AAEA,MAAMA,aAAa,CAACC,MAAAA,GAAAA;AAClB,IAAA,OAAOC,CAAEC,
|
|
1
|
+
{"version":3,"file":"pascal-case.js","sources":["../../../../../server/src/services/helpers/utils/pascal-case.ts"],"sourcesContent":["import _ from 'lodash';\n\nconst pascalCase = (string: string) => {\n return _.upperFirst(_.camelCase(string));\n};\n\nexport default pascalCase;\n"],"names":["pascalCase","string","_","upperFirst","camelCase"],"mappings":";;;;AAEA,MAAMA,aAAa,CAACC,MAAAA,GAAAA;AAClB,IAAA,OAAOC,CAAAA,CAAEC,UAAU,CAACD,CAAAA,CAAEE,SAAS,CAACH,MAAAA,CAAAA,CAAAA;AAClC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pascal-case.mjs","sources":["../../../../../server/src/services/helpers/utils/pascal-case.ts"],"sourcesContent":["import _ from 'lodash';\n\nconst pascalCase = (string: string) => {\n return _.upperFirst(_.camelCase(string));\n};\n\nexport default pascalCase;\n"],"names":["pascalCase","string","_","upperFirst","camelCase"],"mappings":";;AAEA,MAAMA,aAAa,CAACC,MAAAA,GAAAA;AAClB,IAAA,OAAOC,CAAEC,
|
|
1
|
+
{"version":3,"file":"pascal-case.mjs","sources":["../../../../../server/src/services/helpers/utils/pascal-case.ts"],"sourcesContent":["import _ from 'lodash';\n\nconst pascalCase = (string: string) => {\n return _.upperFirst(_.camelCase(string));\n};\n\nexport default pascalCase;\n"],"names":["pascalCase","string","_","upperFirst","camelCase"],"mappings":";;AAEA,MAAMA,aAAa,CAACC,MAAAA,GAAAA;AAClB,IAAA,OAAOC,CAAAA,CAAEC,UAAU,CAACD,CAAAA,CAAEE,SAAS,CAACH,MAAAA,CAAAA,CAAAA;AAClC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-params.js","sources":["../../../../../server/src/services/helpers/utils/query-params.ts"],"sourcesContent":["import type { OpenAPIV3 } from 'openapi-types';\n\nconst params: OpenAPIV3.ParameterObject[] = [\n {\n name: 'sort',\n in: 'query',\n description: 'Sort by attributes ascending (asc) or descending (desc)',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'pagination[withCount]',\n in: 'query',\n description: 'Return page/pageSize (default: true)',\n deprecated: false,\n required: false,\n schema: {\n type: 'boolean',\n },\n },\n {\n name: 'pagination[page]',\n in: 'query',\n description: 'Page number (default: 0)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[pageSize]',\n in: 'query',\n description: 'Page size (default: 25)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[start]',\n in: 'query',\n description: 'Offset value (default: 0)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[limit]',\n in: 'query',\n description: 'Number of entities to return (default: 25)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'fields',\n in: 'query',\n description: 'Fields to return (ex: title,author)',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'populate',\n in: 'query',\n description: 'Relations to return',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'filters',\n in: 'query',\n description: 'Filters to apply',\n deprecated: false,\n required: false,\n schema: {\n type: 'object',\n additionalProperties: true,\n },\n style: 'deepObject',\n },\n {\n name: 'locale',\n in: 'query',\n description: 'Locale to apply',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n];\n\nexport default params;\n"],"names":["params","name","in","description","deprecated","required","schema","type","additionalProperties","style"],"mappings":";;AAEA,MAAMA,
|
|
1
|
+
{"version":3,"file":"query-params.js","sources":["../../../../../server/src/services/helpers/utils/query-params.ts"],"sourcesContent":["import type { OpenAPIV3 } from 'openapi-types';\n\nconst params: OpenAPIV3.ParameterObject[] = [\n {\n name: 'sort',\n in: 'query',\n description: 'Sort by attributes ascending (asc) or descending (desc)',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'pagination[withCount]',\n in: 'query',\n description: 'Return page/pageSize (default: true)',\n deprecated: false,\n required: false,\n schema: {\n type: 'boolean',\n },\n },\n {\n name: 'pagination[page]',\n in: 'query',\n description: 'Page number (default: 0)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[pageSize]',\n in: 'query',\n description: 'Page size (default: 25)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[start]',\n in: 'query',\n description: 'Offset value (default: 0)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[limit]',\n in: 'query',\n description: 'Number of entities to return (default: 25)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'fields',\n in: 'query',\n description: 'Fields to return (ex: title,author)',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'populate',\n in: 'query',\n description: 'Relations to return',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'filters',\n in: 'query',\n description: 'Filters to apply',\n deprecated: false,\n required: false,\n schema: {\n type: 'object',\n additionalProperties: true,\n },\n style: 'deepObject',\n },\n {\n name: 'locale',\n in: 'query',\n description: 'Locale to apply',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n];\n\nexport default params;\n"],"names":["params","name","in","description","deprecated","required","schema","type","additionalProperties","style"],"mappings":";;AAEA,MAAMA,MAAAA,GAAsC;AAC1C,IAAA;QACEC,IAAAA,EAAM,MAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,yDAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,uBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,sCAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,kBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,0BAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,sBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,yBAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,mBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,2BAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,mBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,4CAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,QAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,qCAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,UAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,qBAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,SAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,kBAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM,QAAA;YACNC,oBAAAA,EAAsB;AACxB,SAAA;QACAC,KAAAA,EAAO;AACT,KAAA;AACA,IAAA;QACER,IAAAA,EAAM,QAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,iBAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF;AACD;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-params.mjs","sources":["../../../../../server/src/services/helpers/utils/query-params.ts"],"sourcesContent":["import type { OpenAPIV3 } from 'openapi-types';\n\nconst params: OpenAPIV3.ParameterObject[] = [\n {\n name: 'sort',\n in: 'query',\n description: 'Sort by attributes ascending (asc) or descending (desc)',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'pagination[withCount]',\n in: 'query',\n description: 'Return page/pageSize (default: true)',\n deprecated: false,\n required: false,\n schema: {\n type: 'boolean',\n },\n },\n {\n name: 'pagination[page]',\n in: 'query',\n description: 'Page number (default: 0)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[pageSize]',\n in: 'query',\n description: 'Page size (default: 25)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[start]',\n in: 'query',\n description: 'Offset value (default: 0)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[limit]',\n in: 'query',\n description: 'Number of entities to return (default: 25)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'fields',\n in: 'query',\n description: 'Fields to return (ex: title,author)',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'populate',\n in: 'query',\n description: 'Relations to return',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'filters',\n in: 'query',\n description: 'Filters to apply',\n deprecated: false,\n required: false,\n schema: {\n type: 'object',\n additionalProperties: true,\n },\n style: 'deepObject',\n },\n {\n name: 'locale',\n in: 'query',\n description: 'Locale to apply',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n];\n\nexport default params;\n"],"names":["params","name","in","description","deprecated","required","schema","type","additionalProperties","style"],"mappings":"AAEA,MAAMA,
|
|
1
|
+
{"version":3,"file":"query-params.mjs","sources":["../../../../../server/src/services/helpers/utils/query-params.ts"],"sourcesContent":["import type { OpenAPIV3 } from 'openapi-types';\n\nconst params: OpenAPIV3.ParameterObject[] = [\n {\n name: 'sort',\n in: 'query',\n description: 'Sort by attributes ascending (asc) or descending (desc)',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'pagination[withCount]',\n in: 'query',\n description: 'Return page/pageSize (default: true)',\n deprecated: false,\n required: false,\n schema: {\n type: 'boolean',\n },\n },\n {\n name: 'pagination[page]',\n in: 'query',\n description: 'Page number (default: 0)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[pageSize]',\n in: 'query',\n description: 'Page size (default: 25)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[start]',\n in: 'query',\n description: 'Offset value (default: 0)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'pagination[limit]',\n in: 'query',\n description: 'Number of entities to return (default: 25)',\n deprecated: false,\n required: false,\n schema: {\n type: 'integer',\n },\n },\n {\n name: 'fields',\n in: 'query',\n description: 'Fields to return (ex: title,author)',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'populate',\n in: 'query',\n description: 'Relations to return',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'filters',\n in: 'query',\n description: 'Filters to apply',\n deprecated: false,\n required: false,\n schema: {\n type: 'object',\n additionalProperties: true,\n },\n style: 'deepObject',\n },\n {\n name: 'locale',\n in: 'query',\n description: 'Locale to apply',\n deprecated: false,\n required: false,\n schema: {\n type: 'string',\n },\n },\n];\n\nexport default params;\n"],"names":["params","name","in","description","deprecated","required","schema","type","additionalProperties","style"],"mappings":"AAEA,MAAMA,MAAAA,GAAsC;AAC1C,IAAA;QACEC,IAAAA,EAAM,MAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,yDAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,uBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,sCAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,kBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,0BAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,sBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,yBAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,mBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,2BAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,mBAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,4CAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,QAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,qCAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,UAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,qBAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF,KAAA;AACA,IAAA;QACEN,IAAAA,EAAM,SAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,kBAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM,QAAA;YACNC,oBAAAA,EAAsB;AACxB,SAAA;QACAC,KAAAA,EAAO;AACT,KAAA;AACA,IAAA;QACER,IAAAA,EAAM,QAAA;QACNC,EAAAA,EAAI,OAAA;QACJC,WAAAA,EAAa,iBAAA;QACbC,UAAAA,EAAY,KAAA;QACZC,QAAAA,EAAU,KAAA;QACVC,MAAAA,EAAQ;YACNC,IAAAA,EAAM;AACR;AACF;AACD;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sources":["../../../../../server/src/services/helpers/utils/routes.ts"],"sourcesContent":["const hasFindMethod = (handler: unknown) => {\n if (typeof handler === 'string') {\n return handler.split('.').pop() === 'find';\n }\n\n return false;\n};\n\nexport { hasFindMethod };\n"],"names":["hasFindMethod","handler","split","pop"],"mappings":";;AAAA,MAAMA,gBAAgB,CAACC,OAAAA,GAAAA;IACrB,IAAI,OAAOA,YAAY,
|
|
1
|
+
{"version":3,"file":"routes.js","sources":["../../../../../server/src/services/helpers/utils/routes.ts"],"sourcesContent":["const hasFindMethod = (handler: unknown) => {\n if (typeof handler === 'string') {\n return handler.split('.').pop() === 'find';\n }\n\n return false;\n};\n\nexport { hasFindMethod };\n"],"names":["hasFindMethod","handler","split","pop"],"mappings":";;AAAA,MAAMA,gBAAgB,CAACC,OAAAA,GAAAA;IACrB,IAAI,OAAOA,YAAY,QAAA,EAAU;AAC/B,QAAA,OAAOA,OAAAA,CAAQC,KAAK,CAAC,GAAA,CAAA,CAAKC,GAAG,EAAA,KAAO,MAAA;AACtC,IAAA;IAEA,OAAO,KAAA;AACT;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.mjs","sources":["../../../../../server/src/services/helpers/utils/routes.ts"],"sourcesContent":["const hasFindMethod = (handler: unknown) => {\n if (typeof handler === 'string') {\n return handler.split('.').pop() === 'find';\n }\n\n return false;\n};\n\nexport { hasFindMethod };\n"],"names":["hasFindMethod","handler","split","pop"],"mappings":"AAAA,MAAMA,gBAAgB,CAACC,OAAAA,GAAAA;IACrB,IAAI,OAAOA,YAAY,
|
|
1
|
+
{"version":3,"file":"routes.mjs","sources":["../../../../../server/src/services/helpers/utils/routes.ts"],"sourcesContent":["const hasFindMethod = (handler: unknown) => {\n if (typeof handler === 'string') {\n return handler.split('.').pop() === 'find';\n }\n\n return false;\n};\n\nexport { hasFindMethod };\n"],"names":["hasFindMethod","handler","split","pop"],"mappings":"AAAA,MAAMA,gBAAgB,CAACC,OAAAA,GAAAA;IACrB,IAAI,OAAOA,YAAY,QAAA,EAAU;AAC/B,QAAA,OAAOA,OAAAA,CAAQC,KAAK,CAAC,GAAA,CAAA,CAAKC,GAAG,EAAA,KAAO,MAAA;AACtC,IAAA;IAEA,OAAO,KAAA;AACT;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../server/src/services/index.ts"],"sourcesContent":["// import type { Common } from '@strapi/types';\n\nimport documentation, { type DocumentationService } from './documentation';\nimport override, { type OverrideService } from './override';\n\nexport default {\n documentation,\n override,\n};\n\nexport type Services = {\n documentation: DocumentationService;\n override: OverrideService;\n};\n"],"names":["documentation","override"],"mappings":";;;;;AAAA;AAKA,eAAe;AACbA,IAAAA,aAAAA;AACAC,IAAAA;AACF,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../server/src/services/index.ts"],"sourcesContent":["// import type { Common } from '@strapi/types';\n\nimport documentation, { type DocumentationService } from './documentation';\nimport override, { type OverrideService } from './override';\n\nexport default {\n documentation,\n override,\n};\n\nexport type Services = {\n documentation: DocumentationService;\n override: OverrideService;\n};\n"],"names":["documentation","override"],"mappings":";;;;;AAAA;AAKA,eAAe;AACbA,IAAAA,aAAAA;AACAC,IAAAA;AACF,CAAA;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import createService from './documentation.mjs';
|
|
2
|
-
import createService
|
|
1
|
+
import createService$1 from './documentation.mjs';
|
|
2
|
+
import createService from './override.mjs';
|
|
3
3
|
|
|
4
4
|
// import type { Common } from '@strapi/types';
|
|
5
5
|
var services = {
|
|
6
|
-
documentation: createService,
|
|
7
|
-
override: createService
|
|
6
|
+
documentation: createService$1,
|
|
7
|
+
override: createService
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { services as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../server/src/services/index.ts"],"sourcesContent":["// import type { Common } from '@strapi/types';\n\nimport documentation, { type DocumentationService } from './documentation';\nimport override, { type OverrideService } from './override';\n\nexport default {\n documentation,\n override,\n};\n\nexport type Services = {\n documentation: DocumentationService;\n override: OverrideService;\n};\n"],"names":["documentation","override"],"mappings":";;;AAAA;AAKA,eAAe;AACbA,mBAAAA,
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../server/src/services/index.ts"],"sourcesContent":["// import type { Common } from '@strapi/types';\n\nimport documentation, { type DocumentationService } from './documentation';\nimport override, { type OverrideService } from './override';\n\nexport default {\n documentation,\n override,\n};\n\nexport type Services = {\n documentation: DocumentationService;\n override: OverrideService;\n};\n"],"names":["documentation","override"],"mappings":";;;AAAA;AAKA,eAAe;AACbA,mBAAAA,eAAAA;AACAC,cAAAA;AACF,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"override.js","sources":["../../../server/src/services/override.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\nimport { getPluginsThatNeedDocumentation } from './utils/get-plugins-that-need-documentation';\nimport type { PluginConfig } from '../types';\n\nexport type OverrideService = ReturnType<typeof createService>;\n\nconst createService = ({ strapi }: { strapi: Core.Strapi }) => {\n const registeredOverrides: Partial<PluginConfig>[] = [];\n const excludedFromGeneration: string[] = [];\n\n return {\n registeredOverrides,\n excludedFromGeneration,\n /**\n *\n * @param {(string | string[])} api - The name of the api or and array of apis to exclude from generation\n */\n excludeFromGeneration(api: string | string[]) {\n if (Array.isArray(api)) {\n excludedFromGeneration.push(...api);\n\n return;\n }\n\n excludedFromGeneration.push(api);\n },\n\n isEnabled(name: string) {\n return excludedFromGeneration.includes(name);\n },\n\n registerOverride(\n override: Partial<PluginConfig>,\n opts?: { pluginOrigin: string; excludeFromGeneration?: string[] }\n ) {\n const { pluginOrigin, excludeFromGeneration = [] } = opts ?? {};\n\n const pluginsThatNeedDocumentation = getPluginsThatNeedDocumentation(\n strapi.config.get('plugin::documentation')\n );\n // Don't apply the override if the plugin is not in the list of plugins that need documentation\n if (pluginOrigin && !pluginsThatNeedDocumentation.includes(pluginOrigin)) return;\n\n if (excludeFromGeneration.length) {\n this.excludeFromGeneration(excludeFromGeneration);\n }\n\n let overrideToRegister = override;\n // Parse yaml if we receive a string\n if (typeof override === 'string') {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n overrideToRegister = require('yaml').parse(overrideToRegister);\n }\n // receive an object we can register it directly\n registeredOverrides.push(overrideToRegister);\n },\n };\n};\n\nexport default createService;\n"],"names":["createService","strapi","registeredOverrides","excludedFromGeneration","excludeFromGeneration","api","Array","isArray","push","isEnabled","name","includes","registerOverride","override","opts","pluginOrigin","pluginsThatNeedDocumentation","getPluginsThatNeedDocumentation","config","get","length","overrideToRegister","require","parse"],"mappings":";;;;AAOA,MAAMA,
|
|
1
|
+
{"version":3,"file":"override.js","sources":["../../../server/src/services/override.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\nimport { getPluginsThatNeedDocumentation } from './utils/get-plugins-that-need-documentation';\nimport type { PluginConfig } from '../types';\n\nexport type OverrideService = ReturnType<typeof createService>;\n\nconst createService = ({ strapi }: { strapi: Core.Strapi }) => {\n const registeredOverrides: Partial<PluginConfig>[] = [];\n const excludedFromGeneration: string[] = [];\n\n return {\n registeredOverrides,\n excludedFromGeneration,\n /**\n *\n * @param {(string | string[])} api - The name of the api or and array of apis to exclude from generation\n */\n excludeFromGeneration(api: string | string[]) {\n if (Array.isArray(api)) {\n excludedFromGeneration.push(...api);\n\n return;\n }\n\n excludedFromGeneration.push(api);\n },\n\n isEnabled(name: string) {\n return excludedFromGeneration.includes(name);\n },\n\n registerOverride(\n override: Partial<PluginConfig>,\n opts?: { pluginOrigin: string; excludeFromGeneration?: string[] }\n ) {\n const { pluginOrigin, excludeFromGeneration = [] } = opts ?? {};\n\n const pluginsThatNeedDocumentation = getPluginsThatNeedDocumentation(\n strapi.config.get('plugin::documentation')\n );\n // Don't apply the override if the plugin is not in the list of plugins that need documentation\n if (pluginOrigin && !pluginsThatNeedDocumentation.includes(pluginOrigin)) return;\n\n if (excludeFromGeneration.length) {\n this.excludeFromGeneration(excludeFromGeneration);\n }\n\n let overrideToRegister = override;\n // Parse yaml if we receive a string\n if (typeof override === 'string') {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n overrideToRegister = require('yaml').parse(overrideToRegister);\n }\n // receive an object we can register it directly\n registeredOverrides.push(overrideToRegister);\n },\n };\n};\n\nexport default createService;\n"],"names":["createService","strapi","registeredOverrides","excludedFromGeneration","excludeFromGeneration","api","Array","isArray","push","isEnabled","name","includes","registerOverride","override","opts","pluginOrigin","pluginsThatNeedDocumentation","getPluginsThatNeedDocumentation","config","get","length","overrideToRegister","require","parse"],"mappings":";;;;AAOA,MAAMA,aAAAA,GAAgB,CAAC,EAAEC,MAAM,EAA2B,GAAA;AACxD,IAAA,MAAMC,sBAA+C,EAAE;AACvD,IAAA,MAAMC,yBAAmC,EAAE;IAE3C,OAAO;AACLD,QAAAA,mBAAAA;AACAC,QAAAA,sBAAAA;AACA;;;AAGC,QACDC,uBAAsBC,GAAsB,EAAA;YAC1C,IAAIC,KAAAA,CAAMC,OAAO,CAACF,GAAAA,CAAAA,EAAM;AACtBF,gBAAAA,sBAAAA,CAAuBK,IAAI,CAAA,GAAIH,GAAAA,CAAAA;AAE/B,gBAAA;AACF,YAAA;AAEAF,YAAAA,sBAAAA,CAAuBK,IAAI,CAACH,GAAAA,CAAAA;AAC9B,QAAA,CAAA;AAEAI,QAAAA,SAAAA,CAAAA,CAAUC,IAAY,EAAA;YACpB,OAAOP,sBAAAA,CAAuBQ,QAAQ,CAACD,IAAAA,CAAAA;AACzC,QAAA,CAAA;QAEAE,gBAAAA,CAAAA,CACEC,QAA+B,EAC/BC,IAAiE,EAAA;YAEjE,MAAM,EAAEC,YAAY,EAAEX,qBAAAA,GAAwB,EAAE,EAAE,GAAGU,QAAQ,EAAC;AAE9D,YAAA,MAAME,+BAA+BC,+DAAAA,CACnChB,MAAAA,CAAOiB,MAAM,CAACC,GAAG,CAAC,uBAAA,CAAA,CAAA;;AAGpB,YAAA,IAAIJ,YAAAA,IAAgB,CAACC,4BAAAA,CAA6BL,QAAQ,CAACI,YAAAA,CAAAA,EAAe;YAE1E,IAAIX,qBAAAA,CAAsBgB,MAAM,EAAE;gBAChC,IAAI,CAAChB,qBAAqB,CAACA,qBAAAA,CAAAA;AAC7B,YAAA;AAEA,YAAA,IAAIiB,kBAAAA,GAAqBR,QAAAA;;YAEzB,IAAI,OAAOA,aAAa,QAAA,EAAU;;gBAEhCQ,kBAAAA,GAAqBC,OAAAA,CAAQ,MAAA,CAAA,CAAQC,KAAK,CAACF,kBAAAA,CAAAA;AAC7C,YAAA;;AAEAnB,YAAAA,mBAAAA,CAAoBM,IAAI,CAACa,kBAAAA,CAAAA;AAC3B,QAAA;AACF,KAAA;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"override.mjs","sources":["../../../server/src/services/override.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\nimport { getPluginsThatNeedDocumentation } from './utils/get-plugins-that-need-documentation';\nimport type { PluginConfig } from '../types';\n\nexport type OverrideService = ReturnType<typeof createService>;\n\nconst createService = ({ strapi }: { strapi: Core.Strapi }) => {\n const registeredOverrides: Partial<PluginConfig>[] = [];\n const excludedFromGeneration: string[] = [];\n\n return {\n registeredOverrides,\n excludedFromGeneration,\n /**\n *\n * @param {(string | string[])} api - The name of the api or and array of apis to exclude from generation\n */\n excludeFromGeneration(api: string | string[]) {\n if (Array.isArray(api)) {\n excludedFromGeneration.push(...api);\n\n return;\n }\n\n excludedFromGeneration.push(api);\n },\n\n isEnabled(name: string) {\n return excludedFromGeneration.includes(name);\n },\n\n registerOverride(\n override: Partial<PluginConfig>,\n opts?: { pluginOrigin: string; excludeFromGeneration?: string[] }\n ) {\n const { pluginOrigin, excludeFromGeneration = [] } = opts ?? {};\n\n const pluginsThatNeedDocumentation = getPluginsThatNeedDocumentation(\n strapi.config.get('plugin::documentation')\n );\n // Don't apply the override if the plugin is not in the list of plugins that need documentation\n if (pluginOrigin && !pluginsThatNeedDocumentation.includes(pluginOrigin)) return;\n\n if (excludeFromGeneration.length) {\n this.excludeFromGeneration(excludeFromGeneration);\n }\n\n let overrideToRegister = override;\n // Parse yaml if we receive a string\n if (typeof override === 'string') {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n overrideToRegister = require('yaml').parse(overrideToRegister);\n }\n // receive an object we can register it directly\n registeredOverrides.push(overrideToRegister);\n },\n };\n};\n\nexport default createService;\n"],"names":["createService","strapi","registeredOverrides","excludedFromGeneration","excludeFromGeneration","api","Array","isArray","push","isEnabled","name","includes","registerOverride","override","opts","pluginOrigin","pluginsThatNeedDocumentation","getPluginsThatNeedDocumentation","config","get","length","overrideToRegister","require","parse"],"mappings":";;AAOA,MAAMA,
|
|
1
|
+
{"version":3,"file":"override.mjs","sources":["../../../server/src/services/override.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\nimport { getPluginsThatNeedDocumentation } from './utils/get-plugins-that-need-documentation';\nimport type { PluginConfig } from '../types';\n\nexport type OverrideService = ReturnType<typeof createService>;\n\nconst createService = ({ strapi }: { strapi: Core.Strapi }) => {\n const registeredOverrides: Partial<PluginConfig>[] = [];\n const excludedFromGeneration: string[] = [];\n\n return {\n registeredOverrides,\n excludedFromGeneration,\n /**\n *\n * @param {(string | string[])} api - The name of the api or and array of apis to exclude from generation\n */\n excludeFromGeneration(api: string | string[]) {\n if (Array.isArray(api)) {\n excludedFromGeneration.push(...api);\n\n return;\n }\n\n excludedFromGeneration.push(api);\n },\n\n isEnabled(name: string) {\n return excludedFromGeneration.includes(name);\n },\n\n registerOverride(\n override: Partial<PluginConfig>,\n opts?: { pluginOrigin: string; excludeFromGeneration?: string[] }\n ) {\n const { pluginOrigin, excludeFromGeneration = [] } = opts ?? {};\n\n const pluginsThatNeedDocumentation = getPluginsThatNeedDocumentation(\n strapi.config.get('plugin::documentation')\n );\n // Don't apply the override if the plugin is not in the list of plugins that need documentation\n if (pluginOrigin && !pluginsThatNeedDocumentation.includes(pluginOrigin)) return;\n\n if (excludeFromGeneration.length) {\n this.excludeFromGeneration(excludeFromGeneration);\n }\n\n let overrideToRegister = override;\n // Parse yaml if we receive a string\n if (typeof override === 'string') {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n overrideToRegister = require('yaml').parse(overrideToRegister);\n }\n // receive an object we can register it directly\n registeredOverrides.push(overrideToRegister);\n },\n };\n};\n\nexport default createService;\n"],"names":["createService","strapi","registeredOverrides","excludedFromGeneration","excludeFromGeneration","api","Array","isArray","push","isEnabled","name","includes","registerOverride","override","opts","pluginOrigin","pluginsThatNeedDocumentation","getPluginsThatNeedDocumentation","config","get","length","overrideToRegister","require","parse"],"mappings":";;AAOA,MAAMA,aAAAA,GAAgB,CAAC,EAAEC,MAAM,EAA2B,GAAA;AACxD,IAAA,MAAMC,sBAA+C,EAAE;AACvD,IAAA,MAAMC,yBAAmC,EAAE;IAE3C,OAAO;AACLD,QAAAA,mBAAAA;AACAC,QAAAA,sBAAAA;AACA;;;AAGC,QACDC,uBAAsBC,GAAsB,EAAA;YAC1C,IAAIC,KAAAA,CAAMC,OAAO,CAACF,GAAAA,CAAAA,EAAM;AACtBF,gBAAAA,sBAAAA,CAAuBK,IAAI,CAAA,GAAIH,GAAAA,CAAAA;AAE/B,gBAAA;AACF,YAAA;AAEAF,YAAAA,sBAAAA,CAAuBK,IAAI,CAACH,GAAAA,CAAAA;AAC9B,QAAA,CAAA;AAEAI,QAAAA,SAAAA,CAAAA,CAAUC,IAAY,EAAA;YACpB,OAAOP,sBAAAA,CAAuBQ,QAAQ,CAACD,IAAAA,CAAAA;AACzC,QAAA,CAAA;QAEAE,gBAAAA,CAAAA,CACEC,QAA+B,EAC/BC,IAAiE,EAAA;YAEjE,MAAM,EAAEC,YAAY,EAAEX,qBAAAA,GAAwB,EAAE,EAAE,GAAGU,QAAQ,EAAC;AAE9D,YAAA,MAAME,+BAA+BC,+BAAAA,CACnChB,MAAAA,CAAOiB,MAAM,CAACC,GAAG,CAAC,uBAAA,CAAA,CAAA;;AAGpB,YAAA,IAAIJ,YAAAA,IAAgB,CAACC,4BAAAA,CAA6BL,QAAQ,CAACI,YAAAA,CAAAA,EAAe;YAE1E,IAAIX,qBAAAA,CAAsBgB,MAAM,EAAE;gBAChC,IAAI,CAAChB,qBAAqB,CAACA,qBAAAA,CAAAA;AAC7B,YAAA;AAEA,YAAA,IAAIiB,kBAAAA,GAAqBR,QAAAA;;YAEzB,IAAI,OAAOA,aAAa,QAAA,EAAU;;gBAEhCQ,kBAAAA,GAAqBC,OAAAA,CAAQ,MAAA,CAAA,CAAQC,KAAK,CAACF,kBAAAA,CAAAA;AAC7C,YAAA;;AAEAnB,YAAAA,mBAAAA,CAAoBM,IAAI,CAACa,kBAAAA,CAAAA;AAC3B,QAAA;AACF,KAAA;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-plugins-that-need-documentation.js","sources":["../../../../server/src/services/utils/get-plugins-that-need-documentation.ts"],"sourcesContent":["import type { PluginConfig } from '../../types';\n\nconst getPluginsThatNeedDocumentation = (config: PluginConfig) => {\n // Default plugins that need documentation generated\n const defaultPlugins = ['upload', 'users-permissions'];\n\n // User specified plugins that need documentation generated\n const userPluginsConfig = config['x-strapi-config'].plugins;\n\n if (userPluginsConfig === null) {\n // The user hasn't specified any plugins to document, use the defaults\n return defaultPlugins;\n }\n\n if (userPluginsConfig.length) {\n // The user has specified certain plugins to document, use them\n return userPluginsConfig;\n }\n\n // The user has specified that no plugins should be documented\n return [];\n};\n\nexport { getPluginsThatNeedDocumentation };\n"],"names":["getPluginsThatNeedDocumentation","config","defaultPlugins","userPluginsConfig","plugins","length"],"mappings":";;AAEA,MAAMA,kCAAkC,CAACC,MAAAA,GAAAA;;AAEvC,IAAA,MAAMC,
|
|
1
|
+
{"version":3,"file":"get-plugins-that-need-documentation.js","sources":["../../../../server/src/services/utils/get-plugins-that-need-documentation.ts"],"sourcesContent":["import type { PluginConfig } from '../../types';\n\nconst getPluginsThatNeedDocumentation = (config: PluginConfig) => {\n // Default plugins that need documentation generated\n const defaultPlugins = ['upload', 'users-permissions'];\n\n // User specified plugins that need documentation generated\n const userPluginsConfig = config['x-strapi-config'].plugins;\n\n if (userPluginsConfig === null) {\n // The user hasn't specified any plugins to document, use the defaults\n return defaultPlugins;\n }\n\n if (userPluginsConfig.length) {\n // The user has specified certain plugins to document, use them\n return userPluginsConfig;\n }\n\n // The user has specified that no plugins should be documented\n return [];\n};\n\nexport { getPluginsThatNeedDocumentation };\n"],"names":["getPluginsThatNeedDocumentation","config","defaultPlugins","userPluginsConfig","plugins","length"],"mappings":";;AAEA,MAAMA,kCAAkC,CAACC,MAAAA,GAAAA;;AAEvC,IAAA,MAAMC,cAAAA,GAAiB;AAAC,QAAA,QAAA;AAAU,QAAA;AAAoB,KAAA;;AAGtD,IAAA,MAAMC,iBAAAA,GAAoBF,MAAM,CAAC,iBAAA,CAAkB,CAACG,OAAO;AAE3D,IAAA,IAAID,sBAAsB,IAAA,EAAM;;QAE9B,OAAOD,cAAAA;AACT,IAAA;IAEA,IAAIC,iBAAAA,CAAkBE,MAAM,EAAE;;QAE5B,OAAOF,iBAAAA;AACT,IAAA;;AAGA,IAAA,OAAO,EAAE;AACX;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-plugins-that-need-documentation.mjs","sources":["../../../../server/src/services/utils/get-plugins-that-need-documentation.ts"],"sourcesContent":["import type { PluginConfig } from '../../types';\n\nconst getPluginsThatNeedDocumentation = (config: PluginConfig) => {\n // Default plugins that need documentation generated\n const defaultPlugins = ['upload', 'users-permissions'];\n\n // User specified plugins that need documentation generated\n const userPluginsConfig = config['x-strapi-config'].plugins;\n\n if (userPluginsConfig === null) {\n // The user hasn't specified any plugins to document, use the defaults\n return defaultPlugins;\n }\n\n if (userPluginsConfig.length) {\n // The user has specified certain plugins to document, use them\n return userPluginsConfig;\n }\n\n // The user has specified that no plugins should be documented\n return [];\n};\n\nexport { getPluginsThatNeedDocumentation };\n"],"names":["getPluginsThatNeedDocumentation","config","defaultPlugins","userPluginsConfig","plugins","length"],"mappings":"AAEA,MAAMA,kCAAkC,CAACC,MAAAA,GAAAA;;AAEvC,IAAA,MAAMC,
|
|
1
|
+
{"version":3,"file":"get-plugins-that-need-documentation.mjs","sources":["../../../../server/src/services/utils/get-plugins-that-need-documentation.ts"],"sourcesContent":["import type { PluginConfig } from '../../types';\n\nconst getPluginsThatNeedDocumentation = (config: PluginConfig) => {\n // Default plugins that need documentation generated\n const defaultPlugins = ['upload', 'users-permissions'];\n\n // User specified plugins that need documentation generated\n const userPluginsConfig = config['x-strapi-config'].plugins;\n\n if (userPluginsConfig === null) {\n // The user hasn't specified any plugins to document, use the defaults\n return defaultPlugins;\n }\n\n if (userPluginsConfig.length) {\n // The user has specified certain plugins to document, use them\n return userPluginsConfig;\n }\n\n // The user has specified that no plugins should be documented\n return [];\n};\n\nexport { getPluginsThatNeedDocumentation };\n"],"names":["getPluginsThatNeedDocumentation","config","defaultPlugins","userPluginsConfig","plugins","length"],"mappings":"AAEA,MAAMA,kCAAkC,CAACC,MAAAA,GAAAA;;AAEvC,IAAA,MAAMC,cAAAA,GAAiB;AAAC,QAAA,QAAA;AAAU,QAAA;AAAoB,KAAA;;AAGtD,IAAA,MAAMC,iBAAAA,GAAoBF,MAAM,CAAC,iBAAA,CAAkB,CAACG,OAAO;AAE3D,IAAA,IAAID,sBAAsB,IAAA,EAAM;;QAE9B,OAAOD,cAAAA;AACT,IAAA;IAEA,IAAIC,iBAAAA,CAAkBE,MAAM,EAAE;;QAE5B,OAAOF,iBAAAA;AACT,IAAA;;AAGA,IAAA,OAAO,EAAE;AACX;;;;"}
|
package/dist/server/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../server/src/utils.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\nimport type { Services } from './services';\n\nexport const getService = <TName extends keyof Services>(\n name: TName,\n { strapi }: { strapi: Core.Strapi } = { strapi: global.strapi }\n): Services[TName] => {\n return strapi.plugin('documentation').service<Services[TName]>(name);\n};\n\nexport default {\n getService,\n};\n"],"names":["getService","name","strapi","global","plugin","service"],"mappings":";;MAIaA,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../server/src/utils.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\nimport type { Services } from './services';\n\nexport const getService = <TName extends keyof Services>(\n name: TName,\n { strapi }: { strapi: Core.Strapi } = { strapi: global.strapi }\n): Services[TName] => {\n return strapi.plugin('documentation').service<Services[TName]>(name);\n};\n\nexport default {\n getService,\n};\n"],"names":["getService","name","strapi","global","plugin","service"],"mappings":";;MAIaA,UAAAA,GAAa,CACxBC,MACA,EAAEC,MAAM,EAA2B,GAAG;AAAEA,IAAAA,MAAAA,EAAQC,OAAOD;AAAO,CAAC,GAAA;AAE/D,IAAA,OAAOA,MAAAA,CAAOE,MAAM,CAAC,eAAA,CAAA,CAAiBC,OAAO,CAAkBJ,IAAAA,CAAAA;AACjE;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../server/src/utils.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\nimport type { Services } from './services';\n\nexport const getService = <TName extends keyof Services>(\n name: TName,\n { strapi }: { strapi: Core.Strapi } = { strapi: global.strapi }\n): Services[TName] => {\n return strapi.plugin('documentation').service<Services[TName]>(name);\n};\n\nexport default {\n getService,\n};\n"],"names":["getService","name","strapi","global","plugin","service"],"mappings":"MAIaA,
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../server/src/utils.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\nimport type { Services } from './services';\n\nexport const getService = <TName extends keyof Services>(\n name: TName,\n { strapi }: { strapi: Core.Strapi } = { strapi: global.strapi }\n): Services[TName] => {\n return strapi.plugin('documentation').service<Services[TName]>(name);\n};\n\nexport default {\n getService,\n};\n"],"names":["getService","name","strapi","global","plugin","service"],"mappings":"MAIaA,UAAAA,GAAa,CACxBC,MACA,EAAEC,MAAM,EAA2B,GAAG;AAAEA,IAAAA,MAAAA,EAAQC,OAAOD;AAAO,CAAC,GAAA;AAE/D,IAAA,OAAOA,MAAAA,CAAOE,MAAM,CAAC,eAAA,CAAA,CAAiBC,OAAO,CAAkBJ,IAAAA,CAAAA;AACjE;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-documentation",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.38.0",
|
|
4
4
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@reduxjs/toolkit": "1.9.7",
|
|
62
|
-
"@strapi/admin": "5.
|
|
63
|
-
"@strapi/design-system": "2.
|
|
64
|
-
"@strapi/icons": "2.
|
|
65
|
-
"@strapi/utils": "5.
|
|
62
|
+
"@strapi/admin": "5.38.0",
|
|
63
|
+
"@strapi/design-system": "2.2.0",
|
|
64
|
+
"@strapi/icons": "2.2.0",
|
|
65
|
+
"@strapi/utils": "5.38.0",
|
|
66
66
|
"bcryptjs": "2.4.3",
|
|
67
67
|
"cheerio": "^1.0.0",
|
|
68
68
|
"formik": "2.4.5",
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
81
|
-
"@strapi/admin-test-utils": "5.
|
|
82
|
-
"@strapi/strapi": "5.
|
|
83
|
-
"@strapi/types": "5.
|
|
81
|
+
"@strapi/admin-test-utils": "5.38.0",
|
|
82
|
+
"@strapi/strapi": "5.38.0",
|
|
83
|
+
"@strapi/types": "5.38.0",
|
|
84
84
|
"@testing-library/react": "16.3.0",
|
|
85
85
|
"@testing-library/user-event": "14.6.1",
|
|
86
86
|
"@types/fs-extra": "11.0.4",
|