@nixxie-cms/core 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (658) hide show
  1. package/CHANGELOG.md +3158 -0
  2. package/LICENSE +21 -0
  3. package/README.md +6 -0
  4. package/___internal-do-not-use-will-break-in-patch/admin-ui/id-field-view/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-id-field-view.cjs.d.ts +2 -0
  5. package/___internal-do-not-use-will-break-in-patch/admin-ui/id-field-view/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-id-field-view.cjs.js +244 -0
  6. package/___internal-do-not-use-will-break-in-patch/admin-ui/id-field-view/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-id-field-view.esm.js +235 -0
  7. package/___internal-do-not-use-will-break-in-patch/admin-ui/id-field-view/package.json +4 -0
  8. package/___internal-do-not-use-will-break-in-patch/admin-ui/next-config/package.json +4 -0
  9. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/App/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-App.cjs.d.ts +2 -0
  10. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/App/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-App.cjs.js +59 -0
  11. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/App/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-App.esm.js +55 -0
  12. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/App/package.json +4 -0
  13. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/CreateItemPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-CreateItemPage.cjs.d.ts +2 -0
  14. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/CreateItemPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-CreateItemPage.cjs.js +116 -0
  15. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/CreateItemPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-CreateItemPage.esm.js +112 -0
  16. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/CreateItemPage/package.json +4 -0
  17. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/HomePage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-HomePage.cjs.d.ts +2 -0
  18. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/HomePage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-HomePage.cjs.js +336 -0
  19. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/HomePage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-HomePage.esm.js +332 -0
  20. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/HomePage/package.json +4 -0
  21. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ItemPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-ItemPage.cjs.d.ts +2 -0
  22. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ItemPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-ItemPage.cjs.js +463 -0
  23. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ItemPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-ItemPage.esm.js +455 -0
  24. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ItemPage/package.json +4 -0
  25. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-ListPage.cjs.d.ts +2 -0
  26. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-ListPage.cjs.js +1195 -0
  27. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-ListPage.esm.js +1187 -0
  28. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/package.json +4 -0
  29. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/NoAccessPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-NoAccessPage.cjs.d.ts +2 -0
  30. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/NoAccessPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-NoAccessPage.cjs.js +40 -0
  31. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/NoAccessPage/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-admin-ui-pages-NoAccessPage.esm.js +35 -0
  32. package/___internal-do-not-use-will-break-in-patch/admin-ui/pages/NoAccessPage/package.json +4 -0
  33. package/___internal-do-not-use-will-break-in-patch/artifacts/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-artifacts.cjs.d.ts +2 -0
  34. package/___internal-do-not-use-will-break-in-patch/artifacts/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-artifacts.cjs.js +51 -0
  35. package/___internal-do-not-use-will-break-in-patch/artifacts/dist/nixxie-cms-core-___internal-do-not-use-will-break-in-patch-artifacts.esm.js +38 -0
  36. package/___internal-do-not-use-will-break-in-patch/artifacts/package.json +4 -0
  37. package/access/dist/nixxie-cms-core-access.cjs.d.ts +2 -0
  38. package/access/dist/nixxie-cms-core-access.cjs.js +26 -0
  39. package/access/dist/nixxie-cms-core-access.esm.js +19 -0
  40. package/access/package.json +4 -0
  41. package/admin-ui/apollo/dist/nixxie-cms-core-admin-ui-apollo.cjs.d.ts +2 -0
  42. package/admin-ui/apollo/dist/nixxie-cms-core-admin-ui-apollo.cjs.js +87 -0
  43. package/admin-ui/apollo/dist/nixxie-cms-core-admin-ui-apollo.esm.js +2 -0
  44. package/admin-ui/apollo/package.json +4 -0
  45. package/admin-ui/components/dist/nixxie-cms-core-admin-ui-components.cjs.d.ts +2 -0
  46. package/admin-ui/components/dist/nixxie-cms-core-admin-ui-components.cjs.js +77 -0
  47. package/admin-ui/components/dist/nixxie-cms-core-admin-ui-components.esm.js +58 -0
  48. package/admin-ui/components/package.json +4 -0
  49. package/admin-ui/context/dist/nixxie-cms-core-admin-ui-context.cjs.d.ts +2 -0
  50. package/admin-ui/context/dist/nixxie-cms-core-admin-ui-context.cjs.js +35 -0
  51. package/admin-ui/context/dist/nixxie-cms-core-admin-ui-context.esm.js +23 -0
  52. package/admin-ui/context/package.json +4 -0
  53. package/admin-ui/image/dist/nixxie-cms-core-admin-ui-image.cjs.d.ts +3 -0
  54. package/admin-ui/image/dist/nixxie-cms-core-admin-ui-image.cjs.js +18 -0
  55. package/admin-ui/image/dist/nixxie-cms-core-admin-ui-image.esm.js +2 -0
  56. package/admin-ui/image/package.json +4 -0
  57. package/admin-ui/router/dist/nixxie-cms-core-admin-ui-router.cjs.d.ts +2 -0
  58. package/admin-ui/router/dist/nixxie-cms-core-admin-ui-router.cjs.js +34 -0
  59. package/admin-ui/router/dist/nixxie-cms-core-admin-ui-router.esm.js +12 -0
  60. package/admin-ui/router/package.json +4 -0
  61. package/admin-ui/utils/dist/nixxie-cms-core-admin-ui-utils.cjs.d.ts +2 -0
  62. package/admin-ui/utils/dist/nixxie-cms-core-admin-ui-utils.cjs.js +45 -0
  63. package/admin-ui/utils/dist/nixxie-cms-core-admin-ui-utils.esm.js +22 -0
  64. package/admin-ui/utils/package.json +4 -0
  65. package/bin/cli.js +3 -0
  66. package/context/dist/nixxie-cms-core-context.cjs.d.ts +2 -0
  67. package/context/dist/nixxie-cms-core-context.cjs.js +31 -0
  68. package/context/dist/nixxie-cms-core-context.esm.js +23 -0
  69. package/context/package.json +4 -0
  70. package/dist/CreateItemDialog-33335548.esm.js +55 -0
  71. package/dist/CreateItemDialog-56cf59b7.cjs.js +57 -0
  72. package/dist/Errors-575adfa3.cjs.js +147 -0
  73. package/dist/Errors-bf24759e.esm.js +143 -0
  74. package/dist/Field-47f85161.esm.js +278 -0
  75. package/dist/Field-ed8d7627.cjs.js +287 -0
  76. package/dist/Fields-956d9a14.esm.js +203 -0
  77. package/dist/Fields-e2c28056.cjs.js +206 -0
  78. package/dist/GraphQLErrorNotice-cd74180d.cjs.js +57 -0
  79. package/dist/GraphQLErrorNotice-d9f0931b.esm.js +55 -0
  80. package/dist/NullableFieldWrapper-6ea48af3.esm.js +71 -0
  81. package/dist/NullableFieldWrapper-daa0a080.cjs.js +74 -0
  82. package/dist/PageContainer-27c27f10.cjs.js +1144 -0
  83. package/dist/PageContainer-7db73317.esm.js +1129 -0
  84. package/dist/actionData-64d4c37a.esm.js +28 -0
  85. package/dist/actionData-7858738d.cjs.js +32 -0
  86. package/dist/admin-meta-14c60fec.esm.js +210 -0
  87. package/dist/admin-meta-18d0c276.cjs.js +217 -0
  88. package/dist/admin-meta-graphql-6f7f5331.esm.js +142 -0
  89. package/dist/admin-meta-graphql-c8f926e9.cjs.js +144 -0
  90. package/dist/common-1a350e11.cjs.js +324 -0
  91. package/dist/common-29fc82e6.esm.js +315 -0
  92. package/dist/context-3132c3ed.esm.js +419 -0
  93. package/dist/context-e7a45152.cjs.js +432 -0
  94. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/id-field-view.d.ts +6 -0
  95. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/id-field-view.d.ts.map +1 -0
  96. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/App/index.d.ts +10 -0
  97. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/App/index.d.ts.map +1 -0
  98. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/CreateItemPage/index.d.ts +6 -0
  99. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/CreateItemPage/index.d.ts.map +1 -0
  100. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/HomePage/index.d.ts +2 -0
  101. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/HomePage/index.d.ts.map +1 -0
  102. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ItemPage/index.d.ts +6 -0
  103. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ItemPage/index.d.ts.map +1 -0
  104. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/index.d.ts +12 -0
  105. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/index.d.ts.map +1 -0
  106. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/NoAccessPage/index.d.ts +7 -0
  107. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/NoAccessPage/index.d.ts.map +1 -0
  108. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/artifacts.d.ts +6 -0
  109. package/dist/declarations/src/___internal-do-not-use-will-break-in-patch/artifacts.d.ts.map +1 -0
  110. package/dist/declarations/src/access.d.ts +12 -0
  111. package/dist/declarations/src/access.d.ts.map +1 -0
  112. package/dist/declarations/src/admin-ui/apollo.d.ts +8 -0
  113. package/dist/declarations/src/admin-ui/apollo.d.ts.map +1 -0
  114. package/dist/declarations/src/admin-ui/components/CellContainer.d.ts +5 -0
  115. package/dist/declarations/src/admin-ui/components/CellContainer.d.ts.map +1 -0
  116. package/dist/declarations/src/admin-ui/components/CreateItemDialog.d.ts +5 -0
  117. package/dist/declarations/src/admin-ui/components/CreateItemDialog.d.ts.map +1 -0
  118. package/dist/declarations/src/admin-ui/components/Errors.d.ts +28 -0
  119. package/dist/declarations/src/admin-ui/components/Errors.d.ts.map +1 -0
  120. package/dist/declarations/src/admin-ui/components/GraphQLErrorNotice.d.ts +6 -0
  121. package/dist/declarations/src/admin-ui/components/GraphQLErrorNotice.d.ts.map +1 -0
  122. package/dist/declarations/src/admin-ui/components/InlineCode.d.ts +3 -0
  123. package/dist/declarations/src/admin-ui/components/InlineCode.d.ts.map +1 -0
  124. package/dist/declarations/src/admin-ui/components/Logo.d.ts +2 -0
  125. package/dist/declarations/src/admin-ui/components/Logo.d.ts.map +1 -0
  126. package/dist/declarations/src/admin-ui/components/Navigation.d.ts +22 -0
  127. package/dist/declarations/src/admin-ui/components/Navigation.d.ts.map +1 -0
  128. package/dist/declarations/src/admin-ui/components/NullableFieldWrapper.d.ts +33 -0
  129. package/dist/declarations/src/admin-ui/components/NullableFieldWrapper.d.ts.map +1 -0
  130. package/dist/declarations/src/admin-ui/components/PageContainer.d.ts +10 -0
  131. package/dist/declarations/src/admin-ui/components/PageContainer.d.ts.map +1 -0
  132. package/dist/declarations/src/admin-ui/components/index.d.ts +11 -0
  133. package/dist/declarations/src/admin-ui/components/index.d.ts.map +1 -0
  134. package/dist/declarations/src/admin-ui/context.d.ts +50 -0
  135. package/dist/declarations/src/admin-ui/context.d.ts.map +1 -0
  136. package/dist/declarations/src/admin-ui/image.d.ts +3 -0
  137. package/dist/declarations/src/admin-ui/image.d.ts.map +1 -0
  138. package/dist/declarations/src/admin-ui/router.d.ts +15 -0
  139. package/dist/declarations/src/admin-ui/router.d.ts.map +1 -0
  140. package/dist/declarations/src/admin-ui/utils/Fields.d.ts +16 -0
  141. package/dist/declarations/src/admin-ui/utils/Fields.d.ts.map +1 -0
  142. package/dist/declarations/src/admin-ui/utils/filters.d.ts +10 -0
  143. package/dist/declarations/src/admin-ui/utils/filters.d.ts.map +1 -0
  144. package/dist/declarations/src/admin-ui/utils/index.d.ts +8 -0
  145. package/dist/declarations/src/admin-ui/utils/index.d.ts.map +1 -0
  146. package/dist/declarations/src/admin-ui/utils/useCreateItem.d.ts +24 -0
  147. package/dist/declarations/src/admin-ui/utils/useCreateItem.d.ts.map +1 -0
  148. package/dist/declarations/src/admin-ui/utils/utils.d.ts +8 -0
  149. package/dist/declarations/src/admin-ui/utils/utils.d.ts.map +1 -0
  150. package/dist/declarations/src/artifacts.d.ts +14 -0
  151. package/dist/declarations/src/artifacts.d.ts.map +1 -0
  152. package/dist/declarations/src/context.d.ts +2 -0
  153. package/dist/declarations/src/context.d.ts.map +1 -0
  154. package/dist/declarations/src/fields/filters/enum-filter.d.ts +27 -0
  155. package/dist/declarations/src/fields/filters/enum-filter.d.ts.map +1 -0
  156. package/dist/declarations/src/fields/filters/index.d.ts +2 -0
  157. package/dist/declarations/src/fields/filters/index.d.ts.map +1 -0
  158. package/dist/declarations/src/fields/filters/internal.d.ts +21 -0
  159. package/dist/declarations/src/fields/filters/internal.d.ts.map +1 -0
  160. package/dist/declarations/src/fields/filters/providers/mysql.d.ts +182 -0
  161. package/dist/declarations/src/fields/filters/providers/mysql.d.ts.map +1 -0
  162. package/dist/declarations/src/fields/filters/providers/postgresql.d.ts +182 -0
  163. package/dist/declarations/src/fields/filters/providers/postgresql.d.ts.map +1 -0
  164. package/dist/declarations/src/fields/filters/providers/sqlite.d.ts +179 -0
  165. package/dist/declarations/src/fields/filters/providers/sqlite.d.ts.map +1 -0
  166. package/dist/declarations/src/fields/index.d.ts +35 -0
  167. package/dist/declarations/src/fields/index.d.ts.map +1 -0
  168. package/dist/declarations/src/fields/types/bigInt/index.d.ts +20 -0
  169. package/dist/declarations/src/fields/types/bigInt/index.d.ts.map +1 -0
  170. package/dist/declarations/src/fields/types/bigInt/views/index.d.ts +24 -0
  171. package/dist/declarations/src/fields/types/bigInt/views/index.d.ts.map +1 -0
  172. package/dist/declarations/src/fields/types/bytes/index.d.ts +70 -0
  173. package/dist/declarations/src/fields/types/bytes/index.d.ts.map +1 -0
  174. package/dist/declarations/src/fields/types/bytes/views/index.d.ts +24 -0
  175. package/dist/declarations/src/fields/types/bytes/views/index.d.ts.map +1 -0
  176. package/dist/declarations/src/fields/types/calendarDay/index.d.ts +15 -0
  177. package/dist/declarations/src/fields/types/calendarDay/index.d.ts.map +1 -0
  178. package/dist/declarations/src/fields/types/calendarDay/views/index.d.ts +18 -0
  179. package/dist/declarations/src/fields/types/calendarDay/views/index.d.ts.map +1 -0
  180. package/dist/declarations/src/fields/types/checkbox/index.d.ts +11 -0
  181. package/dist/declarations/src/fields/types/checkbox/index.d.ts.map +1 -0
  182. package/dist/declarations/src/fields/types/checkbox/views/index.d.ts +9 -0
  183. package/dist/declarations/src/fields/types/checkbox/views/index.d.ts.map +1 -0
  184. package/dist/declarations/src/fields/types/decimal/index.d.ts +20 -0
  185. package/dist/declarations/src/fields/types/decimal/index.d.ts.map +1 -0
  186. package/dist/declarations/src/fields/types/decimal/views/index.d.ts +22 -0
  187. package/dist/declarations/src/fields/types/decimal/views/index.d.ts.map +1 -0
  188. package/dist/declarations/src/fields/types/file/index.d.ts +34 -0
  189. package/dist/declarations/src/fields/types/file/index.d.ts.map +1 -0
  190. package/dist/declarations/src/fields/types/file/views/Field.d.ts +17 -0
  191. package/dist/declarations/src/fields/types/file/views/Field.d.ts.map +1 -0
  192. package/dist/declarations/src/fields/types/file/views/index.d.ts +29 -0
  193. package/dist/declarations/src/fields/types/file/views/index.d.ts.map +1 -0
  194. package/dist/declarations/src/fields/types/float/index.d.ts +18 -0
  195. package/dist/declarations/src/fields/types/float/index.d.ts.map +1 -0
  196. package/dist/declarations/src/fields/types/float/views/index.d.ts +22 -0
  197. package/dist/declarations/src/fields/types/float/views/index.d.ts.map +1 -0
  198. package/dist/declarations/src/fields/types/image/index.d.ts +34 -0
  199. package/dist/declarations/src/fields/types/image/index.d.ts.map +1 -0
  200. package/dist/declarations/src/fields/types/image/utils.d.ts +2 -0
  201. package/dist/declarations/src/fields/types/image/utils.d.ts.map +1 -0
  202. package/dist/declarations/src/fields/types/image/views/Field.d.ts +4 -0
  203. package/dist/declarations/src/fields/types/image/views/Field.d.ts.map +1 -0
  204. package/dist/declarations/src/fields/types/image/views/index.d.ts +49 -0
  205. package/dist/declarations/src/fields/types/image/views/index.d.ts.map +1 -0
  206. package/dist/declarations/src/fields/types/integer/index.d.ts +20 -0
  207. package/dist/declarations/src/fields/types/integer/index.d.ts.map +1 -0
  208. package/dist/declarations/src/fields/types/integer/views/index.d.ts +23 -0
  209. package/dist/declarations/src/fields/types/integer/views/index.d.ts.map +1 -0
  210. package/dist/declarations/src/fields/types/json/index.d.ts +25 -0
  211. package/dist/declarations/src/fields/types/json/index.d.ts.map +1 -0
  212. package/dist/declarations/src/fields/types/json/views/index.d.ts +9 -0
  213. package/dist/declarations/src/fields/types/json/views/index.d.ts.map +1 -0
  214. package/dist/declarations/src/fields/types/multiselect/index.d.ts +50 -0
  215. package/dist/declarations/src/fields/types/multiselect/index.d.ts.map +1 -0
  216. package/dist/declarations/src/fields/types/multiselect/views/index.d.ts +26 -0
  217. package/dist/declarations/src/fields/types/multiselect/views/index.d.ts.map +1 -0
  218. package/dist/declarations/src/fields/types/password/index.d.ts +49 -0
  219. package/dist/declarations/src/fields/types/password/index.d.ts.map +1 -0
  220. package/dist/declarations/src/fields/types/password/views/index.d.ts +47 -0
  221. package/dist/declarations/src/fields/types/password/views/index.d.ts.map +1 -0
  222. package/dist/declarations/src/fields/types/relationship/index.d.ts +113 -0
  223. package/dist/declarations/src/fields/types/relationship/index.d.ts.map +1 -0
  224. package/dist/declarations/src/fields/types/relationship/views/ComboboxMany.d.ts +26 -0
  225. package/dist/declarations/src/fields/types/relationship/views/ComboboxMany.d.ts.map +1 -0
  226. package/dist/declarations/src/fields/types/relationship/views/ComboboxSingle.d.ts +24 -0
  227. package/dist/declarations/src/fields/types/relationship/views/ComboboxSingle.d.ts.map +1 -0
  228. package/dist/declarations/src/fields/types/relationship/views/index.d.ts +27 -0
  229. package/dist/declarations/src/fields/types/relationship/views/index.d.ts.map +1 -0
  230. package/dist/declarations/src/fields/types/relationship/views/types.d.ts +39 -0
  231. package/dist/declarations/src/fields/types/relationship/views/types.d.ts.map +1 -0
  232. package/dist/declarations/src/fields/types/select/index.d.ts +42 -0
  233. package/dist/declarations/src/fields/types/select/index.d.ts.map +1 -0
  234. package/dist/declarations/src/fields/types/select/views/index.d.ts +32 -0
  235. package/dist/declarations/src/fields/types/select/views/index.d.ts.map +1 -0
  236. package/dist/declarations/src/fields/types/text/index.d.ts +58 -0
  237. package/dist/declarations/src/fields/types/text/index.d.ts.map +1 -0
  238. package/dist/declarations/src/fields/types/text/views/index.d.ts +36 -0
  239. package/dist/declarations/src/fields/types/text/views/index.d.ts.map +1 -0
  240. package/dist/declarations/src/fields/types/timestamp/index.d.ts +19 -0
  241. package/dist/declarations/src/fields/types/timestamp/index.d.ts.map +1 -0
  242. package/dist/declarations/src/fields/types/timestamp/views/index.d.ts +14 -0
  243. package/dist/declarations/src/fields/types/timestamp/views/index.d.ts.map +1 -0
  244. package/dist/declarations/src/fields/types/timestamp/views/utils.d.ts +14 -0
  245. package/dist/declarations/src/fields/types/timestamp/views/utils.d.ts.map +1 -0
  246. package/dist/declarations/src/fields/types/virtual/index.d.ts +40 -0
  247. package/dist/declarations/src/fields/types/virtual/index.d.ts.map +1 -0
  248. package/dist/declarations/src/fields/types/virtual/views/index.d.ts +7 -0
  249. package/dist/declarations/src/fields/types/virtual/views/index.d.ts.map +1 -0
  250. package/dist/declarations/src/graphql-ts.d.ts +5 -0
  251. package/dist/declarations/src/graphql-ts.d.ts.map +1 -0
  252. package/dist/declarations/src/helpers.d.ts +121 -0
  253. package/dist/declarations/src/helpers.d.ts.map +1 -0
  254. package/dist/declarations/src/index.d.ts +6 -0
  255. package/dist/declarations/src/index.d.ts.map +1 -0
  256. package/dist/declarations/src/lib/admin-meta.d.ts +71 -0
  257. package/dist/declarations/src/lib/admin-meta.d.ts.map +1 -0
  258. package/dist/declarations/src/lib/core/access-control.d.ts +39 -0
  259. package/dist/declarations/src/lib/core/access-control.d.ts.map +1 -0
  260. package/dist/declarations/src/lib/core/initialise-lists.d.ts +131 -0
  261. package/dist/declarations/src/lib/core/initialise-lists.d.ts.map +1 -0
  262. package/dist/declarations/src/lib/core/resolve-relationships.d.ts +30 -0
  263. package/dist/declarations/src/lib/core/resolve-relationships.d.ts.map +1 -0
  264. package/dist/declarations/src/lib/core/where-inputs.d.ts +15 -0
  265. package/dist/declarations/src/lib/core/where-inputs.d.ts.map +1 -0
  266. package/dist/declarations/src/lib/express.d.ts +10 -0
  267. package/dist/declarations/src/lib/express.d.ts.map +1 -0
  268. package/dist/declarations/src/lib/migrations.d.ts +13 -0
  269. package/dist/declarations/src/lib/migrations.d.ts.map +1 -0
  270. package/dist/declarations/src/lib/system.d.ts +35 -0
  271. package/dist/declarations/src/lib/system.d.ts.map +1 -0
  272. package/dist/declarations/src/schema.d.ts +40 -0
  273. package/dist/declarations/src/schema.d.ts.map +1 -0
  274. package/dist/declarations/src/scripts/cli.d.ts +11 -0
  275. package/dist/declarations/src/scripts/cli.d.ts.map +1 -0
  276. package/dist/declarations/src/scripts/index.d.ts +2 -0
  277. package/dist/declarations/src/scripts/index.d.ts.map +1 -0
  278. package/dist/declarations/src/scripts/utils.d.ts +7 -0
  279. package/dist/declarations/src/scripts/utils.d.ts.map +1 -0
  280. package/dist/declarations/src/session.d.ts +86 -0
  281. package/dist/declarations/src/session.d.ts.map +1 -0
  282. package/dist/declarations/src/testing.d.ts +2 -0
  283. package/dist/declarations/src/testing.d.ts.map +1 -0
  284. package/dist/declarations/src/types/admin-meta.d.ts +190 -0
  285. package/dist/declarations/src/types/admin-meta.d.ts.map +1 -0
  286. package/dist/declarations/src/types/config/access-control.d.ts +108 -0
  287. package/dist/declarations/src/types/config/access-control.d.ts.map +1 -0
  288. package/dist/declarations/src/types/config/fields.d.ts +67 -0
  289. package/dist/declarations/src/types/config/fields.d.ts.map +1 -0
  290. package/dist/declarations/src/types/config/hooks.d.ts +441 -0
  291. package/dist/declarations/src/types/config/hooks.d.ts.map +1 -0
  292. package/dist/declarations/src/types/config/index.d.ts +283 -0
  293. package/dist/declarations/src/types/config/index.d.ts.map +1 -0
  294. package/dist/declarations/src/types/config/lists.d.ts +430 -0
  295. package/dist/declarations/src/types/config/lists.d.ts.map +1 -0
  296. package/dist/declarations/src/types/context.d.ts +458 -0
  297. package/dist/declarations/src/types/context.d.ts.map +1 -0
  298. package/dist/declarations/src/types/core.d.ts +9 -0
  299. package/dist/declarations/src/types/core.d.ts.map +1 -0
  300. package/dist/declarations/src/types/index.d.ts +9 -0
  301. package/dist/declarations/src/types/index.d.ts.map +1 -0
  302. package/dist/declarations/src/types/next-fields.d.ts +308 -0
  303. package/dist/declarations/src/types/next-fields.d.ts.map +1 -0
  304. package/dist/declarations/src/types/prisma.d.ts +13 -0
  305. package/dist/declarations/src/types/prisma.d.ts.map +1 -0
  306. package/dist/declarations/src/types/schema/g.d.ts +7 -0
  307. package/dist/declarations/src/types/schema/g.d.ts.map +1 -0
  308. package/dist/declarations/src/types/schema/gWithContext.d.ts +12 -0
  309. package/dist/declarations/src/types/schema/gWithContext.d.ts.map +1 -0
  310. package/dist/declarations/src/types/schema/index.d.ts +4 -0
  311. package/dist/declarations/src/types/schema/index.d.ts.map +1 -0
  312. package/dist/declarations/src/types/schema/legacy-alias.d.ts +28 -0
  313. package/dist/declarations/src/types/schema/scalars.d.ts +22 -0
  314. package/dist/declarations/src/types/schema/scalars.d.ts.map +1 -0
  315. package/dist/declarations/src/types/session.d.ts +28 -0
  316. package/dist/declarations/src/types/session.d.ts.map +1 -0
  317. package/dist/declarations/src/types/type-info.d.ts +35 -0
  318. package/dist/declarations/src/types/type-info.d.ts.map +1 -0
  319. package/dist/declarations/src/types/utils.d.ts +78 -0
  320. package/dist/declarations/src/types/utils.d.ts.map +1 -0
  321. package/dist/declarations/types/dist/nixxie-cms-core-types.cjs.d.ts +2 -0
  322. package/dist/express-6743b918.esm.js +476 -0
  323. package/dist/express-e9ed9a7d.cjs.js +495 -0
  324. package/dist/filters-8c8616f9.esm.js +89 -0
  325. package/dist/filters-b3e5eb50.cjs.js +96 -0
  326. package/dist/index-24b78415.esm.js +419 -0
  327. package/dist/index-ac01583b.cjs.js +425 -0
  328. package/dist/migrations-996e66a0.esm.js +76 -0
  329. package/dist/migrations-ab2e0fd4.cjs.js +78 -0
  330. package/dist/next-fields-49c025ef.cjs.js +251 -0
  331. package/dist/next-fields-9bf04ed8.esm.js +241 -0
  332. package/dist/nixxie-cms-core.cjs.d.ts +2 -0
  333. package/dist/nixxie-cms-core.cjs.js +522 -0
  334. package/dist/nixxie-cms-core.esm.js +504 -0
  335. package/dist/non-null-graphql-17b83ddc.cjs.js +72 -0
  336. package/dist/non-null-graphql-5315718c.esm.js +67 -0
  337. package/dist/pick-5fe45878.cjs.js +71 -0
  338. package/dist/pick-b7ef3115.esm.js +68 -0
  339. package/dist/resolve-hooks-17aafd37.esm.js +2026 -0
  340. package/dist/resolve-hooks-66fe8a8e.cjs.js +2043 -0
  341. package/dist/system-48c5f6df.cjs.js +4283 -0
  342. package/dist/system-dfec2f0a.esm.js +4273 -0
  343. package/dist/useCreateItem-1be4987e.cjs.js +160 -0
  344. package/dist/useCreateItem-1f94d252.esm.js +157 -0
  345. package/dist/useFilter-0b5a1ee6.esm.js +118 -0
  346. package/dist/useFilter-1a4e6900.cjs.js +120 -0
  347. package/dist/utils-0cc426c8.esm.js +19 -0
  348. package/dist/utils-1b632a8f.cjs.js +21 -0
  349. package/dist/utils-230cddb1.cjs.js +150 -0
  350. package/dist/utils-5e1d4d28.esm.js +138 -0
  351. package/dist/utils-b031e11c.cjs.js +49 -0
  352. package/dist/utils-e74e3527.cjs.js +87 -0
  353. package/dist/utils-ef2cd0f4.esm.js +80 -0
  354. package/dist/utils-f9556354.esm.js +41 -0
  355. package/fields/dist/nixxie-cms-core-fields.cjs.d.ts +2 -0
  356. package/fields/dist/nixxie-cms-core-fields.cjs.js +1808 -0
  357. package/fields/dist/nixxie-cms-core-fields.esm.js +1785 -0
  358. package/fields/package.json +4 -0
  359. package/fields/types/bigInt/views/dist/nixxie-cms-core-fields-types-bigInt-views.cjs.d.ts +2 -0
  360. package/fields/types/bigInt/views/dist/nixxie-cms-core-fields-types-bigInt-views.cjs.js +258 -0
  361. package/fields/types/bigInt/views/dist/nixxie-cms-core-fields-types-bigInt-views.esm.js +253 -0
  362. package/fields/types/bigInt/views/package.json +4 -0
  363. package/fields/types/bytes/dist/nixxie-cms-core-fields-types-bytes.cjs.d.ts +2 -0
  364. package/fields/types/bytes/dist/nixxie-cms-core-fields-types-bytes.cjs.js +221 -0
  365. package/fields/types/bytes/dist/nixxie-cms-core-fields-types-bytes.esm.js +216 -0
  366. package/fields/types/bytes/package.json +4 -0
  367. package/fields/types/bytes/views/dist/nixxie-cms-core-fields-types-bytes-views.cjs.d.ts +2 -0
  368. package/fields/types/bytes/views/dist/nixxie-cms-core-fields-types-bytes-views.cjs.js +239 -0
  369. package/fields/types/bytes/views/dist/nixxie-cms-core-fields-types-bytes-views.esm.js +234 -0
  370. package/fields/types/bytes/views/package.json +4 -0
  371. package/fields/types/calendarDay/views/dist/nixxie-cms-core-fields-types-calendarDay-views.cjs.d.ts +2 -0
  372. package/fields/types/calendarDay/views/dist/nixxie-cms-core-fields-types-calendarDay-views.cjs.js +147 -0
  373. package/fields/types/calendarDay/views/dist/nixxie-cms-core-fields-types-calendarDay-views.esm.js +141 -0
  374. package/fields/types/calendarDay/views/package.json +4 -0
  375. package/fields/types/checkbox/views/dist/nixxie-cms-core-fields-types-checkbox-views.cjs.d.ts +2 -0
  376. package/fields/types/checkbox/views/dist/nixxie-cms-core-fields-types-checkbox-views.cjs.js +126 -0
  377. package/fields/types/checkbox/views/dist/nixxie-cms-core-fields-types-checkbox-views.esm.js +120 -0
  378. package/fields/types/checkbox/views/package.json +4 -0
  379. package/fields/types/decimal/views/dist/nixxie-cms-core-fields-types-decimal-views.cjs.d.ts +2 -0
  380. package/fields/types/decimal/views/dist/nixxie-cms-core-fields-types-decimal-views.cjs.js +248 -0
  381. package/fields/types/decimal/views/dist/nixxie-cms-core-fields-types-decimal-views.esm.js +239 -0
  382. package/fields/types/decimal/views/package.json +4 -0
  383. package/fields/types/file/utils/package.json +4 -0
  384. package/fields/types/file/views/dist/nixxie-cms-core-fields-types-file-views.cjs.d.ts +2 -0
  385. package/fields/types/file/views/dist/nixxie-cms-core-fields-types-file-views.cjs.js +86 -0
  386. package/fields/types/file/views/dist/nixxie-cms-core-fields-types-file-views.esm.js +81 -0
  387. package/fields/types/file/views/package.json +4 -0
  388. package/fields/types/float/views/dist/nixxie-cms-core-fields-types-float-views.cjs.d.ts +2 -0
  389. package/fields/types/float/views/dist/nixxie-cms-core-fields-types-float-views.cjs.js +237 -0
  390. package/fields/types/float/views/dist/nixxie-cms-core-fields-types-float-views.esm.js +232 -0
  391. package/fields/types/float/views/package.json +4 -0
  392. package/fields/types/image/utils/dist/nixxie-cms-core-fields-types-image-utils.cjs.d.ts +2 -0
  393. package/fields/types/image/utils/dist/nixxie-cms-core-fields-types-image-utils.cjs.js +7 -0
  394. package/fields/types/image/utils/dist/nixxie-cms-core-fields-types-image-utils.esm.js +3 -0
  395. package/fields/types/image/utils/package.json +4 -0
  396. package/fields/types/image/views/dist/nixxie-cms-core-fields-types-image-views.cjs.d.ts +2 -0
  397. package/fields/types/image/views/dist/nixxie-cms-core-fields-types-image-views.cjs.js +361 -0
  398. package/fields/types/image/views/dist/nixxie-cms-core-fields-types-image-views.esm.js +354 -0
  399. package/fields/types/image/views/package.json +4 -0
  400. package/fields/types/integer/views/dist/nixxie-cms-core-fields-types-integer-views.cjs.d.ts +2 -0
  401. package/fields/types/integer/views/dist/nixxie-cms-core-fields-types-integer-views.cjs.js +254 -0
  402. package/fields/types/integer/views/dist/nixxie-cms-core-fields-types-integer-views.esm.js +249 -0
  403. package/fields/types/integer/views/package.json +4 -0
  404. package/fields/types/json/views/dist/nixxie-cms-core-fields-types-json-views.cjs.d.ts +2 -0
  405. package/fields/types/json/views/dist/nixxie-cms-core-fields-types-json-views.cjs.js +83 -0
  406. package/fields/types/json/views/dist/nixxie-cms-core-fields-types-json-views.esm.js +77 -0
  407. package/fields/types/json/views/package.json +4 -0
  408. package/fields/types/multiselect/views/dist/nixxie-cms-core-fields-types-multiselect-views.cjs.d.ts +2 -0
  409. package/fields/types/multiselect/views/dist/nixxie-cms-core-fields-types-multiselect-views.cjs.js +147 -0
  410. package/fields/types/multiselect/views/dist/nixxie-cms-core-fields-types-multiselect-views.esm.js +141 -0
  411. package/fields/types/multiselect/views/package.json +4 -0
  412. package/fields/types/password/dist/nixxie-cms-core-fields-types-password.cjs.d.ts +2 -0
  413. package/fields/types/password/dist/nixxie-cms-core-fields-types-password.cjs.js +206 -0
  414. package/fields/types/password/dist/nixxie-cms-core-fields-types-password.esm.js +196 -0
  415. package/fields/types/password/package.json +4 -0
  416. package/fields/types/password/views/dist/nixxie-cms-core-fields-types-password-views.cjs.d.ts +2 -0
  417. package/fields/types/password/views/dist/nixxie-cms-core-fields-types-password-views.cjs.js +330 -0
  418. package/fields/types/password/views/dist/nixxie-cms-core-fields-types-password-views.esm.js +320 -0
  419. package/fields/types/password/views/package.json +4 -0
  420. package/fields/types/relationship/views/RelationshipSelect/package.json +4 -0
  421. package/fields/types/relationship/views/dist/nixxie-cms-core-fields-types-relationship-views.cjs.d.ts +2 -0
  422. package/fields/types/relationship/views/dist/nixxie-cms-core-fields-types-relationship-views.cjs.js +1213 -0
  423. package/fields/types/relationship/views/dist/nixxie-cms-core-fields-types-relationship-views.esm.js +1201 -0
  424. package/fields/types/relationship/views/package.json +4 -0
  425. package/fields/types/select/views/dist/nixxie-cms-core-fields-types-select-views.cjs.d.ts +2 -0
  426. package/fields/types/select/views/dist/nixxie-cms-core-fields-types-select-views.cjs.js +422 -0
  427. package/fields/types/select/views/dist/nixxie-cms-core-fields-types-select-views.esm.js +416 -0
  428. package/fields/types/select/views/package.json +4 -0
  429. package/fields/types/text/views/dist/nixxie-cms-core-fields-types-text-views.cjs.d.ts +2 -0
  430. package/fields/types/text/views/dist/nixxie-cms-core-fields-types-text-views.cjs.js +316 -0
  431. package/fields/types/text/views/dist/nixxie-cms-core-fields-types-text-views.esm.js +311 -0
  432. package/fields/types/text/views/package.json +4 -0
  433. package/fields/types/timestamp/views/dist/nixxie-cms-core-fields-types-timestamp-views.cjs.d.ts +2 -0
  434. package/fields/types/timestamp/views/dist/nixxie-cms-core-fields-types-timestamp-views.cjs.js +285 -0
  435. package/fields/types/timestamp/views/dist/nixxie-cms-core-fields-types-timestamp-views.esm.js +279 -0
  436. package/fields/types/timestamp/views/package.json +4 -0
  437. package/fields/types/virtual/views/dist/nixxie-cms-core-fields-types-virtual-views.cjs.d.ts +2 -0
  438. package/fields/types/virtual/views/dist/nixxie-cms-core-fields-types-virtual-views.cjs.js +54 -0
  439. package/fields/types/virtual/views/dist/nixxie-cms-core-fields-types-virtual-views.esm.js +48 -0
  440. package/fields/types/virtual/views/package.json +4 -0
  441. package/graphql-ts/dist/nixxie-cms-core-graphql-ts.cjs.d.ts +2 -0
  442. package/graphql-ts/dist/nixxie-cms-core-graphql-ts.cjs.js +45 -0
  443. package/graphql-ts/dist/nixxie-cms-core-graphql-ts.esm.js +2 -0
  444. package/graphql-ts/package.json +4 -0
  445. package/package.json +339 -0
  446. package/schema/package.json +4 -0
  447. package/scripts/cli/dist/nixxie-cms-core-scripts-cli.cjs.d.ts +2 -0
  448. package/scripts/cli/dist/nixxie-cms-core-scripts-cli.cjs.js +1607 -0
  449. package/scripts/cli/dist/nixxie-cms-core-scripts-cli.esm.js +1586 -0
  450. package/scripts/cli/package.json +4 -0
  451. package/scripts/dist/nixxie-cms-core-scripts.cjs.d.ts +2 -0
  452. package/scripts/dist/nixxie-cms-core-scripts.cjs.js +73 -0
  453. package/scripts/dist/nixxie-cms-core-scripts.esm.js +71 -0
  454. package/scripts/package.json +4 -0
  455. package/session/dist/nixxie-cms-core-session.cjs.d.ts +2 -0
  456. package/session/dist/nixxie-cms-core-session.cjs.js +157 -0
  457. package/session/dist/nixxie-cms-core-session.esm.js +129 -0
  458. package/session/package.json +4 -0
  459. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/id-field-view.tsx +167 -0
  460. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/App/index.tsx +22 -0
  461. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/CreateItemPage/index.tsx +71 -0
  462. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/HomePage/index.tsx +333 -0
  463. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ItemPage/common.tsx +358 -0
  464. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ItemPage/index.tsx +483 -0
  465. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/FilterAdd.tsx +221 -0
  466. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/PaginationControls.tsx +170 -0
  467. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/Tag.tsx +72 -0
  468. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/ListPage/index.tsx +1006 -0
  469. package/src/___internal-do-not-use-will-break-in-patch/admin-ui/pages/NoAccessPage/index.tsx +24 -0
  470. package/src/___internal-do-not-use-will-break-in-patch/artifacts.ts +5 -0
  471. package/src/access.ts +25 -0
  472. package/src/admin-ui/admin-meta-graphql.ts +168 -0
  473. package/src/admin-ui/apollo.tsx +35 -0
  474. package/src/admin-ui/components/CellContainer.tsx +6 -0
  475. package/src/admin-ui/components/CommandPalette.tsx +431 -0
  476. package/src/admin-ui/components/Container.tsx +14 -0
  477. package/src/admin-ui/components/CreateButtonLink.tsx +46 -0
  478. package/src/admin-ui/components/CreateItemDialog.tsx +56 -0
  479. package/src/admin-ui/components/EmptyState.tsx +52 -0
  480. package/src/admin-ui/components/Errors.tsx +130 -0
  481. package/src/admin-ui/components/GraphQLErrorNotice.tsx +78 -0
  482. package/src/admin-ui/components/InlineCode.tsx +17 -0
  483. package/src/admin-ui/components/Logo.tsx +70 -0
  484. package/src/admin-ui/components/Navigation.tsx +385 -0
  485. package/src/admin-ui/components/NullableFieldWrapper.tsx +72 -0
  486. package/src/admin-ui/components/PageContainer.tsx +310 -0
  487. package/src/admin-ui/components/WelcomeDialog.tsx +119 -0
  488. package/src/admin-ui/components/index.ts +23 -0
  489. package/src/admin-ui/context.tsx +338 -0
  490. package/src/admin-ui/image.tsx +2 -0
  491. package/src/admin-ui/index.tsx +1 -0
  492. package/src/admin-ui/router.tsx +24 -0
  493. package/src/admin-ui/system/generateAdminUI.ts +155 -0
  494. package/src/admin-ui/system/index.ts +1 -0
  495. package/src/admin-ui/templates/app.ts +60 -0
  496. package/src/admin-ui/templates/create-item.ts +5 -0
  497. package/src/admin-ui/templates/home.ts +2 -0
  498. package/src/admin-ui/templates/index.ts +53 -0
  499. package/src/admin-ui/templates/item.tsx +5 -0
  500. package/src/admin-ui/templates/list.tsx +5 -0
  501. package/src/admin-ui/templates/next-config.ts +16 -0
  502. package/src/admin-ui/templates/no-access.ts +7 -0
  503. package/src/admin-ui/utils/Fields.tsx +241 -0
  504. package/src/admin-ui/utils/actionData.ts +36 -0
  505. package/src/admin-ui/utils/filters.ts +148 -0
  506. package/src/admin-ui/utils/index.ts +10 -0
  507. package/src/admin-ui/utils/pick.ts +12 -0
  508. package/src/admin-ui/utils/useCreateItem.ts +171 -0
  509. package/src/admin-ui/utils/usePreventNavigation.tsx +31 -0
  510. package/src/admin-ui/utils/utils.tsx +127 -0
  511. package/src/artifacts.ts +110 -0
  512. package/src/context.ts +1 -0
  513. package/src/fields/filters/enum-filter.ts +77 -0
  514. package/src/fields/filters/index.ts +1 -0
  515. package/src/fields/filters/internal.ts +89 -0
  516. package/src/fields/filters/providers/mysql.ts +450 -0
  517. package/src/fields/filters/providers/postgresql.ts +448 -0
  518. package/src/fields/filters/providers/sqlite.ts +442 -0
  519. package/src/fields/index.ts +34 -0
  520. package/src/fields/non-null-graphql.ts +115 -0
  521. package/src/fields/resolve-hooks.ts +61 -0
  522. package/src/fields/types/bigInt/index.ts +181 -0
  523. package/src/fields/types/bigInt/views/index.tsx +254 -0
  524. package/src/fields/types/bytes/index.ts +275 -0
  525. package/src/fields/types/bytes/views/index.tsx +190 -0
  526. package/src/fields/types/calendarDay/index.ts +194 -0
  527. package/src/fields/types/calendarDay/views/index.tsx +144 -0
  528. package/src/fields/types/checkbox/index.ts +76 -0
  529. package/src/fields/types/checkbox/views/index.tsx +97 -0
  530. package/src/fields/types/decimal/index.ts +182 -0
  531. package/src/fields/types/decimal/views/index.tsx +215 -0
  532. package/src/fields/types/file/index.ts +168 -0
  533. package/src/fields/types/file/views/Field.tsx +300 -0
  534. package/src/fields/types/file/views/index.tsx +74 -0
  535. package/src/fields/types/float/index.ts +133 -0
  536. package/src/fields/types/float/views/index.tsx +215 -0
  537. package/src/fields/types/image/index.ts +244 -0
  538. package/src/fields/types/image/internal-utils.ts +58 -0
  539. package/src/fields/types/image/utils.ts +1 -0
  540. package/src/fields/types/image/views/Field.tsx +295 -0
  541. package/src/fields/types/image/views/index.tsx +92 -0
  542. package/src/fields/types/integer/index.ts +156 -0
  543. package/src/fields/types/integer/views/index.tsx +255 -0
  544. package/src/fields/types/json/index.ts +77 -0
  545. package/src/fields/types/json/views/index.tsx +76 -0
  546. package/src/fields/types/multiselect/index.ts +212 -0
  547. package/src/fields/types/multiselect/views/index.tsx +151 -0
  548. package/src/fields/types/password/index.ts +241 -0
  549. package/src/fields/types/password/views/index.tsx +342 -0
  550. package/src/fields/types/relationship/index.ts +381 -0
  551. package/src/fields/types/relationship/views/ComboboxMany.tsx +110 -0
  552. package/src/fields/types/relationship/views/ComboboxSingle.tsx +115 -0
  553. package/src/fields/types/relationship/views/ContextualActions.tsx +139 -0
  554. package/src/fields/types/relationship/views/RelationshipTable.tsx +190 -0
  555. package/src/fields/types/relationship/views/index.tsx +492 -0
  556. package/src/fields/types/relationship/views/types.ts +46 -0
  557. package/src/fields/types/relationship/views/useApolloQuery.ts +185 -0
  558. package/src/fields/types/relationship/views/useFilter.tsx +109 -0
  559. package/src/fields/types/select/index.ts +226 -0
  560. package/src/fields/types/select/views/SegmentedControl.tsx +83 -0
  561. package/src/fields/types/select/views/index.tsx +318 -0
  562. package/src/fields/types/text/index.ts +207 -0
  563. package/src/fields/types/text/views/index.tsx +273 -0
  564. package/src/fields/types/timestamp/index.ts +116 -0
  565. package/src/fields/types/timestamp/views/__tests__/index.tsx +68 -0
  566. package/src/fields/types/timestamp/views/__tests__/utils.tsx +16 -0
  567. package/src/fields/types/timestamp/views/index.tsx +262 -0
  568. package/src/fields/types/timestamp/views/utils.ts +22 -0
  569. package/src/fields/types/virtual/index.ts +108 -0
  570. package/src/fields/types/virtual/views/index.tsx +53 -0
  571. package/src/graphql-ts.ts +32 -0
  572. package/src/helpers.ts +316 -0
  573. package/src/index.ts +20 -0
  574. package/src/lib/admin-meta-graphql.ts +407 -0
  575. package/src/lib/admin-meta.ts +369 -0
  576. package/src/lib/coerceAndValidateForGraphQLInput.ts +29 -0
  577. package/src/lib/context/api.ts +99 -0
  578. package/src/lib/context/createContext.ts +161 -0
  579. package/src/lib/context/graphql.ts +300 -0
  580. package/src/lib/core/access-control.ts +434 -0
  581. package/src/lib/core/field-assertions.ts +118 -0
  582. package/src/lib/core/filter-order-access.ts +48 -0
  583. package/src/lib/core/graphql-errors.ts +76 -0
  584. package/src/lib/core/hooks.ts +111 -0
  585. package/src/lib/core/initialise-lists.ts +1097 -0
  586. package/src/lib/core/mutations/index.ts +917 -0
  587. package/src/lib/core/mutations/nested-mutation-many-input-resolvers.ts +145 -0
  588. package/src/lib/core/mutations/nested-mutation-one-input-resolvers.ts +71 -0
  589. package/src/lib/core/prisma-schema-printer.ts +256 -0
  590. package/src/lib/core/queries/index.ts +66 -0
  591. package/src/lib/core/queries/output-field.ts +178 -0
  592. package/src/lib/core/queries/resolvers.ts +258 -0
  593. package/src/lib/core/resolve-relationships.ts +303 -0
  594. package/src/lib/core/utils.ts +56 -0
  595. package/src/lib/core/where-inputs.ts +130 -0
  596. package/src/lib/express.ts +109 -0
  597. package/src/lib/graphql.ts +83 -0
  598. package/src/lib/id-field.ts +214 -0
  599. package/src/lib/middleware.ts +68 -0
  600. package/src/lib/migrations.ts +90 -0
  601. package/src/lib/otel.ts +43 -0
  602. package/src/lib/prompts.ts +29 -0
  603. package/src/lib/system.ts +207 -0
  604. package/src/lib/telemetry.ts +342 -0
  605. package/src/lib/typescript-schema-printer.ts +227 -0
  606. package/src/lib/utils.ts +21 -0
  607. package/src/pkg-dir.ts +6 -0
  608. package/src/schema.ts +233 -0
  609. package/src/scripts/build.ts +64 -0
  610. package/src/scripts/cli.ts +124 -0
  611. package/src/scripts/dev.ts +452 -0
  612. package/src/scripts/esbuild.ts +120 -0
  613. package/src/scripts/index.ts +20 -0
  614. package/src/scripts/migrate.ts +214 -0
  615. package/src/scripts/prisma.ts +49 -0
  616. package/src/scripts/start.ts +76 -0
  617. package/src/scripts/telemetry.ts +37 -0
  618. package/src/scripts/utils.ts +22 -0
  619. package/src/session.ts +168 -0
  620. package/src/testing.ts +23 -0
  621. package/src/types/admin-meta.ts +218 -0
  622. package/src/types/config/access-control.ts +186 -0
  623. package/src/types/config/fields.ts +96 -0
  624. package/src/types/config/hooks.ts +529 -0
  625. package/src/types/config/index.ts +333 -0
  626. package/src/types/config/lists.ts +565 -0
  627. package/src/types/context.ts +530 -0
  628. package/src/types/core.ts +16 -0
  629. package/src/types/index.ts +8 -0
  630. package/src/types/next-fields.ts +499 -0
  631. package/src/types/prisma.ts +16 -0
  632. package/src/types/schema/g.ts +5 -0
  633. package/src/types/schema/gWithContext.ts +20 -0
  634. package/src/types/schema/index.ts +4 -0
  635. package/src/types/schema/legacy-alias.d.ts +28 -0
  636. package/src/types/schema/legacy-alias.js +1 -0
  637. package/src/types/schema/scalars.ts +220 -0
  638. package/src/types/session.ts +26 -0
  639. package/src/types/telemetry.ts +51 -0
  640. package/src/types/type-info.ts +38 -0
  641. package/src/types/type-tests.ts +21 -0
  642. package/src/types/utils.ts +108 -0
  643. package/static/admin-error.html +53 -0
  644. package/static/dev-loading.html +146 -0
  645. package/static/favicon.ico +0 -0
  646. package/static/favicon.svg +4 -0
  647. package/system/package.json +4 -0
  648. package/testing/dist/nixxie-cms-core-testing.cjs.d.ts +2 -0
  649. package/testing/dist/nixxie-cms-core-testing.cjs.js +29 -0
  650. package/testing/dist/nixxie-cms-core-testing.esm.js +21 -0
  651. package/testing/package.json +4 -0
  652. package/tests/conditional-filters.test.ts +326 -0
  653. package/tests/telemetry.test.ts +361 -0
  654. package/tsconfig.json +20 -0
  655. package/types/dist/nixxie-cms-core-types.cjs.d.ts +2 -0
  656. package/types/dist/nixxie-cms-core-types.cjs.js +29 -0
  657. package/types/dist/nixxie-cms-core-types.esm.js +9 -0
  658. package/types/package.json +4 -0
