@visulima/crud 3.0.0-alpha.1 → 3.0.0-alpha.11

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 (135) hide show
  1. package/CHANGELOG.md +165 -0
  2. package/LICENSE.md +22 -1
  3. package/README.md +29 -18
  4. package/dist/adapter/prisma/index.d.cts +39 -0
  5. package/dist/adapter/prisma/index.d.mts +39 -0
  6. package/dist/adapter/prisma/index.d.ts +39 -0
  7. package/dist/adapter/prisma/types.d.cts +31 -0
  8. package/dist/adapter/prisma/types.d.mts +31 -0
  9. package/dist/adapter/prisma/types.d.ts +31 -0
  10. package/dist/adapter/prisma/utils/models-to-route-names.d.cts +5 -0
  11. package/dist/adapter/prisma/utils/models-to-route-names.d.mts +5 -0
  12. package/dist/adapter/prisma/utils/models-to-route-names.d.ts +5 -0
  13. package/dist/adapter/prisma/utils/parse-cursor.d.cts +3 -0
  14. package/dist/adapter/prisma/utils/parse-cursor.d.mts +3 -0
  15. package/dist/adapter/prisma/utils/parse-cursor.d.ts +3 -0
  16. package/dist/adapter/prisma/utils/parse-order-by.d.cts +4 -0
  17. package/dist/adapter/prisma/utils/parse-order-by.d.mts +4 -0
  18. package/dist/adapter/prisma/utils/parse-order-by.d.ts +4 -0
  19. package/dist/adapter/prisma/utils/parse-recursive.d.cts +4 -0
  20. package/dist/adapter/prisma/utils/parse-recursive.d.mts +4 -0
  21. package/dist/adapter/prisma/utils/parse-recursive.d.ts +4 -0
  22. package/dist/adapter/prisma/utils/parse-where.d.cts +4 -0
  23. package/dist/adapter/prisma/utils/parse-where.d.mts +4 -0
  24. package/dist/adapter/prisma/utils/parse-where.d.ts +4 -0
  25. package/dist/base-crud-handler.d.cts +9 -0
  26. package/dist/base-crud-handler.d.mts +9 -0
  27. package/dist/base-crud-handler.d.ts +9 -0
  28. package/dist/handler/create.d.cts +3 -0
  29. package/dist/handler/create.d.mts +3 -0
  30. package/dist/handler/create.d.ts +3 -0
  31. package/dist/handler/delete.d.cts +3 -0
  32. package/dist/handler/delete.d.mts +3 -0
  33. package/dist/handler/delete.d.ts +3 -0
  34. package/dist/handler/list.d.cts +3 -0
  35. package/dist/handler/list.d.mts +3 -0
  36. package/dist/handler/list.d.ts +3 -0
  37. package/dist/handler/read.d.cts +3 -0
  38. package/dist/handler/read.d.mts +3 -0
  39. package/dist/handler/read.d.ts +3 -0
  40. package/dist/handler/update.d.cts +3 -0
  41. package/dist/handler/update.d.mts +3 -0
  42. package/dist/handler/update.d.ts +3 -0
  43. package/dist/index.cjs +13 -0
  44. package/dist/index.d.cts +6 -0
  45. package/dist/index.d.mts +6 -127
  46. package/dist/index.d.ts +6 -127
  47. package/dist/index.mjs +3 -1085
  48. package/dist/next/api/edge/index.d.cts +3 -0
  49. package/dist/next/api/edge/index.d.mts +3 -0
  50. package/dist/next/api/edge/index.d.ts +3 -0
  51. package/dist/next/api/node/index.d.cts +4 -0
  52. package/dist/next/api/node/index.d.mts +4 -0
  53. package/dist/next/api/node/index.d.ts +4 -0
  54. package/dist/next/index.cjs +11 -0
  55. package/dist/next/index.d.cts +2 -0
  56. package/dist/next/index.d.mts +2 -8
  57. package/dist/next/index.d.ts +2 -8
  58. package/dist/next/index.mjs +2 -4843
  59. package/dist/packem_shared/PrismaAdapter-Bd2bxZfN.mjs +318 -0
  60. package/dist/packem_shared/PrismaAdapter-BondygJ8.cjs +324 -0
  61. package/dist/packem_shared/RouteType-Bk3uAK0x.cjs +14 -0
  62. package/dist/packem_shared/RouteType-CB2xrWdf.mjs +10 -0
  63. package/dist/packem_shared/base-crud-handler-Cg8r7S9C.mjs +587 -0
  64. package/dist/packem_shared/base-crud-handler-DSlkMYL6.cjs +572 -0
  65. package/dist/packem_shared/edgeHandler-DFuv_tsd.cjs +18 -0
  66. package/dist/packem_shared/edgeHandler-l0sBgF0s.mjs +16 -0
  67. package/dist/packem_shared/get-accessible-routes-C6NF9Iry.cjs +16 -0
  68. package/dist/packem_shared/get-accessible-routes-sV5SDdFn.mjs +14 -0
  69. package/dist/packem_shared/models-to-route-names-CdwsK0V1.mjs +9 -0
  70. package/dist/packem_shared/models-to-route-names-Dv94PzhE.cjs +11 -0
  71. package/dist/{index.js → packem_shared/modelsToOpenApi-DypKlIy4.cjs} +67 -454
  72. package/dist/packem_shared/modelsToOpenApi-qs_cqTsd.mjs +706 -0
  73. package/dist/packem_shared/nodeHandler-BlXQahKv.cjs +16 -0
  74. package/dist/packem_shared/nodeHandler-R76tfOc6.mjs +14 -0
  75. package/dist/query-parser.d.cts +3 -0
  76. package/dist/query-parser.d.mts +3 -0
  77. package/dist/query-parser.d.ts +3 -0
  78. package/dist/swagger/adapter/prisma/index.d.cts +22 -0
  79. package/dist/swagger/adapter/prisma/index.d.mts +22 -0
  80. package/dist/swagger/adapter/prisma/index.d.ts +22 -0
  81. package/dist/swagger/json-schema-parser.d.cts +18 -0
  82. package/dist/swagger/json-schema-parser.d.mts +18 -0
  83. package/dist/swagger/json-schema-parser.d.ts +18 -0
  84. package/dist/swagger/parameters.d.cts +5 -0
  85. package/dist/swagger/parameters.d.mts +5 -0
  86. package/dist/swagger/parameters.d.ts +5 -0
  87. package/dist/swagger/types.d.cts +39 -0
  88. package/dist/swagger/types.d.mts +39 -0
  89. package/dist/swagger/types.d.ts +39 -0
  90. package/dist/swagger/utils/format-example-ref.d.cts +2 -0
  91. package/dist/swagger/utils/format-example-ref.d.mts +2 -0
  92. package/dist/swagger/utils/format-example-ref.d.ts +2 -0
  93. package/dist/swagger/utils/format-schema-ref.d.cts +2 -0
  94. package/dist/swagger/utils/format-schema-ref.d.mts +2 -0
  95. package/dist/swagger/utils/format-schema-ref.d.ts +2 -0
  96. package/dist/swagger/utils/get-models-accessible-routes.d.cts +4 -0
  97. package/dist/swagger/utils/get-models-accessible-routes.d.mts +4 -0
  98. package/dist/swagger/utils/get-models-accessible-routes.d.ts +4 -0
  99. package/dist/swagger/utils/get-swagger-paths.d.cts +12 -0
  100. package/dist/swagger/utils/get-swagger-paths.d.mts +12 -0
  101. package/dist/swagger/utils/get-swagger-paths.d.ts +12 -0
  102. package/dist/swagger/utils/get-swagger-tags.d.cts +4 -0
  103. package/dist/swagger/utils/get-swagger-tags.d.mts +4 -0
  104. package/dist/swagger/utils/get-swagger-tags.d.ts +4 -0
  105. package/dist/{types-C5c2M01-.d.mts → types.d.cts} +45 -52
  106. package/dist/{types-C5c2M01-.d.ts → types.d.mts} +45 -52
  107. package/dist/types.d.ts +131 -0
  108. package/dist/utils/format-resource-id.d.cts +2 -0
  109. package/dist/utils/format-resource-id.d.mts +2 -0
  110. package/dist/utils/format-resource-id.d.ts +2 -0
  111. package/dist/utils/get-accessible-routes.d.cts +3 -0
  112. package/dist/utils/get-accessible-routes.d.mts +3 -0
  113. package/dist/utils/get-accessible-routes.d.ts +3 -0
  114. package/dist/utils/get-resource-name-from-url.d.cts +5 -0
  115. package/dist/utils/get-resource-name-from-url.d.mts +5 -0
  116. package/dist/utils/get-resource-name-from-url.d.ts +5 -0
  117. package/dist/utils/get-route-type.d.cts +7 -0
  118. package/dist/utils/get-route-type.d.mts +7 -0
  119. package/dist/utils/get-route-type.d.ts +7 -0
  120. package/dist/utils/is-primitive.d.cts +2 -0
  121. package/dist/utils/is-primitive.d.mts +2 -0
  122. package/dist/utils/is-primitive.d.ts +2 -0
  123. package/dist/utils/validate-adapter-methods.d.cts +3 -0
  124. package/dist/utils/validate-adapter-methods.d.mts +3 -0
  125. package/dist/utils/validate-adapter-methods.d.ts +3 -0
  126. package/package.json +36 -17
  127. package/dist/chunk-542OFGDD.mjs +0 -73
  128. package/dist/chunk-542OFGDD.mjs.map +0 -1
  129. package/dist/chunk-AW3MPEJW.js +0 -77
  130. package/dist/chunk-AW3MPEJW.js.map +0 -1
  131. package/dist/index.js.map +0 -1
  132. package/dist/index.mjs.map +0 -1
  133. package/dist/next/index.js +0 -4850
  134. package/dist/next/index.js.map +0 -1
  135. package/dist/next/index.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,168 @@
