ghost 5.50.3 → 5.51.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.
Files changed (192) hide show
  1. package/components/tryghost-adapter-cache-memory-ttl-5.51.0.tgz +0 -0
  2. package/components/{tryghost-adapter-cache-redis-5.50.3.tgz → tryghost-adapter-cache-redis-5.51.0.tgz} +0 -0
  3. package/components/{tryghost-adapter-manager-5.50.3.tgz → tryghost-adapter-manager-5.51.0.tgz} +0 -0
  4. package/components/tryghost-announcement-bar-settings-5.51.0.tgz +0 -0
  5. package/components/{tryghost-api-framework-5.50.3.tgz → tryghost-api-framework-5.51.0.tgz} +0 -0
  6. package/components/{tryghost-api-version-compatibility-service-5.50.3.tgz → tryghost-api-version-compatibility-service-5.51.0.tgz} +0 -0
  7. package/components/tryghost-audience-feedback-5.51.0.tgz +0 -0
  8. package/components/tryghost-bootstrap-socket-5.51.0.tgz +0 -0
  9. package/components/tryghost-collections-5.51.0.tgz +0 -0
  10. package/components/tryghost-constants-5.51.0.tgz +0 -0
  11. package/components/tryghost-custom-theme-settings-service-5.51.0.tgz +0 -0
  12. package/components/{tryghost-data-generator-5.50.3.tgz → tryghost-data-generator-5.51.0.tgz} +0 -0
  13. package/components/tryghost-domain-events-5.51.0.tgz +0 -0
  14. package/components/tryghost-dynamic-routing-events-5.51.0.tgz +0 -0
  15. package/components/tryghost-email-analytics-provider-mailgun-5.51.0.tgz +0 -0
  16. package/components/{tryghost-email-analytics-service-5.50.3.tgz → tryghost-email-analytics-service-5.51.0.tgz} +0 -0
  17. package/components/tryghost-email-content-generator-5.51.0.tgz +0 -0
  18. package/components/{tryghost-email-events-5.50.3.tgz → tryghost-email-events-5.51.0.tgz} +0 -0
  19. package/components/tryghost-email-service-5.51.0.tgz +0 -0
  20. package/components/tryghost-email-suppression-list-5.51.0.tgz +0 -0
  21. package/components/tryghost-event-aware-cache-wrapper-5.51.0.tgz +0 -0
  22. package/components/{tryghost-express-dynamic-redirects-5.50.3.tgz → tryghost-express-dynamic-redirects-5.51.0.tgz} +0 -0
  23. package/components/{tryghost-external-media-inliner-5.50.3.tgz → tryghost-external-media-inliner-5.51.0.tgz} +0 -0
  24. package/components/{tryghost-extract-api-key-5.50.3.tgz → tryghost-extract-api-key-5.51.0.tgz} +0 -0
  25. package/components/tryghost-html-to-plaintext-5.51.0.tgz +0 -0
  26. package/components/tryghost-i18n-5.51.0.tgz +0 -0
  27. package/components/{tryghost-importer-handler-content-files-5.50.3.tgz → tryghost-importer-handler-content-files-5.51.0.tgz} +0 -0
  28. package/components/tryghost-importer-revue-5.51.0.tgz +0 -0
  29. package/components/tryghost-in-memory-repository-5.51.0.tgz +0 -0
  30. package/components/{tryghost-job-manager-5.50.3.tgz → tryghost-job-manager-5.51.0.tgz} +0 -0
  31. package/components/{tryghost-link-redirects-5.50.3.tgz → tryghost-link-redirects-5.51.0.tgz} +0 -0
  32. package/components/tryghost-link-replacer-5.51.0.tgz +0 -0
  33. package/components/{tryghost-link-tracking-5.50.3.tgz → tryghost-link-tracking-5.51.0.tgz} +0 -0
  34. package/components/{tryghost-magic-link-5.50.3.tgz → tryghost-magic-link-5.51.0.tgz} +0 -0
  35. package/components/{tryghost-mailgun-client-5.50.3.tgz → tryghost-mailgun-client-5.51.0.tgz} +0 -0
  36. package/components/{tryghost-member-attribution-5.50.3.tgz → tryghost-member-attribution-5.51.0.tgz} +0 -0
  37. package/components/{tryghost-member-events-5.50.3.tgz → tryghost-member-events-5.51.0.tgz} +0 -0
  38. package/components/{tryghost-members-api-5.50.3.tgz → tryghost-members-api-5.51.0.tgz} +0 -0
  39. package/components/{tryghost-members-csv-5.50.3.tgz → tryghost-members-csv-5.51.0.tgz} +0 -0
  40. package/components/tryghost-members-events-service-5.51.0.tgz +0 -0
  41. package/components/tryghost-members-importer-5.51.0.tgz +0 -0
  42. package/components/{tryghost-members-offers-5.50.3.tgz → tryghost-members-offers-5.51.0.tgz} +0 -0
  43. package/components/{tryghost-members-payments-5.50.3.tgz → tryghost-members-payments-5.51.0.tgz} +0 -0
  44. package/components/tryghost-members-ssr-5.51.0.tgz +0 -0
  45. package/components/tryghost-members-stripe-service-5.51.0.tgz +0 -0
  46. package/components/{tryghost-mentions-email-report-5.50.3.tgz → tryghost-mentions-email-report-5.51.0.tgz} +0 -0
  47. package/components/{tryghost-milestones-5.50.3.tgz → tryghost-milestones-5.51.0.tgz} +0 -0
  48. package/components/{tryghost-minifier-5.50.3.tgz → tryghost-minifier-5.51.0.tgz} +0 -0
  49. package/components/tryghost-mw-api-version-mismatch-5.51.0.tgz +0 -0
  50. package/components/{tryghost-mw-cache-control-5.50.3.tgz → tryghost-mw-cache-control-5.51.0.tgz} +0 -0
  51. package/components/tryghost-mw-error-handler-5.51.0.tgz +0 -0
  52. package/components/tryghost-mw-session-from-token-5.51.0.tgz +0 -0
  53. package/components/tryghost-mw-update-user-last-seen-5.51.0.tgz +0 -0
  54. package/components/{tryghost-mw-version-match-5.50.3.tgz → tryghost-mw-version-match-5.51.0.tgz} +0 -0
  55. package/components/tryghost-mw-vhost-5.51.0.tgz +0 -0
  56. package/components/{tryghost-oembed-service-5.50.3.tgz → tryghost-oembed-service-5.51.0.tgz} +0 -0
  57. package/components/{tryghost-package-json-5.50.3.tgz → tryghost-package-json-5.51.0.tgz} +0 -0
  58. package/components/tryghost-post-revisions-5.51.0.tgz +0 -0
  59. package/components/tryghost-posts-service-5.51.0.tgz +0 -0
  60. package/components/{tryghost-referrers-5.50.3.tgz → tryghost-referrers-5.51.0.tgz} +0 -0
  61. package/components/{tryghost-security-5.50.3.tgz → tryghost-security-5.51.0.tgz} +0 -0
  62. package/components/tryghost-session-service-5.51.0.tgz +0 -0
  63. package/components/tryghost-settings-path-manager-5.51.0.tgz +0 -0
  64. package/components/{tryghost-slack-notifications-5.50.3.tgz → tryghost-slack-notifications-5.51.0.tgz} +0 -0
  65. package/components/{tryghost-staff-service-5.50.3.tgz → tryghost-staff-service-5.51.0.tgz} +0 -0
  66. package/components/{tryghost-stats-service-5.50.3.tgz → tryghost-stats-service-5.51.0.tgz} +0 -0
  67. package/components/{tryghost-tiers-5.50.3.tgz → tryghost-tiers-5.51.0.tgz} +0 -0
  68. package/components/{tryghost-update-check-service-5.50.3.tgz → tryghost-update-check-service-5.51.0.tgz} +0 -0
  69. package/components/tryghost-verification-trigger-5.51.0.tgz +0 -0
  70. package/components/tryghost-version-notifications-data-service-5.51.0.tgz +0 -0
  71. package/components/{tryghost-webmentions-5.50.3.tgz → tryghost-webmentions-5.51.0.tgz} +0 -0
  72. package/core/boot.js +2 -0
  73. package/core/built/admin/assets/{chunk.143.4e9bfd70a2b07a1514b1.js → chunk.143.8807e7591c4589efad15.js} +5 -5
  74. package/core/built/admin/assets/{chunk.178.98f6d1db548183bddeca.js → chunk.178.5357f76a74bcd455226a.js} +4 -4
  75. package/core/built/admin/assets/{chunk.976.c9abe301de6422af2ab2.js → chunk.976.c3f393d6685c89bbaaca.js} +3 -3
  76. package/core/built/admin/assets/{ghost-f816730cbd6958a4ab1891ddeab0e65f.js → ghost-22c9d9cef7aa0ff08294f8ea69c344dd.js} +3696 -3690
  77. package/core/built/admin/assets/ghost-dark-2ec2e32362fa867723379a286fd0f0bd.css +1 -0
  78. package/core/built/admin/assets/ghost-e6482a0a19b228a9b9e71a9c5ea134ba.css +1 -0
  79. package/core/built/admin/index.html +5 -5
  80. package/core/frontend/src/cards/css/signup.css +1 -1
  81. package/core/server/api/endpoints/actions.js +3 -0
  82. package/core/server/api/endpoints/announcements.js +3 -0
  83. package/core/server/api/endpoints/authentication.js +18 -0
  84. package/core/server/api/endpoints/authors-public.js +6 -0
  85. package/core/server/api/endpoints/collections.js +31 -25
  86. package/core/server/api/endpoints/comments-members.js +30 -1
  87. package/core/server/api/endpoints/comments.js +3 -0
  88. package/core/server/api/endpoints/config.js +3 -0
  89. package/core/server/api/endpoints/custom-theme-settings.js +3 -0
  90. package/core/server/api/endpoints/db.js +8 -1
  91. package/core/server/api/endpoints/email-post.js +3 -0
  92. package/core/server/api/endpoints/email-previews.js +6 -1
  93. package/core/server/api/endpoints/emails.js +24 -0
  94. package/core/server/api/endpoints/explore.js +3 -0
  95. package/core/server/api/endpoints/feedback-members.js +3 -0
  96. package/core/server/api/endpoints/files.js +3 -0
  97. package/core/server/api/endpoints/identities.js +3 -0
  98. package/core/server/api/endpoints/images.js +3 -0
  99. package/core/server/api/endpoints/integrations.js +15 -0
  100. package/core/server/api/endpoints/invites.js +12 -0
  101. package/core/server/api/endpoints/labels.js +12 -2
  102. package/core/server/api/endpoints/links.js +3 -0
  103. package/core/server/api/endpoints/mail.js +3 -0
  104. package/core/server/api/endpoints/media.js +6 -0
  105. package/core/server/api/endpoints/member-signin-urls.js +3 -0
  106. package/core/server/api/endpoints/members-stripe-connect.js +3 -0
  107. package/core/server/api/endpoints/members.js +41 -9
  108. package/core/server/api/endpoints/mentions.js +6 -1
  109. package/core/server/api/endpoints/newsletters-public.js +3 -0
  110. package/core/server/api/endpoints/newsletters.js +9 -0
  111. package/core/server/api/endpoints/notifications.js +12 -0
  112. package/core/server/api/endpoints/oembed.js +3 -0
  113. package/core/server/api/endpoints/offers-public.js +3 -0
  114. package/core/server/api/endpoints/offers.js +6 -0
  115. package/core/server/api/endpoints/pages-public.js +6 -0
  116. package/core/server/api/endpoints/pages.js +15 -6
  117. package/core/server/api/endpoints/posts-public.js +6 -0
  118. package/core/server/api/endpoints/posts.js +17 -20
  119. package/core/server/api/endpoints/previews.js +3 -0
  120. package/core/server/api/endpoints/redirects.js +2 -1
  121. package/core/server/api/endpoints/roles.js +3 -0
  122. package/core/server/api/endpoints/schedules.js +6 -1
  123. package/core/server/api/endpoints/settings-public.js +3 -0
  124. package/core/server/api/endpoints/settings.js +11 -1
  125. package/core/server/api/endpoints/site.js +3 -0
  126. package/core/server/api/endpoints/slack.js +3 -0
  127. package/core/server/api/endpoints/snippets.js +15 -4
  128. package/core/server/api/endpoints/stats.js +15 -0
  129. package/core/server/api/endpoints/tags-public.js +6 -0
  130. package/core/server/api/endpoints/tags.js +9 -1
  131. package/core/server/api/endpoints/themes.js +15 -2
  132. package/core/server/api/endpoints/tiers-public.js +3 -0
  133. package/core/server/api/endpoints/tiers.js +6 -0
  134. package/core/server/api/endpoints/users.js +21 -1
  135. package/core/server/api/endpoints/utils/serializers/output/mappers/posts.js +13 -1
  136. package/core/server/api/endpoints/utils/serializers/output/settings.js +1 -1
  137. package/core/server/api/endpoints/webhooks.js +8 -2
  138. package/core/server/data/migrations/versions/5.51/2023-05-30-19-03-update-pintura-setting.js +19 -0
  139. package/core/server/data/migrations/versions/5.51/2023-06-07-10-17-add-collections-crud-persmissions.js +54 -0
  140. package/core/server/data/schema/default-settings/default-settings.json +1 -1
  141. package/core/server/data/schema/fixtures/FixtureManager.js +1 -0
  142. package/core/server/data/schema/fixtures/fixtures.json +35 -5
  143. package/core/server/services/collections/built-in-collections.js +8 -0
  144. package/core/server/services/collections/index.js +34 -10
  145. package/core/server/services/collections/update-events.js +15 -0
  146. package/core/server/services/posts/posts-service.js +3 -1
  147. package/core/server/services/segment/DomainEventsAnalytics.js +83 -0
  148. package/core/server/services/segment/ModelEventsAnalytics.js +108 -0
  149. package/core/server/services/segment/index.js +26 -38
  150. package/core/server/web/api/endpoints/admin/middleware.js +4 -0
  151. package/core/shared/config/defaults.json +1 -1
  152. package/core/shared/config/overrides.json +1 -0
  153. package/core/shared/labs.js +3 -3
  154. package/package.json +137 -137
  155. package/yarn.lock +44 -34
  156. package/components/tryghost-adapter-cache-memory-ttl-5.50.3.tgz +0 -0
  157. package/components/tryghost-announcement-bar-settings-5.50.3.tgz +0 -0
  158. package/components/tryghost-audience-feedback-5.50.3.tgz +0 -0
  159. package/components/tryghost-bootstrap-socket-5.50.3.tgz +0 -0
  160. package/components/tryghost-collections-5.50.3.tgz +0 -0
  161. package/components/tryghost-constants-5.50.3.tgz +0 -0
  162. package/components/tryghost-custom-theme-settings-service-5.50.3.tgz +0 -0
  163. package/components/tryghost-domain-events-5.50.3.tgz +0 -0
  164. package/components/tryghost-dynamic-routing-events-5.50.3.tgz +0 -0
  165. package/components/tryghost-email-analytics-provider-mailgun-5.50.3.tgz +0 -0
  166. package/components/tryghost-email-content-generator-5.50.3.tgz +0 -0
  167. package/components/tryghost-email-service-5.50.3.tgz +0 -0
  168. package/components/tryghost-email-suppression-list-5.50.3.tgz +0 -0
  169. package/components/tryghost-event-aware-cache-wrapper-5.50.3.tgz +0 -0
  170. package/components/tryghost-html-to-plaintext-5.50.3.tgz +0 -0
  171. package/components/tryghost-i18n-5.50.3.tgz +0 -0
  172. package/components/tryghost-importer-revue-5.50.3.tgz +0 -0
  173. package/components/tryghost-in-memory-repository-5.50.3.tgz +0 -0
  174. package/components/tryghost-link-replacer-5.50.3.tgz +0 -0
  175. package/components/tryghost-members-events-service-5.50.3.tgz +0 -0
  176. package/components/tryghost-members-importer-5.50.3.tgz +0 -0
  177. package/components/tryghost-members-ssr-5.50.3.tgz +0 -0
  178. package/components/tryghost-members-stripe-service-5.50.3.tgz +0 -0
  179. package/components/tryghost-mw-api-version-mismatch-5.50.3.tgz +0 -0
  180. package/components/tryghost-mw-error-handler-5.50.3.tgz +0 -0
  181. package/components/tryghost-mw-session-from-token-5.50.3.tgz +0 -0
  182. package/components/tryghost-mw-update-user-last-seen-5.50.3.tgz +0 -0
  183. package/components/tryghost-mw-vhost-5.50.3.tgz +0 -0
  184. package/components/tryghost-post-revisions-5.50.3.tgz +0 -0
  185. package/components/tryghost-posts-service-5.50.3.tgz +0 -0
  186. package/components/tryghost-session-service-5.50.3.tgz +0 -0
  187. package/components/tryghost-settings-path-manager-5.50.3.tgz +0 -0
  188. package/components/tryghost-verification-trigger-5.50.3.tgz +0 -0
  189. package/components/tryghost-version-notifications-data-service-5.50.3.tgz +0 -0
  190. package/core/built/admin/assets/ghost-01b4eb0cff8ee8478af9d4074a256756.css +0 -1
  191. package/core/built/admin/assets/ghost-dark-8dd7d236d17be6dbef26039409d0c34d.css +0 -1
  192. /package/core/built/admin/assets/{chunk.976.c9abe301de6422af2ab2.js.LICENSE.txt → chunk.976.c3f393d6685c89bbaaca.js.LICENSE.txt} +0 -0
