joist-codegen 2.3.0-next.9 → 2.3.0-next.90

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 (420) hide show
  1. package/build/EntityDbMetadata.cjs +642 -0
  2. package/build/EntityDbMetadata.cjs.map +1 -0
  3. package/build/EntityDbMetadata.d.cts +299 -0
  4. package/build/EntityDbMetadata.d.cts.map +1 -0
  5. package/build/EntityDbMetadata.d.mts +299 -0
  6. package/build/EntityDbMetadata.d.mts.map +1 -0
  7. package/build/EntityDbMetadata.js +519 -661
  8. package/build/EntityDbMetadata.js.map +1 -1
  9. package/build/_virtual/_rolldown/runtime.cjs +23 -0
  10. package/build/_virtual/_rolldown/runtime.js +5 -0
  11. package/build/assignTags.cjs +45 -0
  12. package/build/assignTags.cjs.map +1 -0
  13. package/build/{assignTags.d.ts → assignTags.d.cts} +8 -4
  14. package/build/assignTags.d.cts.map +1 -0
  15. package/build/assignTags.d.mts +16 -0
  16. package/build/assignTags.d.mts.map +1 -0
  17. package/build/assignTags.js +37 -59
  18. package/build/assignTags.js.map +1 -1
  19. package/build/codemods/Codemod.cjs +2 -0
  20. package/build/codemods/Codemod.d.cts +17 -0
  21. package/build/codemods/Codemod.d.cts.map +1 -0
  22. package/build/codemods/Codemod.d.mts +17 -0
  23. package/build/codemods/Codemod.d.mts.map +1 -0
  24. package/build/codemods/Codemod.js +2 -3
  25. package/build/codemods/JscodeshiftMod.cjs +42 -0
  26. package/build/codemods/JscodeshiftMod.cjs.map +1 -0
  27. package/build/codemods/JscodeshiftMod.d.cts +14 -0
  28. package/build/codemods/JscodeshiftMod.d.cts.map +1 -0
  29. package/build/codemods/JscodeshiftMod.d.mts +14 -0
  30. package/build/codemods/JscodeshiftMod.d.mts.map +1 -0
  31. package/build/codemods/JscodeshiftMod.js +33 -33
  32. package/build/codemods/JscodeshiftMod.js.map +1 -1
  33. package/build/codemods/codemod_0001-rename_has_async_property.cjs +30 -0
  34. package/build/codemods/codemod_0001-rename_has_async_property.cjs.map +1 -0
  35. package/build/codemods/codemod_0001-rename_has_async_property.d.cts +9 -0
  36. package/build/codemods/codemod_0001-rename_has_async_property.d.cts.map +1 -0
  37. package/build/codemods/codemod_0001-rename_has_async_property.d.mts +9 -0
  38. package/build/codemods/codemod_0001-rename_has_async_property.d.mts.map +1 -0
  39. package/build/codemods/codemod_0001-rename_has_async_property.js +21 -25
  40. package/build/codemods/codemod_0001-rename_has_async_property.js.map +1 -1
  41. package/build/codemods/codemod_0002-rename_async_query_fields.cjs +50 -0
  42. package/build/codemods/codemod_0002-rename_async_query_fields.cjs.map +1 -0
  43. package/build/codemods/codemod_0002-rename_async_query_fields.d.cts +9 -0
  44. package/build/codemods/codemod_0002-rename_async_query_fields.d.cts.map +1 -0
  45. package/build/codemods/codemod_0002-rename_async_query_fields.d.mts +9 -0
  46. package/build/codemods/codemod_0002-rename_async_query_fields.d.mts.map +1 -0
  47. package/build/codemods/codemod_0002-rename_async_query_fields.js +38 -52
  48. package/build/codemods/codemod_0002-rename_async_query_fields.js.map +1 -1
  49. package/build/codemods/codemod_0003-rename_find_paginated.cjs +25 -0
  50. package/build/codemods/codemod_0003-rename_find_paginated.cjs.map +1 -0
  51. package/build/codemods/codemod_0003-rename_find_paginated.d.cts +9 -0
  52. package/build/codemods/codemod_0003-rename_find_paginated.d.cts.map +1 -0
  53. package/build/codemods/codemod_0003-rename_find_paginated.d.mts +9 -0
  54. package/build/codemods/codemod_0003-rename_find_paginated.d.mts.map +1 -0
  55. package/build/codemods/codemod_0003-rename_find_paginated.js +17 -26
  56. package/build/codemods/codemod_0003-rename_find_paginated.js.map +1 -1
  57. package/build/codemods/index.cjs +49 -0
  58. package/build/codemods/index.cjs.map +1 -0
  59. package/build/codemods/index.d.cts +12 -0
  60. package/build/codemods/index.d.cts.map +1 -0
  61. package/build/codemods/index.d.mts +12 -0
  62. package/build/codemods/index.d.mts.map +1 -0
  63. package/build/codemods/index.js +34 -42
  64. package/build/codemods/index.js.map +1 -1
  65. package/build/config.cjs +377 -0
  66. package/build/config.cjs.map +1 -0
  67. package/build/config.d.cts +181 -0
  68. package/build/config.d.cts.map +1 -0
  69. package/build/config.d.mts +181 -0
  70. package/build/config.d.mts.map +1 -0
  71. package/build/config.js +309 -347
  72. package/build/config.js.map +1 -1
  73. package/build/docs/cache.cjs +62 -0
  74. package/build/docs/cache.cjs.map +1 -0
  75. package/build/docs/cache.d.cts +17 -0
  76. package/build/docs/cache.d.cts.map +1 -0
  77. package/build/docs/cache.d.mts +17 -0
  78. package/build/docs/cache.d.mts.map +1 -0
  79. package/build/docs/cache.js +52 -53
  80. package/build/docs/cache.js.map +1 -1
  81. package/build/docs/generate-metadata-docs.cjs +32 -0
  82. package/build/docs/generate-metadata-docs.cjs.map +1 -0
  83. package/build/docs/generate-metadata-docs.d.cts +9 -0
  84. package/build/docs/generate-metadata-docs.d.cts.map +1 -0
  85. package/build/docs/generate-metadata-docs.d.mts +9 -0
  86. package/build/docs/generate-metadata-docs.d.mts.map +1 -0
  87. package/build/docs/generate-metadata-docs.js +19 -24
  88. package/build/docs/generate-metadata-docs.js.map +1 -1
  89. package/build/docs/index.cjs +90 -0
  90. package/build/docs/index.cjs.map +1 -0
  91. package/build/docs/index.d.cts +16 -0
  92. package/build/docs/index.d.cts.map +1 -0
  93. package/build/docs/index.d.mts +16 -0
  94. package/build/docs/index.d.mts.map +1 -0
  95. package/build/docs/index.js +75 -80
  96. package/build/docs/index.js.map +1 -1
  97. package/build/docs/markdown.cjs +181 -0
  98. package/build/docs/markdown.cjs.map +1 -0
  99. package/build/docs/{markdown.d.ts → markdown.d.cts} +14 -12
  100. package/build/docs/markdown.d.cts.map +1 -0
  101. package/build/docs/markdown.d.mts +32 -0
  102. package/build/docs/markdown.d.mts.map +1 -0
  103. package/build/docs/markdown.js +152 -220
  104. package/build/docs/markdown.js.map +1 -1
  105. package/build/docs/parsing.cjs +117 -0
  106. package/build/docs/parsing.cjs.map +1 -0
  107. package/build/docs/parsing.d.cts +48 -0
  108. package/build/docs/parsing.d.cts.map +1 -0
  109. package/build/docs/parsing.d.mts +48 -0
  110. package/build/docs/parsing.d.mts.map +1 -0
  111. package/build/docs/parsing.js +89 -88
  112. package/build/docs/parsing.js.map +1 -1
  113. package/build/findEntityScopes.cjs +119 -0
  114. package/build/findEntityScopes.cjs.map +1 -0
  115. package/build/findEntityScopes.d.cts +14 -0
  116. package/build/findEntityScopes.d.cts.map +1 -0
  117. package/build/findEntityScopes.d.mts +14 -0
  118. package/build/findEntityScopes.d.mts.map +1 -0
  119. package/build/findEntityScopes.js +83 -111
  120. package/build/findEntityScopes.js.map +1 -1
  121. package/build/foreignKeyOrdering.cjs +52 -0
  122. package/build/foreignKeyOrdering.cjs.map +1 -0
  123. package/build/foreignKeyOrdering.d.cts +8 -0
  124. package/build/foreignKeyOrdering.d.cts.map +1 -0
  125. package/build/foreignKeyOrdering.d.mts +8 -0
  126. package/build/foreignKeyOrdering.d.mts.map +1 -0
  127. package/build/foreignKeyOrdering.js +46 -55
  128. package/build/foreignKeyOrdering.js.map +1 -1
  129. package/build/generate.cjs +128 -0
  130. package/build/generate.cjs.map +1 -0
  131. package/build/generate.d.cts +17 -0
  132. package/build/generate.d.cts.map +1 -0
  133. package/build/generate.d.mts +17 -0
  134. package/build/generate.d.mts.map +1 -0
  135. package/build/generate.js +111 -124
  136. package/build/generate.js.map +1 -1
  137. package/build/generateEntitiesFile.cjs +46 -0
  138. package/build/generateEntitiesFile.cjs.map +1 -0
  139. package/build/generateEntitiesFile.d.cts +11 -0
  140. package/build/generateEntitiesFile.d.cts.map +1 -0
  141. package/build/generateEntitiesFile.d.mts +11 -0
  142. package/build/generateEntitiesFile.d.mts.map +1 -0
  143. package/build/generateEntitiesFile.js +28 -25
  144. package/build/generateEntitiesFile.js.map +1 -1
  145. package/build/generateEntityCodegenFile.cjs +1010 -0
  146. package/build/generateEntityCodegenFile.cjs.map +1 -0
  147. package/build/generateEntityCodegenFile.d.cts +16 -0
  148. package/build/generateEntityCodegenFile.d.cts.map +1 -0
  149. package/build/generateEntityCodegenFile.d.mts +16 -0
  150. package/build/generateEntityCodegenFile.d.mts.map +1 -0
  151. package/build/generateEntityCodegenFile.js +793 -827
  152. package/build/generateEntityCodegenFile.js.map +1 -1
  153. package/build/generateEntityFile.cjs +23 -0
  154. package/build/generateEntityFile.cjs.map +1 -0
  155. package/build/generateEntityFile.d.cts +9 -0
  156. package/build/generateEntityFile.d.cts.map +1 -0
  157. package/build/generateEntityFile.d.mts +9 -0
  158. package/build/generateEntityFile.d.mts.map +1 -0
  159. package/build/generateEntityFile.js +11 -8
  160. package/build/generateEntityFile.js.map +1 -1
  161. package/build/generateEntityTestFile.cjs +25 -0
  162. package/build/generateEntityTestFile.cjs.map +1 -0
  163. package/build/generateEntityTestFile.d.cts +9 -0
  164. package/build/generateEntityTestFile.d.cts.map +1 -0
  165. package/build/generateEntityTestFile.d.mts +9 -0
  166. package/build/generateEntityTestFile.d.mts.map +1 -0
  167. package/build/generateEntityTestFile.js +10 -7
  168. package/build/generateEntityTestFile.js.map +1 -1
  169. package/build/generateEnumFile.cjs +73 -0
  170. package/build/generateEnumFile.cjs.map +1 -0
  171. package/build/generateEnumFile.d.cts +9 -0
  172. package/build/generateEnumFile.d.cts.map +1 -0
  173. package/build/generateEnumFile.d.mts +9 -0
  174. package/build/generateEnumFile.d.mts.map +1 -0
  175. package/build/generateEnumFile.js +33 -43
  176. package/build/generateEnumFile.js.map +1 -1
  177. package/build/generateFactoriesFiles.cjs +28 -0
  178. package/build/generateFactoriesFiles.cjs.map +1 -0
  179. package/build/generateFactoriesFiles.d.cts +7 -0
  180. package/build/generateFactoriesFiles.d.cts.map +1 -0
  181. package/build/generateFactoriesFiles.d.mts +7 -0
  182. package/build/generateFactoriesFiles.d.mts.map +1 -0
  183. package/build/generateFactoriesFiles.js +21 -16
  184. package/build/generateFactoriesFiles.js.map +1 -1
  185. package/build/generateFlushFunction.cjs +61 -0
  186. package/build/generateFlushFunction.cjs.map +1 -0
  187. package/build/{generateFlushFunction.d.ts → generateFlushFunction.d.cts} +8 -5
  188. package/build/generateFlushFunction.d.cts.map +1 -0
  189. package/build/generateFlushFunction.d.mts +23 -0
  190. package/build/generateFlushFunction.d.mts.map +1 -0
  191. package/build/generateFlushFunction.js +32 -78
  192. package/build/generateFlushFunction.js.map +1 -1
  193. package/build/generateMetadataFile.cjs +307 -0
  194. package/build/generateMetadataFile.cjs.map +1 -0
  195. package/build/generateMetadataFile.d.cts +10 -0
  196. package/build/generateMetadataFile.d.cts.map +1 -0
  197. package/build/generateMetadataFile.d.mts +10 -0
  198. package/build/generateMetadataFile.d.mts.map +1 -0
  199. package/build/generateMetadataFile.js +148 -156
  200. package/build/generateMetadataFile.js.map +1 -1
  201. package/build/generatePgEnumFile.cjs +21 -0
  202. package/build/generatePgEnumFile.cjs.map +1 -0
  203. package/build/generatePgEnumFile.d.cts +9 -0
  204. package/build/generatePgEnumFile.d.cts.map +1 -0
  205. package/build/generatePgEnumFile.d.mts +9 -0
  206. package/build/generatePgEnumFile.d.mts.map +1 -0
  207. package/build/generatePgEnumFile.js +12 -9
  208. package/build/generatePgEnumFile.js.map +1 -1
  209. package/build/index.cjs +135 -0
  210. package/build/index.cjs.map +1 -0
  211. package/build/index.d.cts +12 -0
  212. package/build/index.d.cts.map +1 -0
  213. package/build/index.d.mts +12 -0
  214. package/build/index.d.mts.map +1 -0
  215. package/build/index.js +108 -127
  216. package/build/index.js.map +1 -1
  217. package/build/inheritance.cjs +257 -0
  218. package/build/inheritance.cjs.map +1 -0
  219. package/build/inheritance.d.cts +13 -0
  220. package/build/inheritance.d.cts.map +1 -0
  221. package/build/inheritance.d.mts +13 -0
  222. package/build/inheritance.d.mts.map +1 -0
  223. package/build/inheritance.js +237 -247
  224. package/build/inheritance.js.map +1 -1
  225. package/build/installSkills.cjs +68 -0
  226. package/build/installSkills.cjs.map +1 -0
  227. package/build/installSkills.d.cts +16 -0
  228. package/build/installSkills.d.cts.map +1 -0
  229. package/build/installSkills.d.mts +16 -0
  230. package/build/installSkills.d.mts.map +1 -0
  231. package/build/installSkills.js +67 -0
  232. package/build/installSkills.js.map +1 -0
  233. package/build/keywords.cjs +7 -0
  234. package/build/keywords.cjs.map +1 -0
  235. package/build/keywords.d.cts +5 -0
  236. package/build/keywords.d.cts.map +1 -0
  237. package/build/keywords.d.mts +5 -0
  238. package/build/keywords.d.mts.map +1 -0
  239. package/build/keywords.js +5 -4
  240. package/build/keywords.js.map +1 -1
  241. package/build/loadMetadata.cjs +39 -0
  242. package/build/loadMetadata.cjs.map +1 -0
  243. package/build/loadMetadata.d.cts +31 -0
  244. package/build/loadMetadata.d.cts.map +1 -0
  245. package/build/loadMetadata.d.mts +31 -0
  246. package/build/loadMetadata.d.mts.map +1 -0
  247. package/build/loadMetadata.js +32 -39
  248. package/build/loadMetadata.js.map +1 -1
  249. package/build/logger.cjs +28 -0
  250. package/build/logger.cjs.map +1 -0
  251. package/build/logger.d.cts +13 -0
  252. package/build/logger.d.cts.map +1 -0
  253. package/build/logger.d.mts +13 -0
  254. package/build/logger.d.mts.map +1 -0
  255. package/build/logger.js +17 -16
  256. package/build/logger.js.map +1 -1
  257. package/build/scanEntityFiles.cjs +46 -0
  258. package/build/scanEntityFiles.cjs.map +1 -0
  259. package/build/scanEntityFiles.d.cts +8 -0
  260. package/build/scanEntityFiles.d.cts.map +1 -0
  261. package/build/scanEntityFiles.d.mts +8 -0
  262. package/build/scanEntityFiles.d.mts.map +1 -0
  263. package/build/scanEntityFiles.js +37 -42
  264. package/build/scanEntityFiles.js.map +1 -1
  265. package/build/sortForeignKeys.cjs +99 -0
  266. package/build/sortForeignKeys.cjs.map +1 -0
  267. package/build/{sortForeignKeys.d.ts → sortForeignKeys.d.cts} +8 -5
  268. package/build/sortForeignKeys.d.cts.map +1 -0
  269. package/build/sortForeignKeys.d.mts +35 -0
  270. package/build/sortForeignKeys.d.mts.map +1 -0
  271. package/build/sortForeignKeys.js +88 -117
  272. package/build/sortForeignKeys.js.map +1 -1
  273. package/build/symbols.cjs +238 -0
  274. package/build/symbols.cjs.map +1 -0
  275. package/build/symbols.d.cts +120 -0
  276. package/build/symbols.d.cts.map +1 -0
  277. package/build/symbols.d.mts +120 -0
  278. package/build/symbols.d.mts.map +1 -0
  279. package/build/symbols.js +121 -113
  280. package/build/symbols.js.map +1 -1
  281. package/build/tsdoc.cjs +22 -0
  282. package/build/tsdoc.cjs.map +1 -0
  283. package/build/tsdoc.d.cts +15 -0
  284. package/build/tsdoc.d.cts.map +1 -0
  285. package/build/tsdoc.d.mts +15 -0
  286. package/build/tsdoc.d.mts.map +1 -0
  287. package/build/tsdoc.js +18 -15
  288. package/build/tsdoc.js.map +1 -1
  289. package/build/utils.cjs +173 -0
  290. package/build/utils.cjs.map +1 -0
  291. package/build/utils.d.cts +34 -0
  292. package/build/utils.d.cts.map +1 -0
  293. package/build/utils.d.mts +34 -0
  294. package/build/utils.d.mts.map +1 -0
  295. package/build/utils.js +112 -166
  296. package/build/utils.js.map +1 -1
  297. package/build/write-json-schema.cjs +23 -0
  298. package/build/write-json-schema.cjs.map +1 -0
  299. package/build/write-json-schema.d.cts +1 -0
  300. package/build/write-json-schema.d.mts +1 -0
  301. package/build/write-json-schema.js +19 -13
  302. package/build/write-json-schema.js.map +1 -1
  303. package/package.json +37 -17
  304. package/skills/joist-docs/SKILL.md +142 -0
  305. package/skills/joist-em-basics/SKILL.md +114 -0
  306. package/skills/joist-partial-updates/SKILL.md +352 -0
  307. package/skills/joist-reactive-hints/SKILL.md +150 -0
  308. package/skills/joist-test-factories/SKILL.md +397 -0
  309. package/skills/joist-upsert/SKILL.md +95 -0
  310. package/build/EntityDbMetadata.d.ts +0 -269
  311. package/build/EntityDbMetadata.d.ts.map +0 -1
  312. package/build/EntityDbMetadata.test.d.ts +0 -2
  313. package/build/EntityDbMetadata.test.d.ts.map +0 -1
  314. package/build/EntityDbMetadata.test.js +0 -211
  315. package/build/EntityDbMetadata.test.js.map +0 -1
  316. package/build/assignTags.d.ts.map +0 -1
  317. package/build/codemods/Codemod.d.ts +0 -14
  318. package/build/codemods/Codemod.d.ts.map +0 -1
  319. package/build/codemods/Codemod.js.map +0 -1
  320. package/build/codemods/JscodeshiftMod.d.ts +0 -11
  321. package/build/codemods/JscodeshiftMod.d.ts.map +0 -1
  322. package/build/codemods/__tests__/codemod_0001-rename_has_async_property.test.d.ts +0 -2
  323. package/build/codemods/__tests__/codemod_0001-rename_has_async_property.test.d.ts.map +0 -1
  324. package/build/codemods/__tests__/codemod_0001-rename_has_async_property.test.js +0 -9
  325. package/build/codemods/__tests__/codemod_0001-rename_has_async_property.test.js.map +0 -1
  326. package/build/codemods/__tests__/codemod_0002-rename_async_query_fields.test.d.ts +0 -2
  327. package/build/codemods/__tests__/codemod_0002-rename_async_query_fields.test.d.ts.map +0 -1
  328. package/build/codemods/__tests__/codemod_0002-rename_async_query_fields.test.js +0 -9
  329. package/build/codemods/__tests__/codemod_0002-rename_async_query_fields.test.js.map +0 -1
  330. package/build/codemods/__tests__/codemod_0003-rename_find_paginated.test.d.ts +0 -2
  331. package/build/codemods/__tests__/codemod_0003-rename_find_paginated.test.d.ts.map +0 -1
  332. package/build/codemods/__tests__/codemod_0003-rename_find_paginated.test.js +0 -9
  333. package/build/codemods/__tests__/codemod_0003-rename_find_paginated.test.js.map +0 -1
  334. package/build/codemods/codemod_0001-rename_has_async_property.d.ts +0 -7
  335. package/build/codemods/codemod_0001-rename_has_async_property.d.ts.map +0 -1
  336. package/build/codemods/codemod_0002-rename_async_query_fields.d.ts +0 -7
  337. package/build/codemods/codemod_0002-rename_async_query_fields.d.ts.map +0 -1
  338. package/build/codemods/codemod_0003-rename_find_paginated.d.ts +0 -7
  339. package/build/codemods/codemod_0003-rename_find_paginated.d.ts.map +0 -1
  340. package/build/codemods/index.d.ts +0 -9
  341. package/build/codemods/index.d.ts.map +0 -1
  342. package/build/codemods/index.test.d.ts +0 -2
  343. package/build/codemods/index.test.d.ts.map +0 -1
  344. package/build/codemods/index.test.js +0 -24
  345. package/build/codemods/index.test.js.map +0 -1
  346. package/build/config.d.ts +0 -167
  347. package/build/config.d.ts.map +0 -1
  348. package/build/config.test.d.ts +0 -2
  349. package/build/config.test.d.ts.map +0 -1
  350. package/build/config.test.js +0 -78
  351. package/build/config.test.js.map +0 -1
  352. package/build/docs/cache.d.ts +0 -14
  353. package/build/docs/cache.d.ts.map +0 -1
  354. package/build/docs/cache.test.d.ts +0 -2
  355. package/build/docs/cache.test.d.ts.map +0 -1
  356. package/build/docs/cache.test.js +0 -47
  357. package/build/docs/cache.test.js.map +0 -1
  358. package/build/docs/generate-metadata-docs.d.ts +0 -6
  359. package/build/docs/generate-metadata-docs.d.ts.map +0 -1
  360. package/build/docs/index.d.ts +0 -9
  361. package/build/docs/index.d.ts.map +0 -1
  362. package/build/docs/index.test.d.ts +0 -2
  363. package/build/docs/index.test.d.ts.map +0 -1
  364. package/build/docs/index.test.js +0 -100
  365. package/build/docs/index.test.js.map +0 -1
  366. package/build/docs/markdown.d.ts.map +0 -1
  367. package/build/docs/markdown.test.d.ts +0 -2
  368. package/build/docs/markdown.test.d.ts.map +0 -1
  369. package/build/docs/markdown.test.js +0 -280
  370. package/build/docs/markdown.test.js.map +0 -1
  371. package/build/docs/parsing.d.ts +0 -42
  372. package/build/docs/parsing.d.ts.map +0 -1
  373. package/build/docs/parsing.test.d.ts +0 -2
  374. package/build/docs/parsing.test.d.ts.map +0 -1
  375. package/build/docs/parsing.test.js +0 -190
  376. package/build/docs/parsing.test.js.map +0 -1
  377. package/build/findEntityScopes.d.ts +0 -11
  378. package/build/findEntityScopes.d.ts.map +0 -1
  379. package/build/foreignKeyOrdering.d.ts +0 -3
  380. package/build/foreignKeyOrdering.d.ts.map +0 -1
  381. package/build/generate.d.ts +0 -12
  382. package/build/generate.d.ts.map +0 -1
  383. package/build/generateEntitiesFile.d.ts +0 -7
  384. package/build/generateEntitiesFile.d.ts.map +0 -1
  385. package/build/generateEntityCodegenFile.d.ts +0 -11
  386. package/build/generateEntityCodegenFile.d.ts.map +0 -1
  387. package/build/generateEntityFile.d.ts +0 -6
  388. package/build/generateEntityFile.d.ts.map +0 -1
  389. package/build/generateEntityTestFile.d.ts +0 -6
  390. package/build/generateEntityTestFile.d.ts.map +0 -1
  391. package/build/generateEnumFile.d.ts +0 -5
  392. package/build/generateEnumFile.d.ts.map +0 -1
  393. package/build/generateFactoriesFiles.d.ts +0 -4
  394. package/build/generateFactoriesFiles.d.ts.map +0 -1
  395. package/build/generateFlushFunction.d.ts.map +0 -1
  396. package/build/generateMetadataFile.d.ts +0 -5
  397. package/build/generateMetadataFile.d.ts.map +0 -1
  398. package/build/generatePgEnumFile.d.ts +0 -5
  399. package/build/generatePgEnumFile.d.ts.map +0 -1
  400. package/build/index.d.ts +0 -11
  401. package/build/index.d.ts.map +0 -1
  402. package/build/inheritance.d.ts +0 -10
  403. package/build/inheritance.d.ts.map +0 -1
  404. package/build/keywords.d.ts +0 -2
  405. package/build/keywords.d.ts.map +0 -1
  406. package/build/loadMetadata.d.ts +0 -26
  407. package/build/loadMetadata.d.ts.map +0 -1
  408. package/build/logger.d.ts +0 -10
  409. package/build/logger.d.ts.map +0 -1
  410. package/build/scanEntityFiles.d.ts +0 -5
  411. package/build/scanEntityFiles.d.ts.map +0 -1
  412. package/build/sortForeignKeys.d.ts.map +0 -1
  413. package/build/symbols.d.ts +0 -108
  414. package/build/symbols.d.ts.map +0 -1
  415. package/build/tsdoc.d.ts +0 -12
  416. package/build/tsdoc.d.ts.map +0 -1
  417. package/build/utils.d.ts +0 -31
  418. package/build/utils.d.ts.map +0 -1
  419. package/build/write-json-schema.d.ts +0 -2
  420. package/build/write-json-schema.d.ts.map +0 -1
