create-mithaq 0.0.0-stage → 0.2.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 (396) hide show
  1. package/LICENSE +22 -0
  2. package/LICENSES/openstatus-time-picker.txt +21 -0
  3. package/LICENSES/payload.txt +22 -0
  4. package/LICENSES/ponytail.txt +21 -0
  5. package/index.js +521 -0
  6. package/package.json +19 -4
  7. package/template/apps/asas-backoffice/components.json +25 -0
  8. package/template/apps/asas-backoffice/gitignore +3 -0
  9. package/template/apps/asas-backoffice/package.json +57 -0
  10. package/template/apps/asas-backoffice/public/favicon.svg +1 -0
  11. package/template/apps/asas-backoffice/src/api.ts +147 -0
  12. package/template/apps/asas-backoffice/src/auth-frame.tsx +150 -0
  13. package/template/apps/asas-backoffice/src/components/ui/accordion.tsx +74 -0
  14. package/template/apps/asas-backoffice/src/components/ui/alert-dialog.tsx +185 -0
  15. package/template/apps/asas-backoffice/src/components/ui/avatar.tsx +106 -0
  16. package/template/apps/asas-backoffice/src/components/ui/badge.tsx +48 -0
  17. package/template/apps/asas-backoffice/src/components/ui/breadcrumb.tsx +124 -0
  18. package/template/apps/asas-backoffice/src/components/ui/button-group.tsx +87 -0
  19. package/template/apps/asas-backoffice/src/components/ui/button.tsx +55 -0
  20. package/template/apps/asas-backoffice/src/components/ui/calendar.tsx +223 -0
  21. package/template/apps/asas-backoffice/src/components/ui/card.tsx +102 -0
  22. package/template/apps/asas-backoffice/src/components/ui/chart.tsx +371 -0
  23. package/template/apps/asas-backoffice/src/components/ui/checkbox.tsx +28 -0
  24. package/template/apps/asas-backoffice/src/components/ui/collapsible.tsx +19 -0
  25. package/template/apps/asas-backoffice/src/components/ui/combobox.tsx +308 -0
  26. package/template/apps/asas-backoffice/src/components/ui/dialog.tsx +158 -0
  27. package/template/apps/asas-backoffice/src/components/ui/direction.tsx +6 -0
  28. package/template/apps/asas-backoffice/src/components/ui/directional-icon.tsx +20 -0
  29. package/template/apps/asas-backoffice/src/components/ui/dropdown-menu.tsx +267 -0
  30. package/template/apps/asas-backoffice/src/components/ui/field.tsx +236 -0
  31. package/template/apps/asas-backoffice/src/components/ui/input-group.tsx +155 -0
  32. package/template/apps/asas-backoffice/src/components/ui/input-otp.tsx +84 -0
  33. package/template/apps/asas-backoffice/src/components/ui/input.tsx +19 -0
  34. package/template/apps/asas-backoffice/src/components/ui/label.tsx +19 -0
  35. package/template/apps/asas-backoffice/src/components/ui/popover.tsx +90 -0
  36. package/template/apps/asas-backoffice/src/components/ui/radio-group.tsx +37 -0
  37. package/template/apps/asas-backoffice/src/components/ui/resizable.tsx +47 -0
  38. package/template/apps/asas-backoffice/src/components/ui/scroll-area.tsx +54 -0
  39. package/template/apps/asas-backoffice/src/components/ui/select.tsx +204 -0
  40. package/template/apps/asas-backoffice/src/components/ui/separator.tsx +24 -0
  41. package/template/apps/asas-backoffice/src/components/ui/sheet.tsx +139 -0
  42. package/template/apps/asas-backoffice/src/components/ui/sidebar.tsx +714 -0
  43. package/template/apps/asas-backoffice/src/components/ui/skeleton.tsx +13 -0
  44. package/template/apps/asas-backoffice/src/components/ui/slider.tsx +55 -0
  45. package/template/apps/asas-backoffice/src/components/ui/spinner.tsx +10 -0
  46. package/template/apps/asas-backoffice/src/components/ui/switch.tsx +29 -0
  47. package/template/apps/asas-backoffice/src/components/ui/table.tsx +115 -0
  48. package/template/apps/asas-backoffice/src/components/ui/tabs.tsx +79 -0
  49. package/template/apps/asas-backoffice/src/components/ui/textarea.tsx +17 -0
  50. package/template/apps/asas-backoffice/src/components/ui/toggle-group.tsx +89 -0
  51. package/template/apps/asas-backoffice/src/components/ui/toggle.tsx +44 -0
  52. package/template/apps/asas-backoffice/src/components/ui/tooltip.tsx +63 -0
  53. package/template/apps/asas-backoffice/src/components.ts +35 -0
  54. package/template/apps/asas-backoffice/src/copy.ts +1 -0
  55. package/template/apps/asas-backoffice/src/first-user.ts +14 -0
  56. package/template/apps/asas-backoffice/src/hooks/use-mobile.ts +19 -0
  57. package/template/apps/asas-backoffice/src/lib/utils.ts +1 -0
  58. package/template/apps/asas-backoffice/src/links.ts +38 -0
  59. package/template/apps/asas-backoffice/src/locale-switch.tsx +28 -0
  60. package/template/apps/asas-backoffice/src/no-organization.tsx +5 -0
  61. package/template/apps/asas-backoffice/src/redirect.ts +1 -0
  62. package/template/apps/asas-backoffice/src/request-headers.ts +11 -0
  63. package/template/apps/asas-backoffice/src/routeTree.gen.ts +206 -0
  64. package/template/apps/asas-backoffice/src/router.tsx +18 -0
  65. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice/files.ts +10 -0
  66. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice/screen.json +3971 -0
  67. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice/types.ts +163 -0
  68. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice.$.tsx +17 -0
  69. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice.index.tsx +10 -0
  70. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice.tsx +13 -0
  71. package/template/apps/asas-backoffice/src/routes/__root.tsx +95 -0
  72. package/template/apps/asas-backoffice/src/routes/api/$.ts +34 -0
  73. package/template/apps/asas-backoffice/src/routes/auth.create-first-user.tsx +113 -0
  74. package/template/apps/asas-backoffice/src/routes/auth.sign-in.tsx +77 -0
  75. package/template/apps/asas-backoffice/src/routes/unauthorized.tsx +134 -0
  76. package/template/apps/asas-backoffice/src/screen-form.tsx +36 -0
  77. package/template/apps/asas-backoffice/src/screen-list.tsx +140 -0
  78. package/template/apps/asas-backoffice/src/screen-names.ts +10 -0
  79. package/template/apps/asas-backoffice/src/screens.tsx +888 -0
  80. package/template/apps/asas-backoffice/src/server.ts +30 -0
  81. package/template/apps/asas-backoffice/src/slide.ts +22 -0
  82. package/template/apps/asas-backoffice/src/start.ts +42 -0
  83. package/template/apps/asas-backoffice/src/styles.css +202 -0
  84. package/template/apps/asas-backoffice/src/theme.ts +2 -0
  85. package/template/apps/asas-backoffice/tsconfig.json +19 -0
  86. package/template/apps/asas-backoffice/vite.config.ts +32 -0
  87. package/template/apps/asas-tanstack/components.json +25 -0
  88. package/template/apps/asas-tanstack/gitignore +3 -0
  89. package/template/apps/asas-tanstack/package.json +58 -0
  90. package/template/apps/asas-tanstack/public/favicon.svg +1 -0
  91. package/template/apps/asas-tanstack/src/api.ts +147 -0
  92. package/template/apps/asas-tanstack/src/auth-frame.tsx +150 -0
  93. package/template/apps/asas-tanstack/src/choose-password.tsx +150 -0
  94. package/template/apps/asas-tanstack/src/components/ui/accordion.tsx +10 -0
  95. package/template/apps/asas-tanstack/src/components/ui/alert-dialog.tsx +173 -0
  96. package/template/apps/asas-tanstack/src/components/ui/avatar.tsx +104 -0
  97. package/template/apps/asas-tanstack/src/components/ui/badge.tsx +48 -0
  98. package/template/apps/asas-tanstack/src/components/ui/breadcrumb.tsx +125 -0
  99. package/template/apps/asas-tanstack/src/components/ui/button-group.tsx +87 -0
  100. package/template/apps/asas-tanstack/src/components/ui/button.tsx +56 -0
  101. package/template/apps/asas-tanstack/src/components/ui/calendar.tsx +223 -0
  102. package/template/apps/asas-tanstack/src/components/ui/card.tsx +94 -0
  103. package/template/apps/asas-tanstack/src/components/ui/chart.tsx +369 -0
  104. package/template/apps/asas-tanstack/src/components/ui/checkbox.tsx +27 -0
  105. package/template/apps/asas-tanstack/src/components/ui/collapsible.tsx +19 -0
  106. package/template/apps/asas-tanstack/src/components/ui/combobox.tsx +300 -0
  107. package/template/apps/asas-tanstack/src/components/ui/dialog.tsx +149 -0
  108. package/template/apps/asas-tanstack/src/components/ui/direction.tsx +5 -0
  109. package/template/apps/asas-tanstack/src/components/ui/directional-icon.tsx +20 -0
  110. package/template/apps/asas-tanstack/src/components/ui/dropdown-menu.tsx +267 -0
  111. package/template/apps/asas-tanstack/src/components/ui/field.tsx +225 -0
  112. package/template/apps/asas-tanstack/src/components/ui/input-group.tsx +147 -0
  113. package/template/apps/asas-tanstack/src/components/ui/input-otp.tsx +20 -0
  114. package/template/apps/asas-tanstack/src/components/ui/input.tsx +20 -0
  115. package/template/apps/asas-tanstack/src/components/ui/label.tsx +18 -0
  116. package/template/apps/asas-tanstack/src/components/ui/popover.tsx +50 -0
  117. package/template/apps/asas-tanstack/src/components/ui/radio-group.tsx +10 -0
  118. package/template/apps/asas-tanstack/src/components/ui/resizable.tsx +47 -0
  119. package/template/apps/asas-tanstack/src/components/ui/scroll-area.tsx +52 -0
  120. package/template/apps/asas-tanstack/src/components/ui/select.tsx +190 -0
  121. package/template/apps/asas-tanstack/src/components/ui/separator.tsx +23 -0
  122. package/template/apps/asas-tanstack/src/components/ui/sheet.tsx +127 -0
  123. package/template/apps/asas-tanstack/src/components/ui/sidebar.tsx +716 -0
  124. package/template/apps/asas-tanstack/src/components/ui/skeleton.tsx +13 -0
  125. package/template/apps/asas-tanstack/src/components/ui/slider.tsx +13 -0
  126. package/template/apps/asas-tanstack/src/components/ui/spinner.tsx +11 -0
  127. package/template/apps/asas-tanstack/src/components/ui/switch.tsx +8 -0
  128. package/template/apps/asas-tanstack/src/components/ui/table.tsx +119 -0
  129. package/template/apps/asas-tanstack/src/components/ui/tabs.tsx +80 -0
  130. package/template/apps/asas-tanstack/src/components/ui/textarea.tsx +18 -0
  131. package/template/apps/asas-tanstack/src/components/ui/toggle-group.tsx +8 -0
  132. package/template/apps/asas-tanstack/src/components/ui/toggle.tsx +44 -0
  133. package/template/apps/asas-tanstack/src/components/ui/tooltip.tsx +68 -0
  134. package/template/apps/asas-tanstack/src/components.ts +35 -0
  135. package/template/apps/asas-tanstack/src/copy.ts +1207 -0
  136. package/template/apps/asas-tanstack/src/first-run.ts +16 -0
  137. package/template/apps/asas-tanstack/src/hooks/use-mobile.ts +19 -0
  138. package/template/apps/asas-tanstack/src/lib/utils.ts +6 -0
  139. package/template/apps/asas-tanstack/src/links.ts +38 -0
  140. package/template/apps/asas-tanstack/src/locale-switch.tsx +28 -0
  141. package/template/apps/asas-tanstack/src/no-organization.tsx +108 -0
  142. package/template/apps/asas-tanstack/src/quiet-abort.ts +25 -0
  143. package/template/apps/asas-tanstack/src/redirect.ts +39 -0
  144. package/template/apps/asas-tanstack/src/request-headers.ts +11 -0
  145. package/template/apps/asas-tanstack/src/routeTree.gen.ts +424 -0
  146. package/template/apps/asas-tanstack/src/router.tsx +18 -0
  147. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/files.ts +11 -0
  148. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/screen.json +4242 -0
  149. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/types.ts +160 -0
  150. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard.$.tsx +17 -0
  151. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard.index.tsx +10 -0
  152. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard.tsx +13 -0
  153. package/template/apps/asas-tanstack/src/routes/(screens)/portal/files.ts +9 -0
  154. package/template/apps/asas-tanstack/src/routes/(screens)/portal/screen.json +1564 -0
  155. package/template/apps/asas-tanstack/src/routes/(screens)/portal/types.ts +94 -0
  156. package/template/apps/asas-tanstack/src/routes/(screens)/portal.$.tsx +17 -0
  157. package/template/apps/asas-tanstack/src/routes/(screens)/portal.index.tsx +10 -0
  158. package/template/apps/asas-tanstack/src/routes/(screens)/portal.tsx +13 -0
  159. package/template/apps/asas-tanstack/src/routes/__root.tsx +99 -0
  160. package/template/apps/asas-tanstack/src/routes/api/$.ts +11 -0
  161. package/template/apps/asas-tanstack/src/routes/auth.accept-invitation.tsx +108 -0
  162. package/template/apps/asas-tanstack/src/routes/auth.first-run.tsx +114 -0
  163. package/template/apps/asas-tanstack/src/routes/auth.forgot-password.tsx +94 -0
  164. package/template/apps/asas-tanstack/src/routes/auth.handoff.ts +39 -0
  165. package/template/apps/asas-tanstack/src/routes/auth.reset-password.tsx +16 -0
  166. package/template/apps/asas-tanstack/src/routes/auth.set-password.tsx +16 -0
  167. package/template/apps/asas-tanstack/src/routes/auth.sign-in.tsx +98 -0
  168. package/template/apps/asas-tanstack/src/routes/auth.sign-up.tsx +143 -0
  169. package/template/apps/asas-tanstack/src/routes/index.tsx +146 -0
  170. package/template/apps/asas-tanstack/src/routes/unauthorized.tsx +134 -0
  171. package/template/apps/asas-tanstack/src/screen-form.tsx +36 -0
  172. package/template/apps/asas-tanstack/src/screen-list.tsx +140 -0
  173. package/template/apps/asas-tanstack/src/screen-names.ts +10 -0
  174. package/template/apps/asas-tanstack/src/screens.tsx +888 -0
  175. package/template/apps/asas-tanstack/src/server.ts +26 -0
  176. package/template/apps/asas-tanstack/src/slide.ts +22 -0
  177. package/template/apps/asas-tanstack/src/start.ts +57 -0
  178. package/template/apps/asas-tanstack/src/styles.css +163 -0
  179. package/template/apps/asas-tanstack/src/theme.ts +5 -0
  180. package/template/apps/asas-tanstack/tsconfig.json +19 -0
  181. package/template/apps/asas-tanstack/vite.config.ts +34 -0
  182. package/template/package.json +16 -0
  183. package/template/templates/asas/.claude/skills/add-field/SKILL.md +27 -0
  184. package/template/templates/asas/.claude/skills/add-kayan/SKILL.md +26 -0
  185. package/template/templates/asas/.claude/skills/eject-admin-piece/SKILL.md +28 -0
  186. package/template/templates/asas/.claude/skills/upgrade-mithaq/SKILL.md +35 -0
  187. package/template/templates/asas/.env.example +33 -0
  188. package/template/templates/asas/AGENTS.md +101 -0
  189. package/template/templates/asas/CLAUDE.md +1 -0
  190. package/template/templates/asas/README.md +1056 -0
  191. package/template/templates/asas/mithaq.hints.json +25 -0
  192. package/template/templates/asas/package.json +53 -0
  193. package/template/templates/asas/src/asas.ts +118 -0
  194. package/template/templates/asas/src/backoffice-http.ts +117 -0
  195. package/template/templates/asas/src/dev-setup.ts +112 -0
  196. package/template/templates/asas/src/local-database.ts +22 -0
  197. package/template/templates/asas/src/messages/account.json +132 -0
  198. package/template/templates/asas/src/messages/auditLog.json +304 -0
  199. package/template/templates/asas/src/messages/backofficeLog.json +132 -0
  200. package/template/templates/asas/src/messages/courses.json +312 -0
  201. package/template/templates/asas/src/messages/enrollments.json +60 -0
  202. package/template/templates/asas/src/messages/invitation.json +82 -0
  203. package/template/templates/asas/src/messages/localUsers.json +48 -0
  204. package/template/templates/asas/src/messages/media.json +76 -0
  205. package/template/templates/asas/src/messages/member.json +62 -0
  206. package/template/templates/asas/src/messages/memberRoles.json +48 -0
  207. package/template/templates/asas/src/messages/mithaq.json +214 -0
  208. package/template/templates/asas/src/messages/organization.json +72 -0
  209. package/template/templates/asas/src/messages/organizationRole.json +62 -0
  210. package/template/templates/asas/src/messages/roles.json +72 -0
  211. package/template/templates/asas/src/messages/session.json +102 -0
  212. package/template/templates/asas/src/messages/sessions.json +136 -0
  213. package/template/templates/asas/src/messages/settings.json +64 -0
  214. package/template/templates/asas/src/messages/tags.json +48 -0
  215. package/template/templates/asas/src/messages/user.json +112 -0
  216. package/template/templates/asas/src/messages/verification.json +62 -0
  217. package/template/templates/asas/src/migrations/20260920080701_parched_tombstone/migration.sql +177 -0
  218. package/template/templates/asas/src/migrations/20260920080701_parched_tombstone/snapshot.json +2169 -0
  219. package/template/templates/asas/src/migrations/20260920230505_zippy_ben_urich/migration.sql +1 -0
  220. package/template/templates/asas/src/migrations/20260920230505_zippy_ben_urich/snapshot.json +2182 -0
  221. package/template/templates/asas/src/migrations/20260920231219_slim_retro_girl/migration.sql +20 -0
  222. package/template/templates/asas/src/migrations/20260920231219_slim_retro_girl/snapshot.json +2409 -0
  223. package/template/templates/asas/src/migrations/20260922082945_military_ironclad/migration.sql +15 -0
  224. package/template/templates/asas/src/migrations/20260922082945_military_ironclad/snapshot.json +2627 -0
  225. package/template/templates/asas/src/migrations/20260922112630_bitter_chat/migration.sql +5 -0
  226. package/template/templates/asas/src/migrations/20260922112630_bitter_chat/snapshot.json +2691 -0
  227. package/template/templates/asas/src/migrations/20260923235915_foamy_rachel_grey/migration.sql +8 -0
  228. package/template/templates/asas/src/migrations/20260923235915_foamy_rachel_grey/snapshot.json +2795 -0
  229. package/template/templates/asas/src/migrations/20260926145709_clean_the_initiative/migration.sql +3 -0
  230. package/template/templates/asas/src/migrations/20260926145709_clean_the_initiative/snapshot.json +2834 -0
  231. package/template/templates/asas/src/migrations/20260927212525_bent_prowler/migration.sql +9 -0
  232. package/template/templates/asas/src/migrations/20260927212525_bent_prowler/snapshot.json +2870 -0
  233. package/template/templates/asas/src/migrations/20260927223441_tranquil_bromley/migration.sql +1 -0
  234. package/template/templates/asas/src/migrations/20260927223441_tranquil_bromley/snapshot.json +2881 -0
  235. package/template/templates/asas/src/migrations/20260928030047_outgoing_wraith/migration.sql +15 -0
  236. package/template/templates/asas/src/migrations/20260928030047_outgoing_wraith/snapshot.json +3073 -0
  237. package/template/templates/asas/src/migrations/20260929024407_grey_morlun/migration.sql +21 -0
  238. package/template/templates/asas/src/migrations/20260929024407_grey_morlun/snapshot.json +3098 -0
  239. package/template/templates/asas/src/migrations/20260929130530_bored_jackal/migration.sql +21 -0
  240. package/template/templates/asas/src/migrations/20260929130530_bored_jackal/snapshot.json +3124 -0
  241. package/template/templates/asas/src/migrations/20260930102924_material_newton_destine/migration.sql +32 -0
  242. package/template/templates/asas/src/migrations/20260930102924_material_newton_destine/snapshot.json +3324 -0
  243. package/template/templates/asas/src/migrations/20261003022353_clumsy_taskmaster/migration.sql +2 -0
  244. package/template/templates/asas/src/migrations/20261003022353_clumsy_taskmaster/snapshot.json +3350 -0
  245. package/template/templates/asas/src/migrations/20261003143249_premium_red_shift/migration.sql +21 -0
  246. package/template/templates/asas/src/migrations/20261003143249_premium_red_shift/snapshot.json +3635 -0
  247. package/template/templates/asas/src/migrations/20261008215349_square_norrin_radd/migration.sql +8 -0
  248. package/template/templates/asas/src/migrations/20261008215349_square_norrin_radd/snapshot.json +3635 -0
  249. package/template/templates/asas/src/migrations/20261008230204_many_scarecrow/migration.sql +18 -0
  250. package/template/templates/asas/src/migrations/20261008230204_many_scarecrow/snapshot.json +3635 -0
  251. package/template/templates/asas/src/migrations/20261010005521_elite_giant_girl/migration.sql +18 -0
  252. package/template/templates/asas/src/migrations/20261010005521_elite_giant_girl/snapshot.json +3635 -0
  253. package/template/templates/asas/src/migrations/20261010120822_needy_thunderbolt/migration.sql +11 -0
  254. package/template/templates/asas/src/migrations/20261010120822_needy_thunderbolt/snapshot.json +3667 -0
  255. package/template/templates/asas/src/migrations/20261012000752_organization_ownership/migration.sql +48 -0
  256. package/template/templates/asas/src/migrations/20261012000752_organization_ownership/snapshot.json +3891 -0
  257. package/template/templates/asas/src/migrations/20261014221355_tags_restrict/migration.sql +1 -0
  258. package/template/templates/asas/src/migrations/20261014221355_tags_restrict/snapshot.json +3881 -0
  259. package/template/templates/asas/src/migrations/20261014222218_one_seat_per_session/migration.sql +1 -0
  260. package/template/templates/asas/src/migrations/20261014222218_one_seat_per_session/snapshot.json +3894 -0
  261. package/template/templates/asas/src/migrations/20261014223522_session_archive_reason/migration.sql +1 -0
  262. package/template/templates/asas/src/migrations/20261014223522_session_archive_reason/snapshot.json +3907 -0
  263. package/template/templates/asas/src/migrations/20261014225728_course_archive_by_operation/migration.sql +1 -0
  264. package/template/templates/asas/src/migrations/20261014225728_course_archive_by_operation/snapshot.json +3907 -0
  265. package/template/templates/asas/src/migrations/20261015042444_organization_names/migration.sql +1 -0
  266. package/template/templates/asas/src/migrations/20261015042444_organization_names/snapshot.json +3920 -0
  267. package/template/templates/asas/src/migrations/20261015053212_member_last_seen/migration.sql +1 -0
  268. package/template/templates/asas/src/migrations/20261015053212_member_last_seen/snapshot.json +3933 -0
  269. package/template/templates/asas/src/migrations/20261015093203_activity_and_staff_history/migration.sql +15 -0
  270. package/template/templates/asas/src/migrations/20261015093203_activity_and_staff_history/snapshot.json +4113 -0
  271. package/template/templates/asas/src/migrations/20261015095752_portal/migration.sql +2 -0
  272. package/template/templates/asas/src/migrations/20261015095752_portal/snapshot.json +4113 -0
  273. package/template/templates/asas/src/migrations/20261015135529_better_auth_indexes/migration.sql +9 -0
  274. package/template/templates/asas/src/migrations/20261015135529_better_auth_indexes/snapshot.json +4302 -0
  275. package/template/templates/asas/src/migrations/20261015162438_audit_changes_json/migration.sql +27 -0
  276. package/template/templates/asas/src/migrations/20261015162438_audit_changes_json/snapshot.json +4289 -0
  277. package/template/templates/asas/src/migrations/drizzle.config.ts +11 -0
  278. package/template/templates/asas/src/migrations/schema.ts +30 -0
  279. package/template/templates/asas/src/mithaq.ts +4 -0
  280. package/template/templates/asas/src/organizations.ts +3 -0
  281. package/template/templates/asas/src/seed.ts +427 -0
  282. package/template/templates/asas/src/ui-backoffice/home.tsx +63 -0
  283. package/template/templates/asas/src/ui-backoffice/organization-actions.tsx +121 -0
  284. package/template/templates/asas/src/ui-backoffice/record-page.tsx +30 -0
  285. package/template/templates/asas/src/ui-backoffice/role-cells.tsx +59 -0
  286. package/template/templates/asas/src/ui-backoffice/user-actions.tsx +249 -0
  287. package/template/templates/asas/src/ui-dashboard/dashboard.tsx +300 -0
  288. package/template/templates/asas/src/ui-dashboard/home.tsx +73 -0
  289. package/template/templates/asas/src/ui-dashboard/members-card.tsx +147 -0
  290. package/template/templates/asas/src/ui-dashboard/members.tsx +829 -0
  291. package/template/templates/asas/src/ui-dashboard/theme-provider.tsx +10 -0
  292. package/template/templates/asas/src/ui-dashboard/versions.tsx +446 -0
  293. package/template/templates/asas/src/ui-portal/courses-home.tsx +96 -0
  294. package/template/templates/asas/src/ui-portal/home.tsx +73 -0
  295. package/template/templates/asas/src/ui-portal/page.tsx +11 -0
  296. package/template/templates/features/audit-log/audit-log/audit-log.ts +284 -0
  297. package/template/templates/features/audit-log/backoffice-log/backoffice-log.ts +67 -0
  298. package/template/templates/features/audit-log/index.ts +4 -0
  299. package/template/templates/features/audit-log/package.json +13 -0
  300. package/template/templates/features/auth/index.ts +11 -0
  301. package/template/templates/features/auth/local-users/local-users.ts +143 -0
  302. package/template/templates/features/auth/package.json +13 -0
  303. package/template/templates/features/auth/user/account.access.ts +8 -0
  304. package/template/templates/features/auth/user/account.ts +31 -0
  305. package/template/templates/features/auth/user/index.ts +18 -0
  306. package/template/templates/features/auth/user/invitation.access.ts +4 -0
  307. package/template/templates/features/auth/user/invitation.ts +27 -0
  308. package/template/templates/features/auth/user/member.access.ts +10 -0
  309. package/template/templates/features/auth/user/member.screens.ts +37 -0
  310. package/template/templates/features/auth/user/member.ts +26 -0
  311. package/template/templates/features/auth/user/organization.access.ts +20 -0
  312. package/template/templates/features/auth/user/organization.screens.ts +37 -0
  313. package/template/templates/features/auth/user/organization.ts +25 -0
  314. package/template/templates/features/auth/user/organizationRole.access.ts +8 -0
  315. package/template/templates/features/auth/user/organizationRole.ts +25 -0
  316. package/template/templates/features/auth/user/session.access.ts +8 -0
  317. package/template/templates/features/auth/user/session.ts +28 -0
  318. package/template/templates/features/auth/user/user.access.ts +30 -0
  319. package/template/templates/features/auth/user/user.screens.ts +45 -0
  320. package/template/templates/features/auth/user/user.ts +31 -0
  321. package/template/templates/features/auth/user/verification.access.ts +8 -0
  322. package/template/templates/features/auth/user/verification.ts +23 -0
  323. package/template/templates/features/courses/courses/courses.ts +601 -0
  324. package/template/templates/features/courses/courses/cover-reads.ts +33 -0
  325. package/template/templates/features/courses/courses/ui/archived-badge.tsx +9 -0
  326. package/template/templates/features/courses/courses/ui/fee-cell.tsx +19 -0
  327. package/template/templates/features/courses/courses/ui/no-courses.tsx +13 -0
  328. package/template/templates/features/courses/courses/ui/status-cell.tsx +33 -0
  329. package/template/templates/features/courses/courses/ui/unpublish-button.tsx +15 -0
  330. package/template/templates/features/courses/domain/archive.ts +39 -0
  331. package/template/templates/features/courses/domain/on-offer.ts +6 -0
  332. package/template/templates/features/courses/enrollments/enrollments.ts +309 -0
  333. package/template/templates/features/courses/enrollments/ui/session-cell.tsx +75 -0
  334. package/template/templates/features/courses/enrollments/ui/session-labels.tsx +36 -0
  335. package/template/templates/features/courses/index.ts +8 -0
  336. package/template/templates/features/courses/package.json +24 -0
  337. package/template/templates/features/courses/portal/ui/catalogue.tsx +86 -0
  338. package/template/templates/features/courses/portal/ui/course.tsx +176 -0
  339. package/template/templates/features/courses/portal/ui/enrollments.tsx +170 -0
  340. package/template/templates/features/courses/portal/ui/parts.tsx +95 -0
  341. package/template/templates/features/courses/portal/ui/reads.ts +76 -0
  342. package/template/templates/features/courses/portal/ui/rules.ts +87 -0
  343. package/template/templates/features/courses/portal/ui/shell.tsx +194 -0
  344. package/template/templates/features/courses/sessions/seats.ts +42 -0
  345. package/template/templates/features/courses/sessions/sessions.ts +186 -0
  346. package/template/templates/features/media/index.ts +10 -0
  347. package/template/templates/features/media/media/media.ts +131 -0
  348. package/template/templates/features/media/media/ui/preview.tsx +143 -0
  349. package/template/templates/features/media/package.json +19 -0
  350. package/template/templates/features/roles/index.ts +4 -0
  351. package/template/templates/features/roles/member-roles/member-roles.ts +207 -0
  352. package/template/templates/features/roles/package.json +21 -0
  353. package/template/templates/features/roles/roles/roles.ts +184 -0
  354. package/template/templates/features/roles/roles/ui/role-form.tsx +267 -0
  355. package/template/templates/features/roles/roles/ui/roles.tsx +190 -0
  356. package/template/templates/features/settings/index.ts +3 -0
  357. package/template/templates/features/settings/package.json +13 -0
  358. package/template/templates/features/settings/settings/settings.ts +64 -0
  359. package/template/templates/features/tags/index.ts +3 -0
  360. package/template/templates/features/tags/package.json +14 -0
  361. package/template/templates/features/tags/tags/tags.ts +80 -0
  362. package/template/templates/mithaq/components.json +22 -0
  363. package/template/templates/mithaq/package.json +33 -0
  364. package/template/templates/mithaq/src/mail/index.ts +32 -0
  365. package/template/templates/mithaq/src/mail/mailers.ts +36 -0
  366. package/template/templates/mithaq/src/mithaq/audit-sink.ts +111 -0
  367. package/template/templates/mithaq/src/mithaq/auth/backoffice-roles.ts +108 -0
  368. package/template/templates/mithaq/src/mithaq/auth/index.ts +1859 -0
  369. package/template/templates/mithaq/src/mithaq/auth/organizations.ts +80 -0
  370. package/template/templates/mithaq/src/mithaq/pages.ts +83 -0
  371. package/template/templates/mithaq/src/mithaq/rich-text-nodes.ts +19 -0
  372. package/template/templates/mithaq/src/mithaq.ts +593 -0
  373. package/template/templates/mithaq/src/roles/default-member-roles.ts +29 -0
  374. package/template/templates/mithaq/src/roles/grants.ts +47 -0
  375. package/template/templates/mithaq/src/roles/member-access.ts +11 -0
  376. package/template/templates/mithaq/src/roles/statements.ts +13 -0
  377. package/template/templates/mithaq/src/roles/system-roles.ts +16 -0
  378. package/template/templates/mithaq/src/roles/tenant-access.ts +260 -0
  379. package/template/templates/mithaq/src/roles/tenant-roles.ts +321 -0
  380. package/template/templates/mithaq/src/steps/expected-updated-at.ts +41 -0
  381. package/template/templates/mithaq/src/storage/defaults.ts +156 -0
  382. package/template/templates/mithaq/src/storage/index.ts +97 -0
  383. package/template/templates/mithaq/src/storage/local.ts +143 -0
  384. package/template/templates/mithaq/src/storage/r2.ts +5 -0
  385. package/template/templates/mithaq/src/storage/s3.ts +91 -0
  386. package/template/templates/mithaq/src/storage/uploadthing.ts +59 -0
  387. package/template/templates/mithaq/src/ui/activity-page.tsx +33 -0
  388. package/template/templates/mithaq/src/ui/activity.tsx +527 -0
  389. package/template/templates/mithaq/src/ui/app-shell.tsx +268 -0
  390. package/template/templates/mithaq/src/ui/kpi-card.tsx +25 -0
  391. package/template/templates/mithaq/src/ui/record-page.tsx +50 -0
  392. package/template/templates/mithaq/src/ui/rich-text-nodes.tsx +33 -0
  393. package/template/templates/mithaq/src/ui/screen-nav.tsx +28 -0
  394. package/template/templates/mithaq/src/ui/table-page.tsx +9 -0
  395. package/template/templates/mithaq/src/ui/top-shell.tsx +60 -0
  396. package/README.md +0 -3
