@oak-digital/types-4-strapi-2 0.5.5 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/.eslintrc.json +2 -1
  2. package/CHANGELOG.md +7 -0
  3. package/README.md +17 -5
  4. package/lib/attributes/Attributes.d.ts +4 -3
  5. package/lib/attributes/Attributes.js +102 -78
  6. package/lib/content-types/reader.js +49 -145
  7. package/lib/extra-types/ExtraType.d.ts +2 -2
  8. package/lib/extra-types/ExtraType.js +19 -38
  9. package/lib/extra-types/createExtraTypes.d.ts +1 -1
  10. package/lib/extra-types/createExtraTypes.js +11 -12
  11. package/lib/file/File.d.ts +1 -1
  12. package/lib/file/File.js +44 -43
  13. package/lib/index.js +57 -19
  14. package/lib/interface/BuiltinComponentInterface.js +9 -27
  15. package/lib/interface/BuiltinInterface.d.ts +0 -1
  16. package/lib/interface/BuiltinInterface.js +5 -26
  17. package/lib/interface/ComponentInterface.d.ts +2 -1
  18. package/lib/interface/ComponentInterface.js +30 -48
  19. package/lib/interface/Interface.d.ts +6 -2
  20. package/lib/interface/Interface.js +69 -70
  21. package/lib/interface/builtinInterfaces.d.ts +1941 -2
  22. package/lib/interface/builtinInterfaces.js +56 -46
  23. package/lib/plugins/PluginManager.d.ts +8 -2
  24. package/lib/plugins/PluginManager.js +28 -35
  25. package/lib/plugins/draft-and-publish/index.d.ts +1 -1
  26. package/lib/plugins/draft-and-publish/index.js +17 -21
  27. package/lib/plugins/i18n/index.d.ts +1 -1
  28. package/lib/plugins/i18n/index.js +17 -22
  29. package/lib/plugins/index.js +4 -4
  30. package/lib/plugins/types.d.ts +1 -1
  31. package/lib/plugins/types.js +1 -4
  32. package/lib/plugins/url-alias/index.js +12 -15
  33. package/lib/plugins/url-alias/type.js +21 -32
  34. package/lib/program/InterfaceManager.d.ts +374 -24
  35. package/lib/program/InterfaceManager.js +128 -376
  36. package/lib/readers/by-file.d.ts +321 -0
  37. package/lib/readers/by-file.js +116 -0
  38. package/lib/readers/load-strapi/index.d.ts +319 -0
  39. package/lib/readers/load-strapi/index.js +106 -0
  40. package/lib/readers/load-strapi/remote.d.ts +1 -0
  41. package/lib/readers/load-strapi/remote.js +29 -0
  42. package/lib/readers/types/attributes.d.ts +1639 -0
  43. package/lib/readers/types/attributes.js +144 -0
  44. package/lib/readers/types/component.d.ts +723 -0
  45. package/lib/readers/types/component.js +11 -0
  46. package/lib/readers/types/content-type-reader.d.ts +16 -0
  47. package/lib/readers/types/content-type-reader.js +2 -0
  48. package/lib/readers/types/content-type.d.ts +766 -0
  49. package/lib/readers/types/content-type.js +16 -0
  50. package/lib/utils/casing/index.js +2 -2
  51. package/lib/utils/index.js +5 -39
  52. package/lib/writers/basic-writer.d.ts +24 -0
  53. package/lib/writers/basic-writer.js +75 -0
  54. package/lib/writers/types/writer.d.ts +4 -0
  55. package/lib/writers/types/writer.js +2 -0
  56. package/package.json +4 -2
  57. package/tests/strapi-project/.editorconfig +16 -0
  58. package/tests/strapi-project/.env.example +6 -0
  59. package/tests/strapi-project/README.md +57 -0
  60. package/tests/strapi-project/config/admin.ts +13 -0
  61. package/tests/strapi-project/config/api.ts +7 -0
  62. package/tests/strapi-project/config/database.ts +93 -0
  63. package/tests/strapi-project/config/middlewares.ts +12 -0
  64. package/tests/strapi-project/config/server.ts +10 -0
  65. package/tests/strapi-project/database/migrations/.gitkeep +0 -0
  66. package/tests/strapi-project/favicon.png +0 -0
  67. package/tests/strapi-project/package-lock.json +16125 -0
  68. package/tests/strapi-project/package.json +30 -0
  69. package/tests/strapi-project/public/robots.txt +3 -0
  70. package/tests/strapi-project/public/uploads/.gitkeep +0 -0
  71. package/tests/strapi-project/src/admin/app.example.tsx +35 -0
  72. package/tests/strapi-project/src/admin/webpack.config.example.js +9 -0
  73. package/tests/strapi-project/src/api/.gitkeep +0 -0
  74. package/tests/strapi-project/src/api/collection-1/content-types/collection-1/schema.json +18 -0
  75. package/tests/strapi-project/src/api/collection-1/content-types/generated-type/schema.json +18 -0
  76. package/tests/strapi-project/src/api/collection-1/controllers/collection-1.ts +7 -0
  77. package/tests/strapi-project/src/api/collection-1/controllers/generated-type.ts +7 -0
  78. package/tests/strapi-project/src/api/collection-1/routes/collection-1.ts +7 -0
  79. package/tests/strapi-project/src/api/collection-1/routes/generated-type.ts +7 -0
  80. package/tests/strapi-project/src/api/collection-1/services/collection-1.ts +7 -0
  81. package/tests/strapi-project/src/api/collection-1/services/generated-type.ts +7 -0
  82. package/tests/strapi-project/src/api/standalone-controller/controllers/standalone-controller.ts +13 -0
  83. package/tests/strapi-project/src/components/my-category/all-types.json +88 -0
  84. package/tests/strapi-project/src/components/other-category/sub-component.json +12 -0
  85. package/tests/strapi-project/src/extensions/.gitkeep +0 -0
  86. package/tests/strapi-project/src/index.ts +18 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.