1
+ ## @visulima/crud [3.0.0-alpha.11](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.10...@visulima/crud@3.0.0-alpha.11) (2026-04-21)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * bump engines.node to ^22.14.0 || >=24.10.0 ([c3d0931](https://github.com/visulima/visulima/commit/c3d0931d1504e4f21ebf50ea680cfa7ce4ba15ce))
6
+ * **crud:** apply pending changes ([f109452](https://github.com/visulima/visulima/commit/f109452a3b00355f305835edf8a9e46dcac8d3c8))
7
+ * **crud:** apply pending lint and source updates ([45ec62a](https://github.com/visulima/visulima/commit/45ec62a0fcfc6b20b810f7821b59a8ca2e814b6d))
8
+ * fixed jsr.json ([5d85e51](https://github.com/visulima/visulima/commit/5d85e5179de38e284ec433b14d77c71a1619c8d6))
9
+
10
+ ### Code Refactoring
11
+
12
+ * **crud:** break handler <-> types circular imports ([#613](https://github.com/visulima/visulima/issues/613)) ([a3c7692](https://github.com/visulima/visulima/commit/a3c7692a5c47cb6ce2284cef7507f4fb992ad3a3))
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.10
18
+
19
+ ## @visulima/crud [3.0.0-alpha.10](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.9...@visulima/crud@3.0.0-alpha.10) (2026-04-15)
20
+
21
+ ### Bug Fixes
22
+
23
+ * **api:** resolve eslint and type-safety issues across api packages ([3601491](https://github.com/visulima/visulima/commit/3601491261de56b5cfad87c97daafd458e4ee3b6))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.10
29
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.9
30
+
31
+ ## @visulima/crud [3.0.0-alpha.9](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.8...@visulima/crud@3.0.0-alpha.9) (2026-04-08)
32
+
33
+ ### Bug Fixes
34
+
35
+ * **crud:** fix packem build by adding externals, types, and missing deps ([391443f](https://github.com/visulima/visulima/commit/391443fb8d215760c0244d4a5a7e404026d520a6))
36
+
37
+ ### Miscellaneous Chores
38
+
39
+ * **api:** remove empty dependency objects from package.json ([f6bfc85](https://github.com/visulima/visulima/commit/f6bfc85c48c973ff8ea0a7db5951794ae0ea3efb))
40
+ * **crud:** add tsconfig.eslint.json for type-aware linting ([1d92809](https://github.com/visulima/visulima/commit/1d92809571908a03b70d2a8aa18be1b8cbb6db8d))
41
+ * **crud:** apply prettier formatting ([9499add](https://github.com/visulima/visulima/commit/9499add951d9d55ba4c438f0b9360928e676c995))
42
+ * **crud:** migrate .prettierrc.cjs to prettier.config.js ([17e09d4](https://github.com/visulima/visulima/commit/17e09d43561fafcdb8009ae334febaf62811659f))
43
+ * **crud:** sort package.json fields ([6009768](https://github.com/visulima/visulima/commit/600976801578afcd170fcc889bcf534a8123b293))
44
+ * update bundled dependency licenses ([6ace4c6](https://github.com/visulima/visulima/commit/6ace4c69d41fc1fd0a744fbca8ca219ba631b4ab))
45
+
46
+ ### Build System
47
+
48
+ * **api-platform, crud:** migrate from tsup to packem ([e8aadac](https://github.com/visulima/visulima/commit/e8aadac072738c7c75e3a6a1478318922f2ceeac))
49
+
50
+
51
+ ### Dependencies
52
+
53
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.9
54
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.8
55
+
56
+ ## @visulima/crud [3.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.7...@visulima/crud@3.0.0-alpha.8) (2026-03-26)
57
+
58
+ ### Features
59
+
60
+ * **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
61
+
62
+ ### Miscellaneous Chores
63
+
64
+ * update homepage URLs to visulima.com/packages/ format ([be42968](https://github.com/visulima/visulima/commit/be42968129df85fb074224435e33135ff44cab91))
65
+
66
+
67
+ ### Dependencies
68
+
69
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.8
70
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.7
71
+
72
+ ## @visulima/crud [3.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.6...@visulima/crud@3.0.0-alpha.7) (2026-03-26)
73
+
74
+ ### Bug Fixes
75
+
76
+ * **crud:** use workspace:* for internal [@visulima](https://github.com/visulima) deps ([fb71c3e](https://github.com/visulima/visulima/commit/fb71c3e9291ddb1ba23c3352ee80dd302a97addb))
77
+ * **web:** improve build setup with incremental stats caching and prod install ([fe33e75](https://github.com/visulima/visulima/commit/fe33e75827586779b4b3a0c6d57b39f889ee6207))
78
+
79
+ ### Miscellaneous Chores
80
+
81
+ * **crud:** migrate deps to pnpm catalogs ([795d1f4](https://github.com/visulima/visulima/commit/795d1f4de3c5454ca7dbe50fa8ededf461ce50cb))
82
+ * **crud:** update dependencies ([6a27669](https://github.com/visulima/visulima/commit/6a27669a93b37084c4fed9f0a4f23cbde70f1f90))
83
+ * visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
84
+
85
+
86
+ ### Dependencies
87
+
88
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.7
89
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.6
90
+
91
+ ## @visulima/crud [3.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.5...@visulima/crud@3.0.0-alpha.6) (2026-03-06)
92
+
93
+ ### Documentation
94
+
95
+ * **crud,health-check,pagination:** add comprehensive Fumadocs documentation ([1fc3748](https://github.com/visulima/visulima/commit/1fc3748b2d9b1ef2332b5d38cb6dd2c7c1f78589))
96
+
97
+ ### Miscellaneous Chores
98
+
99
+ * **api:** update dependencies ([f3b6f7c](https://github.com/visulima/visulima/commit/f3b6f7c956e8ae2c0da67773b3790f159c07de29))
100
+ * **crud:** update dependencies ([fb5851e](https://github.com/visulima/visulima/commit/fb5851eae39c0be9ba96a80dadec376cc2ecdb17))
101
+ * update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
102
+ * year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
103
+
104
+
105
+ ### Dependencies
106
+
107
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.6
108
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.5
109
+
110
+ ## @visulima/crud [3.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.4...@visulima/crud@3.0.0-alpha.5) (2026-01-17)
111
+
112
+ ### Miscellaneous Chores
113
+
114
+ * **crud:** update dependencies ([39f272d](https://github.com/visulima/visulima/commit/39f272de3a46acd657b9f8327387c013ef626ab3))
115
+
116
+
117
+ ### Dependencies
118
+
119
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.5
120
+
121
+ ## @visulima/crud [3.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.3...@visulima/crud@3.0.0-alpha.4) (2025-12-27)
122
+
123
+ ### Bug Fixes
124
+
125
+ * **crud:** update package files ([6f777d9](https://github.com/visulima/visulima/commit/6f777d9ff442eda70fca2bb4393b576bb07fe65f))
126
+
127
+ ### Miscellaneous Chores
128
+
129
+ * fixed project.json names and schema path ([964722f](https://github.com/visulima/visulima/commit/964722f691db205c7edb9aa6db29e849a647500b))
130
+
131
+
132
+ ### Dependencies
133
+
134
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.4
135
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.4
136
+
137
+ ## @visulima/crud [3.0.0-alpha.3](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.2...@visulima/crud@3.0.0-alpha.3) (2025-12-11)
138
+
139
+ ### Bug Fixes
140
+
141
+ * update package OG images across multiple packages ([f08e4dd](https://github.com/visulima/visulima/commit/f08e4dd2b105ccb29c8412020a9c2be36d6c1e9e))
142
+
143
+
144
+ ### Dependencies
145
+
146
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.3
147
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.3
148
+
149
+ ## @visulima/crud [3.0.0-alpha.2](https://github.com/visulima/visulima/compare/@visulima/crud@3.0.0-alpha.1...@visulima/crud@3.0.0-alpha.2) (2025-12-06)
150
+
151
+ ### Bug Fixes
152
+
153
+ * add new package image, fixed readme rendering on npm, fixed building of packages ([b790ba2](https://github.com/visulima/visulima/commit/b790ba253ea07fef83528fd822a678facf021b5f))
154
+ * update package.json description and keywords ([#578](https://github.com/visulima/visulima/issues/578)) ([154709c](https://github.com/visulima/visulima/commit/154709c05e71d1ffd3e360b27e12febd817912f0))
155
+
156
+ ### Miscellaneous Chores
157
+
158
+ * update @anolilab/semantic-release-pnpm and @anolilab/semantic-release-preset to versions 3.2.2 and 12.1.2 across multiple package.json files for improved compatibility ([3921626](https://github.com/visulima/visulima/commit/3921626141fe5da398749bf0ba675f1596f18afb))
159
+
160
+
161
+ ### Dependencies
162
+
163
+ * **@visulima/pagination:** upgraded to 5.0.0-alpha.2
164
+ * **@visulima/prisma-dmmf-transformer:** upgraded to 3.0.0-alpha.2
165
+
1
166
  ## @visulima/crud [3.0.0-alpha.1](https://github.com/visulima/visulima/compare/@visulima/crud@2.0.46...@visulima/crud@3.0.0-alpha.1) (2025-12-05)
2
167
 
3
168
  ### ⚠ BREAKING CHANGES
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 visulima
3
+ Copyright (c) 2026 visulima
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -21,6 +21,27 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
22
 
23
23
  <!-- DEPENDENCIES -->
24
+
25
+ # Licenses of bundled dependencies
26
+ The published @visulima/crud artifact additionally contains code with the following licenses:
27
+ MIT
28
+
29
+ # Bundled dependencies:
30
+ ## dot-prop
31
+ License: MIT
32
+ By: Sindre Sorhus
33
+ Repository: sindresorhus/dot-prop
34
+
35
+ > MIT License
36
+ >
37
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
38
+ >
39
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
40
+ >
41
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
42
+ >
43
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44
+
24
45
  <!-- /DEPENDENCIES -->
25
46
 
26
47
  <!-- TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -1,22 +1,24 @@
1
- <div align="center">
2
- <h3>Visulima crud</h3>
3
- <p>
4
- Visulima crud is built on top of
1
+ <!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER -->
5
2
 
6
- [OpenAPI (Swagger) specification](https://swagger.io/specification/),
7
- [node-rate-limiter-flexible](https://github.com/animir/node-rate-limiter-flexible),
8
- [@visulima/connect](https://github.com/visulima/visulima/tree/main/packages/connect)
3
+ <a href="https://www.anolilab.com/open-source" align="center">
9
4
 
10
- With a more intuitive API for creating HTTP API endpoints.
5
+ <img src="__assets__/package-og.svg" alt="crud" />
11
6
 
12
- </p>
13
- </div>
7
+ </a>
8
+
9
+ <h3 align="center">A comprehensive CRUD library for building RESTful APIs with Prisma, providing automatic CRUD operations, filtering, sorting, and pagination.</h3>
10
+
11
+ <!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
14
12
 
15
13
  <br />
16
14
 
17
15
  <div align="center">
18
16
 
19
- [![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url]
17
+ [![typescript-image][typescript-badge]][typescript-url]
18
+ [![mit licence][license-badge]][license]
19
+ [![npm downloads][npm-downloads-badge]][npm-downloads]
20
+ [![Chat][chat-badge]][chat]
21
+ [![PRs Welcome][prs-welcome-badge]][prs-welcome]
20
22
 
21
23
  </div>
22
24
 
@@ -118,14 +120,23 @@ If you would like to help take a look at the [list of issues](https://github.com
118
120
  - [Daniel Bannert](https://github.com/prisis)
119
121
  - [All Contributors](https://github.com/visulima/visulima/graphs/contributors)
120
122
 
123
+ ## Made with ❤️ at Anolilab
124
+
125
+ This is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Anolilab](https://www.anolilab.com/open-source) is a Development and AI Studio. Contact us at [hello@anolilab.com](mailto:hello@anolilab.com) if you need any help with these technologies or just want to say hi!
126
+
121
127
  ## License
122
128
 
123
- The visulima crud is open-sourced software licensed under the [MIT][license-url]
129
+ The visulima crud is open-sourced software licensed under the [MIT][license]
124
130
 
125
- [typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
131
+ <!-- badges -->
126
132
 
127
- [typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
128
- [license-image]: https://img.shields.io/npm/l/@visulima/crud?color=blueviolet&style=for-the-badge
129
- [license-url]: LICENSE.md "license"
130
- [npm-image]: https://img.shields.io/npm/v/@visulima/crud/latest.svg?style=for-the-badge&logo=npm
131
- [npm-url]: https://www.npmjs.com/package/@visulima/crud/v/latest "npm"
133
+ [license-badge]: https://img.shields.io/npm/l/@visulima/crud?style=for-the-badge
134
+ [license]: https://github.com/visulima/visulima/blob/main/LICENSE
135
+ [npm-downloads-badge]: https://img.shields.io/npm/dm/@visulima/crud?style=for-the-badge
136
+ [npm-downloads]: https://www.npmjs.com/package/@visulima/crud
137
+ [prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
138
+ [prs-welcome]: https://github.com/visulima/visulima/blob/main/.github/CONTRIBUTING.md
139
+ [chat-badge]: https://img.shields.io/discord/932323359193186354.svg?style=for-the-badge
140
+ [chat]: https://discord.gg/TtFJY8xkFK
141
+ [typescript-badge]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
142
+ [typescript-url]: https://www.typescriptlang.org/
@@ -0,0 +1,39 @@
1
+ import type { HttpError } from "http-errors";
2
+ import type { Adapter, FakePrismaClient, PaginationData, ParsedQueryParameters } from "../../types.d.cts";
3
+ import type { PrismaParsedQueryParameters } from "./types.d.cts";
4
+ interface AdapterCtorArguments<M extends string, PrismaClient> {
5
+ manyRelations?: {
6
+ [key in M]?: string[];
7
+ };
8
+ models?: M[];
9
+ primaryKey?: string;
10
+ prismaClient: PrismaClient;
11
+ }
12
+ export default class PrismaAdapter<T, M extends string, PrismaClient> implements Adapter<T, PrismaParsedQueryParameters, M> {
13
+ models?: M[];
14
+ private readonly ctorModels?;
15
+ private dmmf;
16
+ private readonly manyRelations;
17
+ private readonly primaryKey;
18
+ private readonly prismaClient;
19
+ constructor({ manyRelations, models, primaryKey, prismaClient }: AdapterCtorArguments<M, FakePrismaClient & PrismaClient>);
20
+ connect(): Promise<void>;
21
+ create(resourceName: M, data: unknown, query: PrismaParsedQueryParameters): Promise<T>;
22
+ delete(resourceName: M, resourceId: number | string, query: PrismaParsedQueryParameters): Promise<T>;
23
+ disconnect(): Promise<void>;
24
+ getAll(resourceName: M, query: PrismaParsedQueryParameters): Promise<T[]>;
25
+ getModels(): M[];
26
+ getOne(resourceName: M, resourceId: number | string, query: PrismaParsedQueryParameters): Promise<T>;
27
+ getPaginationData(resourceName: M, query: PrismaParsedQueryParameters): Promise<PaginationData>;
28
+ handleError(error: Error): HttpError;
29
+ init(): Promise<void>;
30
+ mapModelsToRouteNames(): Promise<{
31
+ [key in M]?: string;
32
+ }>;
33
+ parseQuery(resourceName: M, query: ParsedQueryParameters): PrismaParsedQueryParameters;
34
+ update(resourceName: M, resourceId: number | string, data: unknown, query: PrismaParsedQueryParameters): Promise<T>;
35
+ get client(): PrismaClient;
36
+ private readonly getPrismaClientModels;
37
+ private getPrismaDelegate;
38
+ }
39
+ export {};
@@ -0,0 +1,39 @@
1
+ import type { HttpError } from "http-errors";
2
+ import type { Adapter, FakePrismaClient, PaginationData, ParsedQueryParameters } from "../../types.d.mts";
3
+ import type { PrismaParsedQueryParameters } from "./types.d.mts";
4
+ interface AdapterCtorArguments<M extends string, PrismaClient> {
5
+ manyRelations?: {
6
+ [key in M]?: string[];
7
+ };
8
+ models?: M[];
9
+ primaryKey?: string;
10
+ prismaClient: PrismaClient;
11
+ }
12
+ export default class PrismaAdapter<T, M extends string, PrismaClient> implements Adapter<T, PrismaParsedQueryParameters, M> {
13
+ models?: M[];
14
+ private readonly ctorModels?;
15
+ private dmmf;
16
+ private readonly manyRelations;
17
+ private readonly primaryKey;
18
+ private readonly prismaClient;
19
+ constructor({ manyRelations, models, primaryKey, prismaClient }: AdapterCtorArguments<M, FakePrismaClient & PrismaClient>);
20
+ connect(): Promise<void>;
21
+ create(resourceName: M, data: unknown, query: PrismaParsedQueryParameters): Promise<T>;
22
+ delete(resourceName: M, resourceId: number | string, query: PrismaParsedQueryParameters): Promise<T>;
23
+ disconnect(): Promise<void>;
24
+ getAll(resourceName: M, query: PrismaParsedQueryParameters): Promise<T[]>;
25
+ getModels(): M[];
26
+ getOne(resourceName: M, resourceId: number | string, query: PrismaParsedQueryParameters): Promise<T>;
27
+ getPaginationData(resourceName: M, query: PrismaParsedQueryParameters): Promise<PaginationData>;
28
+ handleError(error: Error): HttpError;
29
+ init(): Promise<void>;
30
+ mapModelsToRouteNames(): Promise<{
31
+ [key in M]?: string;
32
+ }>;
33
+ parseQuery(resourceName: M, query: ParsedQueryParameters): PrismaParsedQueryParameters;
34
+ update(resourceName: M, resourceId: number | string, data: unknown, query: PrismaParsedQueryParameters): Promise<T>;
35
+ get client(): PrismaClient;
36
+ private readonly getPrismaClientModels;
37
+ private getPrismaDelegate;
38
+ }
39
+ export {};
@@ -0,0 +1,39 @@
1
+ import type { HttpError } from "http-errors";
2
+ import type { Adapter, FakePrismaClient, PaginationData, ParsedQueryParameters } from "../../types.d.ts";
3
+ import type { PrismaParsedQueryParameters } from "./types.d.ts";
4
+ interface AdapterCtorArguments<M extends string, PrismaClient> {
5
+ manyRelations?: {
6
+ [key in M]?: string[];
7
+ };
8
+ models?: M[];
9
+ primaryKey?: string;
10
+ prismaClient: PrismaClient;
11
+ }
12
+ export default class PrismaAdapter<T, M extends string, PrismaClient> implements Adapter<T, PrismaParsedQueryParameters, M> {
13
+ models?: M[];
14
+ private readonly ctorModels?;
15
+ private dmmf;
16
+ private readonly manyRelations;
17
+ private readonly primaryKey;
18
+ private readonly prismaClient;
19
+ constructor({ manyRelations, models, primaryKey, prismaClient }: AdapterCtorArguments<M, FakePrismaClient & PrismaClient>);
20
+ connect(): Promise<void>;
21
+ create(resourceName: M, data: unknown, query: PrismaParsedQueryParameters): Promise<T>;
22
+ delete(resourceName: M, resourceId: number | string, query: PrismaParsedQueryParameters): Promise<T>;
23
+ disconnect(): Promise<void>;
24
+ getAll(resourceName: M, query: PrismaParsedQueryParameters): Promise<T[]>;
25
+ getModels(): M[];
26
+ getOne(resourceName: M, resourceId: number | string, query: PrismaParsedQueryParameters): Promise<T>;
27
+ getPaginationData(resourceName: M, query: PrismaParsedQueryParameters): Promise<PaginationData>;
28
+ handleError(error: Error): HttpError;
29
+ init(): Promise<void>;
30
+ mapModelsToRouteNames(): Promise<{
31
+ [key in M]?: string;
32
+ }>;
33
+ parseQuery(resourceName: M, query: ParsedQueryParameters): PrismaParsedQueryParameters;
34
+ update(resourceName: M, resourceId: number | string, data: unknown, query: PrismaParsedQueryParameters): Promise<T>;
35
+ get client(): PrismaClient;
36
+ private readonly getPrismaClientModels;
37
+ private getPrismaDelegate;
38
+ }
39
+ export {};
@@ -0,0 +1,31 @@
1
+ import type { Condition, SearchCondition } from "../../types.d.cts";
2
+ export type PrismaRecursiveField = "include" | "select";
3
+ export type PrismaRecursive<T extends PrismaRecursiveField> = Record<string, boolean | {
4
+ [key in T]: PrismaRecursive<T>;
5
+ }>;
6
+ export type PrismaWhereOperator = "contains" | "endsWith" | "equals" | "gt" | "gte" | "in" | "lt" | "lte" | "not" | "notIn" | "startsWith";
7
+ export type PrismaOrderByOperator = "asc" | "desc";
8
+ export type PrismaFieldFilterOperator = {
9
+ [key in PrismaWhereOperator]?: SearchCondition;
10
+ };
11
+ export type PrismaFieldFilter = Record<string, Condition | PrismaFieldFilterOperator | PrismaRelationFilter | SearchCondition | undefined>;
12
+ export type PrismaWhereField = PrismaFieldFilter & {
13
+ AND?: PrismaFieldFilter;
14
+ NOT?: PrismaFieldFilter;
15
+ OR?: PrismaFieldFilter;
16
+ };
17
+ export interface PrismaRelationFilter {
18
+ some?: PrismaFieldFilter | SearchCondition;
19
+ }
20
+ export type PrismaOrderBy = Record<string, PrismaOrderByOperator>;
21
+ export type PrismaCursor = Record<string, boolean | number | string>;
22
+ export interface PrismaParsedQueryParameters {
23
+ cursor?: PrismaCursor;
24
+ distinct?: string;
25
+ include?: PrismaRecursive<"include">;
26
+ orderBy?: PrismaOrderBy;
27
+ select?: PrismaRecursive<"select">;
28
+ skip?: number;
29
+ take?: number;
30
+ where?: PrismaWhereField;
31
+ }
@@ -0,0 +1,31 @@
1
+ import type { Condition, SearchCondition } from "../../types.d.mts";
2
+ export type PrismaRecursiveField = "include" | "select";
3
+ export type PrismaRecursive<T extends PrismaRecursiveField> = Record<string, boolean | {
4
+ [key in T]: PrismaRecursive<T>;
5
+ }>;
6
+ export type PrismaWhereOperator = "contains" | "endsWith" | "equals" | "gt" | "gte" | "in" | "lt" | "lte" | "not" | "notIn" | "startsWith";
7
+ export type PrismaOrderByOperator = "asc" | "desc";
8
+ export type PrismaFieldFilterOperator = {
9
+ [key in PrismaWhereOperator]?: SearchCondition;
10
+ };
11
+ export type PrismaFieldFilter = Record<string, Condition | PrismaFieldFilterOperator | PrismaRelationFilter | SearchCondition | undefined>;
12
+ export type PrismaWhereField = PrismaFieldFilter & {
13
+ AND?: PrismaFieldFilter;
14
+ NOT?: PrismaFieldFilter;
15
+ OR?: PrismaFieldFilter;
16
+ };
17
+ export interface PrismaRelationFilter {
18
+ some?: PrismaFieldFilter | SearchCondition;
19
+ }
20
+ export type PrismaOrderBy = Record<string, PrismaOrderByOperator>;
21
+ export type PrismaCursor = Record<string, boolean | number | string>;
22
+ export interface PrismaParsedQueryParameters {
23
+ cursor?: PrismaCursor;
24
+ distinct?: string;
25
+ include?: PrismaRecursive<"include">;
26
+ orderBy?: PrismaOrderBy;
27
+ select?: PrismaRecursive<"select">;
28
+ skip?: number;
29
+ take?: number;
30
+ where?: PrismaWhereField;
31
+ }
@@ -0,0 +1,31 @@
1
+ import type { Condition, SearchCondition } from "../../types.d.ts";
2
+ export type PrismaRecursiveField = "include" | "select";
3
+ export type PrismaRecursive<T extends PrismaRecursiveField> = Record<string, boolean | {
4
+ [key in T]: PrismaRecursive<T>;
5
+ }>;
6
+ export type PrismaWhereOperator = "contains" | "endsWith" | "equals" | "gt" | "gte" | "in" | "lt" | "lte" | "not" | "notIn" | "startsWith";
7
+ export type PrismaOrderByOperator = "asc" | "desc";
8
+ export type PrismaFieldFilterOperator = {
9
+ [key in PrismaWhereOperator]?: SearchCondition;
10
+ };
11
+ export type PrismaFieldFilter = Record<string, Condition | PrismaFieldFilterOperator | PrismaRelationFilter | SearchCondition | undefined>;
12
+ export type PrismaWhereField = PrismaFieldFilter & {
13
+ AND?: PrismaFieldFilter;
14
+ NOT?: PrismaFieldFilter;
15
+ OR?: PrismaFieldFilter;
16
+ };
17
+ export interface PrismaRelationFilter {
18
+ some?: PrismaFieldFilter | SearchCondition;
19
+ }
20
+ export type PrismaOrderBy = Record<string, PrismaOrderByOperator>;
21
+ export type PrismaCursor = Record<string, boolean | number | string>;
22
+ export interface PrismaParsedQueryParameters {
23
+ cursor?: PrismaCursor;
24
+ distinct?: string;
25
+ include?: PrismaRecursive<"include">;
26
+ orderBy?: PrismaOrderBy;
27
+ select?: PrismaRecursive<"select">;
28
+ skip?: number;
29
+ take?: number;
30
+ where?: PrismaWhereField;
31
+ }
@@ -0,0 +1,5 @@
1
+ type RouteMap<M extends string> = {
2
+ [key in M]?: string;
3
+ };
4
+ declare const modelsToRouteNames: <M extends string = string>(mappingsMap: Record<string, object>, models: M[]) => RouteMap<M>;
5
+ export = modelsToRouteNames;
@@ -0,0 +1,5 @@
1
+ type RouteMap<M extends string> = {
2
+ [key in M]?: string;
3
+ };
4
+ declare const modelsToRouteNames: <M extends string = string>(mappingsMap: Record<string, object>, models: M[]) => RouteMap<M>;
5
+ export default modelsToRouteNames;
@@ -0,0 +1,5 @@
1
+ type RouteMap<M extends string> = {
2
+ [key in M]?: string;
3
+ };
4
+ declare const modelsToRouteNames: <M extends string = string>(mappingsMap: Record<string, object>, models: M[]) => RouteMap<M>;
5
+ export = modelsToRouteNames;
@@ -0,0 +1,3 @@
1
+ import type { PrismaCursor } from "../types.d.cts";
2
+ declare const parsePrismaCursor: (cursor: Record<string, boolean | number | string>) => PrismaCursor;
3
+ export = parsePrismaCursor;
@@ -0,0 +1,3 @@
1
+ import type { PrismaCursor } from "../types.d.mts";
2
+ declare const parsePrismaCursor: (cursor: Record<string, boolean | number | string>) => PrismaCursor;
3
+ export default parsePrismaCursor;
@@ -0,0 +1,3 @@
1
+ import type { PrismaCursor } from "../types.d.ts";
2
+ declare const parsePrismaCursor: (cursor: Record<string, boolean | number | string>) => PrismaCursor;
3
+ export = parsePrismaCursor;
@@ -0,0 +1,4 @@
1
+ import type { OrderByField } from "../../../types.d.cts";
2
+ import type { PrismaOrderBy } from "../types.d.cts";
3
+ declare const parsePrismaOrderBy: (orderBy: OrderByField) => PrismaOrderBy;
4
+ export = parsePrismaOrderBy;
@@ -0,0 +1,4 @@
1
+ import type { OrderByField } from "../../../types.d.mts";
2
+ import type { PrismaOrderBy } from "../types.d.mts";
3
+ declare const parsePrismaOrderBy: (orderBy: OrderByField) => PrismaOrderBy;
4
+ export default parsePrismaOrderBy;
@@ -0,0 +1,4 @@
1
+ import type { OrderByField } from "../../../types.d.ts";
2
+ import type { PrismaOrderBy } from "../types.d.ts";
3
+ declare const parsePrismaOrderBy: (orderBy: OrderByField) => PrismaOrderBy;
4
+ export = parsePrismaOrderBy;
@@ -0,0 +1,4 @@
1
+ import type { RecursiveField } from "../../../types.d.cts";
2
+ import type { PrismaRecursive, PrismaRecursiveField } from "../types.d.cts";
3
+ declare const parsePrismaRecursiveField: <T extends PrismaRecursiveField>(select: RecursiveField, fieldName: T) => PrismaRecursive<T>;
4
+ export = parsePrismaRecursiveField;
@@ -0,0 +1,4 @@
1
+ import type { RecursiveField } from "../../../types.d.mts";
2
+ import type { PrismaRecursive, PrismaRecursiveField } from "../types.d.mts";
3
+ declare const parsePrismaRecursiveField: <T extends PrismaRecursiveField>(select: RecursiveField, fieldName: T) => PrismaRecursive<T>;
4
+ export default parsePrismaRecursiveField;
@@ -0,0 +1,4 @@
1
+ import type { RecursiveField } from "../../../types.d.ts";
2
+ import type { PrismaRecursive, PrismaRecursiveField } from "../types.d.ts";
3
+ declare const parsePrismaRecursiveField: <T extends PrismaRecursiveField>(select: RecursiveField, fieldName: T) => PrismaRecursive<T>;
4
+ export = parsePrismaRecursiveField;
@@ -0,0 +1,4 @@
1
+ import type { WhereField } from "../../../types.d.cts";
2
+ import type { PrismaWhereField } from "../types.d.cts";
3
+ declare const parsePrismaWhere: (where: WhereField, manyRelations: string[]) => PrismaWhereField;
4
+ export = parsePrismaWhere;
@@ -0,0 +1,4 @@
1
+ import type { WhereField } from "../../../types.d.mts";
2
+ import type { PrismaWhereField } from "../types.d.mts";
3
+ declare const parsePrismaWhere: (where: WhereField, manyRelations: string[]) => PrismaWhereField;
4
+ export default parsePrismaWhere;
@@ -0,0 +1,4 @@
1
+ import type { WhereField } from "../../../types.d.ts";
2
+ import type { PrismaWhereField } from "../types.d.ts";
3
+ declare const parsePrismaWhere: (where: WhereField, manyRelations: string[]) => PrismaWhereField;
4
+ export = parsePrismaWhere;
@@ -0,0 +1,9 @@
1
+ import type { IncomingMessage, ServerResponse } from "node:http";
2
+ import type { Adapter, ExecuteHandler, HandlerOptions, ParsedQueryParameters } from "./types.d.cts";
3
+ interface ResponseConfig {
4
+ data: any;
5
+ status: number;
6
+ }
7
+ declare function baseHandler<R extends Request, Context, T, Q extends ParsedQueryParameters = any, M extends string = string>(responseExecutor: (responseOrContext: Context, responseConfig: ResponseConfig) => Promise<Response>, finalExecutor: (responseOrContext: Context) => Promise<void>, adapter: Adapter<T, Q>, options?: HandlerOptions<M>): Promise<ExecuteHandler<R, Context>>;
8
+ declare function baseHandler<R extends IncomingMessage, RResponse extends ServerResponse, T, Q extends ParsedQueryParameters = any, M extends string = string>(responseExecutor: (responseOrContext: RResponse, responseConfig: ResponseConfig) => Promise<void>, finalExecutor: (responseOrContext: RResponse) => Promise<void>, adapter: Adapter<T, Q>, options?: HandlerOptions<M>): Promise<ExecuteHandler<R, RResponse>>;
9
+ export = baseHandler;
@@ -0,0 +1,9 @@
1
+ import type { IncomingMessage, ServerResponse } from "node:http";
2
+ import type { Adapter, ExecuteHandler, HandlerOptions, ParsedQueryParameters } from "./types.d.mts";
3
+ interface ResponseConfig {
4
+ data: any;
5
+ status: number;
6
+ }
7
+ declare function baseHandler<R extends Request, Context, T, Q extends ParsedQueryParameters = any, M extends string = string>(responseExecutor: (responseOrContext: Context, responseConfig: ResponseConfig) => Promise<Response>, finalExecutor: (responseOrContext: Context) => Promise<void>, adapter: Adapter<T, Q>, options?: HandlerOptions<M>): Promise<ExecuteHandler<R, Context>>;
8
+ declare function baseHandler<R extends IncomingMessage, RResponse extends ServerResponse, T, Q extends ParsedQueryParameters = any, M extends string = string>(responseExecutor: (responseOrContext: RResponse, responseConfig: ResponseConfig) => Promise<void>, finalExecutor: (responseOrContext: RResponse) => Promise<void>, adapter: Adapter<T, Q>, options?: HandlerOptions<M>): Promise<ExecuteHandler<R, RResponse>>;
9
+ export default baseHandler;
@@ -0,0 +1,9 @@
1
+ import type { IncomingMessage, ServerResponse } from "node:http";
2
+ import type { Adapter, ExecuteHandler, HandlerOptions, ParsedQueryParameters } from "./types.d.ts";
3
+ interface ResponseConfig {
4
+ data: any;
5
+ status: number;
6
+ }
7
+ declare function baseHandler<R extends Request, Context, T, Q extends ParsedQueryParameters = any, M extends string = string>(responseExecutor: (responseOrContext: Context, responseConfig: ResponseConfig) => Promise<Response>, finalExecutor: (responseOrContext: Context) => Promise<void>, adapter: Adapter<T, Q>, options?: HandlerOptions<M>): Promise<ExecuteHandler<R, Context>>;
8
+ declare function baseHandler<R extends IncomingMessage, RResponse extends ServerResponse, T, Q extends ParsedQueryParameters = any, M extends string = string>(responseExecutor: (responseOrContext: RResponse, responseConfig: ResponseConfig) => Promise<void>, finalExecutor: (responseOrContext: RResponse) => Promise<void>, adapter: Adapter<T, Q>, options?: HandlerOptions<M>): Promise<ExecuteHandler<R, RResponse>>;
9
+ export = baseHandler;
@@ -0,0 +1,3 @@
1
+ import type { CreateHandler } from "../types.d.cts";
2
+ declare const createHandler: CreateHandler;
3
+ export = createHandler;
@@ -0,0 +1,3 @@
1
+ import type { CreateHandler } from "../types.d.mts";
2
+ declare const createHandler: CreateHandler;
3
+ export default createHandler;
@@ -0,0 +1,3 @@
1
+ import type { CreateHandler } from "../types.d.ts";
2
+ declare const createHandler: CreateHandler;
3
+ export = createHandler;
@@ -0,0 +1,3 @@
1
+ import type { DeleteHandler } from "../types.d.cts";
2
+ declare const deleteHandler: DeleteHandler;
3
+ export = deleteHandler;