@@ -0,0 +1,1564 @@
1
+ {
2
+ "path": "/portal",
3
+ "providers": [
4
+ "@asas/mithaq:./src/ui/rich-text-nodes.tsx#RichTextNodes",
5
+ "@asas/courses:./enrollments/ui/session-labels.tsx#SessionLabels"
6
+ ],
7
+ "pages": {
8
+ "home": {
9
+ "path": "/",
10
+ "component": "./src/ui-portal/courses-home.tsx#Home"
11
+ }
12
+ },
13
+ "nav": [
14
+ {
15
+ "path": "/courses",
16
+ "page": "list",
17
+ "kayan": "courses",
18
+ "permission": "courses.find"
19
+ },
20
+ {
21
+ "path": "/enrollments",
22
+ "page": "list",
23
+ "kayan": "enrollments",
24
+ "permission": "enrollments.find"
25
+ }
26
+ ],
27
+ "layouts": {
28
+ "top": "@asas/courses:./portal/ui/shell.tsx#PortalShell",
29
+ "page": "./src/ui-portal/page.tsx#Page"
30
+ },
31
+ "components": {},
32
+ "controls": {
33
+ "text": {
34
+ "control": "text",
35
+ "cell": "text"
36
+ },
37
+ "email": {
38
+ "control": "email",
39
+ "cell": "email"
40
+ },
41
+ "number": {
42
+ "control": "number",
43
+ "cell": "number"
44
+ },
45
+ "integer": {
46
+ "control": "integer",
47
+ "cell": "integer"
48
+ },
49
+ "decimal": {
50
+ "control": "decimal",
51
+ "cell": "decimal"
52
+ },
53
+ "checkbox": {
54
+ "control": "checkbox",
55
+ "cell": "checkbox"
56
+ },
57
+ "datetime": {
58
+ "control": "datetime",
59
+ "cell": "datetime"
60
+ },
61
+ "date": {
62
+ "control": "date",
63
+ "cell": "date"
64
+ },
65
+ "textArray": {
66
+ "control": "textArray",
67
+ "cell": "textArray"
68
+ },
69
+ "uuid": {
70
+ "control": "uuid",
71
+ "cell": "uuid"
72
+ },
73
+ "relationship": {
74
+ "control": "relationship",
75
+ "cell": "relationship"
76
+ },
77
+ "json": {
78
+ "control": "json",
79
+ "cell": "json"
80
+ },
81
+ "join": {
82
+ "control": "join",
83
+ "cell": "join"
84
+ },
85
+ "richText": {
86
+ "control": "richText",
87
+ "cell": "richText"
88
+ },
89
+ "upload": {
90
+ "control": "upload",
91
+ "cell": "upload"
92
+ }
93
+ },
94
+ "kayan": {
95
+ "courses": {
96
+ "name": "courses",
97
+ "single": false,
98
+ "fields": [
99
+ {
100
+ "name": "id",
101
+ "kind": "uuid",
102
+ "label": {
103
+ "en": "ID",
104
+ "ar": "المعرف"
105
+ },
106
+ "rules": {
107
+ "required": false
108
+ },
109
+ "component": "uuid",
110
+ "cell": "uuid"
111
+ },
112
+ {
113
+ "name": "updatedAt",
114
+ "kind": "datetime",
115
+ "label": {
116
+ "en": "Updated at",
117
+ "ar": "تاريخ التعديل"
118
+ },
119
+ "rules": {
120
+ "required": true,
121
+ "defaultNow": true,
122
+ "nowOnUpdate": true,
123
+ "providedBy": {
124
+ "create": "application",
125
+ "update": "application"
126
+ }
127
+ },
128
+ "component": "datetime",
129
+ "cell": "datetime"
130
+ },
131
+ {
132
+ "name": "createdAt",
133
+ "kind": "datetime",
134
+ "label": {
135
+ "en": "Created at",
136
+ "ar": "تاريخ الإنشاء"
137
+ },
138
+ "rules": {
139
+ "required": true,
140
+ "defaultNow": true,
141
+ "index": true,
142
+ "providedBy": {
143
+ "create": "application",
144
+ "update": "application"
145
+ }
146
+ },
147
+ "component": "datetime",
148
+ "cell": "datetime"
149
+ },
150
+ {
151
+ "name": "organization",
152
+ "kind": "relationship",
153
+ "label": {
154
+ "en": "Organization",
155
+ "ar": "المؤسسة"
156
+ },
157
+ "rules": {
158
+ "required": true,
159
+ "index": true,
160
+ "providedBy": {
161
+ "create": "application",
162
+ "update": "never"
163
+ },
164
+ "onDelete": "restrict"
165
+ },
166
+ "relationTo": "organization",
167
+ "component": "relationship",
168
+ "cell": "relationship"
169
+ },
170
+ {
171
+ "name": "title",
172
+ "kind": "text",
173
+ "label": {
174
+ "en": "Title",
175
+ "ar": "العنوان"
176
+ },
177
+ "rules": {
178
+ "required": true,
179
+ "trim": true,
180
+ "maxLength": 120,
181
+ "index": true
182
+ },
183
+ "placeholder": {
184
+ "en": "Introduction to Arabic calligraphy",
185
+ "ar": "مقدمة في الخط العربي"
186
+ },
187
+ "prefix": {
188
+ "en": "Course",
189
+ "ar": "دورة"
190
+ },
191
+ "description": {
192
+ "en": "The name a student sees in the catalogue.",
193
+ "ar": "الاسم الذي يراه الطالب في الدليل."
194
+ },
195
+ "component": "text",
196
+ "cell": "text"
197
+ },
198
+ {
199
+ "name": "summary",
200
+ "kind": "text",
201
+ "label": {
202
+ "en": "Summary",
203
+ "ar": "الملخص"
204
+ },
205
+ "rules": {
206
+ "maxLength": 200,
207
+ "required": false
208
+ },
209
+ "component": "text",
210
+ "cell": "text"
211
+ },
212
+ {
213
+ "name": "fee",
214
+ "kind": "number",
215
+ "label": {
216
+ "en": "Fee",
217
+ "ar": "الرسوم"
218
+ },
219
+ "rules": {
220
+ "required": false
221
+ },
222
+ "suffix": {
223
+ "en": "per seat",
224
+ "ar": "لكل مقعد"
225
+ },
226
+ "component": "number",
227
+ "cell": "@asas/courses:./courses/ui/fee-cell.tsx#FeeCell"
228
+ },
229
+ {
230
+ "name": "currency",
231
+ "kind": "text",
232
+ "label": {
233
+ "en": "Currency",
234
+ "ar": "العملة"
235
+ },
236
+ "rules": {
237
+ "required": false
238
+ },
239
+ "options": [
240
+ {
241
+ "value": "SAR",
242
+ "label": {
243
+ "en": "Saudi riyal",
244
+ "ar": "ريال سعودي"
245
+ }
246
+ },
247
+ {
248
+ "value": "USD",
249
+ "label": {
250
+ "en": "US dollar",
251
+ "ar": "دولار أمريكي"
252
+ }
253
+ }
254
+ ],
255
+ "component": "radio",
256
+ "cell": "text"
257
+ },
258
+ {
259
+ "name": "level",
260
+ "kind": "number",
261
+ "label": {
262
+ "en": "Level",
263
+ "ar": "المستوى"
264
+ },
265
+ "rules": {
266
+ "min": 1,
267
+ "max": 5,
268
+ "required": false
269
+ },
270
+ "component": "number",
271
+ "cell": "number"
272
+ },
273
+ {
274
+ "name": "notifications",
275
+ "kind": "checkbox",
276
+ "label": {
277
+ "en": "Notifications",
278
+ "ar": "الإشعارات"
279
+ },
280
+ "rules": {
281
+ "required": false
282
+ },
283
+ "component": "checkbox",
284
+ "cell": "checkbox"
285
+ },
286
+ {
287
+ "name": "delivery",
288
+ "kind": "text",
289
+ "label": {
290
+ "en": "Delivery",
291
+ "ar": "طريقة التقديم"
292
+ },
293
+ "rules": {
294
+ "required": false
295
+ },
296
+ "options": [
297
+ {
298
+ "value": "live",
299
+ "label": {
300
+ "en": "Live",
301
+ "ar": "مباشر"
302
+ }
303
+ },
304
+ {
305
+ "value": "recorded",
306
+ "label": {
307
+ "en": "Recorded",
308
+ "ar": "مسجل"
309
+ }
310
+ }
311
+ ],
312
+ "component": "radio",
313
+ "cell": "text"
314
+ },
315
+ {
316
+ "name": "audience",
317
+ "kind": "text",
318
+ "label": {
319
+ "en": "Audience",
320
+ "ar": "الجمهور"
321
+ },
322
+ "rules": {
323
+ "required": false
324
+ },
325
+ "options": [
326
+ {
327
+ "value": "beginner",
328
+ "label": {
329
+ "en": "Beginner",
330
+ "ar": "مبتدئ"
331
+ }
332
+ },
333
+ {
334
+ "value": "advanced",
335
+ "label": {
336
+ "en": "Advanced",
337
+ "ar": "متقدم"
338
+ }
339
+ }
340
+ ],
341
+ "component": "text",
342
+ "cell": "text"
343
+ },
344
+ {
345
+ "name": "accessCode",
346
+ "kind": "text",
347
+ "label": {
348
+ "en": "Access code",
349
+ "ar": "رمز الدخول"
350
+ },
351
+ "rules": {
352
+ "maxLength": 6,
353
+ "required": false
354
+ },
355
+ "component": "text",
356
+ "cell": "text"
357
+ },
358
+ {
359
+ "name": "archived",
360
+ "kind": "checkbox",
361
+ "label": {
362
+ "en": "Archived",
363
+ "ar": "مؤرشف"
364
+ },
365
+ "rules": {
366
+ "providedBy": {
367
+ "create": "never",
368
+ "update": "application"
369
+ },
370
+ "required": false
371
+ },
372
+ "component": "checkbox",
373
+ "cell": "checkbox"
374
+ },
375
+ {
376
+ "name": "topics",
377
+ "kind": "textArray",
378
+ "label": {
379
+ "en": "Topics",
380
+ "ar": "المواضيع"
381
+ },
382
+ "rules": {
383
+ "maxRows": 2,
384
+ "required": false
385
+ },
386
+ "options": [
387
+ {
388
+ "value": "script",
389
+ "label": {
390
+ "en": "Script",
391
+ "ar": "الخط"
392
+ }
393
+ },
394
+ {
395
+ "value": "grammar",
396
+ "label": {
397
+ "en": "Grammar",
398
+ "ar": "النحو"
399
+ }
400
+ },
401
+ {
402
+ "value": "recitation",
403
+ "label": {
404
+ "en": "Recitation",
405
+ "ar": "التلاوة"
406
+ }
407
+ }
408
+ ],
409
+ "component": "textArray",
410
+ "cell": "textArray"
411
+ },
412
+ {
413
+ "name": "opensOn",
414
+ "kind": "date",
415
+ "label": {
416
+ "en": "Opens on",
417
+ "ar": "يفتح في"
418
+ },
419
+ "rules": {
420
+ "required": false
421
+ },
422
+ "component": "date",
423
+ "cell": "date"
424
+ },
425
+ {
426
+ "name": "archiveReason",
427
+ "kind": "text",
428
+ "label": {
429
+ "en": "Archive reason",
430
+ "ar": "سبب الأرشفة"
431
+ },
432
+ "rules": {
433
+ "maxLength": 200,
434
+ "providedBy": {
435
+ "create": "never",
436
+ "update": "application"
437
+ },
438
+ "required": false
439
+ },
440
+ "component": "text",
441
+ "cell": "text"
442
+ },
443
+ {
444
+ "name": "tags",
445
+ "kind": "relationship",
446
+ "label": {
447
+ "en": "Tags",
448
+ "ar": "الوسوم"
449
+ },
450
+ "rules": {
451
+ "required": false,
452
+ "onDelete": "restrict"
453
+ },
454
+ "relationTo": "tags",
455
+ "hasMany": true,
456
+ "component": "relationship",
457
+ "cell": "relationship"
458
+ },
459
+ {
460
+ "name": "scheduledSessions",
461
+ "kind": "join",
462
+ "label": {
463
+ "en": "Scheduled sessions",
464
+ "ar": "الجلسات المجدولة"
465
+ },
466
+ "rules": {
467
+ "required": false,
468
+ "providedBy": {
469
+ "create": "never",
470
+ "update": "never"
471
+ }
472
+ },
473
+ "relationTo": "sessions",
474
+ "on": "course",
475
+ "component": "join",
476
+ "cell": "join"
477
+ },
478
+ {
479
+ "name": "_status",
480
+ "kind": "text",
481
+ "label": {
482
+ "en": "Status",
483
+ "ar": "الحالة"
484
+ },
485
+ "rules": {
486
+ "index": true,
487
+ "required": false
488
+ },
489
+ "options": [
490
+ {
491
+ "value": "draft",
492
+ "label": {
493
+ "en": "Draft",
494
+ "ar": "مسودة"
495
+ }
496
+ },
497
+ {
498
+ "value": "published",
499
+ "label": {
500
+ "en": "Published",
501
+ "ar": "منشور"
502
+ }
503
+ }
504
+ ],
505
+ "component": "text",
506
+ "cell": "text"
507
+ },
508
+ {
509
+ "name": "details",
510
+ "kind": "richText",
511
+ "label": {
512
+ "en": "Details",
513
+ "ar": "التفاصيل"
514
+ },
515
+ "rules": {
516
+ "required": false
517
+ },
518
+ "component": "richText",
519
+ "cell": "richText",
520
+ "sortable": false
521
+ },
522
+ {
523
+ "name": "cover",
524
+ "kind": "upload",
525
+ "label": {
526
+ "en": "Cover image",
527
+ "ar": "صورة الغلاف"
528
+ },
529
+ "rules": {
530
+ "required": false,
531
+ "onDelete": "restrict"
532
+ },
533
+ "relationTo": "media",
534
+ "component": "upload",
535
+ "cell": "upload"
536
+ },
537
+ {
538
+ "name": "selfEnroll",
539
+ "kind": "checkbox",
540
+ "label": {
541
+ "en": "Students may enroll themselves",
542
+ "ar": "يسجّل الطلاب أنفسهم"
543
+ },
544
+ "rules": {
545
+ "required": false
546
+ },
547
+ "component": "checkbox",
548
+ "cell": "checkbox"
549
+ }
550
+ ],
551
+ "operations": [
552
+ {
553
+ "name": "create",
554
+ "effect": "create"
555
+ },
556
+ {
557
+ "name": "update",
558
+ "effect": "update"
559
+ },
560
+ {
561
+ "name": "delete",
562
+ "effect": "delete"
563
+ },
564
+ {
565
+ "name": "find",
566
+ "effect": "read"
567
+ },
568
+ {
569
+ "name": "findByID",
570
+ "effect": "read"
571
+ },
572
+ {
573
+ "name": "count",
574
+ "effect": "read"
575
+ },
576
+ {
577
+ "name": "updateMany",
578
+ "effect": "update",
579
+ "updatesMany": true
580
+ },
581
+ {
582
+ "name": "deleteMany",
583
+ "effect": "delete"
584
+ },
585
+ {
586
+ "name": "findVersions",
587
+ "effect": "read"
588
+ },
589
+ {
590
+ "name": "findVersionByID",
591
+ "effect": "read"
592
+ },
593
+ {
594
+ "name": "restoreVersion",
595
+ "effect": "update"
596
+ },
597
+ {
598
+ "name": "archive",
599
+ "effect": "update"
600
+ },
601
+ {
602
+ "name": "unarchive",
603
+ "effect": "update"
604
+ },
605
+ {
606
+ "name": "unpublish",
607
+ "effect": "update"
608
+ },
609
+ {
610
+ "name": "findWithSessions",
611
+ "effect": "read"
612
+ }
613
+ ],
614
+ "useAsTitle": "title",
615
+ "description": {
616
+ "en": "The courses on offer.",
617
+ "ar": "الدورات المعروضة."
618
+ },
619
+ "drafts": {
620
+ "autosave": {
621
+ "interval": 2000
622
+ }
623
+ },
624
+ "pages": {
625
+ "list": {
626
+ "path": "/courses",
627
+ "component": "@asas/courses:./portal/ui/catalogue.tsx#Catalogue"
628
+ },
629
+ "view": {
630
+ "path": "/courses/:id",
631
+ "component": "@asas/courses:./portal/ui/course.tsx#Course"
632
+ }
633
+ }
634
+ },
635
+ "enrollments": {
636
+ "name": "enrollments",
637
+ "single": false,
638
+ "fields": [
639
+ {
640
+ "name": "id",
641
+ "kind": "uuid",
642
+ "label": {
643
+ "en": "ID",
644
+ "ar": "المعرف"
645
+ },
646
+ "rules": {
647
+ "required": false
648
+ },
649
+ "component": "uuid",
650
+ "cell": "uuid"
651
+ },
652
+ {
653
+ "name": "updatedAt",
654
+ "kind": "datetime",
655
+ "label": {
656
+ "en": "Updated at",
657
+ "ar": "تاريخ التعديل"
658
+ },
659
+ "rules": {
660
+ "required": true,
661
+ "defaultNow": true,
662
+ "nowOnUpdate": true,
663
+ "providedBy": {
664
+ "create": "application",
665
+ "update": "application"
666
+ }
667
+ },
668
+ "component": "datetime",
669
+ "cell": "datetime"
670
+ },
671
+ {
672
+ "name": "createdAt",
673
+ "kind": "datetime",
674
+ "label": {
675
+ "en": "Created at",
676
+ "ar": "تاريخ الإنشاء"
677
+ },
678
+ "rules": {
679
+ "required": true,
680
+ "defaultNow": true,
681
+ "index": true,
682
+ "providedBy": {
683
+ "create": "application",
684
+ "update": "application"
685
+ }
686
+ },
687
+ "component": "datetime",
688
+ "cell": "datetime"
689
+ },
690
+ {
691
+ "name": "organization",
692
+ "kind": "relationship",
693
+ "label": {
694
+ "en": "Organization",
695
+ "ar": "المؤسسة"
696
+ },
697
+ "rules": {
698
+ "required": true,
699
+ "index": true,
700
+ "providedBy": {
701
+ "create": "application",
702
+ "update": "never"
703
+ },
704
+ "onDelete": "restrict"
705
+ },
706
+ "relationTo": "organization",
707
+ "component": "relationship",
708
+ "cell": "relationship"
709
+ },
710
+ {
711
+ "name": "session",
712
+ "kind": "relationship",
713
+ "label": {
714
+ "en": "Session",
715
+ "ar": "الحصة"
716
+ },
717
+ "rules": {
718
+ "required": true,
719
+ "onDelete": "restrict"
720
+ },
721
+ "relationTo": "sessions",
722
+ "filterOptions": true,
723
+ "component": "relationship",
724
+ "cell": "@asas/courses:./enrollments/ui/session-cell.tsx#SessionCell"
725
+ },
726
+ {
727
+ "name": "student",
728
+ "kind": "relationship",
729
+ "label": {
730
+ "en": "Student",
731
+ "ar": "الطالب"
732
+ },
733
+ "rules": {
734
+ "required": true,
735
+ "onDelete": "restrict"
736
+ },
737
+ "relationTo": "user",
738
+ "filterOptions": true,
739
+ "component": "relationship",
740
+ "cell": "relationship"
741
+ },
742
+ {
743
+ "name": "deletedAt",
744
+ "kind": "datetime",
745
+ "label": {
746
+ "en": "Deleted at",
747
+ "ar": "تاريخ الحذف"
748
+ },
749
+ "rules": {
750
+ "providedBy": {
751
+ "create": "never",
752
+ "update": "never"
753
+ },
754
+ "required": false
755
+ },
756
+ "component": "datetime",
757
+ "cell": "datetime"
758
+ }
759
+ ],
760
+ "operations": [
761
+ {
762
+ "name": "create",
763
+ "effect": "create"
764
+ },
765
+ {
766
+ "name": "update",
767
+ "effect": "update"
768
+ },
769
+ {
770
+ "name": "delete",
771
+ "effect": "delete"
772
+ },
773
+ {
774
+ "name": "find",
775
+ "effect": "read"
776
+ },
777
+ {
778
+ "name": "findByID",
779
+ "effect": "read"
780
+ },
781
+ {
782
+ "name": "count",
783
+ "effect": "read"
784
+ },
785
+ {
786
+ "name": "updateMany",
787
+ "effect": "update",
788
+ "updatesMany": true
789
+ },
790
+ {
791
+ "name": "deleteMany",
792
+ "effect": "delete"
793
+ }
794
+ ],
795
+ "useAsTitle": "session",
796
+ "pages": {
797
+ "list": {
798
+ "path": "/enrollments",
799
+ "component": "@asas/courses:./portal/ui/enrollments.tsx#Enrollments"
800
+ },
801
+ "create": {
802
+ "path": "/enrollments/new",
803
+ "page": {
804
+ "shell": "@asas/courses:./portal/ui/shell.tsx#PortalShell",
805
+ "header": [
806
+ {
807
+ "title": {}
808
+ }
809
+ ],
810
+ "main": [
811
+ {
812
+ "layout": "./src/ui-portal/page.tsx#Page",
813
+ "main": [
814
+ {
815
+ "form": [
816
+ {
817
+ "field": "session",
818
+ "component": "relationship",
819
+ "decided": "table"
820
+ },
821
+ {
822
+ "field": "student",
823
+ "component": "relationship",
824
+ "decided": "table"
825
+ }
826
+ ]
827
+ }
828
+ ]
829
+ }
830
+ ]
831
+ }
832
+ },
833
+ "edit": {
834
+ "path": "/enrollments/:id",
835
+ "page": {
836
+ "shell": "@asas/courses:./portal/ui/shell.tsx#PortalShell",
837
+ "header": [
838
+ {
839
+ "title": {}
840
+ }
841
+ ],
842
+ "main": [
843
+ {
844
+ "layout": "./src/ui-portal/page.tsx#Page",
845
+ "main": [
846
+ {
847
+ "form": [
848
+ {
849
+ "field": "session",
850
+ "component": "relationship",
851
+ "decided": "table"
852
+ }
853
+ ]
854
+ }
855
+ ]
856
+ }
857
+ ]
858
+ }
859
+ }
860
+ }
861
+ },
862
+ "sessions": {
863
+ "name": "sessions",
864
+ "single": false,
865
+ "fields": [
866
+ {
867
+ "name": "id",
868
+ "kind": "uuid",
869
+ "label": {
870
+ "en": "ID",
871
+ "ar": "المعرف"
872
+ },
873
+ "rules": {
874
+ "required": false
875
+ },
876
+ "component": "uuid",
877
+ "cell": "uuid"
878
+ },
879
+ {
880
+ "name": "updatedAt",
881
+ "kind": "datetime",
882
+ "label": {
883
+ "en": "Updated at",
884
+ "ar": "تاريخ التعديل"
885
+ },
886
+ "rules": {
887
+ "required": true,
888
+ "defaultNow": true,
889
+ "nowOnUpdate": true,
890
+ "providedBy": {
891
+ "create": "application",
892
+ "update": "application"
893
+ }
894
+ },
895
+ "component": "datetime",
896
+ "cell": "datetime"
897
+ },
898
+ {
899
+ "name": "createdAt",
900
+ "kind": "datetime",
901
+ "label": {
902
+ "en": "Created at",
903
+ "ar": "تاريخ الإنشاء"
904
+ },
905
+ "rules": {
906
+ "required": true,
907
+ "defaultNow": true,
908
+ "index": true,
909
+ "providedBy": {
910
+ "create": "application",
911
+ "update": "application"
912
+ }
913
+ },
914
+ "component": "datetime",
915
+ "cell": "datetime"
916
+ },
917
+ {
918
+ "name": "organization",
919
+ "kind": "relationship",
920
+ "label": {
921
+ "en": "Organization",
922
+ "ar": "المؤسسة"
923
+ },
924
+ "rules": {
925
+ "required": true,
926
+ "index": true,
927
+ "providedBy": {
928
+ "create": "application",
929
+ "update": "never"
930
+ },
931
+ "onDelete": "restrict"
932
+ },
933
+ "relationTo": "organization",
934
+ "component": "relationship",
935
+ "cell": "relationship"
936
+ },
937
+ {
938
+ "name": "course",
939
+ "kind": "relationship",
940
+ "label": {
941
+ "en": "Course",
942
+ "ar": "الدورة"
943
+ },
944
+ "rules": {
945
+ "required": true,
946
+ "onDelete": "restrict"
947
+ },
948
+ "relationTo": "courses",
949
+ "component": "relationship",
950
+ "cell": "relationship"
951
+ },
952
+ {
953
+ "name": "startsAt",
954
+ "kind": "datetime",
955
+ "label": {
956
+ "en": "Starts at",
957
+ "ar": "وقت البداية"
958
+ },
959
+ "rules": {
960
+ "required": true
961
+ },
962
+ "component": "datetime",
963
+ "cell": "datetime"
964
+ },
965
+ {
966
+ "name": "capacity",
967
+ "kind": "number",
968
+ "label": {
969
+ "en": "Capacity",
970
+ "ar": "السعة"
971
+ },
972
+ "rules": {
973
+ "min": 1,
974
+ "required": false
975
+ },
976
+ "component": "number",
977
+ "cell": "number"
978
+ },
979
+ {
980
+ "name": "venue",
981
+ "kind": "text",
982
+ "label": {
983
+ "en": "Venue",
984
+ "ar": "المكان"
985
+ },
986
+ "rules": {
987
+ "required": false
988
+ },
989
+ "options": [
990
+ {
991
+ "value": "online",
992
+ "label": {
993
+ "en": "Online",
994
+ "ar": "عبر الإنترنت"
995
+ }
996
+ },
997
+ {
998
+ "value": "campus",
999
+ "label": {
1000
+ "en": "Campus",
1001
+ "ar": "الحرم"
1002
+ }
1003
+ }
1004
+ ],
1005
+ "component": "text",
1006
+ "cell": "text"
1007
+ },
1008
+ {
1009
+ "name": "format",
1010
+ "kind": "text",
1011
+ "label": {
1012
+ "en": "Format",
1013
+ "ar": "الصيغة"
1014
+ },
1015
+ "rules": {
1016
+ "required": false
1017
+ },
1018
+ "options": [
1019
+ {
1020
+ "value": "workshop",
1021
+ "label": {
1022
+ "en": "Workshop",
1023
+ "ar": "ورشة عمل"
1024
+ }
1025
+ },
1026
+ {
1027
+ "value": "lecture",
1028
+ "label": {
1029
+ "en": "Lecture",
1030
+ "ar": "محاضرة"
1031
+ }
1032
+ }
1033
+ ],
1034
+ "component": "text",
1035
+ "cell": "text"
1036
+ },
1037
+ {
1038
+ "name": "archived",
1039
+ "kind": "checkbox",
1040
+ "label": {
1041
+ "en": "Archived",
1042
+ "ar": "مؤرشفة"
1043
+ },
1044
+ "rules": {
1045
+ "providedBy": {
1046
+ "create": "never",
1047
+ "update": "application"
1048
+ },
1049
+ "required": false
1050
+ },
1051
+ "component": "checkbox",
1052
+ "cell": "checkbox"
1053
+ },
1054
+ {
1055
+ "name": "details",
1056
+ "kind": "richText",
1057
+ "label": {
1058
+ "en": "Details",
1059
+ "ar": "التفاصيل"
1060
+ },
1061
+ "rules": {
1062
+ "required": false
1063
+ },
1064
+ "component": "richText",
1065
+ "cell": "richText",
1066
+ "sortable": false
1067
+ },
1068
+ {
1069
+ "name": "enrollments",
1070
+ "kind": "join",
1071
+ "label": {
1072
+ "en": "Enrollments",
1073
+ "ar": "التسجيلات"
1074
+ },
1075
+ "rules": {
1076
+ "required": false,
1077
+ "providedBy": {
1078
+ "create": "never",
1079
+ "update": "never"
1080
+ }
1081
+ },
1082
+ "relationTo": "enrollments",
1083
+ "on": "session",
1084
+ "component": "join",
1085
+ "cell": "join"
1086
+ },
1087
+ {
1088
+ "name": "archiveReason",
1089
+ "kind": "text",
1090
+ "label": {
1091
+ "en": "Archive reason",
1092
+ "ar": "سبب الأرشفة"
1093
+ },
1094
+ "rules": {
1095
+ "maxLength": 200,
1096
+ "providedBy": {
1097
+ "create": "never",
1098
+ "update": "application"
1099
+ },
1100
+ "required": false
1101
+ },
1102
+ "component": "text",
1103
+ "cell": "text"
1104
+ }
1105
+ ],
1106
+ "operations": [
1107
+ {
1108
+ "name": "create",
1109
+ "effect": "create"
1110
+ },
1111
+ {
1112
+ "name": "update",
1113
+ "effect": "update"
1114
+ },
1115
+ {
1116
+ "name": "delete",
1117
+ "effect": "delete"
1118
+ },
1119
+ {
1120
+ "name": "find",
1121
+ "effect": "read"
1122
+ },
1123
+ {
1124
+ "name": "findByID",
1125
+ "effect": "read"
1126
+ },
1127
+ {
1128
+ "name": "count",
1129
+ "effect": "read"
1130
+ },
1131
+ {
1132
+ "name": "updateMany",
1133
+ "effect": "update",
1134
+ "updatesMany": true
1135
+ },
1136
+ {
1137
+ "name": "deleteMany",
1138
+ "effect": "delete"
1139
+ },
1140
+ {
1141
+ "name": "archiveMany",
1142
+ "effect": "update",
1143
+ "updatesMany": true
1144
+ },
1145
+ {
1146
+ "name": "archive",
1147
+ "effect": "update"
1148
+ },
1149
+ {
1150
+ "name": "unarchive",
1151
+ "effect": "update"
1152
+ }
1153
+ ],
1154
+ "useAsTitle": "startsAt",
1155
+ "pages": {}
1156
+ },
1157
+ "media": {
1158
+ "name": "media",
1159
+ "single": false,
1160
+ "fields": [
1161
+ {
1162
+ "name": "id",
1163
+ "kind": "uuid",
1164
+ "label": {
1165
+ "en": "ID",
1166
+ "ar": "المعرف"
1167
+ },
1168
+ "rules": {
1169
+ "required": false
1170
+ },
1171
+ "component": "uuid",
1172
+ "cell": "uuid"
1173
+ },
1174
+ {
1175
+ "name": "updatedAt",
1176
+ "kind": "datetime",
1177
+ "label": {
1178
+ "en": "Updated at",
1179
+ "ar": "تاريخ التعديل"
1180
+ },
1181
+ "rules": {
1182
+ "required": true,
1183
+ "defaultNow": true,
1184
+ "nowOnUpdate": true,
1185
+ "providedBy": {
1186
+ "create": "application",
1187
+ "update": "application"
1188
+ }
1189
+ },
1190
+ "component": "datetime",
1191
+ "cell": "datetime"
1192
+ },
1193
+ {
1194
+ "name": "createdAt",
1195
+ "kind": "datetime",
1196
+ "label": {
1197
+ "en": "Created at",
1198
+ "ar": "تاريخ الإنشاء"
1199
+ },
1200
+ "rules": {
1201
+ "required": true,
1202
+ "defaultNow": true,
1203
+ "index": true,
1204
+ "providedBy": {
1205
+ "create": "application",
1206
+ "update": "application"
1207
+ }
1208
+ },
1209
+ "component": "datetime",
1210
+ "cell": "datetime"
1211
+ },
1212
+ {
1213
+ "name": "organization",
1214
+ "kind": "relationship",
1215
+ "label": {
1216
+ "en": "Organization",
1217
+ "ar": "المؤسسة"
1218
+ },
1219
+ "rules": {
1220
+ "required": true,
1221
+ "index": true,
1222
+ "providedBy": {
1223
+ "create": "application",
1224
+ "update": "never"
1225
+ },
1226
+ "onDelete": "restrict"
1227
+ },
1228
+ "relationTo": "organization",
1229
+ "component": "relationship",
1230
+ "cell": "relationship"
1231
+ },
1232
+ {
1233
+ "name": "filename",
1234
+ "kind": "text",
1235
+ "label": {
1236
+ "en": "File name",
1237
+ "ar": "اسم الملف"
1238
+ },
1239
+ "rules": {
1240
+ "providedBy": {
1241
+ "create": "application",
1242
+ "update": "never"
1243
+ },
1244
+ "required": true,
1245
+ "index": true
1246
+ },
1247
+ "component": "text",
1248
+ "cell": "text"
1249
+ },
1250
+ {
1251
+ "name": "mimeType",
1252
+ "kind": "text",
1253
+ "label": {
1254
+ "en": "File type",
1255
+ "ar": "نوع الملف"
1256
+ },
1257
+ "rules": {
1258
+ "providedBy": {
1259
+ "create": "application",
1260
+ "update": "never"
1261
+ },
1262
+ "required": true
1263
+ },
1264
+ "component": "text",
1265
+ "cell": "text"
1266
+ },
1267
+ {
1268
+ "name": "filesize",
1269
+ "kind": "number",
1270
+ "label": {
1271
+ "en": "File size",
1272
+ "ar": "حجم الملف"
1273
+ },
1274
+ "rules": {
1275
+ "providedBy": {
1276
+ "create": "application",
1277
+ "update": "never"
1278
+ },
1279
+ "required": true
1280
+ },
1281
+ "component": "number",
1282
+ "cell": "number"
1283
+ },
1284
+ {
1285
+ "name": "width",
1286
+ "kind": "number",
1287
+ "label": {
1288
+ "en": "Width",
1289
+ "ar": "العرض"
1290
+ },
1291
+ "rules": {
1292
+ "providedBy": {
1293
+ "create": "application",
1294
+ "update": "never"
1295
+ },
1296
+ "required": false
1297
+ },
1298
+ "component": "number",
1299
+ "cell": "number"
1300
+ },
1301
+ {
1302
+ "name": "height",
1303
+ "kind": "number",
1304
+ "label": {
1305
+ "en": "Height",
1306
+ "ar": "الارتفاع"
1307
+ },
1308
+ "rules": {
1309
+ "providedBy": {
1310
+ "create": "application",
1311
+ "update": "never"
1312
+ },
1313
+ "required": false
1314
+ },
1315
+ "component": "number",
1316
+ "cell": "number"
1317
+ },
1318
+ {
1319
+ "name": "key",
1320
+ "kind": "text",
1321
+ "label": {
1322
+ "en": "Object key",
1323
+ "ar": "مفتاح الملف"
1324
+ },
1325
+ "rules": {
1326
+ "providedBy": {
1327
+ "create": "application",
1328
+ "update": "never"
1329
+ },
1330
+ "required": true,
1331
+ "unique": true
1332
+ },
1333
+ "component": "text",
1334
+ "cell": "text"
1335
+ },
1336
+ {
1337
+ "name": "storage",
1338
+ "kind": "text",
1339
+ "label": {
1340
+ "en": "Storage",
1341
+ "ar": "التخزين"
1342
+ },
1343
+ "rules": {
1344
+ "providedBy": {
1345
+ "create": "application",
1346
+ "update": "never"
1347
+ },
1348
+ "required": true
1349
+ },
1350
+ "component": "text",
1351
+ "cell": "text"
1352
+ },
1353
+ {
1354
+ "name": "alt",
1355
+ "kind": "text",
1356
+ "label": {
1357
+ "en": "Alternative text",
1358
+ "ar": "النص البديل"
1359
+ },
1360
+ "rules": {
1361
+ "localized": true,
1362
+ "required": true,
1363
+ "maxLength": 300
1364
+ },
1365
+ "component": "text",
1366
+ "cell": "text"
1367
+ }
1368
+ ],
1369
+ "operations": [
1370
+ {
1371
+ "name": "create",
1372
+ "effect": "create"
1373
+ },
1374
+ {
1375
+ "name": "update",
1376
+ "effect": "update"
1377
+ },
1378
+ {
1379
+ "name": "delete",
1380
+ "effect": "delete"
1381
+ },
1382
+ {
1383
+ "name": "find",
1384
+ "effect": "read"
1385
+ },
1386
+ {
1387
+ "name": "findByID",
1388
+ "effect": "read"
1389
+ },
1390
+ {
1391
+ "name": "count",
1392
+ "effect": "read"
1393
+ },
1394
+ {
1395
+ "name": "updateMany",
1396
+ "effect": "update",
1397
+ "updatesMany": true
1398
+ },
1399
+ {
1400
+ "name": "deleteMany",
1401
+ "effect": "delete"
1402
+ }
1403
+ ],
1404
+ "useAsTitle": "filename",
1405
+ "storage": {
1406
+ "mimeTypes": [
1407
+ "image/png",
1408
+ "image/jpeg",
1409
+ "image/webp"
1410
+ ],
1411
+ "fileSize": 10485760
1412
+ },
1413
+ "pages": {}
1414
+ },
1415
+ "user": {
1416
+ "name": "user",
1417
+ "single": false,
1418
+ "fields": [
1419
+ {
1420
+ "name": "id",
1421
+ "kind": "text",
1422
+ "rules": {
1423
+ "required": false
1424
+ },
1425
+ "component": "text",
1426
+ "cell": "text"
1427
+ },
1428
+ {
1429
+ "name": "updatedAt",
1430
+ "kind": "datetime",
1431
+ "rules": {
1432
+ "required": true,
1433
+ "nowOnUpdate": true,
1434
+ "providedBy": {
1435
+ "update": "application"
1436
+ }
1437
+ },
1438
+ "component": "datetime",
1439
+ "cell": "datetime"
1440
+ },
1441
+ {
1442
+ "name": "createdAt",
1443
+ "kind": "datetime",
1444
+ "rules": {
1445
+ "required": true
1446
+ },
1447
+ "component": "datetime",
1448
+ "cell": "datetime"
1449
+ },
1450
+ {
1451
+ "name": "name",
1452
+ "kind": "text",
1453
+ "rules": {
1454
+ "required": true
1455
+ },
1456
+ "component": "text",
1457
+ "cell": "text"
1458
+ },
1459
+ {
1460
+ "name": "email",
1461
+ "kind": "text",
1462
+ "rules": {
1463
+ "required": true,
1464
+ "unique": true
1465
+ },
1466
+ "component": "text",
1467
+ "cell": "text"
1468
+ },
1469
+ {
1470
+ "name": "emailVerified",
1471
+ "kind": "checkbox",
1472
+ "rules": {
1473
+ "required": true
1474
+ },
1475
+ "component": "checkbox",
1476
+ "cell": "checkbox"
1477
+ },
1478
+ {
1479
+ "name": "image",
1480
+ "kind": "text",
1481
+ "rules": {
1482
+ "required": false
1483
+ },
1484
+ "component": "text",
1485
+ "cell": "text"
1486
+ },
1487
+ {
1488
+ "name": "role",
1489
+ "kind": "text",
1490
+ "rules": {
1491
+ "required": false
1492
+ },
1493
+ "component": "text",
1494
+ "cell": "text"
1495
+ },
1496
+ {
1497
+ "name": "banned",
1498
+ "kind": "checkbox",
1499
+ "rules": {
1500
+ "required": false
1501
+ },
1502
+ "component": "checkbox",
1503
+ "cell": "checkbox"
1504
+ },
1505
+ {
1506
+ "name": "banReason",
1507
+ "kind": "text",
1508
+ "rules": {
1509
+ "required": false
1510
+ },
1511
+ "component": "text",
1512
+ "cell": "text"
1513
+ },
1514
+ {
1515
+ "name": "banExpires",
1516
+ "kind": "datetime",
1517
+ "rules": {
1518
+ "required": false
1519
+ },
1520
+ "component": "datetime",
1521
+ "cell": "datetime"
1522
+ }
1523
+ ],
1524
+ "operations": [
1525
+ {
1526
+ "name": "create",
1527
+ "effect": "create"
1528
+ },
1529
+ {
1530
+ "name": "update",
1531
+ "effect": "update"
1532
+ },
1533
+ {
1534
+ "name": "delete",
1535
+ "effect": "delete"
1536
+ },
1537
+ {
1538
+ "name": "find",
1539
+ "effect": "read"
1540
+ },
1541
+ {
1542
+ "name": "findByID",
1543
+ "effect": "read"
1544
+ },
1545
+ {
1546
+ "name": "count",
1547
+ "effect": "read"
1548
+ },
1549
+ {
1550
+ "name": "updateMany",
1551
+ "effect": "update",
1552
+ "updatesMany": true
1553
+ },
1554
+ {
1555
+ "name": "deleteMany",
1556
+ "effect": "delete"
1557
+ }
1558
+ ],
1559
+ "useAsTitle": "name",
1560
+ "pages": {}
1561
+ }
1562
+ },
1563
+ "maxLimit": 100
1564
+ }