package/build/symbols.js CHANGED
@@ -1,114 +1,122 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdOf = exports.RelationsOf = exports.FieldsOf = exports.OptsOf = exports.OrderBy = exports.setField = exports.getField = exports.setOpts = exports.failNoIdYet = exports.fail = exports.DecimalToNumberSerde = exports.CustomSerdeAdapter = exports.ZodSerde = exports.TaggedId = exports.SuperstructSerde = exports.JsonSerde = exports.ZonedDateTimeSerde = exports.PlainDateTimeSerde = exports.PlainTimeSerde = exports.PlainDateSerde = exports.DateSerde = exports.BigIntSerde = exports.PrimitiveSerde = exports.PolymorphicKeySerde = exports.EnumArrayFieldSerde = exports.EnumFieldSerde = exports.ManyToManyCollection = exports.OneToOneReference = exports.PolymorphicReference = exports.ReadOnlyCollection = exports.ManyToOneReference = exports.KeySerde = exports.Lens = exports.EnumMetadata = exports.EntityMetadata = exports.JoistEntityManager = exports.OneToManyCollection = exports.LargeCollection = exports.EnumCollection = exports.Collection = exports.Reference = exports.Flavor = exports.BaseEntity = exports.Entity = exports.FieldStatus = exports.Scope = exports.newScopeFn = exports.ConfigApi = exports.EntityManager = exports.ProjectEntity = void 0;
4
- exports.toJSON = exports.toIdOf = exports.deTagId = exports.MaybeAbstractEntityConstructor = exports.EntityConstructor = exports.Zod = exports.SSAssert = exports.FactoryOpts = exports.DeepNew = exports.New = exports.newTestInstance = exports.hasLargeManyToMany = exports.hasEnumCollection = exports.hasManyToMany = exports.hasOneToOne = exports.hasOnePolymorphic = exports.hasRecursiveParents = exports.hasRecursiveM2m = exports.hasRecursiveChildren = exports.hasOne = exports.hasLargeMany = exports.hasMany = exports.hasOneThrough = exports.loadLens = exports.isEntity = exports.getInstanceData = exports.isLoaded = exports.Loaded = exports.LoadHint = exports.newChangesProxy = exports.Changes = exports.cleanStringValue = exports.mustBeSubType = exports.cannotBeUpdated = exports.newRequiredRule = exports.configureMetadata = exports.JsonPayload = exports.ToJsonHint = exports.JsonHint = exports.GraphQLFilterOf = exports.FilterOf = exports.ValueGraphQLFilter = exports.EnumGraphQLFilter = exports.EntityGraphQLFilter = exports.BooleanGraphQLFilter = exports.EntityFilter = exports.ValueFilter = exports.BooleanFilter = exports.DeepPartialOrNull = exports.PartialOrNull = void 0;
5
- exports.setRuntimeConfig = exports.updatePartial = exports.hasReactiveManyToManyOtherSide = exports.ReactiveManyToManyOtherSide = exports.ReactiveManyToMany = exports.ReactiveReference = exports.ReactiveField = void 0;
6
- const ts_poet_1 = require("ts-poet");
7
- exports.ProjectEntity = (0, ts_poet_1.imp)(`t:Entity@./entities.ts`);
8
- exports.EntityManager = (0, ts_poet_1.imp)("EntityManager@./entities.ts");
9
- exports.ConfigApi = (0, ts_poet_1.imp)("ConfigApi@joist-orm");
10
- exports.newScopeFn = (0, ts_poet_1.imp)("newScopeFn@joist-orm");
11
- exports.Scope = (0, ts_poet_1.imp)("t:Scope@joist-orm");
12
- exports.FieldStatus = (0, ts_poet_1.imp)("t:FieldStatus@joist-orm");
13
- exports.Entity = (0, ts_poet_1.imp)("t:Entity@joist-orm");
14
- exports.BaseEntity = (0, ts_poet_1.imp)("BaseEntity@joist-orm");
15
- exports.Flavor = (0, ts_poet_1.imp)("t:Flavor@joist-orm");
16
- exports.Reference = (0, ts_poet_1.imp)("t:Reference@joist-orm");
17
- exports.Collection = (0, ts_poet_1.imp)("t:Collection@joist-orm");
18
- exports.EnumCollection = (0, ts_poet_1.imp)("t:EnumCollection@joist-orm");
19
- exports.LargeCollection = (0, ts_poet_1.imp)("t:LargeCollection@joist-orm");
20
- exports.OneToManyCollection = (0, ts_poet_1.imp)("OneToManyCollection@joist-orm");
21
- exports.JoistEntityManager = (0, ts_poet_1.imp)("EntityManager@joist-orm");
22
- exports.EntityMetadata = (0, ts_poet_1.imp)("t:EntityMetadata@joist-orm");
23
- exports.EnumMetadata = (0, ts_poet_1.imp)("t:EnumMetadata@joist-orm");
24
- exports.Lens = (0, ts_poet_1.imp)("t:Lens@joist-orm");
25
- exports.KeySerde = (0, ts_poet_1.imp)("KeySerde@joist-orm");
26
- exports.ManyToOneReference = (0, ts_poet_1.imp)("t:ManyToOneReference@joist-orm");
27
- exports.ReadOnlyCollection = (0, ts_poet_1.imp)("t:ReadOnlyCollection@joist-orm");
28
- exports.PolymorphicReference = (0, ts_poet_1.imp)("t:PolymorphicReference@joist-orm");
29
- exports.OneToOneReference = (0, ts_poet_1.imp)("t:OneToOneReference@joist-orm");
30
- exports.ManyToManyCollection = (0, ts_poet_1.imp)("ManyToManyCollection@joist-orm");
31
- exports.EnumFieldSerde = (0, ts_poet_1.imp)("EnumFieldSerde@joist-orm");
32
- exports.EnumArrayFieldSerde = (0, ts_poet_1.imp)("EnumArrayFieldSerde@joist-orm");
33
- exports.PolymorphicKeySerde = (0, ts_poet_1.imp)("PolymorphicKeySerde@joist-orm");
34
- exports.PrimitiveSerde = (0, ts_poet_1.imp)("PrimitiveSerde@joist-orm");
35
- exports.BigIntSerde = (0, ts_poet_1.imp)("BigIntSerde@joist-orm");
36
- exports.DateSerde = (0, ts_poet_1.imp)("DateSerde@joist-orm");
37
- exports.PlainDateSerde = (0, ts_poet_1.imp)("PlainDateSerde@joist-orm");
38
- exports.PlainTimeSerde = (0, ts_poet_1.imp)("PlainTimeSerde@joist-orm");
39
- exports.PlainDateTimeSerde = (0, ts_poet_1.imp)("PlainDateTimeSerde@joist-orm");
40
- exports.ZonedDateTimeSerde = (0, ts_poet_1.imp)("ZonedDateTimeSerde@joist-orm");
41
- exports.JsonSerde = (0, ts_poet_1.imp)("JsonSerde@joist-orm");
42
- exports.SuperstructSerde = (0, ts_poet_1.imp)("SuperstructSerde@joist-orm");
43
- exports.TaggedId = (0, ts_poet_1.imp)("t:TaggedId@joist-orm");
44
- exports.ZodSerde = (0, ts_poet_1.imp)("ZodSerde@joist-orm");
45
- exports.CustomSerdeAdapter = (0, ts_poet_1.imp)("CustomSerdeAdapter@joist-orm");
46
- exports.DecimalToNumberSerde = (0, ts_poet_1.imp)("DecimalToNumberSerde@joist-orm");
47
- exports.fail = (0, ts_poet_1.imp)("fail@joist-orm");
48
- exports.failNoIdYet = (0, ts_poet_1.imp)("failNoIdYet@joist-orm");
49
- exports.setOpts = (0, ts_poet_1.imp)("setOpts@joist-orm");
50
- exports.getField = (0, ts_poet_1.imp)("getField@joist-orm");
51
- exports.setField = (0, ts_poet_1.imp)("setField@joist-orm");
52
- exports.OrderBy = (0, ts_poet_1.imp)("t:OrderBy@joist-orm");
53
- exports.OptsOf = (0, ts_poet_1.imp)("t:OptsOf@joist-orm");
54
- exports.FieldsOf = (0, ts_poet_1.imp)("t:FieldsOf@joist-orm");
55
- exports.RelationsOf = (0, ts_poet_1.imp)("t:RelationsOf@joist-orm");
56
- exports.IdOf = (0, ts_poet_1.imp)("t:IdOf@joist-orm");
57
- exports.PartialOrNull = (0, ts_poet_1.imp)("t:PartialOrNull@joist-orm");
58
- exports.DeepPartialOrNull = (0, ts_poet_1.imp)("t:DeepPartialOrNull@joist-orm");
59
- exports.BooleanFilter = (0, ts_poet_1.imp)("t:BooleanFilter@joist-orm");
60
- exports.ValueFilter = (0, ts_poet_1.imp)("t:ValueFilter@joist-orm");
61
- exports.EntityFilter = (0, ts_poet_1.imp)("t:EntityFilter@joist-orm");
62
- exports.BooleanGraphQLFilter = (0, ts_poet_1.imp)("t:BooleanGraphQLFilter@joist-orm");
63
- exports.EntityGraphQLFilter = (0, ts_poet_1.imp)("t:EntityGraphQLFilter@joist-orm");
64
- exports.EnumGraphQLFilter = (0, ts_poet_1.imp)("t:EnumGraphQLFilter@joist-orm");
65
- exports.ValueGraphQLFilter = (0, ts_poet_1.imp)("t:ValueGraphQLFilter@joist-orm");
66
- exports.FilterOf = (0, ts_poet_1.imp)("t:FilterOf@joist-orm");
67
- exports.GraphQLFilterOf = (0, ts_poet_1.imp)("t:GraphQLFilterOf@joist-orm");
68
- exports.JsonHint = (0, ts_poet_1.imp)("t:JsonHint@joist-orm");
69
- exports.ToJsonHint = (0, ts_poet_1.imp)("t:ToJsonHint@joist-orm");
70
- exports.JsonPayload = (0, ts_poet_1.imp)("t:JsonPayload@joist-orm");
71
- exports.configureMetadata = (0, ts_poet_1.imp)("configureMetadata@joist-orm");
72
- exports.newRequiredRule = (0, ts_poet_1.imp)("newRequiredRule@joist-orm");
73
- exports.cannotBeUpdated = (0, ts_poet_1.imp)("cannotBeUpdated@joist-orm");
74
- exports.mustBeSubType = (0, ts_poet_1.imp)("mustBeSubType@joist-orm");
75
- exports.cleanStringValue = (0, ts_poet_1.imp)("cleanStringValue@joist-orm");
76
- exports.Changes = (0, ts_poet_1.imp)("t:Changes@joist-orm");
77
- exports.newChangesProxy = (0, ts_poet_1.imp)("newChangesProxy@joist-orm");
78
- exports.LoadHint = (0, ts_poet_1.imp)("t:LoadHint@joist-orm");
79
- exports.Loaded = (0, ts_poet_1.imp)("t:Loaded@joist-orm");
80
- exports.isLoaded = (0, ts_poet_1.imp)("isLoaded@joist-orm");
81
- exports.getInstanceData = (0, ts_poet_1.imp)("getInstanceData@joist-orm");
82
- exports.isEntity = (0, ts_poet_1.imp)("isEntity@joist-orm");
83
- exports.loadLens = (0, ts_poet_1.imp)("loadLens@joist-orm");
84
- exports.hasOneThrough = (0, ts_poet_1.imp)("hasOneThrough@joist-orm");
85
- exports.hasMany = (0, ts_poet_1.imp)("hasMany@joist-orm");
86
- exports.hasLargeMany = (0, ts_poet_1.imp)("hasLargeMany@joist-orm");
87
- exports.hasOne = (0, ts_poet_1.imp)("hasOne@joist-orm");
88
- exports.hasRecursiveChildren = (0, ts_poet_1.imp)("hasRecursiveChildren@joist-orm");
89
- exports.hasRecursiveM2m = (0, ts_poet_1.imp)("hasRecursiveM2m@joist-orm");
90
- exports.hasRecursiveParents = (0, ts_poet_1.imp)("hasRecursiveParents@joist-orm");
91
- exports.hasOnePolymorphic = (0, ts_poet_1.imp)("hasOnePolymorphic@joist-orm");
92
- exports.hasOneToOne = (0, ts_poet_1.imp)("hasOneToOne@joist-orm");
93
- exports.hasManyToMany = (0, ts_poet_1.imp)("hasManyToMany@joist-orm");
94
- exports.hasEnumCollection = (0, ts_poet_1.imp)("hasEnumCollection@joist-orm");
95
- exports.hasLargeManyToMany = (0, ts_poet_1.imp)("hasLargeManyToMany@joist-orm");
96
- exports.newTestInstance = (0, ts_poet_1.imp)("newTestInstance@joist-orm");
97
- exports.New = (0, ts_poet_1.imp)("t:New@joist-orm");
98
- exports.DeepNew = (0, ts_poet_1.imp)("t:DeepNew@joist-orm");
99
- exports.FactoryOpts = (0, ts_poet_1.imp)("t:FactoryOpts@joist-orm");
100
- exports.SSAssert = (0, ts_poet_1.imp)("assert@superstruct");
101
- exports.Zod = (0, ts_poet_1.imp)("z@zod");
102
- exports.EntityConstructor = (0, ts_poet_1.imp)("t:EntityConstructor@joist-orm");
103
- exports.MaybeAbstractEntityConstructor = (0, ts_poet_1.imp)("t:MaybeAbstractEntityConstructor@joist-orm");
104
- exports.deTagId = (0, ts_poet_1.imp)("deTagId@joist-orm");
105
- exports.toIdOf = (0, ts_poet_1.imp)("toIdOf@joist-orm");
106
- exports.toJSON = (0, ts_poet_1.imp)("toJSON@joist-orm");
107
- exports.ReactiveField = (0, ts_poet_1.imp)("t:ReactiveField@joist-orm");
108
- exports.ReactiveReference = (0, ts_poet_1.imp)("t:ReactiveReference@joist-orm");
109
- exports.ReactiveManyToMany = (0, ts_poet_1.imp)("t:ReactiveManyToMany@joist-orm");
110
- exports.ReactiveManyToManyOtherSide = (0, ts_poet_1.imp)("t:ReactiveManyToManyOtherSide@joist-orm");
111
- exports.hasReactiveManyToManyOtherSide = (0, ts_poet_1.imp)("hasReactiveManyToManyOtherSide@joist-orm");
112
- exports.updatePartial = (0, ts_poet_1.imp)("updatePartial@joist-orm");
113
- exports.setRuntimeConfig = (0, ts_poet_1.imp)("setRuntimeConfig@joist-orm");
1
+ import { imp } from "ts-poet";
2
+ //#region src/symbols.ts
3
+ const ProjectEntity = imp(`t:Entity@./entities.ts`);
4
+ const EntityManager = imp("EntityManager@./entities.ts");
5
+ const ConfigApi = imp("ConfigApi@joist-orm");
6
+ const newScopeFn = imp("newScopeFn@joist-orm");
7
+ const Scope = imp("t:Scope@joist-orm");
8
+ const FieldStatus = imp("t:FieldStatus@joist-orm");
9
+ const Entity = imp("t:Entity@joist-orm");
10
+ const BaseEntity = imp("BaseEntity@joist-orm");
11
+ const Flavor = imp("t:Flavor@joist-orm");
12
+ const Reference = imp("t:Reference@joist-orm");
13
+ const Collection = imp("t:Collection@joist-orm");
14
+ const EnumCollection = imp("t:EnumCollection@joist-orm");
15
+ const LargeCollection = imp("t:LargeCollection@joist-orm");
16
+ const OneToManyCollection = imp("OneToManyCollection@joist-orm");
17
+ const JoistEntityManager = imp("EntityManager@joist-orm");
18
+ const EntityMetadata = imp("t:EntityMetadata@joist-orm");
19
+ const EnumMetadata = imp("t:EnumMetadata@joist-orm");
20
+ const Lens = imp("t:Lens@joist-orm");
21
+ const KeySerde = imp("KeySerde@joist-orm");
22
+ const Column = imp("Column@joist-orm");
23
+ const ColumnDescriptors = imp("t:ColumnDescriptors@joist-orm");
24
+ const SimpleFieldSerde = imp("SimpleFieldSerde@joist-orm");
25
+ const PolyComponent = imp("PolyComponent@joist-orm");
26
+ const polymorphicField = imp("polymorphicField@joist-orm");
27
+ const ManyToOneReference = imp("t:ManyToOneReference@joist-orm");
28
+ const LazyField = imp("t:LazyField@joist-orm");
29
+ const hasLazyField = imp("hasLazyField@joist-orm");
30
+ const ReadOnlyCollection = imp("t:ReadOnlyCollection@joist-orm");
31
+ const PolymorphicReference = imp("t:PolymorphicReference@joist-orm");
32
+ const OneToOneReference = imp("t:OneToOneReference@joist-orm");
33
+ const ManyToManyCollection = imp("ManyToManyCollection@joist-orm");
34
+ const EnumFieldSerde = imp("EnumFieldSerde@joist-orm");
35
+ const EnumArrayFieldSerde = imp("EnumArrayFieldSerde@joist-orm");
36
+ const PolymorphicKeySerde = imp("PolymorphicKeySerde@joist-orm");
37
+ const PrimitiveSerde = imp("PrimitiveSerde@joist-orm");
38
+ const BigIntSerde = imp("BigIntSerde@joist-orm");
39
+ const DateSerde = imp("DateSerde@joist-orm");
40
+ const PlainDateSerde = imp("PlainDateSerde@joist-orm");
41
+ const PlainTimeSerde = imp("PlainTimeSerde@joist-orm");
42
+ const PlainDateTimeSerde = imp("PlainDateTimeSerde@joist-orm");
43
+ const ZonedDateTimeSerde = imp("ZonedDateTimeSerde@joist-orm");
44
+ const JsonSerde = imp("JsonSerde@joist-orm");
45
+ const SuperstructSerde = imp("SuperstructSerde@joist-orm");
46
+ const TaggedId = imp("t:TaggedId@joist-orm");
47
+ const ZodSerde = imp("ZodSerde@joist-orm");
48
+ const CustomSerdeAdapter = imp("CustomSerdeAdapter@joist-orm");
49
+ const DecimalToNumberSerde = imp("DecimalToNumberSerde@joist-orm");
50
+ const fail = imp("fail@joist-orm");
51
+ const failNoIdYet = imp("failNoIdYet@joist-orm");
52
+ const setOpts = imp("setOpts@joist-orm");
53
+ const getField = imp("getField@joist-orm");
54
+ const setField = imp("setField@joist-orm");
55
+ const OrderBy = imp("t:OrderBy@joist-orm");
56
+ const OptsOf = imp("t:OptsOf@joist-orm");
57
+ const FieldsOf = imp("t:FieldsOf@joist-orm");
58
+ const RelationsOf = imp("t:RelationsOf@joist-orm");
59
+ const IdOf = imp("t:IdOf@joist-orm");
60
+ const PartialOrNull = imp("t:PartialOrNull@joist-orm");
61
+ const DeepPartialOrNull = imp("t:DeepPartialOrNull@joist-orm");
62
+ const BooleanFilter = imp("t:BooleanFilter@joist-orm");
63
+ const ValueFilter = imp("t:ValueFilter@joist-orm");
64
+ const EntityFilter = imp("t:EntityFilter@joist-orm");
65
+ const BooleanGraphQLFilter = imp("t:BooleanGraphQLFilter@joist-orm");
66
+ const EntityGraphQLFilter = imp("t:EntityGraphQLFilter@joist-orm");
67
+ const EnumGraphQLFilter = imp("t:EnumGraphQLFilter@joist-orm");
68
+ const ValueGraphQLFilter = imp("t:ValueGraphQLFilter@joist-orm");
69
+ const FilterOf = imp("t:FilterOf@joist-orm");
70
+ const GraphQLFilterOf = imp("t:GraphQLFilterOf@joist-orm");
71
+ const JsonHint = imp("t:JsonHint@joist-orm");
72
+ const ToJsonHint = imp("t:ToJsonHint@joist-orm");
73
+ const JsonPayload = imp("t:JsonPayload@joist-orm");
74
+ const configureMetadata = imp("configureMetadata@joist-orm");
75
+ const newRequiredRule = imp("newRequiredRule@joist-orm");
76
+ const newRequiredLazyFieldRule = imp("newRequiredLazyFieldRule@joist-orm");
77
+ const cannotBeUpdated = imp("cannotBeUpdated@joist-orm");
78
+ const mustBeSubType = imp("mustBeSubType@joist-orm");
79
+ const cleanStringValue = imp("cleanStringValue@joist-orm");
80
+ const Changes = imp("t:Changes@joist-orm");
81
+ const newChangesProxy = imp("newChangesProxy@joist-orm");
82
+ const nowUTC = imp("nowUTC@joist-orm");
83
+ const LoadHint = imp("t:LoadHint@joist-orm");
84
+ const Loaded = imp("t:Loaded@joist-orm");
85
+ const isLoaded = imp("isLoaded@joist-orm");
86
+ const getInstanceData = imp("getInstanceData@joist-orm");
87
+ const isEntity = imp("isEntity@joist-orm");
88
+ const loadLens = imp("loadLens@joist-orm");
89
+ const hasOneThrough = imp("hasOneThrough@joist-orm");
90
+ const hasMany = imp("hasMany@joist-orm");
91
+ const hasLargeMany = imp("hasLargeMany@joist-orm");
92
+ const hasOne = imp("hasOne@joist-orm");
93
+ const hasRecursiveChildren = imp("hasRecursiveChildren@joist-orm");
94
+ const hasRecursiveM2m = imp("hasRecursiveM2m@joist-orm");
95
+ const hasRecursiveParents = imp("hasRecursiveParents@joist-orm");
96
+ const hasOnePolymorphic = imp("hasOnePolymorphic@joist-orm");
97
+ const hasOneToOne = imp("hasOneToOne@joist-orm");
98
+ const hasManyToMany = imp("hasManyToMany@joist-orm");
99
+ const hasEnumCollection = imp("hasEnumCollection@joist-orm");
100
+ const hasLargeManyToMany = imp("hasLargeManyToMany@joist-orm");
101
+ const newTestInstance = imp("newTestInstance@joist-orm");
102
+ const New = imp("t:New@joist-orm");
103
+ const DeepNew = imp("t:DeepNew@joist-orm");
104
+ const FactoryOpts = imp("t:FactoryOpts@joist-orm");
105
+ const SSAssert = imp("assert@superstruct");
106
+ const Zod = imp("z@zod");
107
+ const EntityConstructor = imp("t:EntityConstructor@joist-orm");
108
+ const MaybeAbstractEntityConstructor = imp("t:MaybeAbstractEntityConstructor@joist-orm");
109
+ const deTagId = imp("deTagId@joist-orm");
110
+ const toIdOf = imp("toIdOf@joist-orm");
111
+ const toJSON = imp("toJSON@joist-orm");
112
+ const ReactiveField = imp("t:ReactiveField@joist-orm");
113
+ const ReactiveReference = imp("t:ReactiveReference@joist-orm");
114
+ const ReactiveManyToMany = imp("t:ReactiveManyToMany@joist-orm");
115
+ const ReactiveManyToManyOtherSide = imp("t:ReactiveManyToManyOtherSide@joist-orm");
116
+ const hasReactiveManyToManyOtherSide = imp("hasReactiveManyToManyOtherSide@joist-orm");
117
+ const updatePartial = imp("updatePartial@joist-orm");
118
+ const setRuntimeConfig = imp("setRuntimeConfig@joist-orm");
119
+ //#endregion
120
+ export { BaseEntity, BigIntSerde, BooleanFilter, BooleanGraphQLFilter, Changes, Collection, Column, ColumnDescriptors, ConfigApi, CustomSerdeAdapter, DateSerde, DecimalToNumberSerde, DeepNew, DeepPartialOrNull, Entity, EntityConstructor, EntityFilter, EntityGraphQLFilter, EntityManager, EntityMetadata, EnumArrayFieldSerde, EnumCollection, EnumFieldSerde, EnumGraphQLFilter, EnumMetadata, FactoryOpts, FieldStatus, FieldsOf, FilterOf, Flavor, GraphQLFilterOf, IdOf, JoistEntityManager, JsonHint, JsonPayload, JsonSerde, KeySerde, LargeCollection, LazyField, Lens, LoadHint, Loaded, ManyToManyCollection, ManyToOneReference, MaybeAbstractEntityConstructor, New, OneToManyCollection, OneToOneReference, OptsOf, OrderBy, PartialOrNull, PlainDateSerde, PlainDateTimeSerde, PlainTimeSerde, PolyComponent, PolymorphicKeySerde, PolymorphicReference, PrimitiveSerde, ProjectEntity, ReactiveField, ReactiveManyToMany, ReactiveManyToManyOtherSide, ReactiveReference, ReadOnlyCollection, Reference, RelationsOf, SSAssert, Scope, SimpleFieldSerde, SuperstructSerde, TaggedId, ToJsonHint, ValueFilter, ValueGraphQLFilter, Zod, ZodSerde, ZonedDateTimeSerde, cannotBeUpdated, cleanStringValue, configureMetadata, deTagId, fail, failNoIdYet, getField, getInstanceData, hasEnumCollection, hasLargeMany, hasLargeManyToMany, hasLazyField, hasMany, hasManyToMany, hasOne, hasOnePolymorphic, hasOneThrough, hasOneToOne, hasReactiveManyToManyOtherSide, hasRecursiveChildren, hasRecursiveM2m, hasRecursiveParents, isEntity, isLoaded, loadLens, mustBeSubType, newChangesProxy, newRequiredLazyFieldRule, newRequiredRule, newScopeFn, newTestInstance, nowUTC, polymorphicField, setField, setOpts, setRuntimeConfig, toIdOf, toJSON, updatePartial };
121
+
114
122
  //# sourceMappingURL=symbols.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.js","sourceRoot":"","sources":["../src/symbols.ts"],"names":[],"mappings":";;;;;AAAA,qCAA8B;AAEjB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAC,wBAAwB,CAAC,CAAC;AAC9C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAC,6BAA6B,CAAC,CAAC;AAEnD,QAAA,SAAS,GAAG,IAAA,aAAG,EAAC,qBAAqB,CAAC,CAAC;AACvC,QAAA,UAAU,GAAG,IAAA,aAAG,EAAC,sBAAsB,CAAC,CAAC;AACzC,QAAA,KAAK,GAAG,IAAA,aAAG,EAAC,mBAAmB,CAAC,CAAC;AACjC,QAAA,WAAW,GAAG,IAAA,aAAG,EAAC,yBAAyB,CAAC,CAAC;AAC7C,QAAA,MAAM,GAAG,IAAA,aAAG,EAAC,oBAAoB,CAAC,CAAC;AACnC,QAAA,UAAU,GAAG,IAAA,aAAG,EAAC,sBAAsB,CAAC,CAAC;AACzC,QAAA,MAAM,GAAG,IAAA,aAAG,EAAC,oBAAoB,CAAC,CAAC;AACnC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAC,uBAAuB,CAAC,CAAC;AACzC,QAAA,UAAU,GAAG,IAAA,aAAG,EAAC,wBAAwB,CAAC,CAAC;AAC3C,QAAA,cAAc,GAAG,IAAA,aAAG,EAAC,4BAA4B,CAAC,CAAC;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nexport const ProjectEntity = imp(`t:Entity@./entities.ts`);\nexport const EntityManager = imp(\"EntityManager@./entities.ts\");\n\nexport const ConfigApi = imp(\"ConfigApi@joist-orm\");\nexport const newScopeFn = imp(\"newScopeFn@joist-orm\");\nexport const Scope = imp(\"t:Scope@joist-orm\");\nexport const FieldStatus = imp(\"t:FieldStatus@joist-orm\");\nexport const Entity = imp(\"t:Entity@joist-orm\");\nexport const BaseEntity = imp(\"BaseEntity@joist-orm\");\nexport const Flavor = imp(\"t:Flavor@joist-orm\");\nexport const Reference = imp(\"t:Reference@joist-orm\");\nexport const Collection = imp(\"t:Collection@joist-orm\");\nexport const EnumCollection = imp(\"t:EnumCollection@joist-orm\");\nexport const LargeCollection = imp(\"t:LargeCollection@joist-orm\");\nexport const OneToManyCollection = imp(\"OneToManyCollection@joist-orm\");\nexport const JoistEntityManager = imp(\"EntityManager@joist-orm\");\nexport const EntityMetadata = imp(\"t:EntityMetadata@joist-orm\");\nexport const EnumMetadata = imp(\"t:EnumMetadata@joist-orm\");\nexport const Lens = imp(\"t:Lens@joist-orm\");\nexport const KeySerde = imp(\"KeySerde@joist-orm\");\nexport const Column = imp(\"Column@joist-orm\");\nexport const ColumnDescriptors = imp(\"t:ColumnDescriptors@joist-orm\");\nexport const SimpleFieldSerde = imp(\"SimpleFieldSerde@joist-orm\");\nexport const PolyComponent = imp(\"PolyComponent@joist-orm\");\nexport const polymorphicField = imp(\"polymorphicField@joist-orm\");\nexport const ManyToOneReference = imp(\"t:ManyToOneReference@joist-orm\");\nexport const LazyField = imp(\"t:LazyField@joist-orm\");\nexport const hasLazyField = imp(\"hasLazyField@joist-orm\");\nexport const ReadOnlyCollection = imp(\"t:ReadOnlyCollection@joist-orm\");\nexport const PolymorphicReference = imp(\"t:PolymorphicReference@joist-orm\");\nexport const OneToOneReference = imp(\"t:OneToOneReference@joist-orm\");\nexport const ManyToManyCollection = imp(\"ManyToManyCollection@joist-orm\");\nexport const EnumFieldSerde = imp(\"EnumFieldSerde@joist-orm\");\nexport const EnumArrayFieldSerde = imp(\"EnumArrayFieldSerde@joist-orm\");\nexport const PolymorphicKeySerde = imp(\"PolymorphicKeySerde@joist-orm\");\nexport const PrimitiveSerde = imp(\"PrimitiveSerde@joist-orm\");\nexport const BigIntSerde = imp(\"BigIntSerde@joist-orm\");\nexport const DateSerde = imp(\"DateSerde@joist-orm\");\nexport const PlainDateSerde = imp(\"PlainDateSerde@joist-orm\");\nexport const PlainTimeSerde = imp(\"PlainTimeSerde@joist-orm\");\nexport const PlainDateTimeSerde = imp(\"PlainDateTimeSerde@joist-orm\");\nexport const ZonedDateTimeSerde = imp(\"ZonedDateTimeSerde@joist-orm\");\nexport const JsonSerde = imp(\"JsonSerde@joist-orm\");\nexport const SuperstructSerde = imp(\"SuperstructSerde@joist-orm\");\nexport const TaggedId = imp(\"t:TaggedId@joist-orm\");\nexport const ZodSerde = imp(\"ZodSerde@joist-orm\");\nexport const CustomSerdeAdapter = imp(\"CustomSerdeAdapter@joist-orm\");\nexport const DecimalToNumberSerde = imp(\"DecimalToNumberSerde@joist-orm\");\nexport const fail = imp(\"fail@joist-orm\");\nexport const failNoIdYet = imp(\"failNoIdYet@joist-orm\");\nexport const setOpts = imp(\"setOpts@joist-orm\");\nexport const getField = imp(\"getField@joist-orm\");\nexport const setField = imp(\"setField@joist-orm\");\nexport const OrderBy = imp(\"t:OrderBy@joist-orm\");\nexport const OptsOf = imp(\"t:OptsOf@joist-orm\");\nexport const FieldsOf = imp(\"t:FieldsOf@joist-orm\");\nexport const RelationsOf = imp(\"t:RelationsOf@joist-orm\");\nexport const IdOf = imp(\"t:IdOf@joist-orm\");\nexport const PartialOrNull = imp(\"t:PartialOrNull@joist-orm\");\nexport const DeepPartialOrNull = imp(\"t:DeepPartialOrNull@joist-orm\");\nexport const BooleanFilter = imp(\"t:BooleanFilter@joist-orm\");\nexport const ValueFilter = imp(\"t:ValueFilter@joist-orm\");\nexport const EntityFilter = imp(\"t:EntityFilter@joist-orm\");\nexport const BooleanGraphQLFilter = imp(\"t:BooleanGraphQLFilter@joist-orm\");\nexport const EntityGraphQLFilter = imp(\"t:EntityGraphQLFilter@joist-orm\");\nexport const EnumGraphQLFilter = imp(\"t:EnumGraphQLFilter@joist-orm\");\nexport const ValueGraphQLFilter = imp(\"t:ValueGraphQLFilter@joist-orm\");\nexport const FilterOf = imp(\"t:FilterOf@joist-orm\");\nexport const GraphQLFilterOf = imp(\"t:GraphQLFilterOf@joist-orm\");\nexport const JsonHint = imp(\"t:JsonHint@joist-orm\");\nexport const ToJsonHint = imp(\"t:ToJsonHint@joist-orm\");\nexport const JsonPayload = imp(\"t:JsonPayload@joist-orm\");\nexport const configureMetadata = imp(\"configureMetadata@joist-orm\");\nexport const newRequiredRule = imp(\"newRequiredRule@joist-orm\");\nexport const newRequiredLazyFieldRule = imp(\"newRequiredLazyFieldRule@joist-orm\");\nexport const cannotBeUpdated = imp(\"cannotBeUpdated@joist-orm\");\nexport const mustBeSubType = imp(\"mustBeSubType@joist-orm\");\nexport const cleanStringValue = imp(\"cleanStringValue@joist-orm\");\nexport const Changes = imp(\"t:Changes@joist-orm\");\nexport const newChangesProxy = imp(\"newChangesProxy@joist-orm\");\nexport const nowUTC = imp(\"nowUTC@joist-orm\");\nexport const LoadHint = imp(\"t:LoadHint@joist-orm\");\nexport const Loaded = imp(\"t:Loaded@joist-orm\");\nexport const isLoaded = imp(\"isLoaded@joist-orm\");\nexport const getInstanceData = imp(\"getInstanceData@joist-orm\");\nexport const isEntity = imp(\"isEntity@joist-orm\");\nexport const loadLens = imp(\"loadLens@joist-orm\");\nexport const hasOneThrough = imp(\"hasOneThrough@joist-orm\");\nexport const hasMany = imp(\"hasMany@joist-orm\");\nexport const hasLargeMany = imp(\"hasLargeMany@joist-orm\");\nexport const hasOne = imp(\"hasOne@joist-orm\");\nexport const hasRecursiveChildren = imp(\"hasRecursiveChildren@joist-orm\");\nexport const hasRecursiveM2m = imp(\"hasRecursiveM2m@joist-orm\");\nexport const hasRecursiveParents = imp(\"hasRecursiveParents@joist-orm\");\nexport const hasOnePolymorphic = imp(\"hasOnePolymorphic@joist-orm\");\nexport const hasOneToOne = imp(\"hasOneToOne@joist-orm\");\nexport const hasManyToMany = imp(\"hasManyToMany@joist-orm\");\nexport const hasEnumCollection = imp(\"hasEnumCollection@joist-orm\");\nexport const hasLargeManyToMany = imp(\"hasLargeManyToMany@joist-orm\");\nexport const newTestInstance = imp(\"newTestInstance@joist-orm\");\nexport const New = imp(\"t:New@joist-orm\");\nexport const DeepNew = imp(\"t:DeepNew@joist-orm\");\nexport const FactoryOpts = imp(\"t:FactoryOpts@joist-orm\");\nexport const SSAssert = imp(\"assert@superstruct\");\nexport const Zod = imp(\"z@zod\");\nexport const EntityConstructor = imp(\"t:EntityConstructor@joist-orm\");\nexport const MaybeAbstractEntityConstructor = imp(\"t:MaybeAbstractEntityConstructor@joist-orm\");\nexport const deTagId = imp(\"deTagId@joist-orm\");\nexport const toIdOf = imp(\"toIdOf@joist-orm\");\nexport const toJSON = imp(\"toJSON@joist-orm\");\nexport const ReactiveField = imp(\"t:ReactiveField@joist-orm\");\nexport const ReactiveReference = imp(\"t:ReactiveReference@joist-orm\");\nexport const ReactiveManyToMany = imp(\"t:ReactiveManyToMany@joist-orm\");\nexport const ReactiveManyToManyOtherSide = imp(\"t:ReactiveManyToManyOtherSide@joist-orm\");\nexport const hasReactiveManyToManyOtherSide = imp(\"hasReactiveManyToManyOtherSide@joist-orm\");\nexport const updatePartial = imp(\"updatePartial@joist-orm\");\nexport const setRuntimeConfig = imp(\"setRuntimeConfig@joist-orm\");\n"],"mappings":";;AAEA,MAAa,gBAAgB,IAAI,wBAAwB;AACzD,MAAa,gBAAgB,IAAI,6BAA6B;AAE9D,MAAa,YAAY,IAAI,qBAAqB;AAClD,MAAa,aAAa,IAAI,sBAAsB;AACpD,MAAa,QAAQ,IAAI,mBAAmB;AAC5C,MAAa,cAAc,IAAI,yBAAyB;AACxD,MAAa,SAAS,IAAI,oBAAoB;A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C1D,MAAa,mBAAmB,IAAI,4BAA4B"}
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/tsdoc.ts
3
+ function makeTsDocComment(...lines) {
4
+ return [
5
+ "/**",
6
+ ...lines.map((l) => `* ${l}`),
7
+ "*/"
8
+ ].join("\n");
9
+ }
10
+ const tsdocComments = { entity: {
11
+ setPartial: makeTsDocComment("Partial update taking any subset of the entities fields.", "", "Unlike `set`, null is used as a marker to mean \"unset this field\", and undefined", "is left as untouched.", "", "Collections are exhaustively set to the new values, however,", "{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. ", "", "@example", "```", "entity.setPartial({", " firstName: 'foo' // updated", " lastName: undefined // do nothing", " age: null // unset, (i.e. set it as undefined)", "});", "```", "@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs "),
12
+ setDeepPartial: makeTsDocComment("Partial update taking any nested subset of the entities fields.", "", "Unlike `set`, null is used as a marker to mean \"unset this field\", and undefined", "is left as untouched.", "", "Collections are exhaustively set to the new values, however,", "{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. ", "", "@example", "```", "entity.setDeepPartial({", " firstName: 'foo' // updated", " lastName: undefined // do nothing", " age: null // unset, (i.e. set it as undefined)", " books: [{ title: \"b1\" }], // create a child book", "});", "```", "@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs "),
13
+ changes: makeTsDocComment("Details the field changes of the entity within the current unit of work.", "", "@see {@link https://joist-orm.io/features/changed-fields | Changed Fields} on the Joist docs "),
14
+ load: makeTsDocComment("Traverse from this entity using a lens, and load the result.", "", "@see {@link https://joist-orm.io/advanced/lenses | Lens Traversal} on the Joist docs"),
15
+ populate: makeTsDocComment("Hydrate this entity using a load hint", "", "@see {@link https://joist-orm.io/features/loading-entities#1-object-graph-navigation | Loading entities} on the Joist docs"),
16
+ isLoaded: makeTsDocComment("Given a load hint, checks if it is loaded within the unit of work.", "", "Type Guarded via Loaded<>", ""),
17
+ toJSON: makeTsDocComment("Build a type-safe, loadable and relation aware POJO from this entity, given a hint.", "", "Note: As the hint might load, this returns a Promise", "", "@example", "```", "const payload = await a.toJSON({", " id: true,", " books: { id: true, reviews: { rating: true } }", "});", "```", "@see {@link https://joist-orm.io/advanced/json-payloads | Json Payloads} on the Joist docs")
18
+ } };
19
+ //#endregion
20
+ exports.tsdocComments = tsdocComments;
21
+
22
+ //# sourceMappingURL=tsdoc.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc.cjs","names":[],"sources":["../src/tsdoc.ts"],"sourcesContent":["function makeTsDocComment(...lines: string[]): string {\n return [\"/**\", ...lines.map((l) => `* ${l}`), \"*/\"].join(\"\\n\");\n}\n\nexport const tsdocComments = {\n entity: {\n setPartial: makeTsDocComment(\n \"Partial update taking any subset of the entities fields.\",\n \"\",\n 'Unlike `set`, null is used as a marker to mean \"unset this field\", and undefined',\n \"is left as untouched.\",\n \"\",\n \"Collections are exhaustively set to the new values, however,\",\n \"{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. \",\n \"\",\n \"@example\",\n \"```\",\n \"entity.setPartial({\",\n \" firstName: 'foo' // updated\",\n \" lastName: undefined // do nothing\",\n \" age: null // unset, (i.e. set it as undefined)\",\n \"});\",\n \"```\",\n \"@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs \",\n ),\n setDeepPartial: makeTsDocComment(\n \"Partial update taking any nested subset of the entities fields.\",\n \"\",\n 'Unlike `set`, null is used as a marker to mean \"unset this field\", and undefined',\n \"is left as untouched.\",\n \"\",\n \"Collections are exhaustively set to the new values, however,\",\n \"{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. \",\n \"\",\n \"@example\",\n \"```\",\n \"entity.setDeepPartial({\",\n \" firstName: 'foo' // updated\",\n \" lastName: undefined // do nothing\",\n \" age: null // unset, (i.e. set it as undefined)\",\n ' books: [{ title: \"b1\" }], // create a child book',\n \"});\",\n \"```\",\n \"@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs \",\n ),\n changes: makeTsDocComment(\n \"Details the field changes of the entity within the current unit of work.\",\n \"\",\n \"@see {@link https://joist-orm.io/features/changed-fields | Changed Fields} on the Joist docs \",\n ),\n load: makeTsDocComment(\n \"Traverse from this entity using a lens, and load the result.\",\n \"\",\n \"@see {@link https://joist-orm.io/advanced/lenses | Lens Traversal} on the Joist docs\",\n ),\n populate: makeTsDocComment(\n \"Hydrate this entity using a load hint\",\n \"\",\n \"@see {@link https://joist-orm.io/features/loading-entities#1-object-graph-navigation | Loading entities} on the Joist docs\",\n ),\n isLoaded: makeTsDocComment(\n \"Given a load hint, checks if it is loaded within the unit of work.\",\n \"\",\n \"Type Guarded via Loaded<>\",\n \"\",\n ),\n toJSON: makeTsDocComment(\n \"Build a type-safe, loadable and relation aware POJO from this entity, given a hint.\",\n \"\",\n \"Note: As the hint might load, this returns a Promise\",\n \"\",\n \"@example\",\n \"```\",\n \"const payload = await a.toJSON({\",\n \" id: true,\",\n \" books: { id: true, reviews: { rating: true } }\",\n \"});\",\n \"```\",\n \"@see {@link https://joist-orm.io/advanced/json-payloads | Json Payloads} on the Joist docs\",\n ),\n },\n};\n"],"mappings":";;AAAA,SAAS,iBAAiB,GAAG,OAAyB;CACpD,OAAO;EAAC;EAAO,GAAG,MAAM,KAAK,MAAM,KAAK,GAAG;EAAG;CAAI,CAAC,CAAC,KAAK,IAAI;AAC/D;AAEA,MAAa,gBAAgB,EAC3B,QAAQ;CACN,YAAY,iBACV,4DACA,IACA,sFACA,yBACA,IACA,gEACA,6IACA,IACA,YACA,OACA,uBACA,iCACA,uCACA,oDACA,OACA,OACA,yGACF;CACA,gBAAgB,iBACd,mEACA,IACA,sFACA,yBACA,IACA,gEACA,6IACA,IACA,YACA,OACA,2BACA,iCACA,uCACA,oDACA,wDACA,OACA,OACA,yGACF;CACA,SAAS,iBACP,4EACA,IACA,+FACF;CACA,MAAM,iBACJ,gEACA,IACA,sFACF;CACA,UAAU,iBACR,yCACA,IACA,4HACF;CACA,UAAU,iBACR,sEACA,IACA,6BACA,EACF;CACA,QAAQ,iBACN,uFACA,IACA,wDACA,IACA,YACA,OACA,oCACA,eACA,oDACA,OACA,OACA,4FACF;AACF,EACF"}
@@ -0,0 +1,15 @@
1
+ //#region src/tsdoc.d.ts
2
+ declare const tsdocComments: {
3
+ entity: {
4
+ setPartial: string;
5
+ setDeepPartial: string;
6
+ changes: string;
7
+ load: string;
8
+ populate: string;
9
+ isLoaded: string;
10
+ toJSON: string;
11
+ };
12
+ };
13
+ //#endregion
14
+ export { tsdocComments };
15
+ //# sourceMappingURL=tsdoc.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc.d.cts","names":[],"sources":["../src/tsdoc.ts"],"mappings":";cAIa;EACX;IACE;IAmBA;IAoBA;IAKA;IAKA;IAKA;IAMA"}
@@ -0,0 +1,15 @@
1
+ //#region src/tsdoc.d.ts
2
+ declare const tsdocComments: {
3
+ entity: {
4
+ setPartial: string;
5
+ setDeepPartial: string;
6
+ changes: string;
7
+ load: string;
8
+ populate: string;
9
+ isLoaded: string;
10
+ toJSON: string;
11
+ };
12
+ };
13
+ //#endregion
14
+ export { tsdocComments };
15
+ //# sourceMappingURL=tsdoc.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsdoc.d.mts","names":[],"sources":["../src/tsdoc.ts"],"mappings":";cAIa;EACX;IACE;IAmBA;IAoBA;IAKA;IAKA;IAKA;IAMA"}
package/build/tsdoc.js CHANGED
@@ -1,18 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tsdocComments = void 0;
1
+ //#region src/tsdoc.ts
4
2
  function makeTsDocComment(...lines) {
5
- return ["/**", ...lines.map((l) => `* ${l}`), "*/"].join("\n");
3
+ return [
4
+ "/**",
5
+ ...lines.map((l) => `* ${l}`),
6
+ "*/"
7
+ ].join("\n");
6
8
  }
