@monorise/core 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/controllers/entity/create-entity.controller.ts +2 -2
  2. package/controllers/entity/delete-entity.controller.ts +2 -2
  3. package/controllers/entity/get-entity.controller.ts +1 -1
  4. package/controllers/entity/list-entities.controller.ts +3 -3
  5. package/controllers/entity/update-entity.controller.ts +2 -2
  6. package/controllers/entity/upsert-entity.controller.ts +4 -4
  7. package/controllers/mutual/create-mutual.controller.ts +4 -4
  8. package/controllers/mutual/delete-mutual.controller.ts +2 -2
  9. package/controllers/mutual/get-mutual.controller.ts +1 -1
  10. package/controllers/mutual/list-entities-by-entity.controller.ts +1 -1
  11. package/controllers/mutual/update-mutual.controller.ts +2 -2
  12. package/controllers/setupRoutes.ts +1 -1
  13. package/controllers/tag/list-tags.controller.ts +3 -3
  14. package/data/DbUtils.ts +1 -1
  15. package/data/Entity.ts +1 -1
  16. package/data/EventUtils.ts +2 -2
  17. package/data/Mutual.ts +3 -3
  18. package/data/Tag.ts +1 -1
  19. package/dist/controllers/entity/create-entity.controller.d.ts +1 -1
  20. package/dist/controllers/entity/create-entity.controller.d.ts.map +1 -1
  21. package/dist/controllers/entity/create-entity.controller.js +1 -1
  22. package/dist/controllers/entity/create-entity.controller.js.map +1 -1
  23. package/dist/controllers/entity/delete-entity.controller.d.ts +1 -1
  24. package/dist/controllers/entity/delete-entity.controller.d.ts.map +1 -1
  25. package/dist/controllers/entity/delete-entity.controller.js +1 -1
  26. package/dist/controllers/entity/delete-entity.controller.js.map +1 -1
  27. package/dist/controllers/entity/get-entity.controller.d.ts +1 -1
  28. package/dist/controllers/entity/get-entity.controller.d.ts.map +1 -1
  29. package/dist/controllers/entity/list-entities.controller.d.ts +1 -1
  30. package/dist/controllers/entity/list-entities.controller.d.ts.map +1 -1
  31. package/dist/controllers/entity/list-entities.controller.js +2 -2
  32. package/dist/controllers/entity/list-entities.controller.js.map +1 -1
  33. package/dist/controllers/entity/update-entity.controller.d.ts +1 -1
  34. package/dist/controllers/entity/update-entity.controller.d.ts.map +1 -1
  35. package/dist/controllers/entity/update-entity.controller.js +1 -1
  36. package/dist/controllers/entity/update-entity.controller.js.map +1 -1
  37. package/dist/controllers/entity/upsert-entity.controller.d.ts +2 -2
  38. package/dist/controllers/entity/upsert-entity.controller.d.ts.map +1 -1
  39. package/dist/controllers/entity/upsert-entity.controller.js +2 -2
  40. package/dist/controllers/entity/upsert-entity.controller.js.map +1 -1
  41. package/dist/controllers/mutual/create-mutual.controller.d.ts +2 -2
  42. package/dist/controllers/mutual/create-mutual.controller.d.ts.map +1 -1
  43. package/dist/controllers/mutual/create-mutual.controller.js +2 -2
  44. package/dist/controllers/mutual/create-mutual.controller.js.map +1 -1
  45. package/dist/controllers/mutual/delete-mutual.controller.d.ts +1 -1
  46. package/dist/controllers/mutual/delete-mutual.controller.d.ts.map +1 -1
  47. package/dist/controllers/mutual/delete-mutual.controller.js +1 -1
  48. package/dist/controllers/mutual/delete-mutual.controller.js.map +1 -1
  49. package/dist/controllers/mutual/get-mutual.controller.d.ts +1 -1
  50. package/dist/controllers/mutual/get-mutual.controller.d.ts.map +1 -1
  51. package/dist/controllers/mutual/list-entities-by-entity.controller.d.ts +1 -1
  52. package/dist/controllers/mutual/list-entities-by-entity.controller.d.ts.map +1 -1
  53. package/dist/controllers/mutual/update-mutual.controller.d.ts +1 -1
  54. package/dist/controllers/mutual/update-mutual.controller.d.ts.map +1 -1
  55. package/dist/controllers/mutual/update-mutual.controller.js +1 -1
  56. package/dist/controllers/mutual/update-mutual.controller.js.map +1 -1
  57. package/dist/controllers/setupRoutes.js +1 -1
  58. package/dist/controllers/setupRoutes.js.map +1 -1
  59. package/dist/controllers/tag/list-tags.controller.d.ts +1 -1
  60. package/dist/controllers/tag/list-tags.controller.d.ts.map +1 -1
  61. package/dist/controllers/tag/list-tags.controller.js +2 -2
  62. package/dist/controllers/tag/list-tags.controller.js.map +1 -1
  63. package/dist/data/DbUtils.js +1 -1
  64. package/dist/data/DbUtils.js.map +1 -1
  65. package/dist/data/Entity.js +1 -1
  66. package/dist/data/Entity.js.map +1 -1
  67. package/dist/data/EventUtils.d.ts +1 -1
  68. package/dist/data/EventUtils.d.ts.map +1 -1
  69. package/dist/data/EventUtils.js +1 -1
  70. package/dist/data/EventUtils.js.map +1 -1
  71. package/dist/data/Mutual.d.ts +1 -1
  72. package/dist/data/Mutual.d.ts.map +1 -1
  73. package/dist/data/Mutual.js +2 -2
  74. package/dist/data/Mutual.js.map +1 -1
  75. package/dist/data/Tag.js +1 -1
  76. package/dist/data/Tag.js.map +1 -1
  77. package/dist/helpers/event.d.ts +1 -1
  78. package/dist/helpers/event.d.ts.map +1 -1
  79. package/dist/helpers/event.js +2 -2
  80. package/dist/helpers/event.js.map +1 -1
  81. package/dist/mock/monorise/chapter.d.ts +91 -91
  82. package/dist/mock/monorise/course.d.ts +17 -17
  83. package/dist/mock/monorise/index.d.ts +186 -186
  84. package/dist/mock/monorise/video.d.ts +28 -28
  85. package/dist/processors/create-entity-processor.js +3 -3
  86. package/dist/processors/create-entity-processor.js.map +1 -1
  87. package/dist/processors/mutual-processor.js +5 -5
  88. package/dist/processors/mutual-processor.js.map +1 -1
  89. package/dist/processors/prejoin-processor.js +4 -4
  90. package/dist/processors/prejoin-processor.js.map +1 -1
  91. package/dist/processors/replication-processor.js +3 -3
  92. package/dist/processors/replication-processor.js.map +1 -1
  93. package/dist/processors/tag-processor.js +2 -2
  94. package/dist/processors/tag-processor.js.map +1 -1
  95. package/dist/services/DependencyContainer.d.ts +18 -18
  96. package/dist/services/DependencyContainer.d.ts.map +1 -1
  97. package/dist/services/DependencyContainer.js +19 -19
  98. package/dist/services/DependencyContainer.js.map +1 -1
  99. package/dist/services/entity-service-lifecycle.d.ts +3 -3
  100. package/dist/services/entity-service-lifecycle.d.ts.map +1 -1
  101. package/dist/services/entity-service-lifecycle.js +1 -1
  102. package/dist/services/entity-service-lifecycle.js.map +1 -1
  103. package/dist/services/entity.service.d.ts +5 -5
  104. package/dist/services/entity.service.d.ts.map +1 -1
  105. package/dist/services/entity.service.js +2 -2
  106. package/dist/services/entity.service.js.map +1 -1
  107. package/dist/services/mutual.service.d.ts +5 -5
  108. package/dist/services/mutual.service.d.ts.map +1 -1
  109. package/dist/services/mutual.service.js +3 -3
  110. package/dist/services/mutual.service.js.map +1 -1
  111. package/dist/types/entity.type.d.ts +1 -1
  112. package/dist/types/entity.type.d.ts.map +1 -1
  113. package/helpers/event.ts +2 -2
  114. package/package.json +1 -1
  115. package/processors/create-entity-processor.ts +3 -3
  116. package/processors/mutual-processor.ts +5 -5
  117. package/processors/prejoin-processor.ts +8 -8
  118. package/processors/replication-processor.ts +3 -3
  119. package/processors/tag-processor.ts +4 -4
  120. package/services/DependencyContainer.ts +22 -22
  121. package/services/entity-service-lifecycle.ts +4 -4
  122. package/services/entity.service.ts +6 -6
  123. package/services/mutual.service.ts +6 -6
  124. package/tsconfig.json +1 -3
  125. package/types/entity.type.ts +2 -2
  126. package/dist/mock/container.d.ts +0 -3
  127. package/dist/mock/container.d.ts.map +0 -1
  128. package/dist/mock/container.js +0 -3
  129. package/dist/mock/container.js.map +0 -1
  130. package/dist/packages/core/configs/service.config.d.ts +0 -5
  131. package/dist/packages/core/configs/service.config.d.ts.map +0 -1
  132. package/dist/packages/core/configs/service.config.js +0 -5
  133. package/dist/packages/core/configs/service.config.js.map +0 -1
  134. package/dist/packages/core/constants/table.d.ts +0 -4
  135. package/dist/packages/core/constants/table.d.ts.map +0 -1
  136. package/dist/packages/core/constants/table.js +0 -4
  137. package/dist/packages/core/constants/table.js.map +0 -1
  138. package/dist/packages/core/controllers/entity/create-entity.controller.d.ts +0 -8
  139. package/dist/packages/core/controllers/entity/create-entity.controller.d.ts.map +0 -1
  140. package/dist/packages/core/controllers/entity/create-entity.controller.js +0 -44
  141. package/dist/packages/core/controllers/entity/create-entity.controller.js.map +0 -1
  142. package/dist/packages/core/controllers/entity/delete-entity.controller.d.ts +0 -8
  143. package/dist/packages/core/controllers/entity/delete-entity.controller.d.ts.map +0 -1
  144. package/dist/packages/core/controllers/entity/delete-entity.controller.js +0 -29
  145. package/dist/packages/core/controllers/entity/delete-entity.controller.js.map +0 -1
  146. package/dist/packages/core/controllers/entity/get-entity.controller.d.ts +0 -8
  147. package/dist/packages/core/controllers/entity/get-entity.controller.d.ts.map +0 -1
  148. package/dist/packages/core/controllers/entity/get-entity.controller.js +0 -24
  149. package/dist/packages/core/controllers/entity/get-entity.controller.js.map +0 -1
  150. package/dist/packages/core/controllers/entity/list-entities.controller.d.ts +0 -8
  151. package/dist/packages/core/controllers/entity/list-entities.controller.d.ts.map +0 -1
  152. package/dist/packages/core/controllers/entity/list-entities.controller.js +0 -56
  153. package/dist/packages/core/controllers/entity/list-entities.controller.js.map +0 -1
  154. package/dist/packages/core/controllers/entity/update-entity.controller.d.ts +0 -8
  155. package/dist/packages/core/controllers/entity/update-entity.controller.d.ts.map +0 -1
  156. package/dist/packages/core/controllers/entity/update-entity.controller.js +0 -45
  157. package/dist/packages/core/controllers/entity/update-entity.controller.js.map +0 -1
  158. package/dist/packages/core/controllers/entity/upsert-entity.controller.d.ts +0 -10
  159. package/dist/packages/core/controllers/entity/upsert-entity.controller.d.ts.map +0 -1
  160. package/dist/packages/core/controllers/entity/upsert-entity.controller.js +0 -73
  161. package/dist/packages/core/controllers/entity/upsert-entity.controller.js.map +0 -1
  162. package/dist/packages/core/controllers/mutual/create-mutual.controller.d.ts +0 -10
  163. package/dist/packages/core/controllers/mutual/create-mutual.controller.d.ts.map +0 -1
  164. package/dist/packages/core/controllers/mutual/create-mutual.controller.js +0 -70
  165. package/dist/packages/core/controllers/mutual/create-mutual.controller.js.map +0 -1
  166. package/dist/packages/core/controllers/mutual/delete-mutual.controller.d.ts +0 -8
  167. package/dist/packages/core/controllers/mutual/delete-mutual.controller.d.ts.map +0 -1
  168. package/dist/packages/core/controllers/mutual/delete-mutual.controller.js +0 -31
  169. package/dist/packages/core/controllers/mutual/delete-mutual.controller.js.map +0 -1
  170. package/dist/packages/core/controllers/mutual/get-mutual.controller.d.ts +0 -8
  171. package/dist/packages/core/controllers/mutual/get-mutual.controller.d.ts.map +0 -1
  172. package/dist/packages/core/controllers/mutual/get-mutual.controller.js +0 -24
  173. package/dist/packages/core/controllers/mutual/get-mutual.controller.js.map +0 -1
  174. package/dist/packages/core/controllers/mutual/list-entities-by-entity.controller.d.ts +0 -8
  175. package/dist/packages/core/controllers/mutual/list-entities-by-entity.controller.d.ts.map +0 -1
  176. package/dist/packages/core/controllers/mutual/list-entities-by-entity.controller.js +0 -56
  177. package/dist/packages/core/controllers/mutual/list-entities-by-entity.controller.js.map +0 -1
  178. package/dist/packages/core/controllers/mutual/update-mutual.controller.d.ts +0 -8
  179. package/dist/packages/core/controllers/mutual/update-mutual.controller.d.ts.map +0 -1
  180. package/dist/packages/core/controllers/mutual/update-mutual.controller.js +0 -40
  181. package/dist/packages/core/controllers/mutual/update-mutual.controller.js.map +0 -1
  182. package/dist/packages/core/controllers/setupRoutes.d.ts +0 -3
  183. package/dist/packages/core/controllers/setupRoutes.d.ts.map +0 -1
  184. package/dist/packages/core/controllers/setupRoutes.js +0 -33
  185. package/dist/packages/core/controllers/setupRoutes.js.map +0 -1
  186. package/dist/packages/core/controllers/tag/list-tags.controller.d.ts +0 -8
  187. package/dist/packages/core/controllers/tag/list-tags.controller.d.ts.map +0 -1
  188. package/dist/packages/core/controllers/tag/list-tags.controller.js +0 -48
  189. package/dist/packages/core/controllers/tag/list-tags.controller.js.map +0 -1
  190. package/dist/packages/core/data/DbUtils.d.ts +0 -7
  191. package/dist/packages/core/data/DbUtils.d.ts.map +0 -1
  192. package/dist/packages/core/data/DbUtils.js +0 -23
  193. package/dist/packages/core/data/DbUtils.js.map +0 -1
  194. package/dist/packages/core/data/Entity.d.ts +0 -71
  195. package/dist/packages/core/data/Entity.d.ts.map +0 -1
  196. package/dist/packages/core/data/Entity.js +0 -358
  197. package/dist/packages/core/data/Entity.js.map +0 -1
  198. package/dist/packages/core/data/EventUtils.d.ts +0 -14
  199. package/dist/packages/core/data/EventUtils.d.ts.map +0 -1
  200. package/dist/packages/core/data/EventUtils.js +0 -34
  201. package/dist/packages/core/data/EventUtils.js.map +0 -1
  202. package/dist/packages/core/data/FileObject.d.ts +0 -62
  203. package/dist/packages/core/data/FileObject.d.ts.map +0 -1
  204. package/dist/packages/core/data/FileObject.js +0 -13
  205. package/dist/packages/core/data/FileObject.js.map +0 -1
  206. package/dist/packages/core/data/Mutual.d.ts +0 -94
  207. package/dist/packages/core/data/Mutual.d.ts.map +0 -1
  208. package/dist/packages/core/data/Mutual.js +0 -492
  209. package/dist/packages/core/data/Mutual.js.map +0 -1
  210. package/dist/packages/core/data/ProjectionExpression.d.ts +0 -6
  211. package/dist/packages/core/data/ProjectionExpression.d.ts.map +0 -1
  212. package/dist/packages/core/data/ProjectionExpression.js +0 -5
  213. package/dist/packages/core/data/ProjectionExpression.js.map +0 -1
  214. package/dist/packages/core/data/Tag.d.ts +0 -77
  215. package/dist/packages/core/data/Tag.d.ts.map +0 -1
  216. package/dist/packages/core/data/Tag.js +0 -330
  217. package/dist/packages/core/data/Tag.js.map +0 -1
  218. package/dist/packages/core/data/abstract/Item.base.d.ts +0 -11
  219. package/dist/packages/core/data/abstract/Item.base.d.ts.map +0 -1
  220. package/dist/packages/core/data/abstract/Item.base.js +0 -9
  221. package/dist/packages/core/data/abstract/Item.base.js.map +0 -1
  222. package/dist/packages/core/data/abstract/Repository.base.d.ts +0 -11
  223. package/dist/packages/core/data/abstract/Repository.base.d.ts.map +0 -1
  224. package/dist/packages/core/data/abstract/Repository.base.js +0 -54
  225. package/dist/packages/core/data/abstract/Repository.base.js.map +0 -1
  226. package/dist/packages/core/errors/api-error.d.ts +0 -23
  227. package/dist/packages/core/errors/api-error.d.ts.map +0 -1
  228. package/dist/packages/core/errors/api-error.js +0 -26
  229. package/dist/packages/core/errors/api-error.js.map +0 -1
  230. package/dist/packages/core/errors/extendable-error.d.ts +0 -18
  231. package/dist/packages/core/errors/extendable-error.d.ts.map +0 -1
  232. package/dist/packages/core/errors/extendable-error.js +0 -22
  233. package/dist/packages/core/errors/extendable-error.js.map +0 -1
  234. package/dist/packages/core/errors/standard-error.d.ts +0 -11
  235. package/dist/packages/core/errors/standard-error.d.ts.map +0 -1
  236. package/dist/packages/core/errors/standard-error.js +0 -21
  237. package/dist/packages/core/errors/standard-error.js.map +0 -1
  238. package/dist/packages/core/helpers/dependencies.d.ts +0 -8
  239. package/dist/packages/core/helpers/dependencies.d.ts.map +0 -1
  240. package/dist/packages/core/helpers/dependencies.js +0 -10
  241. package/dist/packages/core/helpers/dependencies.js.map +0 -1
  242. package/dist/packages/core/helpers/event.d.ts +0 -22
  243. package/dist/packages/core/helpers/event.d.ts.map +0 -1
  244. package/dist/packages/core/helpers/event.js +0 -47
  245. package/dist/packages/core/helpers/event.js.map +0 -1
  246. package/dist/packages/core/helpers/fromLastKeyQuery.d.ts +0 -3
  247. package/dist/packages/core/helpers/fromLastKeyQuery.d.ts.map +0 -1
  248. package/dist/packages/core/helpers/fromLastKeyQuery.js +0 -7
  249. package/dist/packages/core/helpers/fromLastKeyQuery.js.map +0 -1
  250. package/dist/packages/core/helpers/sleep.d.ts +0 -2
  251. package/dist/packages/core/helpers/sleep.d.ts.map +0 -1
  252. package/dist/packages/core/helpers/sleep.js +0 -2
  253. package/dist/packages/core/helpers/sleep.js.map +0 -1
  254. package/dist/packages/core/helpers/toLastKeyResponse.d.ts +0 -3
  255. package/dist/packages/core/helpers/toLastKeyResponse.d.ts.map +0 -1
  256. package/dist/packages/core/helpers/toLastKeyResponse.js +0 -7
  257. package/dist/packages/core/helpers/toLastKeyResponse.js.map +0 -1
  258. package/dist/packages/core/index.d.ts +0 -12
  259. package/dist/packages/core/index.d.ts.map +0 -1
  260. package/dist/packages/core/index.js +0 -12
  261. package/dist/packages/core/index.js.map +0 -1
  262. package/dist/packages/core/middlewares/entity-type-check.d.ts +0 -3
  263. package/dist/packages/core/middlewares/entity-type-check.d.ts.map +0 -1
  264. package/dist/packages/core/middlewares/entity-type-check.js +0 -12
  265. package/dist/packages/core/middlewares/entity-type-check.js.map +0 -1
  266. package/dist/packages/core/middlewares/mutual-type-check.d.ts +0 -3
  267. package/dist/packages/core/middlewares/mutual-type-check.d.ts.map +0 -1
  268. package/dist/packages/core/middlewares/mutual-type-check.js +0 -13
  269. package/dist/packages/core/middlewares/mutual-type-check.js.map +0 -1
  270. package/dist/packages/core/mock/container.d.ts +0 -3
  271. package/dist/packages/core/mock/container.d.ts.map +0 -1
  272. package/dist/packages/core/mock/container.js +0 -3
  273. package/dist/packages/core/mock/container.js.map +0 -1
  274. package/dist/packages/core/mock/entity.d.ts +0 -13
  275. package/dist/packages/core/mock/entity.d.ts.map +0 -1
  276. package/dist/packages/core/mock/entity.js +0 -14
  277. package/dist/packages/core/mock/entity.js.map +0 -1
  278. package/dist/packages/core/mock/monorise/admin.d.ts +0 -127
  279. package/dist/packages/core/mock/monorise/admin.d.ts.map +0 -1
  280. package/dist/packages/core/mock/monorise/admin.js +0 -29
  281. package/dist/packages/core/mock/monorise/admin.js.map +0 -1
  282. package/dist/packages/core/mock/monorise/audio.d.ts +0 -324
  283. package/dist/packages/core/mock/monorise/audio.d.ts.map +0 -1
  284. package/dist/packages/core/mock/monorise/audio.js +0 -32
  285. package/dist/packages/core/mock/monorise/audio.js.map +0 -1
  286. package/dist/packages/core/mock/monorise/chapter.d.ts +0 -457
  287. package/dist/packages/core/mock/monorise/chapter.d.ts.map +0 -1
  288. package/dist/packages/core/mock/monorise/chapter.js +0 -81
  289. package/dist/packages/core/mock/monorise/chapter.js.map +0 -1
  290. package/dist/packages/core/mock/monorise/cohort-track.d.ts +0 -118
  291. package/dist/packages/core/mock/monorise/cohort-track.d.ts.map +0 -1
  292. package/dist/packages/core/mock/monorise/cohort-track.js +0 -38
  293. package/dist/packages/core/mock/monorise/cohort-track.js.map +0 -1
  294. package/dist/packages/core/mock/monorise/course-banner.d.ts +0 -149
  295. package/dist/packages/core/mock/monorise/course-banner.d.ts.map +0 -1
  296. package/dist/packages/core/mock/monorise/course-banner.js +0 -24
  297. package/dist/packages/core/mock/monorise/course-banner.js.map +0 -1
  298. package/dist/packages/core/mock/monorise/course.d.ts +0 -311
  299. package/dist/packages/core/mock/monorise/course.d.ts.map +0 -1
  300. package/dist/packages/core/mock/monorise/course.js +0 -128
  301. package/dist/packages/core/mock/monorise/course.js.map +0 -1
  302. package/dist/packages/core/mock/monorise/expert.d.ts +0 -380
  303. package/dist/packages/core/mock/monorise/expert.d.ts.map +0 -1
  304. package/dist/packages/core/mock/monorise/expert.js +0 -32
  305. package/dist/packages/core/mock/monorise/expert.js.map +0 -1
  306. package/dist/packages/core/mock/monorise/index.d.ts +0 -3599
  307. package/dist/packages/core/mock/monorise/index.d.ts.map +0 -1
  308. package/dist/packages/core/mock/monorise/index.js +0 -62
  309. package/dist/packages/core/mock/monorise/index.js.map +0 -1
  310. package/dist/packages/core/mock/monorise/learner-video-progress.d.ts +0 -198
  311. package/dist/packages/core/mock/monorise/learner-video-progress.d.ts.map +0 -1
  312. package/dist/packages/core/mock/monorise/learner-video-progress.js +0 -21
  313. package/dist/packages/core/mock/monorise/learner-video-progress.js.map +0 -1
  314. package/dist/packages/core/mock/monorise/learner.d.ts +0 -390
  315. package/dist/packages/core/mock/monorise/learner.d.ts.map +0 -1
  316. package/dist/packages/core/mock/monorise/learner.js +0 -59
  317. package/dist/packages/core/mock/monorise/learner.js.map +0 -1
  318. package/dist/packages/core/mock/monorise/learning-activity-submission.d.ts +0 -160
  319. package/dist/packages/core/mock/monorise/learning-activity-submission.d.ts.map +0 -1
  320. package/dist/packages/core/mock/monorise/learning-activity-submission.js +0 -17
  321. package/dist/packages/core/mock/monorise/learning-activity-submission.js.map +0 -1
  322. package/dist/packages/core/mock/monorise/learning-activity.d.ts +0 -266
  323. package/dist/packages/core/mock/monorise/learning-activity.d.ts.map +0 -1
  324. package/dist/packages/core/mock/monorise/learning-activity.js +0 -50
  325. package/dist/packages/core/mock/monorise/learning-activity.js.map +0 -1
  326. package/dist/packages/core/mock/monorise/learning-journey-config.d.ts +0 -84
  327. package/dist/packages/core/mock/monorise/learning-journey-config.d.ts.map +0 -1
  328. package/dist/packages/core/mock/monorise/learning-journey-config.js +0 -27
  329. package/dist/packages/core/mock/monorise/learning-journey-config.js.map +0 -1
  330. package/dist/packages/core/mock/monorise/learning-journey-progress.d.ts +0 -290
  331. package/dist/packages/core/mock/monorise/learning-journey-progress.d.ts.map +0 -1
  332. package/dist/packages/core/mock/monorise/learning-journey-progress.js +0 -46
  333. package/dist/packages/core/mock/monorise/learning-journey-progress.js.map +0 -1
  334. package/dist/packages/core/mock/monorise/module.d.ts +0 -211
  335. package/dist/packages/core/mock/monorise/module.d.ts.map +0 -1
  336. package/dist/packages/core/mock/monorise/module.js +0 -91
  337. package/dist/packages/core/mock/monorise/module.js.map +0 -1
  338. package/dist/packages/core/mock/monorise/organization.d.ts +0 -346
  339. package/dist/packages/core/mock/monorise/organization.d.ts.map +0 -1
  340. package/dist/packages/core/mock/monorise/organization.js +0 -54
  341. package/dist/packages/core/mock/monorise/organization.js.map +0 -1
  342. package/dist/packages/core/mock/monorise/pathway.d.ts +0 -267
  343. package/dist/packages/core/mock/monorise/pathway.d.ts.map +0 -1
  344. package/dist/packages/core/mock/monorise/pathway.js +0 -221
  345. package/dist/packages/core/mock/monorise/pathway.js.map +0 -1
  346. package/dist/packages/core/mock/monorise/phase.d.ts +0 -580
  347. package/dist/packages/core/mock/monorise/phase.d.ts.map +0 -1
  348. package/dist/packages/core/mock/monorise/phase.js +0 -166
  349. package/dist/packages/core/mock/monorise/phase.js.map +0 -1
  350. package/dist/packages/core/mock/monorise/reference.d.ts +0 -171
  351. package/dist/packages/core/mock/monorise/reference.d.ts.map +0 -1
  352. package/dist/packages/core/mock/monorise/reference.js +0 -25
  353. package/dist/packages/core/mock/monorise/reference.js.map +0 -1
  354. package/dist/packages/core/mock/monorise/track.d.ts +0 -617
  355. package/dist/packages/core/mock/monorise/track.d.ts.map +0 -1
  356. package/dist/packages/core/mock/monorise/track.js +0 -270
  357. package/dist/packages/core/mock/monorise/track.js.map +0 -1
  358. package/dist/packages/core/mock/monorise/video.d.ts +0 -346
  359. package/dist/packages/core/mock/monorise/video.d.ts.map +0 -1
  360. package/dist/packages/core/mock/monorise/video.js +0 -33
  361. package/dist/packages/core/mock/monorise/video.js.map +0 -1
  362. package/dist/packages/core/mock/monorise.d.ts +0 -6
  363. package/dist/packages/core/mock/monorise.d.ts.map +0 -1
  364. package/dist/packages/core/mock/monorise.js +0 -5
  365. package/dist/packages/core/mock/monorise.js.map +0 -1
  366. package/dist/packages/core/processors/create-entity-processor.d.ts +0 -5
  367. package/dist/packages/core/processors/create-entity-processor.d.ts.map +0 -1
  368. package/dist/packages/core/processors/create-entity-processor.js +0 -32
  369. package/dist/packages/core/processors/create-entity-processor.js.map +0 -1
  370. package/dist/packages/core/processors/mutual-processor.d.ts +0 -15
  371. package/dist/packages/core/processors/mutual-processor.d.ts.map +0 -1
  372. package/dist/packages/core/processors/mutual-processor.js +0 -128
  373. package/dist/packages/core/processors/mutual-processor.js.map +0 -1
  374. package/dist/packages/core/processors/prejoin-processor.d.ts +0 -12
  375. package/dist/packages/core/processors/prejoin-processor.d.ts.map +0 -1
  376. package/dist/packages/core/processors/prejoin-processor.js +0 -150
  377. package/dist/packages/core/processors/prejoin-processor.js.map +0 -1
  378. package/dist/packages/core/processors/replication-processor.d.ts +0 -8
  379. package/dist/packages/core/processors/replication-processor.d.ts.map +0 -1
  380. package/dist/packages/core/processors/replication-processor.js +0 -180
  381. package/dist/packages/core/processors/replication-processor.js.map +0 -1
  382. package/dist/packages/core/processors/tag-processor.d.ts +0 -11
  383. package/dist/packages/core/processors/tag-processor.d.ts.map +0 -1
  384. package/dist/packages/core/processors/tag-processor.js +0 -106
  385. package/dist/packages/core/processors/tag-processor.js.map +0 -1
  386. package/dist/packages/core/services/DependencyContainer.d.ts +0 -51
  387. package/dist/packages/core/services/DependencyContainer.d.ts.map +0 -1
  388. package/dist/packages/core/services/DependencyContainer.js +0 -115
  389. package/dist/packages/core/services/DependencyContainer.js.map +0 -1
  390. package/dist/packages/core/services/entity-service-lifecycle.d.ts +0 -12
  391. package/dist/packages/core/services/entity-service-lifecycle.d.ts.map +0 -1
  392. package/dist/packages/core/services/entity-service-lifecycle.js +0 -23
  393. package/dist/packages/core/services/entity-service-lifecycle.js.map +0 -1
  394. package/dist/packages/core/services/entity.service.d.ts +0 -32
  395. package/dist/packages/core/services/entity.service.d.ts.map +0 -1
  396. package/dist/packages/core/services/entity.service.js +0 -121
  397. package/dist/packages/core/services/entity.service.js.map +0 -1
  398. package/dist/packages/core/services/mutual.service.d.ts +0 -64
  399. package/dist/packages/core/services/mutual.service.d.ts.map +0 -1
  400. package/dist/packages/core/services/mutual.service.js +0 -144
  401. package/dist/packages/core/services/mutual.service.js.map +0 -1
  402. package/dist/packages/core/types/entity.type.d.ts +0 -20
  403. package/dist/packages/core/types/entity.type.d.ts.map +0 -1
  404. package/dist/packages/core/types/entity.type.js +0 -2
  405. package/dist/packages/core/types/entity.type.js.map +0 -1
  406. package/dist/shared/types/event.d.ts +0 -72
  407. package/dist/shared/types/event.d.ts.map +0 -1
  408. package/dist/shared/types/event.js +0 -74
  409. package/dist/shared/types/event.js.map +0 -1