@@ -0,0 +1,2026 @@
1
+ import 'pluralize';
2
+ import { g, f as fieldType, o as orderDirectionEnum, Q as QueryMode } from './next-fields-9bf04ed8.esm.js';
3
+ import '@graphql-ts/schema';
4
+ import '@graphql-ts/extend';
5
+ import { GraphQLError } from 'graphql';
6
+
7
+ const userInputError = msg => new GraphQLError(`Input error: ${msg}`, {
8
+ extensions: {
9
+ code: 'KS_USER_INPUT_ERROR'
10
+ }
11
+ });
12
+ const accessDeniedError = (msg, code = 'KS_ACCESS_DENIED') => new GraphQLError(`Access denied: ${msg}`, {
13
+ extensions: {
14
+ code
15
+ }
16
+ });
17
+ const validationFailureError = messages => {
18
+ const s = messages.map(m => ` - ${m}`).join('\n');
19
+ return new GraphQLError(`You provided invalid data for this operation.\n${s}`, {
20
+ extensions: {
21
+ code: 'KS_VALIDATION_FAILURE'
22
+ }
23
+ });
24
+ };
25
+ const extensionError = (extension, things) => {
26
+ const s = things.map(t => ` - ${t.tag}: ${t.error.message}`).join('\n');
27
+ return new GraphQLError(`An error occurred while running "${extension}".\n${s}`, {
28
+ extensions: {
29
+ code: 'KS_EXTENSION_ERROR',
30
+ debug: things.map(t => ({
31
+ stacktrace: t.error.stack,
32
+ message: t.error.message
33
+ }))
34
+ }
35
+ });
36
+ };
37
+ const resolverError = things => {
38
+ const s = things.map(t => ` - ${t.tag}: ${t.error.message}`).join('\n');
39
+ return new GraphQLError(`An error occurred while resolving input fields.\n${s}`, {
40
+ extensions: {
41
+ code: 'KS_RESOLVER_ERROR',
42
+ debug: things.map(t => ({
43
+ stacktrace: t.error.stack,
44
+ message: t.error.message
45
+ }))
46
+ }
47
+ });
48
+ };
49
+ const relationshipError = things => {
50
+ const s = things.map(t => ` - ${t.tag}: ${t.error.message}`).sort().join('\n');
51
+ return new GraphQLError(`An error occurred while resolving relationship fields.\n${s}`, {
52
+ extensions: {
53
+ code: 'KS_RELATIONSHIP_ERROR',
54
+ debug: things.map(t => ({
55
+ stacktrace: t.error.stack,
56
+ message: t.error.message
57
+ }))
58
+ }
59
+ });
60
+ };
61
+ const accessReturnError = things => {
62
+ const s = things.map(t => ` - ${t.tag}: Returned: ${t.returned}. Expected: boolean.`).join('\n');
63
+ return new GraphQLError(`Invalid values returned from access control function.\n${s}`, {
64
+ extensions: {
65
+ code: 'KS_ACCESS_RETURN_ERROR'
66
+ }
67
+ });
68
+ };
69
+ const limitsExceededError = _ => new GraphQLError('Your request exceeded server limits', {
70
+ extensions: {
71
+ code: 'KS_LIMITS_EXCEEDED'
72
+ }
73
+ });
74
+ function formatKeys(keys) {
75
+ if (keys.length < 4) return keys.join(', ');
76
+ return keys.slice(0, 3).join(', ') + ` and ${keys.length - 3} others...`;
77
+ }
78
+ const filterAccessError = ({
79
+ operation,
80
+ fieldKeys
81
+ }) => accessDeniedError(`You cannot ${operation} by ${formatKeys(fieldKeys)}`, `KS_FILTER_DENIED`);
82
+
83
+ function isInt(x) {
84
+ if (x === null) return;
85
+ if (x === '') return;
86
+ const nom = typeof x === 'string' ? Number(x) : x;
87
+ if (Number.isInteger(nom)) return nom;
88
+ }
89
+ function isBigInt(x) {
90
+ if (x === null) return;
91
+ if (x === '') return;
92
+ try {
93
+ return BigInt(x);
94
+ } catch {}
95
+ }
96
+ function isString(x) {
97
+ if (typeof x !== 'string') return;
98
+ if (x === '') return;
99
+ return x;
100
+ }
101
+
102
+ // TODO: this should be on the user, remove in breaking change?
103
+ function isUuid(x) {
104
+ if (typeof x !== 'string') return;
105
+ if (x === '') return;
106
+ return x.toLowerCase();
107
+ }
108
+ const nonCircularFields = {
109
+ equals: g.arg({
110
+ type: g.ID
111
+ }),
112
+ in: g.arg({
113
+ type: g.list(g.nonNull(g.ID))
114
+ }),
115
+ notIn: g.arg({
116
+ type: g.list(g.nonNull(g.ID))
117
+ }),
118
+ lt: g.arg({
119
+ type: g.ID
120
+ }),
121
+ lte: g.arg({
122
+ type: g.ID
123
+ }),
124
+ gt: g.arg({
125
+ type: g.ID
126
+ }),
127
+ gte: g.arg({
128
+ type: g.ID
129
+ })
130
+ };
131
+ const IDFilter = g.inputObject({
132
+ name: 'IDFilter',
133
+ fields: () => ({
134
+ ...nonCircularFields,
135
+ not: g.arg({
136
+ type: IDFilter
137
+ })
138
+ })
139
+ });
140
+ const filterArg = g.arg({
141
+ type: IDFilter
142
+ });
143
+ function resolveInput(input, parseId) {
144
+ const where = {};
145
+ if (input === null) return where;
146
+ for (const key of ['equals', 'gt', 'gte', 'lt', 'lte']) {
147
+ const value = input[key];
148
+ if (value === undefined) continue;
149
+ where[key] = parseId(value);
150
+ }
151
+ for (const key of ['in', 'notIn']) {
152
+ const value = input[key];
153
+ if (!Array.isArray(value)) continue;
154
+ where[key] = value.map(x => parseId(x));
155
+ }
156
+ if (input.not !== undefined) {
157
+ where.not = resolveInput(input.not, parseId);
158
+ }
159
+ return where;
160
+ }
161
+ const NATIVE_TYPES = {
162
+ postgresql: {
163
+ uuid: 'Uuid'
164
+ }
165
+ };
166
+ function unpack(i) {
167
+ if (i.kind === 'random') {
168
+ const {
169
+ kind,
170
+ bytes,
171
+ encoding
172
+ } = i;
173
+ if (typeof bytes === 'number') {
174
+ if (bytes !== bytes >>> 0) {
175
+ throw new TypeError(`Expected positive integer for random bytes, not ${bytes}`);
176
+ }
177
+ }
178
+ return {
179
+ scalar: 'String',
180
+ // our defaults are 32 bytes, as base64url
181
+ // 256 / Math.log2(64) ~ 43 characters
182
+ //
183
+ // for case-insensitive databases that is
184
+ // 225 bits ~ Math.log2((26 + 10 + 2) ** 43)
185
+ default: {
186
+ kind,
187
+ bytes: bytes !== null && bytes !== void 0 ? bytes : 32,
188
+ encoding: encoding !== null && encoding !== void 0 ? encoding : 'base64url'
189
+ }
190
+ };
191
+ }
192
+ const {
193
+ kind,
194
+ type
195
+ } = i;
196
+ if (kind === 'cuid') return {
197
+ scalar: 'String',
198
+ default: {
199
+ kind,
200
+ version: i.version
201
+ }
202
+ };
203
+ if (kind === 'uuid') return {
204
+ scalar: 'String',
205
+ default: {
206
+ kind,
207
+ version: i.version
208
+ }
209
+ };
210
+ if (kind === 'nanoid') return {
211
+ scalar: 'String',
212
+ default: {
213
+ kind,
214
+ length: i.length
215
+ }
216
+ };
217
+ if (kind === 'ulid') return {
218
+ scalar: 'String',
219
+ default: {
220
+ kind
221
+ }
222
+ };
223
+ if (kind === 'string') return {
224
+ scalar: 'String',
225
+ default: undefined
226
+ };
227
+ if (kind === 'number') return {
228
+ scalar: type !== null && type !== void 0 ? type : 'Int',
229
+ default: undefined
230
+ };
231
+ if (kind === 'autoincrement') return {
232
+ scalar: type !== null && type !== void 0 ? type : 'Int',
233
+ default: {
234
+ kind
235
+ }
236
+ };
237
+ throw new Error(`Unknown id type ${kind}`);
238
+ }
239
+ function idFieldType(config) {
240
+ const kind = config.kind;
241
+ const dbFieldOptions = unpack(config);
242
+ const parseTypeFn = {
243
+ Int: isInt,
244
+ BigInt: isBigInt,
245
+ String: isString,
246
+ UUID: isUuid // TODO: remove in breaking change
247
+ }[kind === 'uuid' ? 'UUID' : dbFieldOptions.scalar];
248
+ function parse(value) {
249
+ const result = parseTypeFn(value);
250
+ if (result === undefined) {
251
+ throw userInputError(`Only a ${dbFieldOptions.scalar.toLowerCase()} can be passed to id filters`);
252
+ }
253
+ return result;
254
+ }
255
+ return meta => {
256
+ var _NATIVE_TYPES$meta$pr;
257
+ if (meta.provider === 'sqlite' && kind === 'autoincrement' && dbFieldOptions.scalar === 'BigInt') {
258
+ throw new Error(`{ kind: ${kind}, type: ${dbFieldOptions.scalar} } is not supported by SQLite`);
259
+ }
260
+ return fieldType({
261
+ ...dbFieldOptions,
262
+ kind: 'scalar',
263
+ mode: 'required',
264
+ nativeType: (_NATIVE_TYPES$meta$pr = NATIVE_TYPES[meta.provider]) === null || _NATIVE_TYPES$meta$pr === void 0 ? void 0 : _NATIVE_TYPES$meta$pr[kind]
265
+ })({
266
+ ...config,
267
+ // the ID field is always filterable and orderable
268
+ isFilterable: true,
269
+ // TODO: should it be?
270
+ isOrderable: true,
271
+ // TODO: should it be?
272
+
273
+ input: {
274
+ where: {
275
+ arg: filterArg,
276
+ resolve(val) {
277
+ return resolveInput(val, parse);
278
+ }
279
+ },
280
+ uniqueWhere: {
281
+ arg: g.arg({
282
+ type: g.ID
283
+ }),
284
+ resolve: parse
285
+ },
286
+ orderBy: {
287
+ arg: g.arg({
288
+ type: orderDirectionEnum
289
+ })
290
+ }
291
+ },
292
+ output: g.field({
293
+ type: g.nonNull(g.ID),
294
+ resolve({
295
+ value
296
+ }) {
297
+ return value.toString();
298
+ }
299
+ }),
300
+ views: '@nixxie-cms/core/___internal-do-not-use-will-break-in-patch/admin-ui/id-field-view',
301
+ getAdminMeta: () => ({
302
+ kind,
303
+ type: dbFieldOptions.scalar
304
+ }),
305
+ ui: {
306
+ createView: {
307
+ fieldMode: 'hidden'
308
+ },
309
+ itemView: {
310
+ fieldPosition: 'sidebar'
311
+ }
312
+ }
313
+ });
314
+ };
315
+ }
316
+
317
+ // yes, these two types have the fields but they're semantically different types
318
+ // (even though, yes, having EnumFilter by defined as EnumNullableFilter<Enum>, would be the same type but names would show up differently in editors for example)
319
+
320
+ function enumFilters(enumType) {
321
+ const optional = g.inputObject({
322
+ name: `${enumType.name}NullableFilter`,
323
+ fields: () => ({
324
+ equals: g.arg({
325
+ type: enumType
326
+ }),
327
+ in: g.arg({
328
+ type: g.list(g.nonNull(enumType))
329
+ }),
330
+ notIn: g.arg({
331
+ type: g.list(g.nonNull(enumType))
332
+ }),
333
+ not: g.arg({
334
+ type: optional
335
+ })
336
+ })
337
+ });
338
+ const required = g.inputObject({
339
+ name: `${enumType.name}Filter`,
340
+ fields: () => ({
341
+ equals: g.arg({
342
+ type: enumType
343
+ }),
344
+ in: g.arg({
345
+ type: g.list(g.nonNull(enumType))
346
+ }),
347
+ notIn: g.arg({
348
+ type: g.list(g.nonNull(enumType))
349
+ }),
350
+ not: g.arg({
351
+ type: optional
352
+ })
353
+ })
354
+ });
355
+ const many = g.inputObject({
356
+ name: `${enumType.name}NullableListFilter`,
357
+ fields: () => ({
358
+ // can be null
359
+ equals: g.arg({
360
+ type: g.list(g.nonNull(enumType))
361
+ }),
362
+ // can be null
363
+ has: g.arg({
364
+ type: enumType
365
+ }),
366
+ hasEvery: g.arg({
367
+ type: g.list(g.nonNull(enumType))
368
+ }),
369
+ hasSome: g.arg({
370
+ type: g.list(g.nonNull(enumType))
371
+ }),
372
+ isEmpty: g.arg({
373
+ type: enumType
374
+ })
375
+ })
376
+ });
377
+ return {
378
+ optional,
379
+ required,
380
+ many
381
+ };
382
+ }
383
+
384
+ // Do not manually modify this file, it is automatically generated by the package at /prisma-utils in this repo.
385
+ const StringNullableFilter$2 = g.inputObject({
386
+ name: 'StringNullableFilter',
387
+ fields: () => ({
388
+ equals: g.arg({
389
+ type: g.String
390
+ }),
391
+ // can be null
392
+ in: g.arg({
393
+ type: g.list(g.nonNull(g.String))
394
+ }),
395
+ // can be null
396
+ notIn: g.arg({
397
+ type: g.list(g.nonNull(g.String))
398
+ }),
399
+ // can be null
400
+ lt: g.arg({
401
+ type: g.String
402
+ }),
403
+ lte: g.arg({
404
+ type: g.String
405
+ }),
406
+ gt: g.arg({
407
+ type: g.String
408
+ }),
409
+ gte: g.arg({
410
+ type: g.String
411
+ }),
412
+ contains: g.arg({
413
+ type: g.String
414
+ }),
415
+ startsWith: g.arg({
416
+ type: g.String
417
+ }),
418
+ endsWith: g.arg({
419
+ type: g.String
420
+ }),
421
+ mode: g.arg({
422
+ type: QueryMode
423
+ }),
424
+ not: g.arg({
425
+ type: StringNullableFilter$2
426
+ }) // can be null
427
+ })
428
+ });
429
+ const StringFilter$2 = g.inputObject({
430
+ name: 'StringFilter',
431
+ fields: () => ({
432
+ equals: g.arg({
433
+ type: g.String
434
+ }),
435
+ in: g.arg({
436
+ type: g.list(g.nonNull(g.String))
437
+ }),
438
+ notIn: g.arg({
439
+ type: g.list(g.nonNull(g.String))
440
+ }),
441
+ lt: g.arg({
442
+ type: g.String
443
+ }),
444
+ lte: g.arg({
445
+ type: g.String
446
+ }),
447
+ gt: g.arg({
448
+ type: g.String
449
+ }),
450
+ gte: g.arg({
451
+ type: g.String
452
+ }),
453
+ contains: g.arg({
454
+ type: g.String
455
+ }),
456
+ startsWith: g.arg({
457
+ type: g.String
458
+ }),
459
+ endsWith: g.arg({
460
+ type: g.String
461
+ }),
462
+ mode: g.arg({
463
+ type: QueryMode
464
+ }),
465
+ not: g.arg({
466
+ type: NestedStringFilter$2
467
+ })
468
+ })
469
+ });
470
+ const NestedStringNullableFilter$2 = g.inputObject({
471
+ name: 'NestedStringNullableFilter',
472
+ fields: () => ({
473
+ equals: g.arg({
474
+ type: g.String
475
+ }),
476
+ // can be null
477
+ in: g.arg({
478
+ type: g.list(g.nonNull(g.String))
479
+ }),
480
+ // can be null
481
+ notIn: g.arg({
482
+ type: g.list(g.nonNull(g.String))
483
+ }),
484
+ // can be null
485
+ lt: g.arg({
486
+ type: g.String
487
+ }),
488
+ lte: g.arg({
489
+ type: g.String
490
+ }),
491
+ gt: g.arg({
492
+ type: g.String
493
+ }),
494
+ gte: g.arg({
495
+ type: g.String
496
+ }),
497
+ contains: g.arg({
498
+ type: g.String
499
+ }),
500
+ startsWith: g.arg({
501
+ type: g.String
502
+ }),
503
+ endsWith: g.arg({
504
+ type: g.String
505
+ }),
506
+ not: g.arg({
507
+ type: NestedStringNullableFilter$2
508
+ }) // can be null
509
+ })
510
+ });
511
+ const NestedStringFilter$2 = g.inputObject({
512
+ name: 'NestedStringFilter',
513
+ fields: () => ({
514
+ equals: g.arg({
515
+ type: g.String
516
+ }),
517
+ in: g.arg({
518
+ type: g.list(g.nonNull(g.String))
519
+ }),
520
+ notIn: g.arg({
521
+ type: g.list(g.nonNull(g.String))
522
+ }),
523
+ lt: g.arg({
524
+ type: g.String
525
+ }),
526
+ lte: g.arg({
527
+ type: g.String
528
+ }),
529
+ gt: g.arg({
530
+ type: g.String
531
+ }),
532
+ gte: g.arg({
533
+ type: g.String
534
+ }),
535
+ contains: g.arg({
536
+ type: g.String
537
+ }),
538
+ startsWith: g.arg({
539
+ type: g.String
540
+ }),
541
+ endsWith: g.arg({
542
+ type: g.String
543
+ }),
544
+ not: g.arg({
545
+ type: NestedStringFilter$2
546
+ })
547
+ })
548
+ });
549
+ const BooleanNullableFilter$2 = g.inputObject({
550
+ name: 'BooleanNullableFilter',
551
+ fields: () => ({
552
+ equals: g.arg({
553
+ type: g.Boolean
554
+ }),
555
+ // can be null
556
+ not: g.arg({
557
+ type: BooleanNullableFilter$2
558
+ }) // can be null
559
+ })
560
+ });
561
+ const BooleanFilter$2 = g.inputObject({
562
+ name: 'BooleanFilter',
563
+ fields: () => ({
564
+ equals: g.arg({
565
+ type: g.Boolean
566
+ }),
567
+ not: g.arg({
568
+ type: BooleanFilter$2
569
+ })
570
+ })
571
+ });
572
+ const IntFilter$2 = g.inputObject({
573
+ name: 'IntFilter',
574
+ fields: () => ({
575
+ equals: g.arg({
576
+ type: g.Int
577
+ }),
578
+ in: g.arg({
579
+ type: g.list(g.nonNull(g.Int))
580
+ }),
581
+ notIn: g.arg({
582
+ type: g.list(g.nonNull(g.Int))
583
+ }),
584
+ lt: g.arg({
585
+ type: g.Int
586
+ }),
587
+ lte: g.arg({
588
+ type: g.Int
589
+ }),
590
+ gt: g.arg({
591
+ type: g.Int
592
+ }),
593
+ gte: g.arg({
594
+ type: g.Int
595
+ }),
596
+ not: g.arg({
597
+ type: IntFilter$2
598
+ })
599
+ })
600
+ });
601
+ const IntNullableFilter$2 = g.inputObject({
602
+ name: 'IntNullableFilter',
603
+ fields: () => ({
604
+ equals: g.arg({
605
+ type: g.Int
606
+ }),
607
+ // can be null
608
+ in: g.arg({
609
+ type: g.list(g.nonNull(g.Int))
610
+ }),
611
+ // can be null
612
+ notIn: g.arg({
613
+ type: g.list(g.nonNull(g.Int))
614
+ }),
615
+ // can be null
616
+ lt: g.arg({
617
+ type: g.Int
618
+ }),
619
+ lte: g.arg({
620
+ type: g.Int
621
+ }),
622
+ gt: g.arg({
623
+ type: g.Int
624
+ }),
625
+ gte: g.arg({
626
+ type: g.Int
627
+ }),
628
+ not: g.arg({
629
+ type: IntNullableFilter$2
630
+ }) // can be null
631
+ })
632
+ });
633
+ const FloatNullableFilter$2 = g.inputObject({
634
+ name: 'FloatNullableFilter',
635
+ fields: () => ({
636
+ equals: g.arg({
637
+ type: g.Float
638
+ }),
639
+ // can be null
640
+ in: g.arg({
641
+ type: g.list(g.nonNull(g.Float))
642
+ }),
643
+ // can be null
644
+ notIn: g.arg({
645
+ type: g.list(g.nonNull(g.Float))
646
+ }),
647
+ // can be null
648
+ lt: g.arg({
649
+ type: g.Float
650
+ }),
651
+ lte: g.arg({
652
+ type: g.Float
653
+ }),
654
+ gt: g.arg({
655
+ type: g.Float
656
+ }),
657
+ gte: g.arg({
658
+ type: g.Float
659
+ }),
660
+ not: g.arg({
661
+ type: FloatNullableFilter$2
662
+ }) // can be null
663
+ })
664
+ });
665
+ const FloatFilter$2 = g.inputObject({
666
+ name: 'FloatFilter',
667
+ fields: () => ({
668
+ equals: g.arg({
669
+ type: g.Float
670
+ }),
671
+ in: g.arg({
672
+ type: g.list(g.nonNull(g.Float))
673
+ }),
674
+ notIn: g.arg({
675
+ type: g.list(g.nonNull(g.Float))
676
+ }),
677
+ lt: g.arg({
678
+ type: g.Float
679
+ }),
680
+ lte: g.arg({
681
+ type: g.Float
682
+ }),
683
+ gt: g.arg({
684
+ type: g.Float
685
+ }),
686
+ gte: g.arg({
687
+ type: g.Float
688
+ }),
689
+ not: g.arg({
690
+ type: FloatFilter$2
691
+ })
692
+ })
693
+ });
694
+ const DateTimeNullableFilter$2 = g.inputObject({
695
+ name: 'DateTimeNullableFilter',
696
+ fields: () => ({
697
+ equals: g.arg({
698
+ type: g.DateTime
699
+ }),
700
+ // can be null
701
+ in: g.arg({
702
+ type: g.list(g.nonNull(g.DateTime))
703
+ }),
704
+ // can be null
705
+ notIn: g.arg({
706
+ type: g.list(g.nonNull(g.DateTime))
707
+ }),
708
+ // can be null
709
+ lt: g.arg({
710
+ type: g.DateTime
711
+ }),
712
+ lte: g.arg({
713
+ type: g.DateTime
714
+ }),
715
+ gt: g.arg({
716
+ type: g.DateTime
717
+ }),
718
+ gte: g.arg({
719
+ type: g.DateTime
720
+ }),
721
+ not: g.arg({
722
+ type: DateTimeNullableFilter$2
723
+ }) // can be null
724
+ })
725
+ });
726
+ const DateTimeFilter$2 = g.inputObject({
727
+ name: 'DateTimeFilter',
728
+ fields: () => ({
729
+ equals: g.arg({
730
+ type: g.DateTime
731
+ }),
732
+ in: g.arg({
733
+ type: g.list(g.nonNull(g.DateTime))
734
+ }),
735
+ notIn: g.arg({
736
+ type: g.list(g.nonNull(g.DateTime))
737
+ }),
738
+ lt: g.arg({
739
+ type: g.DateTime
740
+ }),
741
+ lte: g.arg({
742
+ type: g.DateTime
743
+ }),
744
+ gt: g.arg({
745
+ type: g.DateTime
746
+ }),
747
+ gte: g.arg({
748
+ type: g.DateTime
749
+ }),
750
+ not: g.arg({
751
+ type: DateTimeFilter$2
752
+ })
753
+ })
754
+ });
755
+ const DecimalNullableFilter$2 = g.inputObject({
756
+ name: 'DecimalNullableFilter',
757
+ fields: () => ({
758
+ equals: g.arg({
759
+ type: g.Decimal
760
+ }),
761
+ // can be null
762
+ in: g.arg({
763
+ type: g.list(g.nonNull(g.Decimal))
764
+ }),
765
+ // can be null
766
+ notIn: g.arg({
767
+ type: g.list(g.nonNull(g.Decimal))
768
+ }),
769
+ // can be null
770
+ lt: g.arg({
771
+ type: g.Decimal
772
+ }),
773
+ lte: g.arg({
774
+ type: g.Decimal
775
+ }),
776
+ gt: g.arg({
777
+ type: g.Decimal
778
+ }),
779
+ gte: g.arg({
780
+ type: g.Decimal
781
+ }),
782
+ not: g.arg({
783
+ type: DecimalNullableFilter$2
784
+ }) // can be null
785
+ })
786
+ });
787
+ const DecimalFilter$2 = g.inputObject({
788
+ name: 'DecimalFilter',
789
+ fields: () => ({
790
+ equals: g.arg({
791
+ type: g.Decimal
792
+ }),
793
+ in: g.arg({
794
+ type: g.list(g.nonNull(g.Decimal))
795
+ }),
796
+ notIn: g.arg({
797
+ type: g.list(g.nonNull(g.Decimal))
798
+ }),
799
+ lt: g.arg({
800
+ type: g.Decimal
801
+ }),
802
+ lte: g.arg({
803
+ type: g.Decimal
804
+ }),
805
+ gt: g.arg({
806
+ type: g.Decimal
807
+ }),
808
+ gte: g.arg({
809
+ type: g.Decimal
810
+ }),
811
+ not: g.arg({
812
+ type: DecimalFilter$2
813
+ })
814
+ })
815
+ });
816
+ const BigIntNullableFilter$2 = g.inputObject({
817
+ name: 'BigIntNullableFilter',
818
+ fields: () => ({
819
+ equals: g.arg({
820
+ type: g.BigInt
821
+ }),
822
+ // can be null
823
+ in: g.arg({
824
+ type: g.list(g.nonNull(g.BigInt))
825
+ }),
826
+ // can be null
827
+ notIn: g.arg({
828
+ type: g.list(g.nonNull(g.BigInt))
829
+ }),
830
+ // can be null
831
+ lt: g.arg({
832
+ type: g.BigInt
833
+ }),
834
+ lte: g.arg({
835
+ type: g.BigInt
836
+ }),
837
+ gt: g.arg({
838
+ type: g.BigInt
839
+ }),
840
+ gte: g.arg({
841
+ type: g.BigInt
842
+ }),
843
+ not: g.arg({
844
+ type: BigIntNullableFilter$2
845
+ }) // can be null
846
+ })
847
+ });
848
+ const BigIntFilter$2 = g.inputObject({
849
+ name: 'BigIntFilter',
850
+ fields: () => ({
851
+ equals: g.arg({
852
+ type: g.BigInt
853
+ }),
854
+ in: g.arg({
855
+ type: g.list(g.nonNull(g.BigInt))
856
+ }),
857
+ notIn: g.arg({
858
+ type: g.list(g.nonNull(g.BigInt))
859
+ }),
860
+ lt: g.arg({
861
+ type: g.BigInt
862
+ }),
863
+ lte: g.arg({
864
+ type: g.BigInt
865
+ }),
866
+ gt: g.arg({
867
+ type: g.BigInt
868
+ }),
869
+ gte: g.arg({
870
+ type: g.BigInt
871
+ }),
872
+ not: g.arg({
873
+ type: BigIntFilter$2
874
+ })
875
+ })
876
+ });
877
+ const String$2 = {
878
+ optional: StringNullableFilter$2,
879
+ required: StringFilter$2
880
+ };
881
+ const Boolean$2 = {
882
+ optional: BooleanNullableFilter$2,
883
+ required: BooleanFilter$2
884
+ };
885
+ const Int$2 = {
886
+ optional: IntNullableFilter$2,
887
+ required: IntFilter$2
888
+ };
889
+ const Float$2 = {
890
+ optional: FloatNullableFilter$2,
891
+ required: FloatFilter$2
892
+ };
893
+ const DateTime$2 = {
894
+ optional: DateTimeNullableFilter$2,
895
+ required: DateTimeFilter$2
896
+ };
897
+ const Decimal$2 = {
898
+ optional: DecimalNullableFilter$2,
899
+ required: DecimalFilter$2
900
+ };
901
+ const BigInt$3 = {
902
+ optional: BigIntNullableFilter$2,
903
+ required: BigIntFilter$2
904
+ };
905
+
906
+ var postgresql = /*#__PURE__*/Object.freeze({
907
+ __proto__: null,
908
+ String: String$2,
909
+ Boolean: Boolean$2,
910
+ Int: Int$2,
911
+ Float: Float$2,
912
+ DateTime: DateTime$2,
913
+ Decimal: Decimal$2,
914
+ BigInt: BigInt$3,
915
+ 'enum': enumFilters
916
+ });
917
+
918
+ // Do not manually modify this file, it is automatically generated by the package at /prisma-utils in this repo.
919
+ const StringNullableFilter$1 = g.inputObject({
920
+ name: 'StringNullableFilter',
921
+ fields: () => ({
922
+ equals: g.arg({
923
+ type: g.String
924
+ }),
925
+ // can be null
926
+ in: g.arg({
927
+ type: g.list(g.nonNull(g.String))
928
+ }),
929
+ // can be null
930
+ notIn: g.arg({
931
+ type: g.list(g.nonNull(g.String))
932
+ }),
933
+ // can be null
934
+ lt: g.arg({
935
+ type: g.String
936
+ }),
937
+ lte: g.arg({
938
+ type: g.String
939
+ }),
940
+ gt: g.arg({
941
+ type: g.String
942
+ }),
943
+ gte: g.arg({
944
+ type: g.String
945
+ }),
946
+ contains: g.arg({
947
+ type: g.String
948
+ }),
949
+ startsWith: g.arg({
950
+ type: g.String
951
+ }),
952
+ endsWith: g.arg({
953
+ type: g.String
954
+ }),
955
+ not: g.arg({
956
+ type: StringNullableFilter$1
957
+ }) // can be null
958
+ })
959
+ });
960
+ const StringFilter$1 = g.inputObject({
961
+ name: 'StringFilter',
962
+ fields: () => ({
963
+ equals: g.arg({
964
+ type: g.String
965
+ }),
966
+ in: g.arg({
967
+ type: g.list(g.nonNull(g.String))
968
+ }),
969
+ notIn: g.arg({
970
+ type: g.list(g.nonNull(g.String))
971
+ }),
972
+ lt: g.arg({
973
+ type: g.String
974
+ }),
975
+ lte: g.arg({
976
+ type: g.String
977
+ }),
978
+ gt: g.arg({
979
+ type: g.String
980
+ }),
981
+ gte: g.arg({
982
+ type: g.String
983
+ }),
984
+ contains: g.arg({
985
+ type: g.String
986
+ }),
987
+ startsWith: g.arg({
988
+ type: g.String
989
+ }),
990
+ endsWith: g.arg({
991
+ type: g.String
992
+ }),
993
+ not: g.arg({
994
+ type: NestedStringFilter$1
995
+ })
996
+ })
997
+ });
998
+ const NestedStringNullableFilter$1 = g.inputObject({
999
+ name: 'NestedStringNullableFilter',
1000
+ fields: () => ({
1001
+ equals: g.arg({
1002
+ type: g.String
1003
+ }),
1004
+ // can be null
1005
+ in: g.arg({
1006
+ type: g.list(g.nonNull(g.String))
1007
+ }),
1008
+ // can be null
1009
+ notIn: g.arg({
1010
+ type: g.list(g.nonNull(g.String))
1011
+ }),
1012
+ // can be null
1013
+ lt: g.arg({
1014
+ type: g.String
1015
+ }),
1016
+ lte: g.arg({
1017
+ type: g.String
1018
+ }),
1019
+ gt: g.arg({
1020
+ type: g.String
1021
+ }),
1022
+ gte: g.arg({
1023
+ type: g.String
1024
+ }),
1025
+ contains: g.arg({
1026
+ type: g.String
1027
+ }),
1028
+ startsWith: g.arg({
1029
+ type: g.String
1030
+ }),
1031
+ endsWith: g.arg({
1032
+ type: g.String
1033
+ }),
1034
+ not: g.arg({
1035
+ type: NestedStringNullableFilter$1
1036
+ }) // can be null
1037
+ })
1038
+ });
1039
+ const NestedStringFilter$1 = g.inputObject({
1040
+ name: 'NestedStringFilter',
1041
+ fields: () => ({
1042
+ equals: g.arg({
1043
+ type: g.String
1044
+ }),
1045
+ in: g.arg({
1046
+ type: g.list(g.nonNull(g.String))
1047
+ }),
1048
+ notIn: g.arg({
1049
+ type: g.list(g.nonNull(g.String))
1050
+ }),
1051
+ lt: g.arg({
1052
+ type: g.String
1053
+ }),
1054
+ lte: g.arg({
1055
+ type: g.String
1056
+ }),
1057
+ gt: g.arg({
1058
+ type: g.String
1059
+ }),
1060
+ gte: g.arg({
1061
+ type: g.String
1062
+ }),
1063
+ contains: g.arg({
1064
+ type: g.String
1065
+ }),
1066
+ startsWith: g.arg({
1067
+ type: g.String
1068
+ }),
1069
+ endsWith: g.arg({
1070
+ type: g.String
1071
+ }),
1072
+ not: g.arg({
1073
+ type: NestedStringFilter$1
1074
+ })
1075
+ })
1076
+ });
1077
+ const BooleanNullableFilter$1 = g.inputObject({
1078
+ name: 'BooleanNullableFilter',
1079
+ fields: () => ({
1080
+ equals: g.arg({
1081
+ type: g.Boolean
1082
+ }),
1083
+ // can be null
1084
+ not: g.arg({
1085
+ type: BooleanNullableFilter$1
1086
+ }) // can be null
1087
+ })
1088
+ });
1089
+ const BooleanFilter$1 = g.inputObject({
1090
+ name: 'BooleanFilter',
1091
+ fields: () => ({
1092
+ equals: g.arg({
1093
+ type: g.Boolean
1094
+ }),
1095
+ not: g.arg({
1096
+ type: BooleanFilter$1
1097
+ })
1098
+ })
1099
+ });
1100
+ const IntFilter$1 = g.inputObject({
1101
+ name: 'IntFilter',
1102
+ fields: () => ({
1103
+ equals: g.arg({
1104
+ type: g.Int
1105
+ }),
1106
+ in: g.arg({
1107
+ type: g.list(g.nonNull(g.Int))
1108
+ }),
1109
+ notIn: g.arg({
1110
+ type: g.list(g.nonNull(g.Int))
1111
+ }),
1112
+ lt: g.arg({
1113
+ type: g.Int
1114
+ }),
1115
+ lte: g.arg({
1116
+ type: g.Int
1117
+ }),
1118
+ gt: g.arg({
1119
+ type: g.Int
1120
+ }),
1121
+ gte: g.arg({
1122
+ type: g.Int
1123
+ }),
1124
+ not: g.arg({
1125
+ type: IntFilter$1
1126
+ })
1127
+ })
1128
+ });
1129
+ const IntNullableFilter$1 = g.inputObject({
1130
+ name: 'IntNullableFilter',
1131
+ fields: () => ({
1132
+ equals: g.arg({
1133
+ type: g.Int
1134
+ }),
1135
+ // can be null
1136
+ in: g.arg({
1137
+ type: g.list(g.nonNull(g.Int))
1138
+ }),
1139
+ // can be null
1140
+ notIn: g.arg({
1141
+ type: g.list(g.nonNull(g.Int))
1142
+ }),
1143
+ // can be null
1144
+ lt: g.arg({
1145
+ type: g.Int
1146
+ }),
1147
+ lte: g.arg({
1148
+ type: g.Int
1149
+ }),
1150
+ gt: g.arg({
1151
+ type: g.Int
1152
+ }),
1153
+ gte: g.arg({
1154
+ type: g.Int
1155
+ }),
1156
+ not: g.arg({
1157
+ type: IntNullableFilter$1
1158
+ }) // can be null
1159
+ })
1160
+ });
1161
+ const FloatNullableFilter$1 = g.inputObject({
1162
+ name: 'FloatNullableFilter',
1163
+ fields: () => ({
1164
+ equals: g.arg({
1165
+ type: g.Float
1166
+ }),
1167
+ // can be null
1168
+ in: g.arg({
1169
+ type: g.list(g.nonNull(g.Float))
1170
+ }),
1171
+ // can be null
1172
+ notIn: g.arg({
1173
+ type: g.list(g.nonNull(g.Float))
1174
+ }),
1175
+ // can be null
1176
+ lt: g.arg({
1177
+ type: g.Float
1178
+ }),
1179
+ lte: g.arg({
1180
+ type: g.Float
1181
+ }),
1182
+ gt: g.arg({
1183
+ type: g.Float
1184
+ }),
1185
+ gte: g.arg({
1186
+ type: g.Float
1187
+ }),
1188
+ not: g.arg({
1189
+ type: FloatNullableFilter$1
1190
+ }) // can be null
1191
+ })
1192
+ });
1193
+ const FloatFilter$1 = g.inputObject({
1194
+ name: 'FloatFilter',
1195
+ fields: () => ({
1196
+ equals: g.arg({
1197
+ type: g.Float
1198
+ }),
1199
+ in: g.arg({
1200
+ type: g.list(g.nonNull(g.Float))
1201
+ }),
1202
+ notIn: g.arg({
1203
+ type: g.list(g.nonNull(g.Float))
1204
+ }),
1205
+ lt: g.arg({
1206
+ type: g.Float
1207
+ }),
1208
+ lte: g.arg({
1209
+ type: g.Float
1210
+ }),
1211
+ gt: g.arg({
1212
+ type: g.Float
1213
+ }),
1214
+ gte: g.arg({
1215
+ type: g.Float
1216
+ }),
1217
+ not: g.arg({
1218
+ type: FloatFilter$1
1219
+ })
1220
+ })
1221
+ });
1222
+ const DateTimeNullableFilter$1 = g.inputObject({
1223
+ name: 'DateTimeNullableFilter',
1224
+ fields: () => ({
1225
+ equals: g.arg({
1226
+ type: g.DateTime
1227
+ }),
1228
+ // can be null
1229
+ in: g.arg({
1230
+ type: g.list(g.nonNull(g.DateTime))
1231
+ }),
1232
+ // can be null
1233
+ notIn: g.arg({
1234
+ type: g.list(g.nonNull(g.DateTime))
1235
+ }),
1236
+ // can be null
1237
+ lt: g.arg({
1238
+ type: g.DateTime
1239
+ }),
1240
+ lte: g.arg({
1241
+ type: g.DateTime
1242
+ }),
1243
+ gt: g.arg({
1244
+ type: g.DateTime
1245
+ }),
1246
+ gte: g.arg({
1247
+ type: g.DateTime
1248
+ }),
1249
+ not: g.arg({
1250
+ type: DateTimeNullableFilter$1
1251
+ }) // can be null
1252
+ })
1253
+ });
1254
+ const DateTimeFilter$1 = g.inputObject({
1255
+ name: 'DateTimeFilter',
1256
+ fields: () => ({
1257
+ equals: g.arg({
1258
+ type: g.DateTime
1259
+ }),
1260
+ in: g.arg({
1261
+ type: g.list(g.nonNull(g.DateTime))
1262
+ }),
1263
+ notIn: g.arg({
1264
+ type: g.list(g.nonNull(g.DateTime))
1265
+ }),
1266
+ lt: g.arg({
1267
+ type: g.DateTime
1268
+ }),
1269
+ lte: g.arg({
1270
+ type: g.DateTime
1271
+ }),
1272
+ gt: g.arg({
1273
+ type: g.DateTime
1274
+ }),
1275
+ gte: g.arg({
1276
+ type: g.DateTime
1277
+ }),
1278
+ not: g.arg({
1279
+ type: DateTimeFilter$1
1280
+ })
1281
+ })
1282
+ });
1283
+ const DecimalNullableFilter$1 = g.inputObject({
1284
+ name: 'DecimalNullableFilter',
1285
+ fields: () => ({
1286
+ equals: g.arg({
1287
+ type: g.Decimal
1288
+ }),
1289
+ // can be null
1290
+ in: g.arg({
1291
+ type: g.list(g.nonNull(g.Decimal))
1292
+ }),
1293
+ // can be null
1294
+ notIn: g.arg({
1295
+ type: g.list(g.nonNull(g.Decimal))
1296
+ }),
1297
+ // can be null
1298
+ lt: g.arg({
1299
+ type: g.Decimal
1300
+ }),
1301
+ lte: g.arg({
1302
+ type: g.Decimal
1303
+ }),
1304
+ gt: g.arg({
1305
+ type: g.Decimal
1306
+ }),
1307
+ gte: g.arg({
1308
+ type: g.Decimal
1309
+ }),
1310
+ not: g.arg({
1311
+ type: DecimalNullableFilter$1
1312
+ }) // can be null
1313
+ })
1314
+ });
1315
+ const DecimalFilter$1 = g.inputObject({
1316
+ name: 'DecimalFilter',
1317
+ fields: () => ({
1318
+ equals: g.arg({
1319
+ type: g.Decimal
1320
+ }),
1321
+ in: g.arg({
1322
+ type: g.list(g.nonNull(g.Decimal))
1323
+ }),
1324
+ notIn: g.arg({
1325
+ type: g.list(g.nonNull(g.Decimal))
1326
+ }),
1327
+ lt: g.arg({
1328
+ type: g.Decimal
1329
+ }),
1330
+ lte: g.arg({
1331
+ type: g.Decimal
1332
+ }),
1333
+ gt: g.arg({
1334
+ type: g.Decimal
1335
+ }),
1336
+ gte: g.arg({
1337
+ type: g.Decimal
1338
+ }),
1339
+ not: g.arg({
1340
+ type: DecimalFilter$1
1341
+ })
1342
+ })
1343
+ });
1344
+ const BigIntNullableFilter$1 = g.inputObject({
1345
+ name: 'BigIntNullableFilter',
1346
+ fields: () => ({
1347
+ equals: g.arg({
1348
+ type: g.BigInt
1349
+ }),
1350
+ // can be null
1351
+ in: g.arg({
1352
+ type: g.list(g.nonNull(g.BigInt))
1353
+ }),
1354
+ // can be null
1355
+ notIn: g.arg({
1356
+ type: g.list(g.nonNull(g.BigInt))
1357
+ }),
1358
+ // can be null
1359
+ lt: g.arg({
1360
+ type: g.BigInt
1361
+ }),
1362
+ lte: g.arg({
1363
+ type: g.BigInt
1364
+ }),
1365
+ gt: g.arg({
1366
+ type: g.BigInt
1367
+ }),
1368
+ gte: g.arg({
1369
+ type: g.BigInt
1370
+ }),
1371
+ not: g.arg({
1372
+ type: BigIntNullableFilter$1
1373
+ }) // can be null
1374
+ })
1375
+ });
1376
+ const BigIntFilter$1 = g.inputObject({
1377
+ name: 'BigIntFilter',
1378
+ fields: () => ({
1379
+ equals: g.arg({
1380
+ type: g.BigInt
1381
+ }),
1382
+ in: g.arg({
1383
+ type: g.list(g.nonNull(g.BigInt))
1384
+ }),
1385
+ notIn: g.arg({
1386
+ type: g.list(g.nonNull(g.BigInt))
1387
+ }),
1388
+ lt: g.arg({
1389
+ type: g.BigInt
1390
+ }),
1391
+ lte: g.arg({
1392
+ type: g.BigInt
1393
+ }),
1394
+ gt: g.arg({
1395
+ type: g.BigInt
1396
+ }),
1397
+ gte: g.arg({
1398
+ type: g.BigInt
1399
+ }),
1400
+ not: g.arg({
1401
+ type: BigIntFilter$1
1402
+ })
1403
+ })
1404
+ });
1405
+ const String$1 = {
1406
+ optional: StringNullableFilter$1,
1407
+ required: StringFilter$1
1408
+ };
1409
+ const Boolean$1 = {
1410
+ optional: BooleanNullableFilter$1,
1411
+ required: BooleanFilter$1
1412
+ };
1413
+ const Int$1 = {
1414
+ optional: IntNullableFilter$1,
1415
+ required: IntFilter$1
1416
+ };
1417
+ const Float$1 = {
1418
+ optional: FloatNullableFilter$1,
1419
+ required: FloatFilter$1
1420
+ };
1421
+ const DateTime$1 = {
1422
+ optional: DateTimeNullableFilter$1,
1423
+ required: DateTimeFilter$1
1424
+ };
1425
+ const Decimal$1 = {
1426
+ optional: DecimalNullableFilter$1,
1427
+ required: DecimalFilter$1
1428
+ };
1429
+ const BigInt$2 = {
1430
+ optional: BigIntNullableFilter$1,
1431
+ required: BigIntFilter$1
1432
+ };
1433
+
1434
+ var sqlite = /*#__PURE__*/Object.freeze({
1435
+ __proto__: null,
1436
+ String: String$1,
1437
+ Boolean: Boolean$1,
1438
+ Int: Int$1,
1439
+ Float: Float$1,
1440
+ DateTime: DateTime$1,
1441
+ Decimal: Decimal$1,
1442
+ BigInt: BigInt$2,
1443
+ 'enum': enumFilters
1444
+ });
1445
+
1446
+ // Do not manually modify this file, it is automatically generated by the package at /prisma-utils in this repo.
1447
+ const StringNullableFilter = g.inputObject({
1448
+ name: 'StringNullableFilter',
1449
+ fields: () => ({
1450
+ equals: g.arg({
1451
+ type: g.String
1452
+ }),
1453
+ // can be null
1454
+ in: g.arg({
1455
+ type: g.list(g.nonNull(g.String))
1456
+ }),
1457
+ // can be null
1458
+ notIn: g.arg({
1459
+ type: g.list(g.nonNull(g.String))
1460
+ }),
1461
+ // can be null
1462
+ lt: g.arg({
1463
+ type: g.String
1464
+ }),
1465
+ lte: g.arg({
1466
+ type: g.String
1467
+ }),
1468
+ gt: g.arg({
1469
+ type: g.String
1470
+ }),
1471
+ gte: g.arg({
1472
+ type: g.String
1473
+ }),
1474
+ contains: g.arg({
1475
+ type: g.String
1476
+ }),
1477
+ startsWith: g.arg({
1478
+ type: g.String
1479
+ }),
1480
+ endsWith: g.arg({
1481
+ type: g.String
1482
+ }),
1483
+ search: g.arg({
1484
+ type: g.String
1485
+ }),
1486
+ not: g.arg({
1487
+ type: StringNullableFilter
1488
+ }) // can be null
1489
+ })
1490
+ });
1491
+ const StringFilter = g.inputObject({
1492
+ name: 'StringFilter',
1493
+ fields: () => ({
1494
+ equals: g.arg({
1495
+ type: g.String
1496
+ }),
1497
+ in: g.arg({
1498
+ type: g.list(g.nonNull(g.String))
1499
+ }),
1500
+ notIn: g.arg({
1501
+ type: g.list(g.nonNull(g.String))
1502
+ }),
1503
+ lt: g.arg({
1504
+ type: g.String
1505
+ }),
1506
+ lte: g.arg({
1507
+ type: g.String
1508
+ }),
1509
+ gt: g.arg({
1510
+ type: g.String
1511
+ }),
1512
+ gte: g.arg({
1513
+ type: g.String
1514
+ }),
1515
+ contains: g.arg({
1516
+ type: g.String
1517
+ }),
1518
+ startsWith: g.arg({
1519
+ type: g.String
1520
+ }),
1521
+ endsWith: g.arg({
1522
+ type: g.String
1523
+ }),
1524
+ search: g.arg({
1525
+ type: g.String
1526
+ }),
1527
+ not: g.arg({
1528
+ type: NestedStringFilter
1529
+ })
1530
+ })
1531
+ });
1532
+ const NestedStringNullableFilter = g.inputObject({
1533
+ name: 'NestedStringNullableFilter',
1534
+ fields: () => ({
1535
+ equals: g.arg({
1536
+ type: g.String
1537
+ }),
1538
+ // can be null
1539
+ in: g.arg({
1540
+ type: g.list(g.nonNull(g.String))
1541
+ }),
1542
+ // can be null
1543
+ notIn: g.arg({
1544
+ type: g.list(g.nonNull(g.String))
1545
+ }),
1546
+ // can be null
1547
+ lt: g.arg({
1548
+ type: g.String
1549
+ }),
1550
+ lte: g.arg({
1551
+ type: g.String
1552
+ }),
1553
+ gt: g.arg({
1554
+ type: g.String
1555
+ }),
1556
+ gte: g.arg({
1557
+ type: g.String
1558
+ }),
1559
+ contains: g.arg({
1560
+ type: g.String
1561
+ }),
1562
+ startsWith: g.arg({
1563
+ type: g.String
1564
+ }),
1565
+ endsWith: g.arg({
1566
+ type: g.String
1567
+ }),
1568
+ search: g.arg({
1569
+ type: g.String
1570
+ }),
1571
+ not: g.arg({
1572
+ type: NestedStringNullableFilter
1573
+ }) // can be null
1574
+ })
1575
+ });
1576
+ const NestedStringFilter = g.inputObject({
1577
+ name: 'NestedStringFilter',
1578
+ fields: () => ({
1579
+ equals: g.arg({
1580
+ type: g.String
1581
+ }),
1582
+ in: g.arg({
1583
+ type: g.list(g.nonNull(g.String))
1584
+ }),
1585
+ notIn: g.arg({
1586
+ type: g.list(g.nonNull(g.String))
1587
+ }),
1588
+ lt: g.arg({
1589
+ type: g.String
1590
+ }),
1591
+ lte: g.arg({
1592
+ type: g.String
1593
+ }),
1594
+ gt: g.arg({
1595
+ type: g.String
1596
+ }),
1597
+ gte: g.arg({
1598
+ type: g.String
1599
+ }),
1600
+ contains: g.arg({
1601
+ type: g.String
1602
+ }),
1603
+ startsWith: g.arg({
1604
+ type: g.String
1605
+ }),
1606
+ endsWith: g.arg({
1607
+ type: g.String
1608
+ }),
1609
+ search: g.arg({
1610
+ type: g.String
1611
+ }),
1612
+ not: g.arg({
1613
+ type: NestedStringFilter
1614
+ })
1615
+ })
1616
+ });
1617
+ const BooleanNullableFilter = g.inputObject({
1618
+ name: 'BooleanNullableFilter',
1619
+ fields: () => ({
1620
+ equals: g.arg({
1621
+ type: g.Boolean
1622
+ }),
1623
+ // can be null
1624
+ not: g.arg({
1625
+ type: BooleanNullableFilter
1626
+ }) // can be null
1627
+ })
1628
+ });
1629
+ const BooleanFilter = g.inputObject({
1630
+ name: 'BooleanFilter',
1631
+ fields: () => ({
1632
+ equals: g.arg({
1633
+ type: g.Boolean
1634
+ }),
1635
+ not: g.arg({
1636
+ type: BooleanFilter
1637
+ })
1638
+ })
1639
+ });
1640
+ const IntFilter = g.inputObject({
1641
+ name: 'IntFilter',
1642
+ fields: () => ({
1643
+ equals: g.arg({
1644
+ type: g.Int
1645
+ }),
1646
+ in: g.arg({
1647
+ type: g.list(g.nonNull(g.Int))
1648
+ }),
1649
+ notIn: g.arg({
1650
+ type: g.list(g.nonNull(g.Int))
1651
+ }),
1652
+ lt: g.arg({
1653
+ type: g.Int
1654
+ }),
1655
+ lte: g.arg({
1656
+ type: g.Int
1657
+ }),
1658
+ gt: g.arg({
1659
+ type: g.Int
1660
+ }),
1661
+ gte: g.arg({
1662
+ type: g.Int
1663
+ }),
1664
+ not: g.arg({
1665
+ type: IntFilter
1666
+ })
1667
+ })
1668
+ });
1669
+ const IntNullableFilter = g.inputObject({
1670
+ name: 'IntNullableFilter',
1671
+ fields: () => ({
1672
+ equals: g.arg({
1673
+ type: g.Int
1674
+ }),
1675
+ // can be null
1676
+ in: g.arg({
1677
+ type: g.list(g.nonNull(g.Int))
1678
+ }),
1679
+ // can be null
1680
+ notIn: g.arg({
1681
+ type: g.list(g.nonNull(g.Int))
1682
+ }),
1683
+ // can be null
1684
+ lt: g.arg({
1685
+ type: g.Int
1686
+ }),
1687
+ lte: g.arg({
1688
+ type: g.Int
1689
+ }),
1690
+ gt: g.arg({
1691
+ type: g.Int
1692
+ }),
1693
+ gte: g.arg({
1694
+ type: g.Int
1695
+ }),
1696
+ not: g.arg({
1697
+ type: IntNullableFilter
1698
+ }) // can be null
1699
+ })
1700
+ });
1701
+ const FloatNullableFilter = g.inputObject({
1702
+ name: 'FloatNullableFilter',
1703
+ fields: () => ({
1704
+ equals: g.arg({
1705
+ type: g.Float
1706
+ }),
1707
+ // can be null
1708
+ in: g.arg({
1709
+ type: g.list(g.nonNull(g.Float))
1710
+ }),
1711
+ // can be null
1712
+ notIn: g.arg({
1713
+ type: g.list(g.nonNull(g.Float))
1714
+ }),
1715
+ // can be null
1716
+ lt: g.arg({
1717
+ type: g.Float
1718
+ }),
1719
+ lte: g.arg({
1720
+ type: g.Float
1721
+ }),
1722
+ gt: g.arg({
1723
+ type: g.Float
1724
+ }),
1725
+ gte: g.arg({
1726
+ type: g.Float
1727
+ }),
1728
+ not: g.arg({
1729
+ type: FloatNullableFilter
1730
+ }) // can be null
1731
+ })
1732
+ });
1733
+ const FloatFilter = g.inputObject({
1734
+ name: 'FloatFilter',
1735
+ fields: () => ({
1736
+ equals: g.arg({
1737
+ type: g.Float
1738
+ }),
1739
+ in: g.arg({
1740
+ type: g.list(g.nonNull(g.Float))
1741
+ }),
1742
+ notIn: g.arg({
1743
+ type: g.list(g.nonNull(g.Float))
1744
+ }),
1745
+ lt: g.arg({
1746
+ type: g.Float
1747
+ }),
1748
+ lte: g.arg({
1749
+ type: g.Float
1750
+ }),
1751
+ gt: g.arg({
1752
+ type: g.Float
1753
+ }),
1754
+ gte: g.arg({
1755
+ type: g.Float
1756
+ }),
1757
+ not: g.arg({
1758
+ type: FloatFilter
1759
+ })
1760
+ })
1761
+ });
1762
+ const DateTimeNullableFilter = g.inputObject({
1763
+ name: 'DateTimeNullableFilter',
1764
+ fields: () => ({
1765
+ equals: g.arg({
1766
+ type: g.DateTime
1767
+ }),
1768
+ // can be null
1769
+ in: g.arg({
1770
+ type: g.list(g.nonNull(g.DateTime))
1771
+ }),
1772
+ // can be null
1773
+ notIn: g.arg({
1774
+ type: g.list(g.nonNull(g.DateTime))
1775
+ }),
1776
+ // can be null
1777
+ lt: g.arg({
1778
+ type: g.DateTime
1779
+ }),
1780
+ lte: g.arg({
1781
+ type: g.DateTime
1782
+ }),
1783
+ gt: g.arg({
1784
+ type: g.DateTime
1785
+ }),
1786
+ gte: g.arg({
1787
+ type: g.DateTime
1788
+ }),
1789
+ not: g.arg({
1790
+ type: DateTimeNullableFilter
1791
+ }) // can be null
1792
+ })
1793
+ });
1794
+ const DateTimeFilter = g.inputObject({
1795
+ name: 'DateTimeFilter',
1796
+ fields: () => ({
1797
+ equals: g.arg({
1798
+ type: g.DateTime
1799
+ }),
1800
+ in: g.arg({
1801
+ type: g.list(g.nonNull(g.DateTime))
1802
+ }),
1803
+ notIn: g.arg({
1804
+ type: g.list(g.nonNull(g.DateTime))
1805
+ }),
1806
+ lt: g.arg({
1807
+ type: g.DateTime
1808
+ }),
1809
+ lte: g.arg({
1810
+ type: g.DateTime
1811
+ }),
1812
+ gt: g.arg({
1813
+ type: g.DateTime
1814
+ }),
1815
+ gte: g.arg({
1816
+ type: g.DateTime
1817
+ }),
1818
+ not: g.arg({
1819
+ type: DateTimeFilter
1820
+ })
1821
+ })
1822
+ });
1823
+ const DecimalNullableFilter = g.inputObject({
1824
+ name: 'DecimalNullableFilter',
1825
+ fields: () => ({
1826
+ equals: g.arg({
1827
+ type: g.Decimal
1828
+ }),
1829
+ // can be null
1830
+ in: g.arg({
1831
+ type: g.list(g.nonNull(g.Decimal))
1832
+ }),
1833
+ // can be null
1834
+ notIn: g.arg({
1835
+ type: g.list(g.nonNull(g.Decimal))
1836
+ }),
1837
+ // can be null
1838
+ lt: g.arg({
1839
+ type: g.Decimal
1840
+ }),
1841
+ lte: g.arg({
1842
+ type: g.Decimal
1843
+ }),
1844
+ gt: g.arg({
1845
+ type: g.Decimal
1846
+ }),
1847
+ gte: g.arg({
1848
+ type: g.Decimal
1849
+ }),
1850
+ not: g.arg({
1851
+ type: DecimalNullableFilter
1852
+ }) // can be null
1853
+ })
1854
+ });
1855
+ const DecimalFilter = g.inputObject({
1856
+ name: 'DecimalFilter',
1857
+ fields: () => ({
1858
+ equals: g.arg({
1859
+ type: g.Decimal
1860
+ }),
1861
+ in: g.arg({
1862
+ type: g.list(g.nonNull(g.Decimal))
1863
+ }),
1864
+ notIn: g.arg({
1865
+ type: g.list(g.nonNull(g.Decimal))
1866
+ }),
1867
+ lt: g.arg({
1868
+ type: g.Decimal
1869
+ }),
1870
+ lte: g.arg({
1871
+ type: g.Decimal
1872
+ }),
1873
+ gt: g.arg({
1874
+ type: g.Decimal
1875
+ }),
1876
+ gte: g.arg({
1877
+ type: g.Decimal
1878
+ }),
1879
+ not: g.arg({
1880
+ type: DecimalFilter
1881
+ })
1882
+ })
1883
+ });
1884
+ const BigIntNullableFilter = g.inputObject({
1885
+ name: 'BigIntNullableFilter',
1886
+ fields: () => ({
1887
+ equals: g.arg({
1888
+ type: g.BigInt
1889
+ }),
1890
+ // can be null
1891
+ in: g.arg({
1892
+ type: g.list(g.nonNull(g.BigInt))
1893
+ }),
1894
+ // can be null
1895
+ notIn: g.arg({
1896
+ type: g.list(g.nonNull(g.BigInt))
1897
+ }),
1898
+ // can be null
1899
+ lt: g.arg({
1900
+ type: g.BigInt
1901
+ }),
1902
+ lte: g.arg({
1903
+ type: g.BigInt
1904
+ }),
1905
+ gt: g.arg({
1906
+ type: g.BigInt
1907
+ }),
1908
+ gte: g.arg({
1909
+ type: g.BigInt
1910
+ }),
1911
+ not: g.arg({
1912
+ type: BigIntNullableFilter
1913
+ }) // can be null
1914
+ })
1915
+ });
1916
+ const BigIntFilter = g.inputObject({
1917
+ name: 'BigIntFilter',
1918
+ fields: () => ({
1919
+ equals: g.arg({
1920
+ type: g.BigInt
1921
+ }),
1922
+ in: g.arg({
1923
+ type: g.list(g.nonNull(g.BigInt))
1924
+ }),
1925
+ notIn: g.arg({
1926
+ type: g.list(g.nonNull(g.BigInt))
1927
+ }),
1928
+ lt: g.arg({
1929
+ type: g.BigInt
1930
+ }),
1931
+ lte: g.arg({
1932
+ type: g.BigInt
1933
+ }),
1934
+ gt: g.arg({
1935
+ type: g.BigInt
1936
+ }),
1937
+ gte: g.arg({
1938
+ type: g.BigInt
1939
+ }),
1940
+ not: g.arg({
1941
+ type: BigIntFilter
1942
+ })
1943
+ })
1944
+ });
1945
+ const String = {
1946
+ optional: StringNullableFilter,
1947
+ required: StringFilter
1948
+ };
1949
+ const Boolean = {
1950
+ optional: BooleanNullableFilter,
1951
+ required: BooleanFilter
1952
+ };
1953
+ const Int = {
1954
+ optional: IntNullableFilter,
1955
+ required: IntFilter
1956
+ };
1957
+ const Float = {
1958
+ optional: FloatNullableFilter,
1959
+ required: FloatFilter
1960
+ };
1961
+ const DateTime = {
1962
+ optional: DateTimeNullableFilter,
1963
+ required: DateTimeFilter
1964
+ };
1965
+ const Decimal = {
1966
+ optional: DecimalNullableFilter,
1967
+ required: DecimalFilter
1968
+ };
1969
+ const BigInt$1 = {
1970
+ optional: BigIntNullableFilter,
1971
+ required: BigIntFilter
1972
+ };
1973
+
1974
+ var mysql = /*#__PURE__*/Object.freeze({
1975
+ __proto__: null,
1976
+ String: String,
1977
+ Boolean: Boolean,
1978
+ Int: Int,
1979
+ Float: Float,
1980
+ DateTime: DateTime,
1981
+ Decimal: Decimal,
1982
+ BigInt: BigInt$1,
1983
+ 'enum': enumFilters
1984
+ });
1985
+
1986
+ function mergeVoidFn(a, b) {
1987
+ if (!a) return b;
1988
+ if (!b) return a;
1989
+ return async args => {
1990
+ await (a === null || a === void 0 ? void 0 : a(args));
1991
+ await (b === null || b === void 0 ? void 0 : b(args));
1992
+ };
1993
+ }
1994
+ function merge(a, b) {
1995
+ if (!a) return b;
1996
+ if (!b) return a;
1997
+ if (typeof a === 'function' && typeof b === 'function') {
1998
+ return mergeVoidFn(a, b);
1999
+ }
2000
+ const expandedA = expandHooks(a);
2001
+ const expandedB = expandHooks(b);
2002
+ return {
2003
+ create: mergeVoidFn(expandedA.create, expandedB.create),
2004
+ update: mergeVoidFn(expandedA.update, expandedB.update),
2005
+ delete: mergeVoidFn(expandedA.delete, expandedB.delete)
2006
+ };
2007
+ }
2008
+ function expandHooks(fn) {
2009
+ return typeof fn === 'function' ? {
2010
+ create: fn,
2011
+ update: fn,
2012
+ delete: fn
2013
+ } : fn;
2014
+ }
2015
+ const emptyFn = () => {};
2016
+ function expandVoidHooks(hooks) {
2017
+ var _expanded$create, _expanded$update, _expanded$delete;
2018
+ const expanded = hooks ? expandHooks(hooks) : {};
2019
+ return {
2020
+ create: (_expanded$create = expanded.create) !== null && _expanded$create !== void 0 ? _expanded$create : emptyFn,
2021
+ update: (_expanded$update = expanded.update) !== null && _expanded$update !== void 0 ? _expanded$update : emptyFn,
2022
+ delete: (_expanded$delete = expanded.delete) !== null && _expanded$delete !== void 0 ? _expanded$delete : emptyFn
2023
+ };
2024
+ }
2025
+
2026
+ export { merge as a, accessReturnError as b, accessDeniedError as c, filterAccessError as d, extensionError as e, formatKeys as f, expandVoidHooks as g, relationshipError as h, idFieldType as i, limitsExceededError as l, mysql as m, postgresql as p, resolverError as r, sqlite as s, userInputError as u, validationFailureError as v };