7
- exports.tsdocComments = {
8
- entity: {
9
- setPartial: makeTsDocComment("Partial update taking any subset of the entities fields.", "", 'Unlike `set`, null is used as a marker to mean "unset this field", and undefined', "is left as untouched.", "", "Collections are exhaustively set to the new values, however,", "{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. ", "", "@example", "```", "entity.setPartial({", " firstName: 'foo' // updated", " lastName: undefined // do nothing", " age: null // unset, (i.e. set it as undefined)", "});", "```", "@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs "),
10
- setDeepPartial: makeTsDocComment("Partial update taking any nested subset of the entities fields.", "", 'Unlike `set`, null is used as a marker to mean "unset this field", and undefined', "is left as untouched.", "", "Collections are exhaustively set to the new values, however,", "{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. ", "", "@example", "```", "entity.setDeepPartial({", " firstName: 'foo' // updated", " lastName: undefined // do nothing", " age: null // unset, (i.e. set it as undefined)", ' books: [{ title: "b1" }], // create a child book', "});", "```", "@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs "),
11
- changes: makeTsDocComment("Details the field changes of the entity within the current unit of work.", "", "@see {@link https://joist-orm.io/features/changed-fields | Changed Fields} on the Joist docs "),
12
- load: makeTsDocComment("Traverse from this entity using a lens, and load the result.", "", "@see {@link https://joist-orm.io/advanced/lenses | Lens Traversal} on the Joist docs"),
13
- populate: makeTsDocComment("Hydrate this entity using a load hint", "", "@see {@link https://joist-orm.io/features/loading-entities#1-object-graph-navigation | Loading entities} on the Joist docs"),
14
- isLoaded: makeTsDocComment("Given a load hint, checks if it is loaded within the unit of work.", "", "Type Guarded via Loaded<>", ""),
15
- toJSON: makeTsDocComment("Build a type-safe, loadable and relation aware POJO from this entity, given a hint.", "", "Note: As the hint might load, this returns a Promise", "", "@example", "```", "const payload = await a.toJSON({", " id: true,", " books: { id: true, reviews: { rating: true } }", "});", "```", "@see {@link https://joist-orm.io/advanced/json-payloads | Json Payloads} on the Joist docs"),
16
- },
17
- };
9
+ const tsdocComments = { entity: {
10
+ setPartial: makeTsDocComment("Partial update taking any subset of the entities fields.", "", "Unlike `set`, null is used as a marker to mean \"unset this field\", and undefined", "is left as untouched.", "", "Collections are exhaustively set to the new values, however,", "{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. ", "", "@example", "```", "entity.setPartial({", " firstName: 'foo' // updated", " lastName: undefined // do nothing", " age: null // unset, (i.e. set it as undefined)", "});", "```", "@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs "),
11
+ setDeepPartial: makeTsDocComment("Partial update taking any nested subset of the entities fields.", "", "Unlike `set`, null is used as a marker to mean \"unset this field\", and undefined", "is left as untouched.", "", "Collections are exhaustively set to the new values, however,", "{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. ", "", "@example", "```", "entity.setDeepPartial({", " firstName: 'foo' // updated", " lastName: undefined // do nothing", " age: null // unset, (i.e. set it as undefined)", " books: [{ title: \"b1\" }], // create a child book", "});", "```", "@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs "),
12
+ changes: makeTsDocComment("Details the field changes of the entity within the current unit of work.", "", "@see {@link https://joist-orm.io/features/changed-fields | Changed Fields} on the Joist docs "),
13
+ load: makeTsDocComment("Traverse from this entity using a lens, and load the result.", "", "@see {@link https://joist-orm.io/advanced/lenses | Lens Traversal} on the Joist docs"),
14
+ populate: makeTsDocComment("Hydrate this entity using a load hint", "", "@see {@link https://joist-orm.io/features/loading-entities#1-object-graph-navigation | Loading entities} on the Joist docs"),
15
+ isLoaded: makeTsDocComment("Given a load hint, checks if it is loaded within the unit of work.", "", "Type Guarded via Loaded<>", ""),
16
+ toJSON: makeTsDocComment("Build a type-safe, loadable and relation aware POJO from this entity, given a hint.", "", "Note: As the hint might load, this returns a Promise", "", "@example", "```", "const payload = await a.toJSON({", " id: true,", " books: { id: true, reviews: { rating: true } }", "});", "```", "@see {@link https://joist-orm.io/advanced/json-payloads | Json Payloads} on the Joist docs")
17
+ } };
18
+ //#endregion
19
+ export { tsdocComments };
20
+
18
21
  //# sourceMappingURL=tsdoc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsdoc.js","sourceRoot":"","sources":["../src/tsdoc.ts"],"names":[],"mappings":";;;AAAA,SAAS,gBAAgB,CAAC,GAAG,KAAe;IAC1C,OAAO,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAEY,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE;QACN,UAAU,EAAE,gBAAgB,CAC1B,0DAA0D,EAC1D,EAAE,EACF,kFAAkF,EAClF,uBAAuB,EACvB,EAAE,EACF,8DAA8D,EAC9D,2IAA2I,EAC3I,EAAE,EACF,UAAU,EACV,KAAK,EACL,qBAAqB,EACrB,+BAA+B,EAC/B,qCAAqC,EACrC,kDAAkD,EAClD,KAAK,EACL,KAAK,EACL,yGAAyG,CAC1G;QACD,cAAc,EAAE,gBAAgB,CAC9B,iEAAiE,EACjE,EAAE,EACF,kFAAkF,EAClF,uBAAuB,EACvB,EAAE,EACF,8DAA8D,EAC9D,2IAA2I,EAC3I,EAAE,EACF,UAAU,EACV,KAAK,EACL,yBAAyB,EACzB,+BAA+B,EAC/B,qCAAqC,EACrC,kDAAkD,EAClD,oDAAoD,EACpD,KAAK,EACL,KAAK,EACL,yGAAyG,CAC1G;QACD,OAAO,EAAE,gBAAgB,CACvB,0EAA0E,EAC1E,EAAE,EACF,+FAA+F,CAChG;QACD,IAAI,EAAE,gBAAgB,CACpB,8DAA8D,EAC9D,EAAE,EACF,sFAAsF,CACvF;QACD,QAAQ,EAAE,gBAAgB,CACxB,uCAAuC,EACvC,EAAE,EACF,4HAA4H,CAC7H;QACD,QAAQ,EAAE,gBAAgB,CACxB,oEAAoE,EACpE,EAAE,EACF,2BAA2B,EAC3B,EAAE,CACH;QACD,MAAM,EAAE,gBAAgB,CACtB,qFAAqF,EACrF,EAAE,EACF,sDAAsD,EACtD,EAAE,EACF,UAAU,EACV,KAAK,EACL,kCAAkC,EAClC,aAAa,EACb,kDAAkD,EAClD,KAAK,EACL,KAAK,EACL,4FAA4F,CAC7F;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"tsdoc.js","names":[],"sources":["../src/tsdoc.ts"],"sourcesContent":["function makeTsDocComment(...lines: string[]): string {\n return [\"/**\", ...lines.map((l) => `* ${l}`), \"*/\"].join(\"\\n\");\n}\n\nexport const tsdocComments = {\n entity: {\n setPartial: makeTsDocComment(\n \"Partial update taking any subset of the entities fields.\",\n \"\",\n 'Unlike `set`, null is used as a marker to mean \"unset this field\", and undefined',\n \"is left as untouched.\",\n \"\",\n \"Collections are exhaustively set to the new values, however,\",\n \"{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. \",\n \"\",\n \"@example\",\n \"```\",\n \"entity.setPartial({\",\n \" firstName: 'foo' // updated\",\n \" lastName: undefined // do nothing\",\n \" age: null // unset, (i.e. set it as undefined)\",\n \"});\",\n \"```\",\n \"@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs \",\n ),\n setDeepPartial: makeTsDocComment(\n \"Partial update taking any nested subset of the entities fields.\",\n \"\",\n 'Unlike `set`, null is used as a marker to mean \"unset this field\", and undefined',\n \"is left as untouched.\",\n \"\",\n \"Collections are exhaustively set to the new values, however,\",\n \"{@link https://joist-orm.io/features/partial-update-apis#incremental-collection-updates | Incremental collection updates} are supported. \",\n \"\",\n \"@example\",\n \"```\",\n \"entity.setDeepPartial({\",\n \" firstName: 'foo' // updated\",\n \" lastName: undefined // do nothing\",\n \" age: null // unset, (i.e. set it as undefined)\",\n ' books: [{ title: \"b1\" }], // create a child book',\n \"});\",\n \"```\",\n \"@see {@link https://joist-orm.io/features/partial-update-apis | Partial Update APIs} on the Joist docs \",\n ),\n changes: makeTsDocComment(\n \"Details the field changes of the entity within the current unit of work.\",\n \"\",\n \"@see {@link https://joist-orm.io/features/changed-fields | Changed Fields} on the Joist docs \",\n ),\n load: makeTsDocComment(\n \"Traverse from this entity using a lens, and load the result.\",\n \"\",\n \"@see {@link https://joist-orm.io/advanced/lenses | Lens Traversal} on the Joist docs\",\n ),\n populate: makeTsDocComment(\n \"Hydrate this entity using a load hint\",\n \"\",\n \"@see {@link https://joist-orm.io/features/loading-entities#1-object-graph-navigation | Loading entities} on the Joist docs\",\n ),\n isLoaded: makeTsDocComment(\n \"Given a load hint, checks if it is loaded within the unit of work.\",\n \"\",\n \"Type Guarded via Loaded<>\",\n \"\",\n ),\n toJSON: makeTsDocComment(\n \"Build a type-safe, loadable and relation aware POJO from this entity, given a hint.\",\n \"\",\n \"Note: As the hint might load, this returns a Promise\",\n \"\",\n \"@example\",\n \"```\",\n \"const payload = await a.toJSON({\",\n \" id: true,\",\n \" books: { id: true, reviews: { rating: true } }\",\n \"});\",\n \"```\",\n \"@see {@link https://joist-orm.io/advanced/json-payloads | Json Payloads} on the Joist docs\",\n ),\n },\n};\n"],"mappings":";AAAA,SAAS,iBAAiB,GAAG,OAAyB;CACpD,OAAO;EAAC;EAAO,GAAG,MAAM,KAAK,MAAM,KAAK,GAAG;EAAG;CAAI,CAAC,CAAC,KAAK,IAAI;AAC/D;AAEA,MAAa,gBAAgB,EAC3B,QAAQ;CACN,YAAY,iBACV,4DACA,IACA,sFACA,yBACA,IACA,gEACA,6IACA,IACA,YACA,OACA,uBACA,iCACA,uCACA,oDACA,OACA,OACA,yGACF;CACA,gBAAgB,iBACd,mEACA,IACA,sFACA,yBACA,IACA,gEACA,6IACA,IACA,YACA,OACA,2BACA,iCACA,uCACA,oDACA,wDACA,OACA,OACA,yGACF;CACA,SAAS,iBACP,4EACA,IACA,+FACF;CACA,MAAM,iBACJ,gEACA,IACA,sFACF;CACA,UAAU,iBACR,yCACA,IACA,4HACF;CACA,UAAU,iBACR,sEACA,IACA,6BACA,EACF;CACA,QAAQ,iBACN,uFACA,IACA,wDACA,IACA,YACA,OACA,oCACA,eACA,oDACA,OACA,OACA,4FACF;AACF,EACF"}