@@ -1,3599 +0,0 @@
1
- import type { z } from 'zod';
2
- import admin from './admin';
3
- import chapter from './chapter';
4
- import course from './course';
5
- import learner from './learner';
6
- import learningActivity from './learning-activity';
7
- import learningJourneyConfig from './learning-journey-config';
8
- import module from './module';
9
- import organization from './organization';
10
- import reference from './reference';
11
- import video from './video';
12
- export declare enum Entity {
13
- ADMIN = "admin",
14
- CHAPTER = "chapter",
15
- COURSE = "course",
16
- LEARNER = "learner",
17
- LEARNING_ACTIVITY = "learning-activity",
18
- LEARNING_JOURNEY_CONFIG = "learning-journey-config",
19
- MODULE = "module",
20
- ORGANIZATION = "organization",
21
- REFERENCE = "reference",
22
- VIDEO = "video"
23
- }
24
- export type AdminType = z.infer<(typeof admin)['finalSchema']>;
25
- export type ChapterType = z.infer<(typeof chapter)['finalSchema']>;
26
- export type CourseType = z.infer<(typeof course)['finalSchema']>;
27
- export type LearnerType = z.infer<(typeof learner)['finalSchema']>;
28
- export type LearningActivityType = z.infer<(typeof learningActivity)['finalSchema']>;
29
- export type LearningJourneyConfigType = z.infer<(typeof learningJourneyConfig)['finalSchema']>;
30
- export type ModuleType = z.infer<(typeof module)['finalSchema']>;
31
- export type OrganizationType = z.infer<(typeof organization)['finalSchema']>;
32
- export type ReferenceType = z.infer<(typeof reference)['finalSchema']>;
33
- export type VideoType = z.infer<(typeof video)['finalSchema']>;
34
- export interface EntitySchemaMap {
35
- admin: AdminType;
36
- chapter: ChapterType;
37
- course: CourseType;
38
- learner: LearnerType;
39
- learningActivity: LearningActivityType;
40
- learningJourneyConfig: LearningJourneyConfigType;
41
- module: ModuleType;
42
- organization: OrganizationType;
43
- reference: ReferenceType;
44
- video: VideoType;
45
- }
46
- declare const EntityConfig: {
47
- admin: {
48
- finalSchema: z.ZodObject<z.objectUtil.extendShape<{
49
- email: z.ZodOptional<z.ZodString>;
50
- displayName: z.ZodOptional<z.ZodString>;
51
- }, {
52
- email: z.ZodString;
53
- displayName: z.ZodString;
54
- }>, "strip", z.ZodTypeAny, {
55
- email: string;
56
- displayName: string;
57
- }, {
58
- email: string;
59
- displayName: string;
60
- }> | z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
61
- email: z.ZodOptional<z.ZodString>;
62
- displayName: z.ZodOptional<z.ZodString>;
63
- }, {
64
- email: z.ZodString;
65
- displayName: z.ZodString;
66
- }>, "strip", z.ZodTypeAny, {
67
- email: string;
68
- displayName: string;
69
- }, {
70
- email: string;
71
- displayName: string;
72
- }>, {
73
- email: string;
74
- displayName: string;
75
- }, {
76
- email: string;
77
- displayName: string;
78
- }>;
79
- name: string;
80
- displayName: string;
81
- authMethod?: {
82
- email: {
83
- tokenExpiresIn: number;
84
- };
85
- };
86
- baseSchema: z.ZodObject<{
87
- email: z.ZodOptional<z.ZodString>;
88
- displayName: z.ZodOptional<z.ZodString>;
89
- }, z.UnknownKeysParam, z.ZodTypeAny, {
90
- email?: string | undefined;
91
- displayName?: string | undefined;
92
- }, {
93
- email?: string | undefined;
94
- displayName?: string | undefined;
95
- }>;
96
- createSchema?: z.ZodObject<z.objectUtil.extendShape<{
97
- email: z.ZodOptional<z.ZodString>;
98
- displayName: z.ZodOptional<z.ZodString>;
99
- }, {
100
- email: z.ZodString;
101
- displayName: z.ZodString;
102
- }>, "strip", z.ZodTypeAny, {
103
- email: string;
104
- displayName: string;
105
- }, {
106
- email: string;
107
- displayName: string;
108
- }> | undefined;
109
- searchableFields?: ("email" | "displayName")[] | undefined;
110
- mutual?: {
111
- subscribes?: {
112
- entityType: import("@monorise/base").Entity;
113
- }[];
114
- mutualSchema: undefined;
115
- mutualFields: {
116
- [key: string]: {
117
- entityType: import("@monorise/base").Entity;
118
- toMutualIds?: (context: any) => string[];
119
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
120
- };
121
- };
122
- prejoins?: {
123
- mutualField: string;
124
- targetEntityType: import("@monorise/base").Entity;
125
- entityPaths: {
126
- skipCache?: boolean;
127
- entityType: import("@monorise/base").Entity;
128
- processor?: (items: any[], context: Record<string, any>) => any;
129
- }[];
130
- }[];
131
- } | undefined;
132
- effect?: ((schema: z.ZodObject<z.objectUtil.extendShape<{
133
- email: z.ZodOptional<z.ZodString>;
134
- displayName: z.ZodOptional<z.ZodString>;
135
- }, {
136
- email: z.ZodString;
137
- displayName: z.ZodString;
138
- }>, "strip", z.ZodTypeAny, {
139
- email: string;
140
- displayName: string;
141
- }, {
142
- email: string;
143
- displayName: string;
144
- }>) => z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
145
- email: z.ZodOptional<z.ZodString>;
146
- displayName: z.ZodOptional<z.ZodString>;
147
- }, {
148
- email: z.ZodString;
149
- displayName: z.ZodString;
150
- }>, "strip", z.ZodTypeAny, {
151
- email: string;
152
- displayName: string;
153
- }, {
154
- email: string;
155
- displayName: string;
156
- }>, {
157
- email: string;
158
- displayName: string;
159
- }, {
160
- email: string;
161
- displayName: string;
162
- }>) | undefined;
163
- tags?: {
164
- name: string;
165
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
166
- group?: string;
167
- sortValue?: string;
168
- }[];
169
- }[] | undefined;
170
- };
171
- chapter: {
172
- finalSchema: z.ZodObject<{
173
- learningActivityOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
174
- referenceOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
175
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
176
- } & {
177
- description: z.ZodOptional<z.ZodString>;
178
- discussionLink: z.ZodOptional<z.ZodString>;
179
- title: z.ZodOptional<z.ZodString>;
180
- learningActivityDescription: z.ZodOptional<z.ZodString>;
181
- body: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
182
- type: z.ZodString;
183
- id: z.ZodString;
184
- content: z.ZodAny;
185
- }, "strip", z.ZodTypeAny, {
186
- id: string;
187
- type: string;
188
- content?: any;
189
- }, {
190
- id: string;
191
- type: string;
192
- content?: any;
193
- }>, "many">>>;
194
- progress: z.ZodOptional<z.ZodNumber>;
195
- } & {
196
- remark: z.ZodString;
197
- type: z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>;
198
- }, z.UnknownKeysParam, z.ZodTypeAny, {
199
- type: import("./chapter").CHAPTER_TYPE;
200
- remark: string;
201
- body?: {
202
- id: string;
203
- type: string;
204
- content?: any;
205
- }[] | undefined;
206
- description?: string | undefined;
207
- discussionLink?: string | undefined;
208
- title?: string | undefined;
209
- learningActivityDescription?: string | undefined;
210
- progress?: number | undefined;
211
- learningActivityOrders?: string[] | undefined;
212
- referenceOrders?: string[] | undefined;
213
- videos?: string[] | undefined;
214
- }, {
215
- type: import("./chapter").CHAPTER_TYPE;
216
- remark: string;
217
- body?: {
218
- id: string;
219
- type: string;
220
- content?: any;
221
- }[] | undefined;
222
- description?: string | undefined;
223
- discussionLink?: string | undefined;
224
- title?: string | undefined;
225
- learningActivityDescription?: string | undefined;
226
- progress?: number | undefined;
227
- learningActivityOrders?: string[] | undefined;
228
- referenceOrders?: string[] | undefined;
229
- videos?: string[] | undefined;
230
- }> | z.ZodEffects<z.ZodObject<{
231
- learningActivityOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
232
- referenceOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
233
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
234
- } & {
235
- description: z.ZodOptional<z.ZodString>;
236
- discussionLink: z.ZodOptional<z.ZodString>;
237
- title: z.ZodOptional<z.ZodString>;
238
- learningActivityDescription: z.ZodOptional<z.ZodString>;
239
- body: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
240
- type: z.ZodString;
241
- id: z.ZodString;
242
- content: z.ZodAny;
243
- }, "strip", z.ZodTypeAny, {
244
- id: string;
245
- type: string;
246
- content?: any;
247
- }, {
248
- id: string;
249
- type: string;
250
- content?: any;
251
- }>, "many">>>;
252
- progress: z.ZodOptional<z.ZodNumber>;
253
- } & {
254
- remark: z.ZodString;
255
- type: z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>;
256
- }, z.UnknownKeysParam, z.ZodTypeAny, {
257
- type: import("./chapter").CHAPTER_TYPE;
258
- remark: string;
259
- body?: {
260
- id: string;
261
- type: string;
262
- content?: any;
263
- }[] | undefined;
264
- description?: string | undefined;
265
- discussionLink?: string | undefined;
266
- title?: string | undefined;
267
- learningActivityDescription?: string | undefined;
268
- progress?: number | undefined;
269
- learningActivityOrders?: string[] | undefined;
270
- referenceOrders?: string[] | undefined;
271
- videos?: string[] | undefined;
272
- }, {
273
- type: import("./chapter").CHAPTER_TYPE;
274
- remark: string;
275
- body?: {
276
- id: string;
277
- type: string;
278
- content?: any;
279
- }[] | undefined;
280
- description?: string | undefined;
281
- discussionLink?: string | undefined;
282
- title?: string | undefined;
283
- learningActivityDescription?: string | undefined;
284
- progress?: number | undefined;
285
- learningActivityOrders?: string[] | undefined;
286
- referenceOrders?: string[] | undefined;
287
- videos?: string[] | undefined;
288
- }>, {
289
- type: import("./chapter").CHAPTER_TYPE;
290
- remark: string;
291
- body?: {
292
- id: string;
293
- type: string;
294
- content?: any;
295
- }[] | undefined;
296
- description?: string | undefined;
297
- discussionLink?: string | undefined;
298
- title?: string | undefined;
299
- learningActivityDescription?: string | undefined;
300
- progress?: number | undefined;
301
- learningActivityOrders?: string[] | undefined;
302
- referenceOrders?: string[] | undefined;
303
- videos?: string[] | undefined;
304
- }, {
305
- type: import("./chapter").CHAPTER_TYPE;
306
- remark: string;
307
- body?: {
308
- id: string;
309
- type: string;
310
- content?: any;
311
- }[] | undefined;
312
- description?: string | undefined;
313
- discussionLink?: string | undefined;
314
- title?: string | undefined;
315
- learningActivityDescription?: string | undefined;
316
- progress?: number | undefined;
317
- learningActivityOrders?: string[] | undefined;
318
- referenceOrders?: string[] | undefined;
319
- videos?: string[] | undefined;
320
- }>;
321
- name: string;
322
- displayName: string;
323
- authMethod?: {
324
- email: {
325
- tokenExpiresIn: number;
326
- };
327
- };
328
- baseSchema: z.ZodObject<{
329
- description: z.ZodOptional<z.ZodString>;
330
- discussionLink: z.ZodOptional<z.ZodString>;
331
- remark: z.ZodOptional<z.ZodString>;
332
- type: z.ZodOptional<z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>>;
333
- title: z.ZodOptional<z.ZodString>;
334
- learningActivityDescription: z.ZodOptional<z.ZodString>;
335
- body: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
336
- type: z.ZodString;
337
- id: z.ZodString;
338
- content: z.ZodAny;
339
- }, "strip", z.ZodTypeAny, {
340
- id: string;
341
- type: string;
342
- content?: any;
343
- }, {
344
- id: string;
345
- type: string;
346
- content?: any;
347
- }>, "many">>>;
348
- progress: z.ZodOptional<z.ZodNumber>;
349
- }, z.UnknownKeysParam, z.ZodTypeAny, {
350
- body?: {
351
- id: string;
352
- type: string;
353
- content?: any;
354
- }[] | undefined;
355
- type?: import("./chapter").CHAPTER_TYPE | undefined;
356
- description?: string | undefined;
357
- discussionLink?: string | undefined;
358
- remark?: string | undefined;
359
- title?: string | undefined;
360
- learningActivityDescription?: string | undefined;
361
- progress?: number | undefined;
362
- }, {
363
- body?: {
364
- id: string;
365
- type: string;
366
- content?: any;
367
- }[] | undefined;
368
- type?: import("./chapter").CHAPTER_TYPE | undefined;
369
- description?: string | undefined;
370
- discussionLink?: string | undefined;
371
- remark?: string | undefined;
372
- title?: string | undefined;
373
- learningActivityDescription?: string | undefined;
374
- progress?: number | undefined;
375
- }>;
376
- createSchema?: z.ZodObject<z.objectUtil.extendShape<{
377
- description: z.ZodOptional<z.ZodString>;
378
- discussionLink: z.ZodOptional<z.ZodString>;
379
- remark: z.ZodOptional<z.ZodString>;
380
- type: z.ZodOptional<z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>>;
381
- title: z.ZodOptional<z.ZodString>;
382
- learningActivityDescription: z.ZodOptional<z.ZodString>;
383
- body: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
384
- type: z.ZodString;
385
- id: z.ZodString;
386
- content: z.ZodAny;
387
- }, "strip", z.ZodTypeAny, {
388
- id: string;
389
- type: string;
390
- content?: any;
391
- }, {
392
- id: string;
393
- type: string;
394
- content?: any;
395
- }>, "many">>>;
396
- progress: z.ZodOptional<z.ZodNumber>;
397
- }, {
398
- remark: z.ZodString;
399
- type: z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>;
400
- }>, "strip", z.ZodTypeAny, {
401
- type: import("./chapter").CHAPTER_TYPE;
402
- remark: string;
403
- body?: {
404
- id: string;
405
- type: string;
406
- content?: any;
407
- }[] | undefined;
408
- description?: string | undefined;
409
- discussionLink?: string | undefined;
410
- title?: string | undefined;
411
- learningActivityDescription?: string | undefined;
412
- progress?: number | undefined;
413
- }, {
414
- type: import("./chapter").CHAPTER_TYPE;
415
- remark: string;
416
- body?: {
417
- id: string;
418
- type: string;
419
- content?: any;
420
- }[] | undefined;
421
- description?: string | undefined;
422
- discussionLink?: string | undefined;
423
- title?: string | undefined;
424
- learningActivityDescription?: string | undefined;
425
- progress?: number | undefined;
426
- }> | undefined;
427
- searchableFields?: ("body" | "type" | "description" | "discussionLink" | "remark" | "title" | "learningActivityDescription" | "progress")[] | undefined;
428
- mutual?: {
429
- subscribes?: {
430
- entityType: import("@monorise/base").Entity;
431
- }[];
432
- mutualSchema: z.ZodObject<{
433
- learningActivityOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
434
- referenceOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
435
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
- }, "strip", z.ZodTypeAny, {
437
- learningActivityOrders?: string[] | undefined;
438
- referenceOrders?: string[] | undefined;
439
- videos?: string[] | undefined;
440
- }, {
441
- learningActivityOrders?: string[] | undefined;
442
- referenceOrders?: string[] | undefined;
443
- videos?: string[] | undefined;
444
- }>;
445
- mutualFields: {
446
- [key: string]: {
447
- entityType: import("@monorise/base").Entity;
448
- toMutualIds?: (context: any) => string[];
449
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
450
- };
451
- };
452
- prejoins?: {
453
- mutualField: string;
454
- targetEntityType: import("@monorise/base").Entity;
455
- entityPaths: {
456
- skipCache?: boolean;
457
- entityType: import("@monorise/base").Entity;
458
- processor?: (items: any[], context: Record<string, any>) => any;
459
- }[];
460
- }[];
461
- } | undefined;
462
- effect?: ((schema: z.ZodObject<{
463
- learningActivityOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
464
- referenceOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
465
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
466
- } & {
467
- description: z.ZodOptional<z.ZodString>;
468
- discussionLink: z.ZodOptional<z.ZodString>;
469
- title: z.ZodOptional<z.ZodString>;
470
- learningActivityDescription: z.ZodOptional<z.ZodString>;
471
- body: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
472
- type: z.ZodString;
473
- id: z.ZodString;
474
- content: z.ZodAny;
475
- }, "strip", z.ZodTypeAny, {
476
- id: string;
477
- type: string;
478
- content?: any;
479
- }, {
480
- id: string;
481
- type: string;
482
- content?: any;
483
- }>, "many">>>;
484
- progress: z.ZodOptional<z.ZodNumber>;
485
- } & {
486
- remark: z.ZodString;
487
- type: z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>;
488
- }, z.UnknownKeysParam, z.ZodTypeAny, {
489
- type: import("./chapter").CHAPTER_TYPE;
490
- remark: string;
491
- body?: {
492
- id: string;
493
- type: string;
494
- content?: any;
495
- }[] | undefined;
496
- description?: string | undefined;
497
- discussionLink?: string | undefined;
498
- title?: string | undefined;
499
- learningActivityDescription?: string | undefined;
500
- progress?: number | undefined;
501
- learningActivityOrders?: string[] | undefined;
502
- referenceOrders?: string[] | undefined;
503
- videos?: string[] | undefined;
504
- }, {
505
- type: import("./chapter").CHAPTER_TYPE;
506
- remark: string;
507
- body?: {
508
- id: string;
509
- type: string;
510
- content?: any;
511
- }[] | undefined;
512
- description?: string | undefined;
513
- discussionLink?: string | undefined;
514
- title?: string | undefined;
515
- learningActivityDescription?: string | undefined;
516
- progress?: number | undefined;
517
- learningActivityOrders?: string[] | undefined;
518
- referenceOrders?: string[] | undefined;
519
- videos?: string[] | undefined;
520
- }>) => z.ZodEffects<z.ZodObject<{
521
- learningActivityOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
522
- referenceOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
523
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
524
- } & {
525
- description: z.ZodOptional<z.ZodString>;
526
- discussionLink: z.ZodOptional<z.ZodString>;
527
- title: z.ZodOptional<z.ZodString>;
528
- learningActivityDescription: z.ZodOptional<z.ZodString>;
529
- body: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
530
- type: z.ZodString;
531
- id: z.ZodString;
532
- content: z.ZodAny;
533
- }, "strip", z.ZodTypeAny, {
534
- id: string;
535
- type: string;
536
- content?: any;
537
- }, {
538
- id: string;
539
- type: string;
540
- content?: any;
541
- }>, "many">>>;
542
- progress: z.ZodOptional<z.ZodNumber>;
543
- } & {
544
- remark: z.ZodString;
545
- type: z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>;
546
- }, z.UnknownKeysParam, z.ZodTypeAny, {
547
- type: import("./chapter").CHAPTER_TYPE;
548
- remark: string;
549
- body?: {
550
- id: string;
551
- type: string;
552
- content?: any;
553
- }[] | undefined;
554
- description?: string | undefined;
555
- discussionLink?: string | undefined;
556
- title?: string | undefined;
557
- learningActivityDescription?: string | undefined;
558
- progress?: number | undefined;
559
- learningActivityOrders?: string[] | undefined;
560
- referenceOrders?: string[] | undefined;
561
- videos?: string[] | undefined;
562
- }, {
563
- type: import("./chapter").CHAPTER_TYPE;
564
- remark: string;
565
- body?: {
566
- id: string;
567
- type: string;
568
- content?: any;
569
- }[] | undefined;
570
- description?: string | undefined;
571
- discussionLink?: string | undefined;
572
- title?: string | undefined;
573
- learningActivityDescription?: string | undefined;
574
- progress?: number | undefined;
575
- learningActivityOrders?: string[] | undefined;
576
- referenceOrders?: string[] | undefined;
577
- videos?: string[] | undefined;
578
- }>, {
579
- type: import("./chapter").CHAPTER_TYPE;
580
- remark: string;
581
- body?: {
582
- id: string;
583
- type: string;
584
- content?: any;
585
- }[] | undefined;
586
- description?: string | undefined;
587
- discussionLink?: string | undefined;
588
- title?: string | undefined;
589
- learningActivityDescription?: string | undefined;
590
- progress?: number | undefined;
591
- learningActivityOrders?: string[] | undefined;
592
- referenceOrders?: string[] | undefined;
593
- videos?: string[] | undefined;
594
- }, {
595
- type: import("./chapter").CHAPTER_TYPE;
596
- remark: string;
597
- body?: {
598
- id: string;
599
- type: string;
600
- content?: any;
601
- }[] | undefined;
602
- description?: string | undefined;
603
- discussionLink?: string | undefined;
604
- title?: string | undefined;
605
- learningActivityDescription?: string | undefined;
606
- progress?: number | undefined;
607
- learningActivityOrders?: string[] | undefined;
608
- referenceOrders?: string[] | undefined;
609
- videos?: string[] | undefined;
610
- }>) | undefined;
611
- tags?: {
612
- name: string;
613
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
614
- group?: string;
615
- sortValue?: string;
616
- }[];
617
- }[] | undefined;
618
- };
619
- course: {
620
- finalSchema: z.ZodObject<{
621
- moduleOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
622
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
- chapters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
624
- learningActivities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
625
- } & {
626
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
627
- duration: z.ZodOptional<z.ZodNumber>;
628
- description: z.ZodOptional<z.ZodString>;
629
- learningOutcomes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
630
- infographics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
631
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
632
- } & {
633
- title: z.ZodString;
634
- }, z.UnknownKeysParam, z.ZodTypeAny, {
635
- title: string;
636
- tags?: string[] | undefined;
637
- description?: string | undefined;
638
- videos?: string[] | undefined;
639
- categories?: string[] | undefined;
640
- duration?: number | undefined;
641
- learningOutcomes?: string[] | undefined;
642
- infographics?: string[] | undefined;
643
- moduleOrders?: string[] | undefined;
644
- chapters?: string[] | undefined;
645
- learningActivities?: string[] | undefined;
646
- }, {
647
- title: string;
648
- tags?: string[] | undefined;
649
- description?: string | undefined;
650
- videos?: string[] | undefined;
651
- categories?: string[] | undefined;
652
- duration?: number | undefined;
653
- learningOutcomes?: string[] | undefined;
654
- infographics?: string[] | undefined;
655
- moduleOrders?: string[] | undefined;
656
- chapters?: string[] | undefined;
657
- learningActivities?: string[] | undefined;
658
- }> | z.ZodEffects<z.ZodObject<{
659
- moduleOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
660
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
661
- chapters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
662
- learningActivities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
663
- } & {
664
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
665
- duration: z.ZodOptional<z.ZodNumber>;
666
- description: z.ZodOptional<z.ZodString>;
667
- learningOutcomes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
668
- infographics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
669
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
670
- } & {
671
- title: z.ZodString;
672
- }, z.UnknownKeysParam, z.ZodTypeAny, {
673
- title: string;
674
- tags?: string[] | undefined;
675
- description?: string | undefined;
676
- videos?: string[] | undefined;
677
- categories?: string[] | undefined;
678
- duration?: number | undefined;
679
- learningOutcomes?: string[] | undefined;
680
- infographics?: string[] | undefined;
681
- moduleOrders?: string[] | undefined;
682
- chapters?: string[] | undefined;
683
- learningActivities?: string[] | undefined;
684
- }, {
685
- title: string;
686
- tags?: string[] | undefined;
687
- description?: string | undefined;
688
- videos?: string[] | undefined;
689
- categories?: string[] | undefined;
690
- duration?: number | undefined;
691
- learningOutcomes?: string[] | undefined;
692
- infographics?: string[] | undefined;
693
- moduleOrders?: string[] | undefined;
694
- chapters?: string[] | undefined;
695
- learningActivities?: string[] | undefined;
696
- }>, {
697
- title: string;
698
- tags?: string[] | undefined;
699
- description?: string | undefined;
700
- videos?: string[] | undefined;
701
- categories?: string[] | undefined;
702
- duration?: number | undefined;
703
- learningOutcomes?: string[] | undefined;
704
- infographics?: string[] | undefined;
705
- moduleOrders?: string[] | undefined;
706
- chapters?: string[] | undefined;
707
- learningActivities?: string[] | undefined;
708
- }, {
709
- title: string;
710
- tags?: string[] | undefined;
711
- description?: string | undefined;
712
- videos?: string[] | undefined;
713
- categories?: string[] | undefined;
714
- duration?: number | undefined;
715
- learningOutcomes?: string[] | undefined;
716
- infographics?: string[] | undefined;
717
- moduleOrders?: string[] | undefined;
718
- chapters?: string[] | undefined;
719
- learningActivities?: string[] | undefined;
720
- }>;
721
- name: string;
722
- displayName: string;
723
- authMethod?: {
724
- email: {
725
- tokenExpiresIn: number;
726
- };
727
- };
728
- baseSchema: z.ZodObject<{
729
- title: z.ZodOptional<z.ZodString>;
730
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
731
- duration: z.ZodOptional<z.ZodNumber>;
732
- description: z.ZodOptional<z.ZodString>;
733
- learningOutcomes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
734
- infographics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
735
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
736
- }, z.UnknownKeysParam, z.ZodTypeAny, {
737
- tags?: string[] | undefined;
738
- description?: string | undefined;
739
- title?: string | undefined;
740
- categories?: string[] | undefined;
741
- duration?: number | undefined;
742
- learningOutcomes?: string[] | undefined;
743
- infographics?: string[] | undefined;
744
- }, {
745
- tags?: string[] | undefined;
746
- description?: string | undefined;
747
- title?: string | undefined;
748
- categories?: string[] | undefined;
749
- duration?: number | undefined;
750
- learningOutcomes?: string[] | undefined;
751
- infographics?: string[] | undefined;
752
- }>;
753
- createSchema?: z.ZodObject<z.objectUtil.extendShape<{
754
- title: z.ZodOptional<z.ZodString>;
755
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
756
- duration: z.ZodOptional<z.ZodNumber>;
757
- description: z.ZodOptional<z.ZodString>;
758
- learningOutcomes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
759
- infographics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
760
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
761
- }, {
762
- title: z.ZodString;
763
- }>, "strip", z.ZodTypeAny, {
764
- title: string;
765
- tags?: string[] | undefined;
766
- description?: string | undefined;
767
- categories?: string[] | undefined;
768
- duration?: number | undefined;
769
- learningOutcomes?: string[] | undefined;
770
- infographics?: string[] | undefined;
771
- }, {
772
- title: string;
773
- tags?: string[] | undefined;
774
- description?: string | undefined;
775
- categories?: string[] | undefined;
776
- duration?: number | undefined;
777
- learningOutcomes?: string[] | undefined;
778
- infographics?: string[] | undefined;
779
- }> | undefined;
780
- searchableFields?: ("tags" | "description" | "title" | "categories" | "duration" | "learningOutcomes" | "infographics")[] | undefined;
781
- mutual?: {
782
- subscribes?: {
783
- entityType: import("@monorise/base").Entity;
784
- }[];
785
- mutualSchema: z.ZodObject<{
786
- moduleOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
787
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
788
- chapters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
789
- learningActivities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
790
- }, "strip", z.ZodTypeAny, {
791
- videos?: string[] | undefined;
792
- moduleOrders?: string[] | undefined;
793
- chapters?: string[] | undefined;
794
- learningActivities?: string[] | undefined;
795
- }, {
796
- videos?: string[] | undefined;
797
- moduleOrders?: string[] | undefined;
798
- chapters?: string[] | undefined;
799
- learningActivities?: string[] | undefined;
800
- }>;
801
- mutualFields: {
802
- [key: string]: {
803
- entityType: import("@monorise/base").Entity;
804
- toMutualIds?: (context: any) => string[];
805
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
806
- };
807
- };
808
- prejoins?: {
809
- mutualField: string;
810
- targetEntityType: import("@monorise/base").Entity;
811
- entityPaths: {
812
- skipCache?: boolean;
813
- entityType: import("@monorise/base").Entity;
814
- processor?: (items: any[], context: Record<string, any>) => any;
815
- }[];
816
- }[];
817
- } | undefined;
818
- effect?: ((schema: z.ZodObject<{
819
- moduleOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
820
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
821
- chapters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
822
- learningActivities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
823
- } & {
824
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
825
- duration: z.ZodOptional<z.ZodNumber>;
826
- description: z.ZodOptional<z.ZodString>;
827
- learningOutcomes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
828
- infographics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
829
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
830
- } & {
831
- title: z.ZodString;
832
- }, z.UnknownKeysParam, z.ZodTypeAny, {
833
- title: string;
834
- tags?: string[] | undefined;
835
- description?: string | undefined;
836
- videos?: string[] | undefined;
837
- categories?: string[] | undefined;
838
- duration?: number | undefined;
839
- learningOutcomes?: string[] | undefined;
840
- infographics?: string[] | undefined;
841
- moduleOrders?: string[] | undefined;
842
- chapters?: string[] | undefined;
843
- learningActivities?: string[] | undefined;
844
- }, {
845
- title: string;
846
- tags?: string[] | undefined;
847
- description?: string | undefined;
848
- videos?: string[] | undefined;
849
- categories?: string[] | undefined;
850
- duration?: number | undefined;
851
- learningOutcomes?: string[] | undefined;
852
- infographics?: string[] | undefined;
853
- moduleOrders?: string[] | undefined;
854
- chapters?: string[] | undefined;
855
- learningActivities?: string[] | undefined;
856
- }>) => z.ZodEffects<z.ZodObject<{
857
- moduleOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
858
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
859
- chapters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
860
- learningActivities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
861
- } & {
862
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
863
- duration: z.ZodOptional<z.ZodNumber>;
864
- description: z.ZodOptional<z.ZodString>;
865
- learningOutcomes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
866
- infographics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
867
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
868
- } & {
869
- title: z.ZodString;
870
- }, z.UnknownKeysParam, z.ZodTypeAny, {
871
- title: string;
872
- tags?: string[] | undefined;
873
- description?: string | undefined;
874
- videos?: string[] | undefined;
875
- categories?: string[] | undefined;
876
- duration?: number | undefined;
877
- learningOutcomes?: string[] | undefined;
878
- infographics?: string[] | undefined;
879
- moduleOrders?: string[] | undefined;
880
- chapters?: string[] | undefined;
881
- learningActivities?: string[] | undefined;
882
- }, {
883
- title: string;
884
- tags?: string[] | undefined;
885
- description?: string | undefined;
886
- videos?: string[] | undefined;
887
- categories?: string[] | undefined;
888
- duration?: number | undefined;
889
- learningOutcomes?: string[] | undefined;
890
- infographics?: string[] | undefined;
891
- moduleOrders?: string[] | undefined;
892
- chapters?: string[] | undefined;
893
- learningActivities?: string[] | undefined;
894
- }>, {
895
- title: string;
896
- tags?: string[] | undefined;
897
- description?: string | undefined;
898
- videos?: string[] | undefined;
899
- categories?: string[] | undefined;
900
- duration?: number | undefined;
901
- learningOutcomes?: string[] | undefined;
902
- infographics?: string[] | undefined;
903
- moduleOrders?: string[] | undefined;
904
- chapters?: string[] | undefined;
905
- learningActivities?: string[] | undefined;
906
- }, {
907
- title: string;
908
- tags?: string[] | undefined;
909
- description?: string | undefined;
910
- videos?: string[] | undefined;
911
- categories?: string[] | undefined;
912
- duration?: number | undefined;
913
- learningOutcomes?: string[] | undefined;
914
- infographics?: string[] | undefined;
915
- moduleOrders?: string[] | undefined;
916
- chapters?: string[] | undefined;
917
- learningActivities?: string[] | undefined;
918
- }>) | undefined;
919
- tags?: {
920
- name: string;
921
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
922
- group?: string;
923
- sortValue?: string;
924
- }[];
925
- }[] | undefined;
926
- };
927
- learner: {
928
- finalSchema: z.ZodObject<{
929
- organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
930
- } & {
931
- jobTitle: z.ZodOptional<z.ZodString>;
932
- locatedCountry: z.ZodOptional<z.ZodString>;
933
- educationLevel: z.ZodOptional<z.ZodString>;
934
- school: z.ZodOptional<z.ZodString>;
935
- major: z.ZodOptional<z.ZodString>;
936
- expiryType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>>;
937
- expiryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
938
- subOrganizationId: z.ZodOptional<z.ZodString>;
939
- acceptedDisclaimer: z.ZodOptional<z.ZodBoolean>;
940
- } & {
941
- email: z.ZodString;
942
- displayName: z.ZodString;
943
- firstName: z.ZodString;
944
- lastName: z.ZodString;
945
- }, z.UnknownKeysParam, z.ZodTypeAny, {
946
- email: string;
947
- displayName: string;
948
- firstName: string;
949
- lastName: string;
950
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
951
- jobTitle?: string | undefined;
952
- locatedCountry?: string | undefined;
953
- educationLevel?: string | undefined;
954
- school?: string | undefined;
955
- major?: string | undefined;
956
- expiryDate?: string | null | undefined;
957
- subOrganizationId?: string | undefined;
958
- acceptedDisclaimer?: boolean | undefined;
959
- organizations?: string[] | undefined;
960
- }, {
961
- email: string;
962
- displayName: string;
963
- firstName: string;
964
- lastName: string;
965
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
966
- jobTitle?: string | undefined;
967
- locatedCountry?: string | undefined;
968
- educationLevel?: string | undefined;
969
- school?: string | undefined;
970
- major?: string | undefined;
971
- expiryDate?: string | null | undefined;
972
- subOrganizationId?: string | undefined;
973
- acceptedDisclaimer?: boolean | undefined;
974
- organizations?: string[] | undefined;
975
- }> | z.ZodEffects<z.ZodObject<{
976
- organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
977
- } & {
978
- jobTitle: z.ZodOptional<z.ZodString>;
979
- locatedCountry: z.ZodOptional<z.ZodString>;
980
- educationLevel: z.ZodOptional<z.ZodString>;
981
- school: z.ZodOptional<z.ZodString>;
982
- major: z.ZodOptional<z.ZodString>;
983
- expiryType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>>;
984
- expiryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
985
- subOrganizationId: z.ZodOptional<z.ZodString>;
986
- acceptedDisclaimer: z.ZodOptional<z.ZodBoolean>;
987
- } & {
988
- email: z.ZodString;
989
- displayName: z.ZodString;
990
- firstName: z.ZodString;
991
- lastName: z.ZodString;
992
- }, z.UnknownKeysParam, z.ZodTypeAny, {
993
- email: string;
994
- displayName: string;
995
- firstName: string;
996
- lastName: string;
997
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
998
- jobTitle?: string | undefined;
999
- locatedCountry?: string | undefined;
1000
- educationLevel?: string | undefined;
1001
- school?: string | undefined;
1002
- major?: string | undefined;
1003
- expiryDate?: string | null | undefined;
1004
- subOrganizationId?: string | undefined;
1005
- acceptedDisclaimer?: boolean | undefined;
1006
- organizations?: string[] | undefined;
1007
- }, {
1008
- email: string;
1009
- displayName: string;
1010
- firstName: string;
1011
- lastName: string;
1012
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1013
- jobTitle?: string | undefined;
1014
- locatedCountry?: string | undefined;
1015
- educationLevel?: string | undefined;
1016
- school?: string | undefined;
1017
- major?: string | undefined;
1018
- expiryDate?: string | null | undefined;
1019
- subOrganizationId?: string | undefined;
1020
- acceptedDisclaimer?: boolean | undefined;
1021
- organizations?: string[] | undefined;
1022
- }>, {
1023
- email: string;
1024
- displayName: string;
1025
- firstName: string;
1026
- lastName: string;
1027
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1028
- jobTitle?: string | undefined;
1029
- locatedCountry?: string | undefined;
1030
- educationLevel?: string | undefined;
1031
- school?: string | undefined;
1032
- major?: string | undefined;
1033
- expiryDate?: string | null | undefined;
1034
- subOrganizationId?: string | undefined;
1035
- acceptedDisclaimer?: boolean | undefined;
1036
- organizations?: string[] | undefined;
1037
- }, {
1038
- email: string;
1039
- displayName: string;
1040
- firstName: string;
1041
- lastName: string;
1042
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1043
- jobTitle?: string | undefined;
1044
- locatedCountry?: string | undefined;
1045
- educationLevel?: string | undefined;
1046
- school?: string | undefined;
1047
- major?: string | undefined;
1048
- expiryDate?: string | null | undefined;
1049
- subOrganizationId?: string | undefined;
1050
- acceptedDisclaimer?: boolean | undefined;
1051
- organizations?: string[] | undefined;
1052
- }>;
1053
- name: string;
1054
- displayName: string;
1055
- authMethod?: {
1056
- email: {
1057
- tokenExpiresIn: number;
1058
- };
1059
- };
1060
- baseSchema: z.ZodObject<{
1061
- email: z.ZodOptional<z.ZodString>;
1062
- displayName: z.ZodOptional<z.ZodString>;
1063
- firstName: z.ZodOptional<z.ZodString>;
1064
- lastName: z.ZodOptional<z.ZodString>;
1065
- jobTitle: z.ZodOptional<z.ZodString>;
1066
- locatedCountry: z.ZodOptional<z.ZodString>;
1067
- educationLevel: z.ZodOptional<z.ZodString>;
1068
- school: z.ZodOptional<z.ZodString>;
1069
- major: z.ZodOptional<z.ZodString>;
1070
- expiryType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>>;
1071
- expiryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1072
- subOrganizationId: z.ZodOptional<z.ZodString>;
1073
- acceptedDisclaimer: z.ZodOptional<z.ZodBoolean>;
1074
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1075
- email?: string | undefined;
1076
- displayName?: string | undefined;
1077
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1078
- firstName?: string | undefined;
1079
- lastName?: string | undefined;
1080
- jobTitle?: string | undefined;
1081
- locatedCountry?: string | undefined;
1082
- educationLevel?: string | undefined;
1083
- school?: string | undefined;
1084
- major?: string | undefined;
1085
- expiryDate?: string | null | undefined;
1086
- subOrganizationId?: string | undefined;
1087
- acceptedDisclaimer?: boolean | undefined;
1088
- }, {
1089
- email?: string | undefined;
1090
- displayName?: string | undefined;
1091
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1092
- firstName?: string | undefined;
1093
- lastName?: string | undefined;
1094
- jobTitle?: string | undefined;
1095
- locatedCountry?: string | undefined;
1096
- educationLevel?: string | undefined;
1097
- school?: string | undefined;
1098
- major?: string | undefined;
1099
- expiryDate?: string | null | undefined;
1100
- subOrganizationId?: string | undefined;
1101
- acceptedDisclaimer?: boolean | undefined;
1102
- }>;
1103
- createSchema?: z.ZodObject<z.objectUtil.extendShape<{
1104
- email: z.ZodOptional<z.ZodString>;
1105
- displayName: z.ZodOptional<z.ZodString>;
1106
- firstName: z.ZodOptional<z.ZodString>;
1107
- lastName: z.ZodOptional<z.ZodString>;
1108
- jobTitle: z.ZodOptional<z.ZodString>;
1109
- locatedCountry: z.ZodOptional<z.ZodString>;
1110
- educationLevel: z.ZodOptional<z.ZodString>;
1111
- school: z.ZodOptional<z.ZodString>;
1112
- major: z.ZodOptional<z.ZodString>;
1113
- expiryType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>>;
1114
- expiryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1115
- subOrganizationId: z.ZodOptional<z.ZodString>;
1116
- acceptedDisclaimer: z.ZodOptional<z.ZodBoolean>;
1117
- }, {
1118
- email: z.ZodString;
1119
- displayName: z.ZodString;
1120
- firstName: z.ZodString;
1121
- lastName: z.ZodString;
1122
- }>, "strip", z.ZodTypeAny, {
1123
- email: string;
1124
- displayName: string;
1125
- firstName: string;
1126
- lastName: string;
1127
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1128
- jobTitle?: string | undefined;
1129
- locatedCountry?: string | undefined;
1130
- educationLevel?: string | undefined;
1131
- school?: string | undefined;
1132
- major?: string | undefined;
1133
- expiryDate?: string | null | undefined;
1134
- subOrganizationId?: string | undefined;
1135
- acceptedDisclaimer?: boolean | undefined;
1136
- }, {
1137
- email: string;
1138
- displayName: string;
1139
- firstName: string;
1140
- lastName: string;
1141
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1142
- jobTitle?: string | undefined;
1143
- locatedCountry?: string | undefined;
1144
- educationLevel?: string | undefined;
1145
- school?: string | undefined;
1146
- major?: string | undefined;
1147
- expiryDate?: string | null | undefined;
1148
- subOrganizationId?: string | undefined;
1149
- acceptedDisclaimer?: boolean | undefined;
1150
- }> | undefined;
1151
- searchableFields?: ("email" | "displayName" | "expiryType" | "firstName" | "lastName" | "jobTitle" | "locatedCountry" | "educationLevel" | "school" | "major" | "expiryDate" | "subOrganizationId" | "acceptedDisclaimer")[] | undefined;
1152
- mutual?: {
1153
- subscribes?: {
1154
- entityType: import("@monorise/base").Entity;
1155
- }[];
1156
- mutualSchema: z.ZodObject<{
1157
- organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1158
- }, "strip", z.ZodTypeAny, {
1159
- organizations?: string[] | undefined;
1160
- }, {
1161
- organizations?: string[] | undefined;
1162
- }>;
1163
- mutualFields: {
1164
- [key: string]: {
1165
- entityType: import("@monorise/base").Entity;
1166
- toMutualIds?: (context: any) => string[];
1167
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
1168
- };
1169
- };
1170
- prejoins?: {
1171
- mutualField: string;
1172
- targetEntityType: import("@monorise/base").Entity;
1173
- entityPaths: {
1174
- skipCache?: boolean;
1175
- entityType: import("@monorise/base").Entity;
1176
- processor?: (items: any[], context: Record<string, any>) => any;
1177
- }[];
1178
- }[];
1179
- } | undefined;
1180
- effect?: ((schema: z.ZodObject<{
1181
- organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
- } & {
1183
- jobTitle: z.ZodOptional<z.ZodString>;
1184
- locatedCountry: z.ZodOptional<z.ZodString>;
1185
- educationLevel: z.ZodOptional<z.ZodString>;
1186
- school: z.ZodOptional<z.ZodString>;
1187
- major: z.ZodOptional<z.ZodString>;
1188
- expiryType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>>;
1189
- expiryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1190
- subOrganizationId: z.ZodOptional<z.ZodString>;
1191
- acceptedDisclaimer: z.ZodOptional<z.ZodBoolean>;
1192
- } & {
1193
- email: z.ZodString;
1194
- displayName: z.ZodString;
1195
- firstName: z.ZodString;
1196
- lastName: z.ZodString;
1197
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1198
- email: string;
1199
- displayName: string;
1200
- firstName: string;
1201
- lastName: string;
1202
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1203
- jobTitle?: string | undefined;
1204
- locatedCountry?: string | undefined;
1205
- educationLevel?: string | undefined;
1206
- school?: string | undefined;
1207
- major?: string | undefined;
1208
- expiryDate?: string | null | undefined;
1209
- subOrganizationId?: string | undefined;
1210
- acceptedDisclaimer?: boolean | undefined;
1211
- organizations?: string[] | undefined;
1212
- }, {
1213
- email: string;
1214
- displayName: string;
1215
- firstName: string;
1216
- lastName: string;
1217
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1218
- jobTitle?: string | undefined;
1219
- locatedCountry?: string | undefined;
1220
- educationLevel?: string | undefined;
1221
- school?: string | undefined;
1222
- major?: string | undefined;
1223
- expiryDate?: string | null | undefined;
1224
- subOrganizationId?: string | undefined;
1225
- acceptedDisclaimer?: boolean | undefined;
1226
- organizations?: string[] | undefined;
1227
- }>) => z.ZodEffects<z.ZodObject<{
1228
- organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1229
- } & {
1230
- jobTitle: z.ZodOptional<z.ZodString>;
1231
- locatedCountry: z.ZodOptional<z.ZodString>;
1232
- educationLevel: z.ZodOptional<z.ZodString>;
1233
- school: z.ZodOptional<z.ZodString>;
1234
- major: z.ZodOptional<z.ZodString>;
1235
- expiryType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>>;
1236
- expiryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1237
- subOrganizationId: z.ZodOptional<z.ZodString>;
1238
- acceptedDisclaimer: z.ZodOptional<z.ZodBoolean>;
1239
- } & {
1240
- email: z.ZodString;
1241
- displayName: z.ZodString;
1242
- firstName: z.ZodString;
1243
- lastName: z.ZodString;
1244
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1245
- email: string;
1246
- displayName: string;
1247
- firstName: string;
1248
- lastName: string;
1249
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1250
- jobTitle?: string | undefined;
1251
- locatedCountry?: string | undefined;
1252
- educationLevel?: string | undefined;
1253
- school?: string | undefined;
1254
- major?: string | undefined;
1255
- expiryDate?: string | null | undefined;
1256
- subOrganizationId?: string | undefined;
1257
- acceptedDisclaimer?: boolean | undefined;
1258
- organizations?: string[] | undefined;
1259
- }, {
1260
- email: string;
1261
- displayName: string;
1262
- firstName: string;
1263
- lastName: string;
1264
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1265
- jobTitle?: string | undefined;
1266
- locatedCountry?: string | undefined;
1267
- educationLevel?: string | undefined;
1268
- school?: string | undefined;
1269
- major?: string | undefined;
1270
- expiryDate?: string | null | undefined;
1271
- subOrganizationId?: string | undefined;
1272
- acceptedDisclaimer?: boolean | undefined;
1273
- organizations?: string[] | undefined;
1274
- }>, {
1275
- email: string;
1276
- displayName: string;
1277
- firstName: string;
1278
- lastName: string;
1279
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1280
- jobTitle?: string | undefined;
1281
- locatedCountry?: string | undefined;
1282
- educationLevel?: string | undefined;
1283
- school?: string | undefined;
1284
- major?: string | undefined;
1285
- expiryDate?: string | null | undefined;
1286
- subOrganizationId?: string | undefined;
1287
- acceptedDisclaimer?: boolean | undefined;
1288
- organizations?: string[] | undefined;
1289
- }, {
1290
- email: string;
1291
- displayName: string;
1292
- firstName: string;
1293
- lastName: string;
1294
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
1295
- jobTitle?: string | undefined;
1296
- locatedCountry?: string | undefined;
1297
- educationLevel?: string | undefined;
1298
- school?: string | undefined;
1299
- major?: string | undefined;
1300
- expiryDate?: string | null | undefined;
1301
- subOrganizationId?: string | undefined;
1302
- acceptedDisclaimer?: boolean | undefined;
1303
- organizations?: string[] | undefined;
1304
- }>) | undefined;
1305
- tags?: {
1306
- name: string;
1307
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
1308
- group?: string;
1309
- sortValue?: string;
1310
- }[];
1311
- }[] | undefined;
1312
- };
1313
- "learning-activity": {
1314
- finalSchema: z.ZodObject<{
1315
- activityType: z.ZodEnum<["REFLECTION", "QUIZ", "FILE_UPLOAD"]>;
1316
- questionType: z.ZodOptional<z.ZodEnum<["TEXT", "RADIO", "CHECKBOX"]>>;
1317
- question: z.ZodString;
1318
- explanation: z.ZodOptional<z.ZodString>;
1319
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1320
- label: z.ZodString;
1321
- isCorrect: z.ZodBoolean;
1322
- }, "strip", z.ZodTypeAny, {
1323
- label: string;
1324
- isCorrect: boolean;
1325
- }, {
1326
- label: string;
1327
- isCorrect: boolean;
1328
- }>, "many">>;
1329
- remark: z.ZodOptional<z.ZodString>;
1330
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1331
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1332
- question: string;
1333
- options?: {
1334
- label: string;
1335
- isCorrect: boolean;
1336
- }[] | undefined;
1337
- remark?: string | undefined;
1338
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1339
- explanation?: string | undefined;
1340
- }, {
1341
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1342
- question: string;
1343
- options?: {
1344
- label: string;
1345
- isCorrect: boolean;
1346
- }[] | undefined;
1347
- remark?: string | undefined;
1348
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1349
- explanation?: string | undefined;
1350
- }> | z.ZodEffects<z.ZodObject<{
1351
- activityType: z.ZodEnum<["REFLECTION", "QUIZ", "FILE_UPLOAD"]>;
1352
- questionType: z.ZodOptional<z.ZodEnum<["TEXT", "RADIO", "CHECKBOX"]>>;
1353
- question: z.ZodString;
1354
- explanation: z.ZodOptional<z.ZodString>;
1355
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1356
- label: z.ZodString;
1357
- isCorrect: z.ZodBoolean;
1358
- }, "strip", z.ZodTypeAny, {
1359
- label: string;
1360
- isCorrect: boolean;
1361
- }, {
1362
- label: string;
1363
- isCorrect: boolean;
1364
- }>, "many">>;
1365
- remark: z.ZodOptional<z.ZodString>;
1366
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1367
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1368
- question: string;
1369
- options?: {
1370
- label: string;
1371
- isCorrect: boolean;
1372
- }[] | undefined;
1373
- remark?: string | undefined;
1374
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1375
- explanation?: string | undefined;
1376
- }, {
1377
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1378
- question: string;
1379
- options?: {
1380
- label: string;
1381
- isCorrect: boolean;
1382
- }[] | undefined;
1383
- remark?: string | undefined;
1384
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1385
- explanation?: string | undefined;
1386
- }>, {
1387
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1388
- question: string;
1389
- options?: {
1390
- label: string;
1391
- isCorrect: boolean;
1392
- }[] | undefined;
1393
- remark?: string | undefined;
1394
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1395
- explanation?: string | undefined;
1396
- }, {
1397
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1398
- question: string;
1399
- options?: {
1400
- label: string;
1401
- isCorrect: boolean;
1402
- }[] | undefined;
1403
- remark?: string | undefined;
1404
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1405
- explanation?: string | undefined;
1406
- }>;
1407
- name: string;
1408
- displayName: string;
1409
- authMethod?: {
1410
- email: {
1411
- tokenExpiresIn: number;
1412
- };
1413
- };
1414
- baseSchema: z.ZodObject<{
1415
- activityType: z.ZodEnum<["REFLECTION", "QUIZ", "FILE_UPLOAD"]>;
1416
- questionType: z.ZodOptional<z.ZodEnum<["TEXT", "RADIO", "CHECKBOX"]>>;
1417
- question: z.ZodString;
1418
- explanation: z.ZodOptional<z.ZodString>;
1419
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1420
- label: z.ZodString;
1421
- isCorrect: z.ZodBoolean;
1422
- }, "strip", z.ZodTypeAny, {
1423
- label: string;
1424
- isCorrect: boolean;
1425
- }, {
1426
- label: string;
1427
- isCorrect: boolean;
1428
- }>, "many">>;
1429
- remark: z.ZodOptional<z.ZodString>;
1430
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1431
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1432
- question: string;
1433
- options?: {
1434
- label: string;
1435
- isCorrect: boolean;
1436
- }[] | undefined;
1437
- remark?: string | undefined;
1438
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1439
- explanation?: string | undefined;
1440
- }, {
1441
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1442
- question: string;
1443
- options?: {
1444
- label: string;
1445
- isCorrect: boolean;
1446
- }[] | undefined;
1447
- remark?: string | undefined;
1448
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1449
- explanation?: string | undefined;
1450
- }>;
1451
- createSchema?: undefined;
1452
- searchableFields?: ("options" | "remark" | "activityType" | "questionType" | "question" | "explanation")[] | undefined;
1453
- mutual?: {
1454
- subscribes?: {
1455
- entityType: import("@monorise/base").Entity;
1456
- }[];
1457
- mutualSchema: undefined;
1458
- mutualFields: {
1459
- [key: string]: {
1460
- entityType: import("@monorise/base").Entity;
1461
- toMutualIds?: (context: any) => string[];
1462
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
1463
- };
1464
- };
1465
- prejoins?: {
1466
- mutualField: string;
1467
- targetEntityType: import("@monorise/base").Entity;
1468
- entityPaths: {
1469
- skipCache?: boolean;
1470
- entityType: import("@monorise/base").Entity;
1471
- processor?: (items: any[], context: Record<string, any>) => any;
1472
- }[];
1473
- }[];
1474
- } | undefined;
1475
- effect?: ((schema: z.ZodObject<{
1476
- activityType: z.ZodEnum<["REFLECTION", "QUIZ", "FILE_UPLOAD"]>;
1477
- questionType: z.ZodOptional<z.ZodEnum<["TEXT", "RADIO", "CHECKBOX"]>>;
1478
- question: z.ZodString;
1479
- explanation: z.ZodOptional<z.ZodString>;
1480
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1481
- label: z.ZodString;
1482
- isCorrect: z.ZodBoolean;
1483
- }, "strip", z.ZodTypeAny, {
1484
- label: string;
1485
- isCorrect: boolean;
1486
- }, {
1487
- label: string;
1488
- isCorrect: boolean;
1489
- }>, "many">>;
1490
- remark: z.ZodOptional<z.ZodString>;
1491
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1492
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1493
- question: string;
1494
- options?: {
1495
- label: string;
1496
- isCorrect: boolean;
1497
- }[] | undefined;
1498
- remark?: string | undefined;
1499
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1500
- explanation?: string | undefined;
1501
- }, {
1502
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1503
- question: string;
1504
- options?: {
1505
- label: string;
1506
- isCorrect: boolean;
1507
- }[] | undefined;
1508
- remark?: string | undefined;
1509
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1510
- explanation?: string | undefined;
1511
- }>) => z.ZodEffects<z.ZodObject<{
1512
- activityType: z.ZodEnum<["REFLECTION", "QUIZ", "FILE_UPLOAD"]>;
1513
- questionType: z.ZodOptional<z.ZodEnum<["TEXT", "RADIO", "CHECKBOX"]>>;
1514
- question: z.ZodString;
1515
- explanation: z.ZodOptional<z.ZodString>;
1516
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1517
- label: z.ZodString;
1518
- isCorrect: z.ZodBoolean;
1519
- }, "strip", z.ZodTypeAny, {
1520
- label: string;
1521
- isCorrect: boolean;
1522
- }, {
1523
- label: string;
1524
- isCorrect: boolean;
1525
- }>, "many">>;
1526
- remark: z.ZodOptional<z.ZodString>;
1527
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1528
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1529
- question: string;
1530
- options?: {
1531
- label: string;
1532
- isCorrect: boolean;
1533
- }[] | undefined;
1534
- remark?: string | undefined;
1535
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1536
- explanation?: string | undefined;
1537
- }, {
1538
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1539
- question: string;
1540
- options?: {
1541
- label: string;
1542
- isCorrect: boolean;
1543
- }[] | undefined;
1544
- remark?: string | undefined;
1545
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1546
- explanation?: string | undefined;
1547
- }>, {
1548
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1549
- question: string;
1550
- options?: {
1551
- label: string;
1552
- isCorrect: boolean;
1553
- }[] | undefined;
1554
- remark?: string | undefined;
1555
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1556
- explanation?: string | undefined;
1557
- }, {
1558
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
1559
- question: string;
1560
- options?: {
1561
- label: string;
1562
- isCorrect: boolean;
1563
- }[] | undefined;
1564
- remark?: string | undefined;
1565
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
1566
- explanation?: string | undefined;
1567
- }>) | undefined;
1568
- tags?: {
1569
- name: string;
1570
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
1571
- group?: string;
1572
- sortValue?: string;
1573
- }[];
1574
- }[] | undefined;
1575
- };
1576
- "learning-journey-config": {
1577
- finalSchema: z.ZodObject<{
1578
- courseOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1579
- } & {}, z.UnknownKeysParam, z.ZodTypeAny, {
1580
- courseOrders?: string[] | undefined;
1581
- }, {
1582
- courseOrders?: string[] | undefined;
1583
- }> | z.ZodEffects<z.ZodObject<{
1584
- courseOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1585
- } & {}, z.UnknownKeysParam, z.ZodTypeAny, {
1586
- courseOrders?: string[] | undefined;
1587
- }, {
1588
- courseOrders?: string[] | undefined;
1589
- }>, {
1590
- courseOrders?: string[] | undefined;
1591
- }, {
1592
- courseOrders?: string[] | undefined;
1593
- }>;
1594
- name: string;
1595
- displayName: string;
1596
- authMethod?: {
1597
- email: {
1598
- tokenExpiresIn: number;
1599
- };
1600
- };
1601
- baseSchema: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
1602
- createSchema?: undefined;
1603
- searchableFields?: never[] | undefined;
1604
- mutual?: {
1605
- subscribes?: {
1606
- entityType: import("@monorise/base").Entity;
1607
- }[];
1608
- mutualSchema: z.ZodObject<{
1609
- courseOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1610
- }, "strip", z.ZodTypeAny, {
1611
- courseOrders?: string[] | undefined;
1612
- }, {
1613
- courseOrders?: string[] | undefined;
1614
- }>;
1615
- mutualFields: {
1616
- [key: string]: {
1617
- entityType: import("@monorise/base").Entity;
1618
- toMutualIds?: (context: any) => string[];
1619
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
1620
- };
1621
- };
1622
- prejoins?: {
1623
- mutualField: string;
1624
- targetEntityType: import("@monorise/base").Entity;
1625
- entityPaths: {
1626
- skipCache?: boolean;
1627
- entityType: import("@monorise/base").Entity;
1628
- processor?: (items: any[], context: Record<string, any>) => any;
1629
- }[];
1630
- }[];
1631
- } | undefined;
1632
- effect?: ((schema: z.ZodObject<{
1633
- courseOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1634
- } & {}, z.UnknownKeysParam, z.ZodTypeAny, {
1635
- courseOrders?: string[] | undefined;
1636
- }, {
1637
- courseOrders?: string[] | undefined;
1638
- }>) => z.ZodEffects<z.ZodObject<{
1639
- courseOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1640
- } & {}, z.UnknownKeysParam, z.ZodTypeAny, {
1641
- courseOrders?: string[] | undefined;
1642
- }, {
1643
- courseOrders?: string[] | undefined;
1644
- }>, {
1645
- courseOrders?: string[] | undefined;
1646
- }, {
1647
- courseOrders?: string[] | undefined;
1648
- }>) | undefined;
1649
- tags?: {
1650
- name: string;
1651
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
1652
- group?: string;
1653
- sortValue?: string;
1654
- }[];
1655
- }[] | undefined;
1656
- };
1657
- module: {
1658
- finalSchema: z.ZodObject<{
1659
- chapterOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1660
- } & {
1661
- description: z.ZodOptional<z.ZodString>;
1662
- shortDescription: z.ZodOptional<z.ZodString>;
1663
- remark: z.ZodOptional<z.ZodString>;
1664
- } & {
1665
- title: z.ZodString;
1666
- type: z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>;
1667
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1668
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1669
- title: string;
1670
- description?: string | undefined;
1671
- remark?: string | undefined;
1672
- shortDescription?: string | undefined;
1673
- chapterOrders?: string[] | undefined;
1674
- }, {
1675
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1676
- title: string;
1677
- description?: string | undefined;
1678
- remark?: string | undefined;
1679
- shortDescription?: string | undefined;
1680
- chapterOrders?: string[] | undefined;
1681
- }> | z.ZodEffects<z.ZodObject<{
1682
- chapterOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1683
- } & {
1684
- description: z.ZodOptional<z.ZodString>;
1685
- shortDescription: z.ZodOptional<z.ZodString>;
1686
- remark: z.ZodOptional<z.ZodString>;
1687
- } & {
1688
- title: z.ZodString;
1689
- type: z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>;
1690
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1691
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1692
- title: string;
1693
- description?: string | undefined;
1694
- remark?: string | undefined;
1695
- shortDescription?: string | undefined;
1696
- chapterOrders?: string[] | undefined;
1697
- }, {
1698
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1699
- title: string;
1700
- description?: string | undefined;
1701
- remark?: string | undefined;
1702
- shortDescription?: string | undefined;
1703
- chapterOrders?: string[] | undefined;
1704
- }>, {
1705
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1706
- title: string;
1707
- description?: string | undefined;
1708
- remark?: string | undefined;
1709
- shortDescription?: string | undefined;
1710
- chapterOrders?: string[] | undefined;
1711
- }, {
1712
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1713
- title: string;
1714
- description?: string | undefined;
1715
- remark?: string | undefined;
1716
- shortDescription?: string | undefined;
1717
- chapterOrders?: string[] | undefined;
1718
- }>;
1719
- name: string;
1720
- displayName: string;
1721
- authMethod?: {
1722
- email: {
1723
- tokenExpiresIn: number;
1724
- };
1725
- };
1726
- baseSchema: z.ZodObject<{
1727
- title: z.ZodOptional<z.ZodString>;
1728
- description: z.ZodOptional<z.ZodString>;
1729
- shortDescription: z.ZodOptional<z.ZodString>;
1730
- remark: z.ZodOptional<z.ZodString>;
1731
- type: z.ZodOptional<z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>>;
1732
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1733
- type?: "TOUCHPOINT" | "CHECKPOINT" | "MODULE" | undefined;
1734
- description?: string | undefined;
1735
- remark?: string | undefined;
1736
- title?: string | undefined;
1737
- shortDescription?: string | undefined;
1738
- }, {
1739
- type?: "TOUCHPOINT" | "CHECKPOINT" | "MODULE" | undefined;
1740
- description?: string | undefined;
1741
- remark?: string | undefined;
1742
- title?: string | undefined;
1743
- shortDescription?: string | undefined;
1744
- }>;
1745
- createSchema?: z.ZodObject<z.objectUtil.extendShape<{
1746
- title: z.ZodOptional<z.ZodString>;
1747
- description: z.ZodOptional<z.ZodString>;
1748
- shortDescription: z.ZodOptional<z.ZodString>;
1749
- remark: z.ZodOptional<z.ZodString>;
1750
- type: z.ZodOptional<z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>>;
1751
- }, {
1752
- title: z.ZodString;
1753
- type: z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>;
1754
- }>, "strip", z.ZodTypeAny, {
1755
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1756
- title: string;
1757
- description?: string | undefined;
1758
- remark?: string | undefined;
1759
- shortDescription?: string | undefined;
1760
- }, {
1761
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1762
- title: string;
1763
- description?: string | undefined;
1764
- remark?: string | undefined;
1765
- shortDescription?: string | undefined;
1766
- }> | undefined;
1767
- searchableFields?: ("type" | "description" | "remark" | "title" | "shortDescription")[] | undefined;
1768
- mutual?: {
1769
- subscribes?: {
1770
- entityType: import("@monorise/base").Entity;
1771
- }[];
1772
- mutualSchema: z.ZodObject<{
1773
- chapterOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1774
- }, "strip", z.ZodTypeAny, {
1775
- chapterOrders?: string[] | undefined;
1776
- }, {
1777
- chapterOrders?: string[] | undefined;
1778
- }>;
1779
- mutualFields: {
1780
- [key: string]: {
1781
- entityType: import("@monorise/base").Entity;
1782
- toMutualIds?: (context: any) => string[];
1783
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
1784
- };
1785
- };
1786
- prejoins?: {
1787
- mutualField: string;
1788
- targetEntityType: import("@monorise/base").Entity;
1789
- entityPaths: {
1790
- skipCache?: boolean;
1791
- entityType: import("@monorise/base").Entity;
1792
- processor?: (items: any[], context: Record<string, any>) => any;
1793
- }[];
1794
- }[];
1795
- } | undefined;
1796
- effect?: ((schema: z.ZodObject<{
1797
- chapterOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1798
- } & {
1799
- description: z.ZodOptional<z.ZodString>;
1800
- shortDescription: z.ZodOptional<z.ZodString>;
1801
- remark: z.ZodOptional<z.ZodString>;
1802
- } & {
1803
- title: z.ZodString;
1804
- type: z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>;
1805
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1806
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1807
- title: string;
1808
- description?: string | undefined;
1809
- remark?: string | undefined;
1810
- shortDescription?: string | undefined;
1811
- chapterOrders?: string[] | undefined;
1812
- }, {
1813
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1814
- title: string;
1815
- description?: string | undefined;
1816
- remark?: string | undefined;
1817
- shortDescription?: string | undefined;
1818
- chapterOrders?: string[] | undefined;
1819
- }>) => z.ZodEffects<z.ZodObject<{
1820
- chapterOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1821
- } & {
1822
- description: z.ZodOptional<z.ZodString>;
1823
- shortDescription: z.ZodOptional<z.ZodString>;
1824
- remark: z.ZodOptional<z.ZodString>;
1825
- } & {
1826
- title: z.ZodString;
1827
- type: z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>;
1828
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1829
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1830
- title: string;
1831
- description?: string | undefined;
1832
- remark?: string | undefined;
1833
- shortDescription?: string | undefined;
1834
- chapterOrders?: string[] | undefined;
1835
- }, {
1836
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1837
- title: string;
1838
- description?: string | undefined;
1839
- remark?: string | undefined;
1840
- shortDescription?: string | undefined;
1841
- chapterOrders?: string[] | undefined;
1842
- }>, {
1843
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1844
- title: string;
1845
- description?: string | undefined;
1846
- remark?: string | undefined;
1847
- shortDescription?: string | undefined;
1848
- chapterOrders?: string[] | undefined;
1849
- }, {
1850
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
1851
- title: string;
1852
- description?: string | undefined;
1853
- remark?: string | undefined;
1854
- shortDescription?: string | undefined;
1855
- chapterOrders?: string[] | undefined;
1856
- }>) | undefined;
1857
- tags?: {
1858
- name: string;
1859
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
1860
- group?: string;
1861
- sortValue?: string;
1862
- }[];
1863
- }[] | undefined;
1864
- };
1865
- organization: {
1866
- finalSchema: z.ZodObject<{
1867
- organizationOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1868
- } & {
1869
- licenseCount: z.ZodOptional<z.ZodNumber>;
1870
- allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
1871
- isPrimary: z.ZodOptional<z.ZodBoolean>;
1872
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1873
- selfRegistrationDisclaimer: z.ZodOptional<z.ZodString>;
1874
- welcomeMessage: z.ZodOptional<z.ZodString>;
1875
- pathwayWelcomeMessage: z.ZodOptional<z.ZodString>;
1876
- expiryType: z.ZodOptional<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>;
1877
- orgExpiryDate: z.ZodOptional<z.ZodString>;
1878
- individualAccessDuration: z.ZodOptional<z.ZodNumber>;
1879
- } & {
1880
- name: z.ZodString;
1881
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1882
- name: string;
1883
- licenseCount?: number | undefined;
1884
- allowSelfRegistration?: boolean | undefined;
1885
- isPrimary?: boolean | undefined;
1886
- domains?: string[] | undefined;
1887
- selfRegistrationDisclaimer?: string | undefined;
1888
- welcomeMessage?: string | undefined;
1889
- pathwayWelcomeMessage?: string | undefined;
1890
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
1891
- orgExpiryDate?: string | undefined;
1892
- individualAccessDuration?: number | undefined;
1893
- organizationOrders?: string[] | undefined;
1894
- }, {
1895
- name: string;
1896
- licenseCount?: number | undefined;
1897
- allowSelfRegistration?: boolean | undefined;
1898
- isPrimary?: boolean | undefined;
1899
- domains?: string[] | undefined;
1900
- selfRegistrationDisclaimer?: string | undefined;
1901
- welcomeMessage?: string | undefined;
1902
- pathwayWelcomeMessage?: string | undefined;
1903
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
1904
- orgExpiryDate?: string | undefined;
1905
- individualAccessDuration?: number | undefined;
1906
- organizationOrders?: string[] | undefined;
1907
- }> | z.ZodEffects<z.ZodObject<{
1908
- organizationOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1909
- } & {
1910
- licenseCount: z.ZodOptional<z.ZodNumber>;
1911
- allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
1912
- isPrimary: z.ZodOptional<z.ZodBoolean>;
1913
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1914
- selfRegistrationDisclaimer: z.ZodOptional<z.ZodString>;
1915
- welcomeMessage: z.ZodOptional<z.ZodString>;
1916
- pathwayWelcomeMessage: z.ZodOptional<z.ZodString>;
1917
- expiryType: z.ZodOptional<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>;
1918
- orgExpiryDate: z.ZodOptional<z.ZodString>;
1919
- individualAccessDuration: z.ZodOptional<z.ZodNumber>;
1920
- } & {
1921
- name: z.ZodString;
1922
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1923
- name: string;
1924
- licenseCount?: number | undefined;
1925
- allowSelfRegistration?: boolean | undefined;
1926
- isPrimary?: boolean | undefined;
1927
- domains?: string[] | undefined;
1928
- selfRegistrationDisclaimer?: string | undefined;
1929
- welcomeMessage?: string | undefined;
1930
- pathwayWelcomeMessage?: string | undefined;
1931
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
1932
- orgExpiryDate?: string | undefined;
1933
- individualAccessDuration?: number | undefined;
1934
- organizationOrders?: string[] | undefined;
1935
- }, {
1936
- name: string;
1937
- licenseCount?: number | undefined;
1938
- allowSelfRegistration?: boolean | undefined;
1939
- isPrimary?: boolean | undefined;
1940
- domains?: string[] | undefined;
1941
- selfRegistrationDisclaimer?: string | undefined;
1942
- welcomeMessage?: string | undefined;
1943
- pathwayWelcomeMessage?: string | undefined;
1944
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
1945
- orgExpiryDate?: string | undefined;
1946
- individualAccessDuration?: number | undefined;
1947
- organizationOrders?: string[] | undefined;
1948
- }>, {
1949
- name: string;
1950
- licenseCount?: number | undefined;
1951
- allowSelfRegistration?: boolean | undefined;
1952
- isPrimary?: boolean | undefined;
1953
- domains?: string[] | undefined;
1954
- selfRegistrationDisclaimer?: string | undefined;
1955
- welcomeMessage?: string | undefined;
1956
- pathwayWelcomeMessage?: string | undefined;
1957
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
1958
- orgExpiryDate?: string | undefined;
1959
- individualAccessDuration?: number | undefined;
1960
- organizationOrders?: string[] | undefined;
1961
- }, {
1962
- name: string;
1963
- licenseCount?: number | undefined;
1964
- allowSelfRegistration?: boolean | undefined;
1965
- isPrimary?: boolean | undefined;
1966
- domains?: string[] | undefined;
1967
- selfRegistrationDisclaimer?: string | undefined;
1968
- welcomeMessage?: string | undefined;
1969
- pathwayWelcomeMessage?: string | undefined;
1970
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
1971
- orgExpiryDate?: string | undefined;
1972
- individualAccessDuration?: number | undefined;
1973
- organizationOrders?: string[] | undefined;
1974
- }>;
1975
- name: string;
1976
- displayName: string;
1977
- authMethod?: {
1978
- email: {
1979
- tokenExpiresIn: number;
1980
- };
1981
- };
1982
- baseSchema: z.ZodObject<{
1983
- name: z.ZodOptional<z.ZodString>;
1984
- licenseCount: z.ZodOptional<z.ZodNumber>;
1985
- allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
1986
- isPrimary: z.ZodOptional<z.ZodBoolean>;
1987
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1988
- selfRegistrationDisclaimer: z.ZodOptional<z.ZodString>;
1989
- welcomeMessage: z.ZodOptional<z.ZodString>;
1990
- pathwayWelcomeMessage: z.ZodOptional<z.ZodString>;
1991
- expiryType: z.ZodOptional<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>;
1992
- orgExpiryDate: z.ZodOptional<z.ZodString>;
1993
- individualAccessDuration: z.ZodOptional<z.ZodNumber>;
1994
- }, z.UnknownKeysParam, z.ZodTypeAny, {
1995
- name?: string | undefined;
1996
- licenseCount?: number | undefined;
1997
- allowSelfRegistration?: boolean | undefined;
1998
- isPrimary?: boolean | undefined;
1999
- domains?: string[] | undefined;
2000
- selfRegistrationDisclaimer?: string | undefined;
2001
- welcomeMessage?: string | undefined;
2002
- pathwayWelcomeMessage?: string | undefined;
2003
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2004
- orgExpiryDate?: string | undefined;
2005
- individualAccessDuration?: number | undefined;
2006
- }, {
2007
- name?: string | undefined;
2008
- licenseCount?: number | undefined;
2009
- allowSelfRegistration?: boolean | undefined;
2010
- isPrimary?: boolean | undefined;
2011
- domains?: string[] | undefined;
2012
- selfRegistrationDisclaimer?: string | undefined;
2013
- welcomeMessage?: string | undefined;
2014
- pathwayWelcomeMessage?: string | undefined;
2015
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2016
- orgExpiryDate?: string | undefined;
2017
- individualAccessDuration?: number | undefined;
2018
- }>;
2019
- createSchema?: z.ZodObject<z.objectUtil.extendShape<{
2020
- name: z.ZodOptional<z.ZodString>;
2021
- licenseCount: z.ZodOptional<z.ZodNumber>;
2022
- allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
2023
- isPrimary: z.ZodOptional<z.ZodBoolean>;
2024
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2025
- selfRegistrationDisclaimer: z.ZodOptional<z.ZodString>;
2026
- welcomeMessage: z.ZodOptional<z.ZodString>;
2027
- pathwayWelcomeMessage: z.ZodOptional<z.ZodString>;
2028
- expiryType: z.ZodOptional<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>;
2029
- orgExpiryDate: z.ZodOptional<z.ZodString>;
2030
- individualAccessDuration: z.ZodOptional<z.ZodNumber>;
2031
- }, {
2032
- name: z.ZodString;
2033
- }>, "strip", z.ZodTypeAny, {
2034
- name: string;
2035
- licenseCount?: number | undefined;
2036
- allowSelfRegistration?: boolean | undefined;
2037
- isPrimary?: boolean | undefined;
2038
- domains?: string[] | undefined;
2039
- selfRegistrationDisclaimer?: string | undefined;
2040
- welcomeMessage?: string | undefined;
2041
- pathwayWelcomeMessage?: string | undefined;
2042
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2043
- orgExpiryDate?: string | undefined;
2044
- individualAccessDuration?: number | undefined;
2045
- }, {
2046
- name: string;
2047
- licenseCount?: number | undefined;
2048
- allowSelfRegistration?: boolean | undefined;
2049
- isPrimary?: boolean | undefined;
2050
- domains?: string[] | undefined;
2051
- selfRegistrationDisclaimer?: string | undefined;
2052
- welcomeMessage?: string | undefined;
2053
- pathwayWelcomeMessage?: string | undefined;
2054
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2055
- orgExpiryDate?: string | undefined;
2056
- individualAccessDuration?: number | undefined;
2057
- }> | undefined;
2058
- searchableFields?: ("name" | "licenseCount" | "allowSelfRegistration" | "isPrimary" | "domains" | "selfRegistrationDisclaimer" | "welcomeMessage" | "pathwayWelcomeMessage" | "expiryType" | "orgExpiryDate" | "individualAccessDuration")[] | undefined;
2059
- mutual?: {
2060
- subscribes?: {
2061
- entityType: import("@monorise/base").Entity;
2062
- }[];
2063
- mutualSchema: z.ZodObject<{
2064
- organizationOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2065
- }, "strip", z.ZodTypeAny, {
2066
- organizationOrders?: string[] | undefined;
2067
- }, {
2068
- organizationOrders?: string[] | undefined;
2069
- }>;
2070
- mutualFields: {
2071
- [key: string]: {
2072
- entityType: import("@monorise/base").Entity;
2073
- toMutualIds?: (context: any) => string[];
2074
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
2075
- };
2076
- };
2077
- prejoins?: {
2078
- mutualField: string;
2079
- targetEntityType: import("@monorise/base").Entity;
2080
- entityPaths: {
2081
- skipCache?: boolean;
2082
- entityType: import("@monorise/base").Entity;
2083
- processor?: (items: any[], context: Record<string, any>) => any;
2084
- }[];
2085
- }[];
2086
- } | undefined;
2087
- effect?: ((schema: z.ZodObject<{
2088
- organizationOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2089
- } & {
2090
- licenseCount: z.ZodOptional<z.ZodNumber>;
2091
- allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
2092
- isPrimary: z.ZodOptional<z.ZodBoolean>;
2093
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2094
- selfRegistrationDisclaimer: z.ZodOptional<z.ZodString>;
2095
- welcomeMessage: z.ZodOptional<z.ZodString>;
2096
- pathwayWelcomeMessage: z.ZodOptional<z.ZodString>;
2097
- expiryType: z.ZodOptional<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>;
2098
- orgExpiryDate: z.ZodOptional<z.ZodString>;
2099
- individualAccessDuration: z.ZodOptional<z.ZodNumber>;
2100
- } & {
2101
- name: z.ZodString;
2102
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2103
- name: string;
2104
- licenseCount?: number | undefined;
2105
- allowSelfRegistration?: boolean | undefined;
2106
- isPrimary?: boolean | undefined;
2107
- domains?: string[] | undefined;
2108
- selfRegistrationDisclaimer?: string | undefined;
2109
- welcomeMessage?: string | undefined;
2110
- pathwayWelcomeMessage?: string | undefined;
2111
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2112
- orgExpiryDate?: string | undefined;
2113
- individualAccessDuration?: number | undefined;
2114
- organizationOrders?: string[] | undefined;
2115
- }, {
2116
- name: string;
2117
- licenseCount?: number | undefined;
2118
- allowSelfRegistration?: boolean | undefined;
2119
- isPrimary?: boolean | undefined;
2120
- domains?: string[] | undefined;
2121
- selfRegistrationDisclaimer?: string | undefined;
2122
- welcomeMessage?: string | undefined;
2123
- pathwayWelcomeMessage?: string | undefined;
2124
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2125
- orgExpiryDate?: string | undefined;
2126
- individualAccessDuration?: number | undefined;
2127
- organizationOrders?: string[] | undefined;
2128
- }>) => z.ZodEffects<z.ZodObject<{
2129
- organizationOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2130
- } & {
2131
- licenseCount: z.ZodOptional<z.ZodNumber>;
2132
- allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
2133
- isPrimary: z.ZodOptional<z.ZodBoolean>;
2134
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2135
- selfRegistrationDisclaimer: z.ZodOptional<z.ZodString>;
2136
- welcomeMessage: z.ZodOptional<z.ZodString>;
2137
- pathwayWelcomeMessage: z.ZodOptional<z.ZodString>;
2138
- expiryType: z.ZodOptional<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>;
2139
- orgExpiryDate: z.ZodOptional<z.ZodString>;
2140
- individualAccessDuration: z.ZodOptional<z.ZodNumber>;
2141
- } & {
2142
- name: z.ZodString;
2143
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2144
- name: string;
2145
- licenseCount?: number | undefined;
2146
- allowSelfRegistration?: boolean | undefined;
2147
- isPrimary?: boolean | undefined;
2148
- domains?: string[] | undefined;
2149
- selfRegistrationDisclaimer?: string | undefined;
2150
- welcomeMessage?: string | undefined;
2151
- pathwayWelcomeMessage?: string | undefined;
2152
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2153
- orgExpiryDate?: string | undefined;
2154
- individualAccessDuration?: number | undefined;
2155
- organizationOrders?: string[] | undefined;
2156
- }, {
2157
- name: string;
2158
- licenseCount?: number | undefined;
2159
- allowSelfRegistration?: boolean | undefined;
2160
- isPrimary?: boolean | undefined;
2161
- domains?: string[] | undefined;
2162
- selfRegistrationDisclaimer?: string | undefined;
2163
- welcomeMessage?: string | undefined;
2164
- pathwayWelcomeMessage?: string | undefined;
2165
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2166
- orgExpiryDate?: string | undefined;
2167
- individualAccessDuration?: number | undefined;
2168
- organizationOrders?: string[] | undefined;
2169
- }>, {
2170
- name: string;
2171
- licenseCount?: number | undefined;
2172
- allowSelfRegistration?: boolean | undefined;
2173
- isPrimary?: boolean | undefined;
2174
- domains?: string[] | undefined;
2175
- selfRegistrationDisclaimer?: string | undefined;
2176
- welcomeMessage?: string | undefined;
2177
- pathwayWelcomeMessage?: string | undefined;
2178
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2179
- orgExpiryDate?: string | undefined;
2180
- individualAccessDuration?: number | undefined;
2181
- organizationOrders?: string[] | undefined;
2182
- }, {
2183
- name: string;
2184
- licenseCount?: number | undefined;
2185
- allowSelfRegistration?: boolean | undefined;
2186
- isPrimary?: boolean | undefined;
2187
- domains?: string[] | undefined;
2188
- selfRegistrationDisclaimer?: string | undefined;
2189
- welcomeMessage?: string | undefined;
2190
- pathwayWelcomeMessage?: string | undefined;
2191
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
2192
- orgExpiryDate?: string | undefined;
2193
- individualAccessDuration?: number | undefined;
2194
- organizationOrders?: string[] | undefined;
2195
- }>) | undefined;
2196
- tags?: {
2197
- name: string;
2198
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
2199
- group?: string;
2200
- sortValue?: string;
2201
- }[];
2202
- }[] | undefined;
2203
- };
2204
- reference: {
2205
- finalSchema: z.ZodObject<z.objectUtil.extendShape<{
2206
- label: z.ZodOptional<z.ZodString>;
2207
- link: z.ZodOptional<z.ZodString>;
2208
- prelabel: z.ZodOptional<z.ZodString>;
2209
- postlabel: z.ZodOptional<z.ZodString>;
2210
- }, {
2211
- label: z.ZodString;
2212
- link: z.ZodString;
2213
- }>, "strip", z.ZodTypeAny, {
2214
- label: string;
2215
- link: string;
2216
- prelabel?: string | undefined;
2217
- postlabel?: string | undefined;
2218
- }, {
2219
- label: string;
2220
- link: string;
2221
- prelabel?: string | undefined;
2222
- postlabel?: string | undefined;
2223
- }> | z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
2224
- label: z.ZodOptional<z.ZodString>;
2225
- link: z.ZodOptional<z.ZodString>;
2226
- prelabel: z.ZodOptional<z.ZodString>;
2227
- postlabel: z.ZodOptional<z.ZodString>;
2228
- }, {
2229
- label: z.ZodString;
2230
- link: z.ZodString;
2231
- }>, "strip", z.ZodTypeAny, {
2232
- label: string;
2233
- link: string;
2234
- prelabel?: string | undefined;
2235
- postlabel?: string | undefined;
2236
- }, {
2237
- label: string;
2238
- link: string;
2239
- prelabel?: string | undefined;
2240
- postlabel?: string | undefined;
2241
- }>, {
2242
- label: string;
2243
- link: string;
2244
- prelabel?: string | undefined;
2245
- postlabel?: string | undefined;
2246
- }, {
2247
- label: string;
2248
- link: string;
2249
- prelabel?: string | undefined;
2250
- postlabel?: string | undefined;
2251
- }>;
2252
- name: string;
2253
- displayName: string;
2254
- authMethod?: {
2255
- email: {
2256
- tokenExpiresIn: number;
2257
- };
2258
- };
2259
- baseSchema: z.ZodObject<{
2260
- label: z.ZodOptional<z.ZodString>;
2261
- link: z.ZodOptional<z.ZodString>;
2262
- prelabel: z.ZodOptional<z.ZodString>;
2263
- postlabel: z.ZodOptional<z.ZodString>;
2264
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2265
- label?: string | undefined;
2266
- link?: string | undefined;
2267
- prelabel?: string | undefined;
2268
- postlabel?: string | undefined;
2269
- }, {
2270
- label?: string | undefined;
2271
- link?: string | undefined;
2272
- prelabel?: string | undefined;
2273
- postlabel?: string | undefined;
2274
- }>;
2275
- createSchema?: z.ZodObject<z.objectUtil.extendShape<{
2276
- label: z.ZodOptional<z.ZodString>;
2277
- link: z.ZodOptional<z.ZodString>;
2278
- prelabel: z.ZodOptional<z.ZodString>;
2279
- postlabel: z.ZodOptional<z.ZodString>;
2280
- }, {
2281
- label: z.ZodString;
2282
- link: z.ZodString;
2283
- }>, "strip", z.ZodTypeAny, {
2284
- label: string;
2285
- link: string;
2286
- prelabel?: string | undefined;
2287
- postlabel?: string | undefined;
2288
- }, {
2289
- label: string;
2290
- link: string;
2291
- prelabel?: string | undefined;
2292
- postlabel?: string | undefined;
2293
- }> | undefined;
2294
- searchableFields?: ("label" | "link" | "prelabel" | "postlabel")[] | undefined;
2295
- mutual?: {
2296
- subscribes?: {
2297
- entityType: import("@monorise/base").Entity;
2298
- }[];
2299
- mutualSchema: undefined;
2300
- mutualFields: {
2301
- [key: string]: {
2302
- entityType: import("@monorise/base").Entity;
2303
- toMutualIds?: (context: any) => string[];
2304
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
2305
- };
2306
- };
2307
- prejoins?: {
2308
- mutualField: string;
2309
- targetEntityType: import("@monorise/base").Entity;
2310
- entityPaths: {
2311
- skipCache?: boolean;
2312
- entityType: import("@monorise/base").Entity;
2313
- processor?: (items: any[], context: Record<string, any>) => any;
2314
- }[];
2315
- }[];
2316
- } | undefined;
2317
- effect?: ((schema: z.ZodObject<z.objectUtil.extendShape<{
2318
- label: z.ZodOptional<z.ZodString>;
2319
- link: z.ZodOptional<z.ZodString>;
2320
- prelabel: z.ZodOptional<z.ZodString>;
2321
- postlabel: z.ZodOptional<z.ZodString>;
2322
- }, {
2323
- label: z.ZodString;
2324
- link: z.ZodString;
2325
- }>, "strip", z.ZodTypeAny, {
2326
- label: string;
2327
- link: string;
2328
- prelabel?: string | undefined;
2329
- postlabel?: string | undefined;
2330
- }, {
2331
- label: string;
2332
- link: string;
2333
- prelabel?: string | undefined;
2334
- postlabel?: string | undefined;
2335
- }>) => z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
2336
- label: z.ZodOptional<z.ZodString>;
2337
- link: z.ZodOptional<z.ZodString>;
2338
- prelabel: z.ZodOptional<z.ZodString>;
2339
- postlabel: z.ZodOptional<z.ZodString>;
2340
- }, {
2341
- label: z.ZodString;
2342
- link: z.ZodString;
2343
- }>, "strip", z.ZodTypeAny, {
2344
- label: string;
2345
- link: string;
2346
- prelabel?: string | undefined;
2347
- postlabel?: string | undefined;
2348
- }, {
2349
- label: string;
2350
- link: string;
2351
- prelabel?: string | undefined;
2352
- postlabel?: string | undefined;
2353
- }>, {
2354
- label: string;
2355
- link: string;
2356
- prelabel?: string | undefined;
2357
- postlabel?: string | undefined;
2358
- }, {
2359
- label: string;
2360
- link: string;
2361
- prelabel?: string | undefined;
2362
- postlabel?: string | undefined;
2363
- }>) | undefined;
2364
- tags?: {
2365
- name: string;
2366
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
2367
- group?: string;
2368
- sortValue?: string;
2369
- }[];
2370
- }[] | undefined;
2371
- };
2372
- video: {
2373
- finalSchema: z.ZodObject<z.objectUtil.extendShape<{
2374
- title: z.ZodOptional<z.ZodString>;
2375
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2376
- additionalFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2377
- type: z.ZodString;
2378
- id: z.ZodString;
2379
- content: z.ZodAny;
2380
- }, "strip", z.ZodTypeAny, {
2381
- id: string;
2382
- type: string;
2383
- content?: any;
2384
- }, {
2385
- id: string;
2386
- type: string;
2387
- content?: any;
2388
- }>, "many">>>;
2389
- keyTakeaway: z.ZodOptional<z.ZodString>;
2390
- remark: z.ZodOptional<z.ZodString>;
2391
- duration: z.ZodOptional<z.ZodNumber>;
2392
- }, {
2393
- title: z.ZodString;
2394
- }>, "strip", z.ZodTypeAny, {
2395
- title: string;
2396
- remark?: string | undefined;
2397
- categories?: string[] | undefined;
2398
- duration?: number | undefined;
2399
- additionalFiles?: {
2400
- id: string;
2401
- type: string;
2402
- content?: any;
2403
- }[] | undefined;
2404
- keyTakeaway?: string | undefined;
2405
- }, {
2406
- title: string;
2407
- remark?: string | undefined;
2408
- categories?: string[] | undefined;
2409
- duration?: number | undefined;
2410
- additionalFiles?: {
2411
- id: string;
2412
- type: string;
2413
- content?: any;
2414
- }[] | undefined;
2415
- keyTakeaway?: string | undefined;
2416
- }> | z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
2417
- title: z.ZodOptional<z.ZodString>;
2418
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2419
- additionalFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2420
- type: z.ZodString;
2421
- id: z.ZodString;
2422
- content: z.ZodAny;
2423
- }, "strip", z.ZodTypeAny, {
2424
- id: string;
2425
- type: string;
2426
- content?: any;
2427
- }, {
2428
- id: string;
2429
- type: string;
2430
- content?: any;
2431
- }>, "many">>>;
2432
- keyTakeaway: z.ZodOptional<z.ZodString>;
2433
- remark: z.ZodOptional<z.ZodString>;
2434
- duration: z.ZodOptional<z.ZodNumber>;
2435
- }, {
2436
- title: z.ZodString;
2437
- }>, "strip", z.ZodTypeAny, {
2438
- title: string;
2439
- remark?: string | undefined;
2440
- categories?: string[] | undefined;
2441
- duration?: number | undefined;
2442
- additionalFiles?: {
2443
- id: string;
2444
- type: string;
2445
- content?: any;
2446
- }[] | undefined;
2447
- keyTakeaway?: string | undefined;
2448
- }, {
2449
- title: string;
2450
- remark?: string | undefined;
2451
- categories?: string[] | undefined;
2452
- duration?: number | undefined;
2453
- additionalFiles?: {
2454
- id: string;
2455
- type: string;
2456
- content?: any;
2457
- }[] | undefined;
2458
- keyTakeaway?: string | undefined;
2459
- }>, {
2460
- title: string;
2461
- remark?: string | undefined;
2462
- categories?: string[] | undefined;
2463
- duration?: number | undefined;
2464
- additionalFiles?: {
2465
- id: string;
2466
- type: string;
2467
- content?: any;
2468
- }[] | undefined;
2469
- keyTakeaway?: string | undefined;
2470
- }, {
2471
- title: string;
2472
- remark?: string | undefined;
2473
- categories?: string[] | undefined;
2474
- duration?: number | undefined;
2475
- additionalFiles?: {
2476
- id: string;
2477
- type: string;
2478
- content?: any;
2479
- }[] | undefined;
2480
- keyTakeaway?: string | undefined;
2481
- }>;
2482
- name: string;
2483
- displayName: string;
2484
- authMethod?: {
2485
- email: {
2486
- tokenExpiresIn: number;
2487
- };
2488
- };
2489
- baseSchema: z.ZodObject<{
2490
- title: z.ZodOptional<z.ZodString>;
2491
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2492
- additionalFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2493
- type: z.ZodString;
2494
- id: z.ZodString;
2495
- content: z.ZodAny;
2496
- }, "strip", z.ZodTypeAny, {
2497
- id: string;
2498
- type: string;
2499
- content?: any;
2500
- }, {
2501
- id: string;
2502
- type: string;
2503
- content?: any;
2504
- }>, "many">>>;
2505
- keyTakeaway: z.ZodOptional<z.ZodString>;
2506
- remark: z.ZodOptional<z.ZodString>;
2507
- duration: z.ZodOptional<z.ZodNumber>;
2508
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2509
- remark?: string | undefined;
2510
- title?: string | undefined;
2511
- categories?: string[] | undefined;
2512
- duration?: number | undefined;
2513
- additionalFiles?: {
2514
- id: string;
2515
- type: string;
2516
- content?: any;
2517
- }[] | undefined;
2518
- keyTakeaway?: string | undefined;
2519
- }, {
2520
- remark?: string | undefined;
2521
- title?: string | undefined;
2522
- categories?: string[] | undefined;
2523
- duration?: number | undefined;
2524
- additionalFiles?: {
2525
- id: string;
2526
- type: string;
2527
- content?: any;
2528
- }[] | undefined;
2529
- keyTakeaway?: string | undefined;
2530
- }>;
2531
- createSchema?: z.ZodObject<z.objectUtil.extendShape<{
2532
- title: z.ZodOptional<z.ZodString>;
2533
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2534
- additionalFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2535
- type: z.ZodString;
2536
- id: z.ZodString;
2537
- content: z.ZodAny;
2538
- }, "strip", z.ZodTypeAny, {
2539
- id: string;
2540
- type: string;
2541
- content?: any;
2542
- }, {
2543
- id: string;
2544
- type: string;
2545
- content?: any;
2546
- }>, "many">>>;
2547
- keyTakeaway: z.ZodOptional<z.ZodString>;
2548
- remark: z.ZodOptional<z.ZodString>;
2549
- duration: z.ZodOptional<z.ZodNumber>;
2550
- }, {
2551
- title: z.ZodString;
2552
- }>, "strip", z.ZodTypeAny, {
2553
- title: string;
2554
- remark?: string | undefined;
2555
- categories?: string[] | undefined;
2556
- duration?: number | undefined;
2557
- additionalFiles?: {
2558
- id: string;
2559
- type: string;
2560
- content?: any;
2561
- }[] | undefined;
2562
- keyTakeaway?: string | undefined;
2563
- }, {
2564
- title: string;
2565
- remark?: string | undefined;
2566
- categories?: string[] | undefined;
2567
- duration?: number | undefined;
2568
- additionalFiles?: {
2569
- id: string;
2570
- type: string;
2571
- content?: any;
2572
- }[] | undefined;
2573
- keyTakeaway?: string | undefined;
2574
- }> | undefined;
2575
- searchableFields?: ("remark" | "title" | "categories" | "duration" | "additionalFiles" | "keyTakeaway")[] | undefined;
2576
- mutual?: {
2577
- subscribes?: {
2578
- entityType: import("@monorise/base").Entity;
2579
- }[];
2580
- mutualSchema: undefined;
2581
- mutualFields: {
2582
- [key: string]: {
2583
- entityType: import("@monorise/base").Entity;
2584
- toMutualIds?: (context: any) => string[];
2585
- mutualDataProcessor?: (mutualIds: string[], currentMutual: any, customContext?: Record<string, any>) => Record<string, any>;
2586
- };
2587
- };
2588
- prejoins?: {
2589
- mutualField: string;
2590
- targetEntityType: import("@monorise/base").Entity;
2591
- entityPaths: {
2592
- skipCache?: boolean;
2593
- entityType: import("@monorise/base").Entity;
2594
- processor?: (items: any[], context: Record<string, any>) => any;
2595
- }[];
2596
- }[];
2597
- } | undefined;
2598
- effect?: ((schema: z.ZodObject<z.objectUtil.extendShape<{
2599
- title: z.ZodOptional<z.ZodString>;
2600
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2601
- additionalFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2602
- type: z.ZodString;
2603
- id: z.ZodString;
2604
- content: z.ZodAny;
2605
- }, "strip", z.ZodTypeAny, {
2606
- id: string;
2607
- type: string;
2608
- content?: any;
2609
- }, {
2610
- id: string;
2611
- type: string;
2612
- content?: any;
2613
- }>, "many">>>;
2614
- keyTakeaway: z.ZodOptional<z.ZodString>;
2615
- remark: z.ZodOptional<z.ZodString>;
2616
- duration: z.ZodOptional<z.ZodNumber>;
2617
- }, {
2618
- title: z.ZodString;
2619
- }>, "strip", z.ZodTypeAny, {
2620
- title: string;
2621
- remark?: string | undefined;
2622
- categories?: string[] | undefined;
2623
- duration?: number | undefined;
2624
- additionalFiles?: {
2625
- id: string;
2626
- type: string;
2627
- content?: any;
2628
- }[] | undefined;
2629
- keyTakeaway?: string | undefined;
2630
- }, {
2631
- title: string;
2632
- remark?: string | undefined;
2633
- categories?: string[] | undefined;
2634
- duration?: number | undefined;
2635
- additionalFiles?: {
2636
- id: string;
2637
- type: string;
2638
- content?: any;
2639
- }[] | undefined;
2640
- keyTakeaway?: string | undefined;
2641
- }>) => z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
2642
- title: z.ZodOptional<z.ZodString>;
2643
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2644
- additionalFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2645
- type: z.ZodString;
2646
- id: z.ZodString;
2647
- content: z.ZodAny;
2648
- }, "strip", z.ZodTypeAny, {
2649
- id: string;
2650
- type: string;
2651
- content?: any;
2652
- }, {
2653
- id: string;
2654
- type: string;
2655
- content?: any;
2656
- }>, "many">>>;
2657
- keyTakeaway: z.ZodOptional<z.ZodString>;
2658
- remark: z.ZodOptional<z.ZodString>;
2659
- duration: z.ZodOptional<z.ZodNumber>;
2660
- }, {
2661
- title: z.ZodString;
2662
- }>, "strip", z.ZodTypeAny, {
2663
- title: string;
2664
- remark?: string | undefined;
2665
- categories?: string[] | undefined;
2666
- duration?: number | undefined;
2667
- additionalFiles?: {
2668
- id: string;
2669
- type: string;
2670
- content?: any;
2671
- }[] | undefined;
2672
- keyTakeaway?: string | undefined;
2673
- }, {
2674
- title: string;
2675
- remark?: string | undefined;
2676
- categories?: string[] | undefined;
2677
- duration?: number | undefined;
2678
- additionalFiles?: {
2679
- id: string;
2680
- type: string;
2681
- content?: any;
2682
- }[] | undefined;
2683
- keyTakeaway?: string | undefined;
2684
- }>, {
2685
- title: string;
2686
- remark?: string | undefined;
2687
- categories?: string[] | undefined;
2688
- duration?: number | undefined;
2689
- additionalFiles?: {
2690
- id: string;
2691
- type: string;
2692
- content?: any;
2693
- }[] | undefined;
2694
- keyTakeaway?: string | undefined;
2695
- }, {
2696
- title: string;
2697
- remark?: string | undefined;
2698
- categories?: string[] | undefined;
2699
- duration?: number | undefined;
2700
- additionalFiles?: {
2701
- id: string;
2702
- type: string;
2703
- content?: any;
2704
- }[] | undefined;
2705
- keyTakeaway?: string | undefined;
2706
- }>) | undefined;
2707
- tags?: {
2708
- name: string;
2709
- processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
2710
- group?: string;
2711
- sortValue?: string;
2712
- }[];
2713
- }[] | undefined;
2714
- };
2715
- };
2716
- declare const FormSchema: {
2717
- admin: z.ZodObject<z.objectUtil.extendShape<{
2718
- email: z.ZodOptional<z.ZodString>;
2719
- displayName: z.ZodOptional<z.ZodString>;
2720
- }, {
2721
- email: z.ZodString;
2722
- displayName: z.ZodString;
2723
- }>, "strip", z.ZodTypeAny, {
2724
- email: string;
2725
- displayName: string;
2726
- }, {
2727
- email: string;
2728
- displayName: string;
2729
- }> | z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
2730
- email: z.ZodOptional<z.ZodString>;
2731
- displayName: z.ZodOptional<z.ZodString>;
2732
- }, {
2733
- email: z.ZodString;
2734
- displayName: z.ZodString;
2735
- }>, "strip", z.ZodTypeAny, {
2736
- email: string;
2737
- displayName: string;
2738
- }, {
2739
- email: string;
2740
- displayName: string;
2741
- }>, {
2742
- email: string;
2743
- displayName: string;
2744
- }, {
2745
- email: string;
2746
- displayName: string;
2747
- }>;
2748
- chapter: z.ZodObject<{
2749
- learningActivityOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2750
- referenceOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2751
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2752
- } & {
2753
- description: z.ZodOptional<z.ZodString>;
2754
- discussionLink: z.ZodOptional<z.ZodString>;
2755
- title: z.ZodOptional<z.ZodString>;
2756
- learningActivityDescription: z.ZodOptional<z.ZodString>;
2757
- body: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2758
- type: z.ZodString;
2759
- id: z.ZodString;
2760
- content: z.ZodAny;
2761
- }, "strip", z.ZodTypeAny, {
2762
- id: string;
2763
- type: string;
2764
- content?: any;
2765
- }, {
2766
- id: string;
2767
- type: string;
2768
- content?: any;
2769
- }>, "many">>>;
2770
- progress: z.ZodOptional<z.ZodNumber>;
2771
- } & {
2772
- remark: z.ZodString;
2773
- type: z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>;
2774
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2775
- type: import("./chapter").CHAPTER_TYPE;
2776
- remark: string;
2777
- body?: {
2778
- id: string;
2779
- type: string;
2780
- content?: any;
2781
- }[] | undefined;
2782
- description?: string | undefined;
2783
- discussionLink?: string | undefined;
2784
- title?: string | undefined;
2785
- learningActivityDescription?: string | undefined;
2786
- progress?: number | undefined;
2787
- learningActivityOrders?: string[] | undefined;
2788
- referenceOrders?: string[] | undefined;
2789
- videos?: string[] | undefined;
2790
- }, {
2791
- type: import("./chapter").CHAPTER_TYPE;
2792
- remark: string;
2793
- body?: {
2794
- id: string;
2795
- type: string;
2796
- content?: any;
2797
- }[] | undefined;
2798
- description?: string | undefined;
2799
- discussionLink?: string | undefined;
2800
- title?: string | undefined;
2801
- learningActivityDescription?: string | undefined;
2802
- progress?: number | undefined;
2803
- learningActivityOrders?: string[] | undefined;
2804
- referenceOrders?: string[] | undefined;
2805
- videos?: string[] | undefined;
2806
- }> | z.ZodEffects<z.ZodObject<{
2807
- learningActivityOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2808
- referenceOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2809
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2810
- } & {
2811
- description: z.ZodOptional<z.ZodString>;
2812
- discussionLink: z.ZodOptional<z.ZodString>;
2813
- title: z.ZodOptional<z.ZodString>;
2814
- learningActivityDescription: z.ZodOptional<z.ZodString>;
2815
- body: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2816
- type: z.ZodString;
2817
- id: z.ZodString;
2818
- content: z.ZodAny;
2819
- }, "strip", z.ZodTypeAny, {
2820
- id: string;
2821
- type: string;
2822
- content?: any;
2823
- }, {
2824
- id: string;
2825
- type: string;
2826
- content?: any;
2827
- }>, "many">>>;
2828
- progress: z.ZodOptional<z.ZodNumber>;
2829
- } & {
2830
- remark: z.ZodString;
2831
- type: z.ZodNativeEnum<typeof import("./chapter").CHAPTER_TYPE>;
2832
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2833
- type: import("./chapter").CHAPTER_TYPE;
2834
- remark: string;
2835
- body?: {
2836
- id: string;
2837
- type: string;
2838
- content?: any;
2839
- }[] | undefined;
2840
- description?: string | undefined;
2841
- discussionLink?: string | undefined;
2842
- title?: string | undefined;
2843
- learningActivityDescription?: string | undefined;
2844
- progress?: number | undefined;
2845
- learningActivityOrders?: string[] | undefined;
2846
- referenceOrders?: string[] | undefined;
2847
- videos?: string[] | undefined;
2848
- }, {
2849
- type: import("./chapter").CHAPTER_TYPE;
2850
- remark: string;
2851
- body?: {
2852
- id: string;
2853
- type: string;
2854
- content?: any;
2855
- }[] | undefined;
2856
- description?: string | undefined;
2857
- discussionLink?: string | undefined;
2858
- title?: string | undefined;
2859
- learningActivityDescription?: string | undefined;
2860
- progress?: number | undefined;
2861
- learningActivityOrders?: string[] | undefined;
2862
- referenceOrders?: string[] | undefined;
2863
- videos?: string[] | undefined;
2864
- }>, {
2865
- type: import("./chapter").CHAPTER_TYPE;
2866
- remark: string;
2867
- body?: {
2868
- id: string;
2869
- type: string;
2870
- content?: any;
2871
- }[] | undefined;
2872
- description?: string | undefined;
2873
- discussionLink?: string | undefined;
2874
- title?: string | undefined;
2875
- learningActivityDescription?: string | undefined;
2876
- progress?: number | undefined;
2877
- learningActivityOrders?: string[] | undefined;
2878
- referenceOrders?: string[] | undefined;
2879
- videos?: string[] | undefined;
2880
- }, {
2881
- type: import("./chapter").CHAPTER_TYPE;
2882
- remark: string;
2883
- body?: {
2884
- id: string;
2885
- type: string;
2886
- content?: any;
2887
- }[] | undefined;
2888
- description?: string | undefined;
2889
- discussionLink?: string | undefined;
2890
- title?: string | undefined;
2891
- learningActivityDescription?: string | undefined;
2892
- progress?: number | undefined;
2893
- learningActivityOrders?: string[] | undefined;
2894
- referenceOrders?: string[] | undefined;
2895
- videos?: string[] | undefined;
2896
- }>;
2897
- course: z.ZodObject<{
2898
- moduleOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2899
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2900
- chapters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2901
- learningActivities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2902
- } & {
2903
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2904
- duration: z.ZodOptional<z.ZodNumber>;
2905
- description: z.ZodOptional<z.ZodString>;
2906
- learningOutcomes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2907
- infographics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2908
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2909
- } & {
2910
- title: z.ZodString;
2911
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2912
- title: string;
2913
- tags?: string[] | undefined;
2914
- description?: string | undefined;
2915
- videos?: string[] | undefined;
2916
- categories?: string[] | undefined;
2917
- duration?: number | undefined;
2918
- learningOutcomes?: string[] | undefined;
2919
- infographics?: string[] | undefined;
2920
- moduleOrders?: string[] | undefined;
2921
- chapters?: string[] | undefined;
2922
- learningActivities?: string[] | undefined;
2923
- }, {
2924
- title: string;
2925
- tags?: string[] | undefined;
2926
- description?: string | undefined;
2927
- videos?: string[] | undefined;
2928
- categories?: string[] | undefined;
2929
- duration?: number | undefined;
2930
- learningOutcomes?: string[] | undefined;
2931
- infographics?: string[] | undefined;
2932
- moduleOrders?: string[] | undefined;
2933
- chapters?: string[] | undefined;
2934
- learningActivities?: string[] | undefined;
2935
- }> | z.ZodEffects<z.ZodObject<{
2936
- moduleOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2937
- videos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2938
- chapters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2939
- learningActivities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2940
- } & {
2941
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2942
- duration: z.ZodOptional<z.ZodNumber>;
2943
- description: z.ZodOptional<z.ZodString>;
2944
- learningOutcomes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2945
- infographics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2946
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2947
- } & {
2948
- title: z.ZodString;
2949
- }, z.UnknownKeysParam, z.ZodTypeAny, {
2950
- title: string;
2951
- tags?: string[] | undefined;
2952
- description?: string | undefined;
2953
- videos?: string[] | undefined;
2954
- categories?: string[] | undefined;
2955
- duration?: number | undefined;
2956
- learningOutcomes?: string[] | undefined;
2957
- infographics?: string[] | undefined;
2958
- moduleOrders?: string[] | undefined;
2959
- chapters?: string[] | undefined;
2960
- learningActivities?: string[] | undefined;
2961
- }, {
2962
- title: string;
2963
- tags?: string[] | undefined;
2964
- description?: string | undefined;
2965
- videos?: string[] | undefined;
2966
- categories?: string[] | undefined;
2967
- duration?: number | undefined;
2968
- learningOutcomes?: string[] | undefined;
2969
- infographics?: string[] | undefined;
2970
- moduleOrders?: string[] | undefined;
2971
- chapters?: string[] | undefined;
2972
- learningActivities?: string[] | undefined;
2973
- }>, {
2974
- title: string;
2975
- tags?: string[] | undefined;
2976
- description?: string | undefined;
2977
- videos?: string[] | undefined;
2978
- categories?: string[] | undefined;
2979
- duration?: number | undefined;
2980
- learningOutcomes?: string[] | undefined;
2981
- infographics?: string[] | undefined;
2982
- moduleOrders?: string[] | undefined;
2983
- chapters?: string[] | undefined;
2984
- learningActivities?: string[] | undefined;
2985
- }, {
2986
- title: string;
2987
- tags?: string[] | undefined;
2988
- description?: string | undefined;
2989
- videos?: string[] | undefined;
2990
- categories?: string[] | undefined;
2991
- duration?: number | undefined;
2992
- learningOutcomes?: string[] | undefined;
2993
- infographics?: string[] | undefined;
2994
- moduleOrders?: string[] | undefined;
2995
- chapters?: string[] | undefined;
2996
- learningActivities?: string[] | undefined;
2997
- }>;
2998
- learner: z.ZodObject<{
2999
- organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3000
- } & {
3001
- jobTitle: z.ZodOptional<z.ZodString>;
3002
- locatedCountry: z.ZodOptional<z.ZodString>;
3003
- educationLevel: z.ZodOptional<z.ZodString>;
3004
- school: z.ZodOptional<z.ZodString>;
3005
- major: z.ZodOptional<z.ZodString>;
3006
- expiryType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>>;
3007
- expiryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3008
- subOrganizationId: z.ZodOptional<z.ZodString>;
3009
- acceptedDisclaimer: z.ZodOptional<z.ZodBoolean>;
3010
- } & {
3011
- email: z.ZodString;
3012
- displayName: z.ZodString;
3013
- firstName: z.ZodString;
3014
- lastName: z.ZodString;
3015
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3016
- email: string;
3017
- displayName: string;
3018
- firstName: string;
3019
- lastName: string;
3020
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
3021
- jobTitle?: string | undefined;
3022
- locatedCountry?: string | undefined;
3023
- educationLevel?: string | undefined;
3024
- school?: string | undefined;
3025
- major?: string | undefined;
3026
- expiryDate?: string | null | undefined;
3027
- subOrganizationId?: string | undefined;
3028
- acceptedDisclaimer?: boolean | undefined;
3029
- organizations?: string[] | undefined;
3030
- }, {
3031
- email: string;
3032
- displayName: string;
3033
- firstName: string;
3034
- lastName: string;
3035
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
3036
- jobTitle?: string | undefined;
3037
- locatedCountry?: string | undefined;
3038
- educationLevel?: string | undefined;
3039
- school?: string | undefined;
3040
- major?: string | undefined;
3041
- expiryDate?: string | null | undefined;
3042
- subOrganizationId?: string | undefined;
3043
- acceptedDisclaimer?: boolean | undefined;
3044
- organizations?: string[] | undefined;
3045
- }> | z.ZodEffects<z.ZodObject<{
3046
- organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3047
- } & {
3048
- jobTitle: z.ZodOptional<z.ZodString>;
3049
- locatedCountry: z.ZodOptional<z.ZodString>;
3050
- educationLevel: z.ZodOptional<z.ZodString>;
3051
- school: z.ZodOptional<z.ZodString>;
3052
- major: z.ZodOptional<z.ZodString>;
3053
- expiryType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>>;
3054
- expiryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3055
- subOrganizationId: z.ZodOptional<z.ZodString>;
3056
- acceptedDisclaimer: z.ZodOptional<z.ZodBoolean>;
3057
- } & {
3058
- email: z.ZodString;
3059
- displayName: z.ZodString;
3060
- firstName: z.ZodString;
3061
- lastName: z.ZodString;
3062
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3063
- email: string;
3064
- displayName: string;
3065
- firstName: string;
3066
- lastName: string;
3067
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
3068
- jobTitle?: string | undefined;
3069
- locatedCountry?: string | undefined;
3070
- educationLevel?: string | undefined;
3071
- school?: string | undefined;
3072
- major?: string | undefined;
3073
- expiryDate?: string | null | undefined;
3074
- subOrganizationId?: string | undefined;
3075
- acceptedDisclaimer?: boolean | undefined;
3076
- organizations?: string[] | undefined;
3077
- }, {
3078
- email: string;
3079
- displayName: string;
3080
- firstName: string;
3081
- lastName: string;
3082
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
3083
- jobTitle?: string | undefined;
3084
- locatedCountry?: string | undefined;
3085
- educationLevel?: string | undefined;
3086
- school?: string | undefined;
3087
- major?: string | undefined;
3088
- expiryDate?: string | null | undefined;
3089
- subOrganizationId?: string | undefined;
3090
- acceptedDisclaimer?: boolean | undefined;
3091
- organizations?: string[] | undefined;
3092
- }>, {
3093
- email: string;
3094
- displayName: string;
3095
- firstName: string;
3096
- lastName: string;
3097
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
3098
- jobTitle?: string | undefined;
3099
- locatedCountry?: string | undefined;
3100
- educationLevel?: string | undefined;
3101
- school?: string | undefined;
3102
- major?: string | undefined;
3103
- expiryDate?: string | null | undefined;
3104
- subOrganizationId?: string | undefined;
3105
- acceptedDisclaimer?: boolean | undefined;
3106
- organizations?: string[] | undefined;
3107
- }, {
3108
- email: string;
3109
- displayName: string;
3110
- firstName: string;
3111
- lastName: string;
3112
- expiryType?: import("./organization").EXPIRY_TYPE | null | undefined;
3113
- jobTitle?: string | undefined;
3114
- locatedCountry?: string | undefined;
3115
- educationLevel?: string | undefined;
3116
- school?: string | undefined;
3117
- major?: string | undefined;
3118
- expiryDate?: string | null | undefined;
3119
- subOrganizationId?: string | undefined;
3120
- acceptedDisclaimer?: boolean | undefined;
3121
- organizations?: string[] | undefined;
3122
- }>;
3123
- "learning-activity": z.ZodObject<{
3124
- activityType: z.ZodEnum<["REFLECTION", "QUIZ", "FILE_UPLOAD"]>;
3125
- questionType: z.ZodOptional<z.ZodEnum<["TEXT", "RADIO", "CHECKBOX"]>>;
3126
- question: z.ZodString;
3127
- explanation: z.ZodOptional<z.ZodString>;
3128
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
3129
- label: z.ZodString;
3130
- isCorrect: z.ZodBoolean;
3131
- }, "strip", z.ZodTypeAny, {
3132
- label: string;
3133
- isCorrect: boolean;
3134
- }, {
3135
- label: string;
3136
- isCorrect: boolean;
3137
- }>, "many">>;
3138
- remark: z.ZodOptional<z.ZodString>;
3139
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3140
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
3141
- question: string;
3142
- options?: {
3143
- label: string;
3144
- isCorrect: boolean;
3145
- }[] | undefined;
3146
- remark?: string | undefined;
3147
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
3148
- explanation?: string | undefined;
3149
- }, {
3150
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
3151
- question: string;
3152
- options?: {
3153
- label: string;
3154
- isCorrect: boolean;
3155
- }[] | undefined;
3156
- remark?: string | undefined;
3157
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
3158
- explanation?: string | undefined;
3159
- }> | z.ZodEffects<z.ZodObject<{
3160
- activityType: z.ZodEnum<["REFLECTION", "QUIZ", "FILE_UPLOAD"]>;
3161
- questionType: z.ZodOptional<z.ZodEnum<["TEXT", "RADIO", "CHECKBOX"]>>;
3162
- question: z.ZodString;
3163
- explanation: z.ZodOptional<z.ZodString>;
3164
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
3165
- label: z.ZodString;
3166
- isCorrect: z.ZodBoolean;
3167
- }, "strip", z.ZodTypeAny, {
3168
- label: string;
3169
- isCorrect: boolean;
3170
- }, {
3171
- label: string;
3172
- isCorrect: boolean;
3173
- }>, "many">>;
3174
- remark: z.ZodOptional<z.ZodString>;
3175
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3176
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
3177
- question: string;
3178
- options?: {
3179
- label: string;
3180
- isCorrect: boolean;
3181
- }[] | undefined;
3182
- remark?: string | undefined;
3183
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
3184
- explanation?: string | undefined;
3185
- }, {
3186
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
3187
- question: string;
3188
- options?: {
3189
- label: string;
3190
- isCorrect: boolean;
3191
- }[] | undefined;
3192
- remark?: string | undefined;
3193
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
3194
- explanation?: string | undefined;
3195
- }>, {
3196
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
3197
- question: string;
3198
- options?: {
3199
- label: string;
3200
- isCorrect: boolean;
3201
- }[] | undefined;
3202
- remark?: string | undefined;
3203
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
3204
- explanation?: string | undefined;
3205
- }, {
3206
- activityType: "REFLECTION" | "QUIZ" | "FILE_UPLOAD";
3207
- question: string;
3208
- options?: {
3209
- label: string;
3210
- isCorrect: boolean;
3211
- }[] | undefined;
3212
- remark?: string | undefined;
3213
- questionType?: "TEXT" | "RADIO" | "CHECKBOX" | undefined;
3214
- explanation?: string | undefined;
3215
- }>;
3216
- "learning-journey-config": z.ZodObject<{
3217
- courseOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3218
- } & {}, z.UnknownKeysParam, z.ZodTypeAny, {
3219
- courseOrders?: string[] | undefined;
3220
- }, {
3221
- courseOrders?: string[] | undefined;
3222
- }> | z.ZodEffects<z.ZodObject<{
3223
- courseOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3224
- } & {}, z.UnknownKeysParam, z.ZodTypeAny, {
3225
- courseOrders?: string[] | undefined;
3226
- }, {
3227
- courseOrders?: string[] | undefined;
3228
- }>, {
3229
- courseOrders?: string[] | undefined;
3230
- }, {
3231
- courseOrders?: string[] | undefined;
3232
- }>;
3233
- module: z.ZodObject<{
3234
- chapterOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3235
- } & {
3236
- description: z.ZodOptional<z.ZodString>;
3237
- shortDescription: z.ZodOptional<z.ZodString>;
3238
- remark: z.ZodOptional<z.ZodString>;
3239
- } & {
3240
- title: z.ZodString;
3241
- type: z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>;
3242
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3243
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
3244
- title: string;
3245
- description?: string | undefined;
3246
- remark?: string | undefined;
3247
- shortDescription?: string | undefined;
3248
- chapterOrders?: string[] | undefined;
3249
- }, {
3250
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
3251
- title: string;
3252
- description?: string | undefined;
3253
- remark?: string | undefined;
3254
- shortDescription?: string | undefined;
3255
- chapterOrders?: string[] | undefined;
3256
- }> | z.ZodEffects<z.ZodObject<{
3257
- chapterOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3258
- } & {
3259
- description: z.ZodOptional<z.ZodString>;
3260
- shortDescription: z.ZodOptional<z.ZodString>;
3261
- remark: z.ZodOptional<z.ZodString>;
3262
- } & {
3263
- title: z.ZodString;
3264
- type: z.ZodEnum<["MODULE", "TOUCHPOINT", "CHECKPOINT"]>;
3265
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3266
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
3267
- title: string;
3268
- description?: string | undefined;
3269
- remark?: string | undefined;
3270
- shortDescription?: string | undefined;
3271
- chapterOrders?: string[] | undefined;
3272
- }, {
3273
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
3274
- title: string;
3275
- description?: string | undefined;
3276
- remark?: string | undefined;
3277
- shortDescription?: string | undefined;
3278
- chapterOrders?: string[] | undefined;
3279
- }>, {
3280
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
3281
- title: string;
3282
- description?: string | undefined;
3283
- remark?: string | undefined;
3284
- shortDescription?: string | undefined;
3285
- chapterOrders?: string[] | undefined;
3286
- }, {
3287
- type: "TOUCHPOINT" | "CHECKPOINT" | "MODULE";
3288
- title: string;
3289
- description?: string | undefined;
3290
- remark?: string | undefined;
3291
- shortDescription?: string | undefined;
3292
- chapterOrders?: string[] | undefined;
3293
- }>;
3294
- organization: z.ZodObject<{
3295
- organizationOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3296
- } & {
3297
- licenseCount: z.ZodOptional<z.ZodNumber>;
3298
- allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
3299
- isPrimary: z.ZodOptional<z.ZodBoolean>;
3300
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3301
- selfRegistrationDisclaimer: z.ZodOptional<z.ZodString>;
3302
- welcomeMessage: z.ZodOptional<z.ZodString>;
3303
- pathwayWelcomeMessage: z.ZodOptional<z.ZodString>;
3304
- expiryType: z.ZodOptional<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>;
3305
- orgExpiryDate: z.ZodOptional<z.ZodString>;
3306
- individualAccessDuration: z.ZodOptional<z.ZodNumber>;
3307
- } & {
3308
- name: z.ZodString;
3309
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3310
- name: string;
3311
- licenseCount?: number | undefined;
3312
- allowSelfRegistration?: boolean | undefined;
3313
- isPrimary?: boolean | undefined;
3314
- domains?: string[] | undefined;
3315
- selfRegistrationDisclaimer?: string | undefined;
3316
- welcomeMessage?: string | undefined;
3317
- pathwayWelcomeMessage?: string | undefined;
3318
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
3319
- orgExpiryDate?: string | undefined;
3320
- individualAccessDuration?: number | undefined;
3321
- organizationOrders?: string[] | undefined;
3322
- }, {
3323
- name: string;
3324
- licenseCount?: number | undefined;
3325
- allowSelfRegistration?: boolean | undefined;
3326
- isPrimary?: boolean | undefined;
3327
- domains?: string[] | undefined;
3328
- selfRegistrationDisclaimer?: string | undefined;
3329
- welcomeMessage?: string | undefined;
3330
- pathwayWelcomeMessage?: string | undefined;
3331
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
3332
- orgExpiryDate?: string | undefined;
3333
- individualAccessDuration?: number | undefined;
3334
- organizationOrders?: string[] | undefined;
3335
- }> | z.ZodEffects<z.ZodObject<{
3336
- organizationOrders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3337
- } & {
3338
- licenseCount: z.ZodOptional<z.ZodNumber>;
3339
- allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
3340
- isPrimary: z.ZodOptional<z.ZodBoolean>;
3341
- domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3342
- selfRegistrationDisclaimer: z.ZodOptional<z.ZodString>;
3343
- welcomeMessage: z.ZodOptional<z.ZodString>;
3344
- pathwayWelcomeMessage: z.ZodOptional<z.ZodString>;
3345
- expiryType: z.ZodOptional<z.ZodNativeEnum<typeof import("./organization").EXPIRY_TYPE>>;
3346
- orgExpiryDate: z.ZodOptional<z.ZodString>;
3347
- individualAccessDuration: z.ZodOptional<z.ZodNumber>;
3348
- } & {
3349
- name: z.ZodString;
3350
- }, z.UnknownKeysParam, z.ZodTypeAny, {
3351
- name: string;
3352
- licenseCount?: number | undefined;
3353
- allowSelfRegistration?: boolean | undefined;
3354
- isPrimary?: boolean | undefined;
3355
- domains?: string[] | undefined;
3356
- selfRegistrationDisclaimer?: string | undefined;
3357
- welcomeMessage?: string | undefined;
3358
- pathwayWelcomeMessage?: string | undefined;
3359
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
3360
- orgExpiryDate?: string | undefined;
3361
- individualAccessDuration?: number | undefined;
3362
- organizationOrders?: string[] | undefined;
3363
- }, {
3364
- name: string;
3365
- licenseCount?: number | undefined;
3366
- allowSelfRegistration?: boolean | undefined;
3367
- isPrimary?: boolean | undefined;
3368
- domains?: string[] | undefined;
3369
- selfRegistrationDisclaimer?: string | undefined;
3370
- welcomeMessage?: string | undefined;
3371
- pathwayWelcomeMessage?: string | undefined;
3372
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
3373
- orgExpiryDate?: string | undefined;
3374
- individualAccessDuration?: number | undefined;
3375
- organizationOrders?: string[] | undefined;
3376
- }>, {
3377
- name: string;
3378
- licenseCount?: number | undefined;
3379
- allowSelfRegistration?: boolean | undefined;
3380
- isPrimary?: boolean | undefined;
3381
- domains?: string[] | undefined;
3382
- selfRegistrationDisclaimer?: string | undefined;
3383
- welcomeMessage?: string | undefined;
3384
- pathwayWelcomeMessage?: string | undefined;
3385
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
3386
- orgExpiryDate?: string | undefined;
3387
- individualAccessDuration?: number | undefined;
3388
- organizationOrders?: string[] | undefined;
3389
- }, {
3390
- name: string;
3391
- licenseCount?: number | undefined;
3392
- allowSelfRegistration?: boolean | undefined;
3393
- isPrimary?: boolean | undefined;
3394
- domains?: string[] | undefined;
3395
- selfRegistrationDisclaimer?: string | undefined;
3396
- welcomeMessage?: string | undefined;
3397
- pathwayWelcomeMessage?: string | undefined;
3398
- expiryType?: import("./organization").EXPIRY_TYPE | undefined;
3399
- orgExpiryDate?: string | undefined;
3400
- individualAccessDuration?: number | undefined;
3401
- organizationOrders?: string[] | undefined;
3402
- }>;
3403
- reference: z.ZodObject<z.objectUtil.extendShape<{
3404
- label: z.ZodOptional<z.ZodString>;
3405
- link: z.ZodOptional<z.ZodString>;
3406
- prelabel: z.ZodOptional<z.ZodString>;
3407
- postlabel: z.ZodOptional<z.ZodString>;
3408
- }, {
3409
- label: z.ZodString;
3410
- link: z.ZodString;
3411
- }>, "strip", z.ZodTypeAny, {
3412
- label: string;
3413
- link: string;
3414
- prelabel?: string | undefined;
3415
- postlabel?: string | undefined;
3416
- }, {
3417
- label: string;
3418
- link: string;
3419
- prelabel?: string | undefined;
3420
- postlabel?: string | undefined;
3421
- }> | z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
3422
- label: z.ZodOptional<z.ZodString>;
3423
- link: z.ZodOptional<z.ZodString>;
3424
- prelabel: z.ZodOptional<z.ZodString>;
3425
- postlabel: z.ZodOptional<z.ZodString>;
3426
- }, {
3427
- label: z.ZodString;
3428
- link: z.ZodString;
3429
- }>, "strip", z.ZodTypeAny, {
3430
- label: string;
3431
- link: string;
3432
- prelabel?: string | undefined;
3433
- postlabel?: string | undefined;
3434
- }, {
3435
- label: string;
3436
- link: string;
3437
- prelabel?: string | undefined;
3438
- postlabel?: string | undefined;
3439
- }>, {
3440
- label: string;
3441
- link: string;
3442
- prelabel?: string | undefined;
3443
- postlabel?: string | undefined;
3444
- }, {
3445
- label: string;
3446
- link: string;
3447
- prelabel?: string | undefined;
3448
- postlabel?: string | undefined;
3449
- }>;
3450
- video: z.ZodObject<z.objectUtil.extendShape<{
3451
- title: z.ZodOptional<z.ZodString>;
3452
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3453
- additionalFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
3454
- type: z.ZodString;
3455
- id: z.ZodString;
3456
- content: z.ZodAny;
3457
- }, "strip", z.ZodTypeAny, {
3458
- id: string;
3459
- type: string;
3460
- content?: any;
3461
- }, {
3462
- id: string;
3463
- type: string;
3464
- content?: any;
3465
- }>, "many">>>;
3466
- keyTakeaway: z.ZodOptional<z.ZodString>;
3467
- remark: z.ZodOptional<z.ZodString>;
3468
- duration: z.ZodOptional<z.ZodNumber>;
3469
- }, {
3470
- title: z.ZodString;
3471
- }>, "strip", z.ZodTypeAny, {
3472
- title: string;
3473
- remark?: string | undefined;
3474
- categories?: string[] | undefined;
3475
- duration?: number | undefined;
3476
- additionalFiles?: {
3477
- id: string;
3478
- type: string;
3479
- content?: any;
3480
- }[] | undefined;
3481
- keyTakeaway?: string | undefined;
3482
- }, {
3483
- title: string;
3484
- remark?: string | undefined;
3485
- categories?: string[] | undefined;
3486
- duration?: number | undefined;
3487
- additionalFiles?: {
3488
- id: string;
3489
- type: string;
3490
- content?: any;
3491
- }[] | undefined;
3492
- keyTakeaway?: string | undefined;
3493
- }> | z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
3494
- title: z.ZodOptional<z.ZodString>;
3495
- categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3496
- additionalFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
3497
- type: z.ZodString;
3498
- id: z.ZodString;
3499
- content: z.ZodAny;
3500
- }, "strip", z.ZodTypeAny, {
3501
- id: string;
3502
- type: string;
3503
- content?: any;
3504
- }, {
3505
- id: string;
3506
- type: string;
3507
- content?: any;
3508
- }>, "many">>>;
3509
- keyTakeaway: z.ZodOptional<z.ZodString>;
3510
- remark: z.ZodOptional<z.ZodString>;
3511
- duration: z.ZodOptional<z.ZodNumber>;
3512
- }, {
3513
- title: z.ZodString;
3514
- }>, "strip", z.ZodTypeAny, {
3515
- title: string;
3516
- remark?: string | undefined;
3517
- categories?: string[] | undefined;
3518
- duration?: number | undefined;
3519
- additionalFiles?: {
3520
- id: string;
3521
- type: string;
3522
- content?: any;
3523
- }[] | undefined;
3524
- keyTakeaway?: string | undefined;
3525
- }, {
3526
- title: string;
3527
- remark?: string | undefined;
3528
- categories?: string[] | undefined;
3529
- duration?: number | undefined;
3530
- additionalFiles?: {
3531
- id: string;
3532
- type: string;
3533
- content?: any;
3534
- }[] | undefined;
3535
- keyTakeaway?: string | undefined;
3536
- }>, {
3537
- title: string;
3538
- remark?: string | undefined;
3539
- categories?: string[] | undefined;
3540
- duration?: number | undefined;
3541
- additionalFiles?: {
3542
- id: string;
3543
- type: string;
3544
- content?: any;
3545
- }[] | undefined;
3546
- keyTakeaway?: string | undefined;
3547
- }, {
3548
- title: string;
3549
- remark?: string | undefined;
3550
- categories?: string[] | undefined;
3551
- duration?: number | undefined;
3552
- additionalFiles?: {
3553
- id: string;
3554
- type: string;
3555
- content?: any;
3556
- }[] | undefined;
3557
- keyTakeaway?: string | undefined;
3558
- }>;
3559
- };
3560
- declare const AllowedEntityTypes: Entity[];
3561
- declare const EmailAuthEnabledEntities: Entity[];
3562
- export { EntityConfig, FormSchema, AllowedEntityTypes, EmailAuthEnabledEntities, };
3563
- declare module '@monorise/base' {
3564
- enum Entity {
3565
- ADMIN = "admin",
3566
- CHAPTER = "chapter",
3567
- COURSE = "course",
3568
- LEARNER = "learner",
3569
- LEARNING_ACTIVITY = "learning-activity",
3570
- LEARNING_JOURNEY_CONFIG = "learning-journey-config",
3571
- MODULE = "module",
3572
- ORGANIZATION = "organization",
3573
- REFERENCE = "reference",
3574
- VIDEO = "video"
3575
- }
3576
- type AdminType = z.infer<(typeof admin)['finalSchema']>;
3577
- type ChapterType = z.infer<(typeof chapter)['finalSchema']>;
3578
- type CourseType = z.infer<(typeof course)['finalSchema']>;
3579
- type LearnerType = z.infer<(typeof learner)['finalSchema']>;
3580
- type LearningActivityType = z.infer<(typeof learningActivity)['finalSchema']>;
3581
- type LearningJourneyConfigType = z.infer<(typeof learningJourneyConfig)['finalSchema']>;
3582
- type ModuleType = z.infer<(typeof module)['finalSchema']>;
3583
- type OrganizationType = z.infer<(typeof organization)['finalSchema']>;
3584
- type ReferenceType = z.infer<(typeof reference)['finalSchema']>;
3585
- type VideoType = z.infer<(typeof video)['finalSchema']>;
3586
- interface EntitySchemaMap {
3587
- admin: AdminType;
3588
- chapter: ChapterType;
3589
- course: CourseType;
3590
- learner: LearnerType;
3591
- learningActivity: LearningActivityType;
3592
- learningJourneyConfig: LearningJourneyConfigType;
3593
- module: ModuleType;
3594
- organization: OrganizationType;
3595
- reference: ReferenceType;
3596
- video: VideoType;
3597
- }
3598
- }
3599
- //# sourceMappingURL=index.d.ts.map