@@ -8,7 +8,7 @@
8
8
  <title>Ghost Admin</title>
9
9
 
10
10
 
11
- <meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%225.50%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22ember-websockets%22%3A%7B%22socketIO%22%3Atrue%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
11
+ <meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%225.51%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22ember-websockets%22%3A%7B%22socketIO%22%3Atrue%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
12
12
 
13
13
  <meta name="HandheldFriendly" content="True" />
14
14
  <meta name="MobileOptimized" content="320" />
@@ -37,7 +37,7 @@
37
37
  </style>
38
38
 
39
39
  <link integrity="" rel="stylesheet" href="assets/vendor-3e6947aa681f0fb82b193090e520dc73.css">
40
- <link integrity="" rel="stylesheet" href="assets/ghost-01b4eb0cff8ee8478af9d4074a256756.css" title="light">
40
+ <link integrity="" rel="stylesheet" href="assets/ghost-e6482a0a19b228a9b9e71a9c5ea134ba.css" title="light">
41
41
 
42
42
 
43
43
  </head>
@@ -57,8 +57,8 @@
57
57
  <div id="ember-basic-dropdown-wormhole"></div>
58
58
 
59
59
  <script src="assets/vendor-bc3bd83c56b822ae56193b0d231189c0.js"></script>
60
- <script src="assets/chunk.976.c9abe301de6422af2ab2.js"></script>
61
- <script src="assets/chunk.143.4e9bfd70a2b07a1514b1.js"></script>
62
- <script src="assets/ghost-f816730cbd6958a4ab1891ddeab0e65f.js"></script>
60
+ <script src="assets/chunk.976.c3f393d6685c89bbaaca.js"></script>
61
+ <script src="assets/chunk.143.8807e7591c4589efad15.js"></script>
62
+ <script src="assets/ghost-22c9d9cef7aa0ff08294f8ea69c344dd.js"></script>
63
63
  </body>
