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