64
64
  </html>
@@ -172,7 +172,7 @@
172
172
  }
173
173
 
174
174
  .kg-width-wide .kg-signup-card-fields,
175
- .kg-width-full .kg-signup-card-fields:not(.kg-layout-split .kg-signup-card-fields) {
175
+ .kg-width-full .kg-signup-card-fields {
176
176
  width: 100%;
177
177
  max-width: 500px;
178
178
  }
@@ -4,6 +4,9 @@ module.exports = {
4
4
  docName: 'actions',
5
5
 
6
6
  browse: {
7
+ headers: {
8
+ cacheInvalidate: false
9
+ },
7
10
  options: [
8
11
  'page',
9
12
  'limit',
@@ -4,6 +4,9 @@ module.exports = {
4
4
  docName: 'announcement',
5
5
 
6
6
  browse: {
7
+ headers: {
8
+ cacheInvalidate: false
9
+ },
7
10
  permissions: true,
8
11
  query(frame) {
9
12
  return announcementBarSettings.getAnnouncementSettings(frame.options.context?.member);
@@ -118,6 +118,9 @@ module.exports = {
118
118
  },
119
119
 
120
120
  isSetup: {
121
+ headers: {
122
+ cacheInvalidate: false
123
+ },
121
124
  permissions: false,
122
125
  async query() {
123
126
  const isSetup = await auth.setup.checkIsSetup();
@@ -132,6 +135,9 @@ module.exports = {
132
135
  },
133
136
 
134
137
  generateResetToken: {
138
+ headers: {
139
+ cacheInvalidate: false
140
+ },
135
141
  validation: {
136
142
  docName: 'password_reset'
137
143
  },
@@ -154,6 +160,9 @@ module.exports = {
154
160
  },
155
161
 
156
162
  resetPassword: {
163
+ headers: {
164
+ cacheInvalidate: false
165
+ },
157
166
  validation: {
158
167
  docName: 'password_reset',
159
168
  data: {
@@ -188,6 +197,9 @@ module.exports = {
188
197
  },
189
198
 
190
199
  acceptInvitation: {
200
+ headers: {
201
+ cacheInvalidate: false
202
+ },
191
203
  validation: {
192
204
  docName: 'invitations'
193
205
  },
@@ -204,6 +216,9 @@ module.exports = {
204
216
  },
205
217
 
206
218
  isInvitation: {
219
+ headers: {
220
+ cacheInvalidate: false
221
+ },
207
222
  data: [
208
223
  'email'
209
224
  ],
@@ -226,6 +241,9 @@ module.exports = {
226
241
 
227
242
  resetAllPasswords: {
228
243
  statusCode: 204,
244
+ headers: {
245
+ cacheInvalidate: false
246
+ },
229
247
  permissions: true,
230
248
  async query(frame) {
231
249
  await userService.resetAllPasswords(frame.options);
@@ -24,6 +24,9 @@ module.exports = {
24
24
  docName: 'authors',
25
25
 
26
26
  browse: {
27
+ headers: {
28
+ cacheInvalidate: false
29
+ },
27
30
  options: [
28
31
  'include',
29
32
  'filter',
@@ -50,6 +53,9 @@ module.exports = {
50
53
  },
51
54
 
52
55
  read: {
56
+ headers: {
57
+ cacheInvalidate: false
58
+ },
53
59
  options: [
54
60
  'include',
55
61
  'filter',
@@ -10,26 +10,31 @@ module.exports = {
10
10
  docName: 'collections',
11
11
 
12
12
  browse: {
13
+ headers: {
14
+ cacheInvalidate: false
15
+ },
13
16
  options: [
14
17
  'limit',
15
18
  'order',
16
- 'page'
19
+ 'page',
20
+ 'filter'
17
21
  ],
18
- // @NOTE: should have permissions when moving out of Alpha
19
- permissions: false,
22
+ permissions: true,
20
23
  query(frame) {
21
- return collectionsService.api.browse(frame.options);
24
+ return collectionsService.api.getAll(frame.options);
22
25
  }
23
26
  },
24
27
 
25
28
  read: {
29
+ headers: {
30
+ cacheInvalidate: false
31
+ },
26
32
  data: [
27
33
  'id'
28
34
  ],
29
- // @NOTE: should have permissions when moving out of Alpha
30
- permissions: false,
35
+ permissions: true,
31
36
  async query(frame) {
32
- const model = await collectionsService.api.read(frame.data.id, frame.options);
37
+ const model = await collectionsService.api.getById(frame.data.id);
33
38
 
34
39
  if (!model) {
35
40
  throw new errors.NotFoundError({
@@ -46,15 +51,16 @@ module.exports = {
46
51
  headers: {
47
52
  cacheInvalidate: true
48
53
  },
49
- // @NOTE: should have permissions when moving out of Alpha
50
- permissions: false,
54
+ permissions: true,
51
55
  async query(frame) {
52
- return await collectionsService.api.add(frame.data.collections[0], frame.options);
56
+ return await collectionsService.api.createCollection(frame.data.collections[0]);
53
57
  }
54
58
  },
55
59
 
56
60
  edit: {
57
- headers: {},
61
+ headers: {
62
+ cacheInvalidate: false
63
+ },
58
64
  options: [
59
65
  'id'
60
66
  ],
@@ -65,12 +71,11 @@ module.exports = {
65
71
  }
66
72
  }
67
73
  },
68
- // @NOTE: should have permissions when moving out of Alpha
69
- permissions: false,
74
+ permissions: true,
70
75
  async query(frame) {
71
76
  const model = await collectionsService.api.edit(Object.assign(frame.data.collections[0], {
72
77
  id: frame.options.id
73
- }), frame.options);
78
+ }));
74
79
 
75
80
  if (!model) {
76
81
  throw new errors.NotFoundError({
@@ -92,9 +97,10 @@ module.exports = {
92
97
  },
93
98
 
94
99
  addPost: {
95
- docName: 'collection_posts',
96
100
  statusCode: 200,
97
- headers: {},
101
+ headers: {
102
+ cacheInvalidate: false
103
+ },
98
104
  options: [
99
105
  'id'
100
106
  ],
@@ -113,10 +119,11 @@ module.exports = {
113
119
  }
114
120
  }
115
121
  },
116
- // @NOTE: should have permissions when moving out of Alpha
117
- permissions: false,
122
+ permissions: {
123
+ method: 'edit'
124
+ },
118
125
  async query(frame) {
119
- const collectionPost = await collectionsService.api.addPost(frame.options.id, {
126
+ const collectionPost = await collectionsService.api.addPostToCollection(frame.options.id, {
120
127
  id: frame.data.posts[0].id
121
128
  });
122
129
 
@@ -145,15 +152,13 @@ module.exports = {
145
152
  }
146
153
  }
147
154
  },
148
- // @NOTE: should have permissions when moving out of Alpha
149
- permissions: false,
155
+ permissions: true,
150
156
  async query(frame) {
151
157
  return await collectionsService.api.destroy(frame.options.id);
152
158
  }
153
159
  },
154
160
 
155
161
  destroyPost: {
156
- docName: 'collection_posts',
157
162
  statusCode: 200,
158
163
  headers: {
159
164
  cacheInvalidate: true
@@ -172,10 +177,11 @@ module.exports = {
172
177
  }
173
178
  }
174
179
  },
175
- // @NOTE: should have permissions when moving out of Alpha
176
- permissions: false,
180
+ permissions: {
181
+ method: 'edit'
182
+ },
177
183
  async query(frame) {
178
- const collection = await collectionsService.api.destroyCollectionPost(frame.options.id, frame.options.post_id);
184
+ const collection = await collectionsService.api.removePostFromCollection(frame.options.id, frame.options.post_id);
179
185
 
180
186
  if (!collection) {
181
187
  throw new errors.NotFoundError({
@@ -6,6 +6,9 @@ module.exports = {
6
6
  docName: 'comments',
7
7
 
8
8
  browse: {
9
+ headers: {
10
+ cacheInvalidate: false
11
+ },
9
12
  options: [
10
13
  'include',
11
14
  'page',
@@ -27,6 +30,9 @@ module.exports = {
27
30
  },
28
31
 
29
32
  replies: {
33
+ headers: {
34
+ cacheInvalidate: false
35
+ },
30
36
  options: [
31
37
  'include',
32
38
  'page',
@@ -49,6 +55,9 @@ module.exports = {
49
55
  },
50
56
 
51
57
  read: {
58
+ headers: {
59
+ cacheInvalidate: false
60
+ },
52
61
  options: [
53
62
  'include'
54
63
  ],
@@ -68,7 +77,9 @@ module.exports = {
68
77
  },
69
78
 
70
79
  edit: {
71
- headers: {},
80
+ headers: {
81
+ cacheInvalidate: false
82
+ },
72
83
  options: [
73
84
  'id',
74
85
  'include'
@@ -91,6 +102,9 @@ module.exports = {
91
102
 
92
103
  add: {
93
104
  statusCode: 201,
105
+ headers: {
106
+ cacheInvalidate: false
107
+ },
94
108
  options: [
95
109
  'include'
96
110
 
@@ -115,6 +129,9 @@ module.exports = {
115
129
 
116
130
  destroy: {
117
131
  statusCode: 204,
132
+ headers: {
133
+ cacheInvalidate: false
134
+ },
118
135
  options: [
119
136
  'include',
120
137
  'id'
@@ -131,6 +148,9 @@ module.exports = {
131
148
  },
132
149
 
133
150
  counts: {
151
+ headers: {
152
+ cacheInvalidate: false
153
+ },
134
154
  permissions: false,
135
155
  options: [
136
156
  'ids'
@@ -142,6 +162,9 @@ module.exports = {
142
162
 
143
163
  like: {
144
164
  statusCode: 204,
165
+ headers: {
166
+ cacheInvalidate: false
167
+ },
145
168
  options: [
146
169
  'id'
147
170
  ],
@@ -155,6 +178,9 @@ module.exports = {
155
178
 
156
179
  unlike: {
157
180
  statusCode: 204,
181
+ headers: {
182
+ cacheInvalidate: false
183
+ },
158
184
  options: [
159
185
  'id'
160
186
  ],
@@ -167,6 +193,9 @@ module.exports = {
167
193
 
168
194
  report: {
169
195
  statusCode: 204,
196
+ headers: {
197
+ cacheInvalidate: false
198
+ },
170
199
  options: [
171
200
  'id'
172
201
  ],
@@ -4,6 +4,9 @@ module.exports = {
4
4
  docName: 'comments',
5
5
 
6
6
  edit: {
7
+ headers: {
8
+ cacheInvalidate: false
9
+ },
7
10
  options: [
8
11
  'id'
9
12
  ],
@@ -4,6 +4,9 @@ module.exports = {
4
4
  docName: 'config',
5
5
 
6
6
  read: {
7
+ headers: {
8
+ cacheInvalidate: false
9
+ },
7
10
  permissions: false,
8
11
  query() {
9
12
  return publicConfig.config;
@@ -4,6 +4,9 @@ module.exports = {
4
4
  docName: 'custom_theme_settings',
5
5
 
6
6
  browse: {
7
+ headers: {
8
+ cacheInvalidate: false
9
+ },
7
10
  permissions: true,
8
11
  query() {
9
12
  return customThemeSettingsService.api.listSettings();
@@ -12,6 +12,9 @@ module.exports = {
12
12
  docName: 'db',
13
13
 
14
14
  backupContent: {
15
+ headers: {
16
+ cacheInvalidate: false
17
+ },
15
18
  permissions: true,
16
19
  options: [
17
20
  'include',
@@ -48,7 +51,8 @@ module.exports = {
48
51
  disposition: {
49
52
  type: 'file',
50
53
  value: () => (exporter.fileName())
51
- }
54
+ },
55
+ cacheInvalidate: false
52
56
  },
53
57
  permissions: true,
54
58
  async query(frame) {
@@ -103,6 +107,9 @@ module.exports = {
103
107
  },
104
108
 
105
109
  inlineMedia: {
110
+ headers: {
111
+ cacheInvalidate: false
112
+ },
106
113
  permissions: {
107
114
  method: 'importContent'
108
115
  },
@@ -11,6 +11,9 @@ module.exports = {
11
11
  docName: 'email_post',
12
12
 
13
13
  read: {
14
+ headers: {
15
+ cacheInvalidate: false
16
+ },
14
17
  permissions: true,
15
18
  options: [
16
19
  'include'
@@ -4,6 +4,9 @@ module.exports = {
4
4
  docName: 'email_previews',
5
5
 
6
6
  read: {
7
+ headers: {
8
+ cacheInvalidate: false
9
+ },
7
10
  options: [
8
11
  'fields',
9
12
  'memberSegment',
@@ -25,7 +28,9 @@ module.exports = {
25
28
  },
26
29
  sendTestEmail: {
27
30
  statusCode: 204,
28
- headers: {},
31
+ headers: {
32
+ cacheInvalidate: false
33
+ },
29
34
  options: [
30
35
  'id'
31
36
  ],
@@ -16,6 +16,9 @@ module.exports = {
16
16
  docName: 'emails',
17
17
 
18
18
  browse: {
19
+ headers: {
20
+ cacheInvalidate: false
21
+ },
19
22
  options: [
20
23
  'limit',
21
24
  'fields',
@@ -30,6 +33,9 @@ module.exports = {
30
33
  },
31
34
 
32
35
  read: {
36
+ headers: {
37
+ cacheInvalidate: false
38
+ },
33
39
  options: [
34
40
  'fields'
35
41
  ],
@@ -57,6 +63,9 @@ module.exports = {
57
63
  },
58
64
 
59
65
  retry: {
66
+ headers: {
67
+ cacheInvalidate: false
68
+ },
60
69
  data: [
61
70
  'id'
62
71
  ],
@@ -67,6 +76,9 @@ module.exports = {
67
76
  },
68
77
 
69
78
  browseBatches: {
79
+ headers: {
80
+ cacheInvalidate: false
81
+ },
70
82
  options: [
71
83
  'limit',
72
84
  'fields',
@@ -95,6 +107,9 @@ module.exports = {
95
107
  },
96
108
 
97
109
  browseFailures: {
110
+ headers: {
111
+ cacheInvalidate: false
112
+ },
98
113
  options: [
99
114
  'limit',
100
115
  'fields',
@@ -123,6 +138,9 @@ module.exports = {
123
138
  },
124
139
 
125
140
  analyticsStatus: {
141
+ headers: {
142
+ cacheInvalidate: false
143
+ },
126
144
  permissions: {
127
145
  method: 'browse'
128
146
  },
@@ -132,6 +150,9 @@ module.exports = {
132
150
  },
133
151
 
134
152
  scheduleAnalytics: {
153
+ headers: {
154
+ cacheInvalidate: false
155
+ },
135
156
  permissions: {
136
157
  method: 'browse'
137
158
  },
@@ -148,6 +169,9 @@ module.exports = {
148
169
  },
149
170
 
150
171
  cancelScheduledAnalytics: {
172
+ headers: {
173
+ cacheInvalidate: false
174
+ },
151
175
  permissions: {
152
176
  method: 'browse'
153
177
  },
@@ -4,6 +4,9 @@ module.exports = {
4
4
  docName: 'explore',
5
5
 
6
6
  read: {
7
+ headers: {
8
+ cacheInvalidate: false
9
+ },
7
10
  permissions: true,
8
11
  query() {
9
12
  return exploreService.fetchData();
@@ -5,6 +5,9 @@ module.exports = {
5
5
 
6
6
  add: {
7
7
  statusCode: 201,
8
+ headers: {
9
+ cacheInvalidate: false
10
+ },
8
11
  validation: {
9
12
  data: {
10
13
  post_id: {
@@ -4,6 +4,9 @@ module.exports = {
4
4
  docName: 'files',
5
5
  upload: {
6
6
  statusCode: 201,
7
+ headers: {
8
+ cacheInvalidate: false
9
+ },
7
10
  permissions: false,
8
11
  async query(frame) {
9
12
  const filePath = await storage.getStorage('files').save({
@@ -26,6 +26,9 @@ const sign = async (claims, options) => {
26
26
  module.exports = {
27
27
  docName: 'identities',
28
28
  read: {
29
+ headers: {
30
+ cacheInvalidate: false
31
+ },
29
32
  permissions: true,
30
33
  async query(frame) {
31
34
  const token = await sign({sub: frame.user.get('email')});
@@ -8,6 +8,9 @@ module.exports = {
8
8
  docName: 'images',
9
9
  upload: {
10
10
  statusCode: 201,
11
+ headers: {
12
+ cacheInvalidate: false
13
+ },
11
14
  permissions: false,
12
15
  async query(frame) {
13
16
  const store = storage.getStorage('images');
@@ -15,6 +15,9 @@ const integrationsService = getIntegrationsServiceInstance({
15
15
  module.exports = {
16
16
  docName: 'integrations',
17
17
  browse: {
18
+ headers: {
19
+ cacheInvalidate: false
20
+ },
18
21
  permissions: true,
19
22
  options: [
20
23
  'include',
@@ -32,6 +35,9 @@ module.exports = {
32
35
  }
33
36
  },
34
37
  read: {
38
+ headers: {
39
+ cacheInvalidate: false
40
+ },
35
41
  permissions: true,
36
42
  data: [
37
43
  'id'
@@ -63,6 +69,9 @@ module.exports = {
63
69
  }
64
70
  },
65
71
  edit: {
72
+ headers: {
73
+ cacheInvalidate: false
74
+ },
66
75
  permissions: true,
67
76
  data: [
68
77
  'name',
@@ -91,6 +100,9 @@ module.exports = {
91
100
  },
92
101
  add: {
93
102
  statusCode: 201,
103
+ headers: {
104
+ cacheInvalidate: false
105
+ },
94
106
  permissions: true,
95
107
  data: [
96
108
  'name',
@@ -125,6 +137,9 @@ module.exports = {
125
137
  },
126
138
  destroy: {
127
139
  statusCode: 204,
140
+ headers: {
141
+ cacheInvalidate: false
142
+ },
128
143
  permissions: true,
129
144
  options: [
130
145
  'id'
@@ -15,6 +15,9 @@ module.exports = {
15
15
  docName: 'invites',
16
16
 
17
17
  browse: {
18
+ headers: {
19
+ cacheInvalidate: false
20
+ },
18
21
  options: [
19
22
  'include',
20
23
  'page',
@@ -36,6 +39,9 @@ module.exports = {
36
39
  },
37
40
 
38
41
  read: {
42
+ headers: {
43
+ cacheInvalidate: false
44
+ },
39
45
  options: [
40
46
  'include'
41
47
  ],
@@ -64,6 +70,9 @@ module.exports = {
64
70
  },
65
71
 
66
72
  destroy: {
73
+ headers: {
74
+ cacheInvalidate: false
75
+ },
67
76
  statusCode: 204,
68
77
  options: [
69
78
  'include',
@@ -82,6 +91,9 @@ module.exports = {
82
91
 
83
92
  add: {
84
93
  statusCode: 201,
94
+ headers: {
95
+ cacheInvalidate: false
96
+ },
85
97
  options: [
86
98
  'include',
87
99
  'email'