lapeh 2.3.6 → 2.3.8

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 (243) hide show
  1. package/bin/index.js +39 -56
  2. package/dist/generated/prisma/browser.d.ts +80 -0
  3. package/dist/generated/prisma/browser.d.ts.map +1 -0
  4. package/dist/generated/prisma/browser.js +56 -0
  5. package/dist/generated/prisma/client.d.ts +97 -0
  6. package/dist/generated/prisma/client.d.ts.map +1 -0
  7. package/dist/generated/prisma/client.js +68 -0
  8. package/dist/generated/prisma/commonInputTypes.d.ts +486 -0
  9. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  10. package/dist/generated/prisma/commonInputTypes.js +11 -0
  11. package/dist/generated/prisma/enums.d.ts +2 -0
  12. package/dist/generated/prisma/enums.d.ts.map +1 -0
  13. package/dist/generated/prisma/enums.js +11 -0
  14. package/dist/generated/prisma/internal/class.d.ts +281 -0
  15. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  16. package/dist/generated/prisma/internal/class.js +76 -0
  17. package/dist/generated/prisma/internal/prismaNamespace.d.ts +1734 -0
  18. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  19. package/dist/generated/prisma/internal/prismaNamespace.js +260 -0
  20. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +200 -0
  21. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  22. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +231 -0
  23. package/dist/generated/prisma/models/cache.d.ts +986 -0
  24. package/dist/generated/prisma/models/cache.d.ts.map +1 -0
  25. package/dist/generated/prisma/models/cache.js +2 -0
  26. package/dist/generated/prisma/models/cache_locks.d.ts +976 -0
  27. package/dist/generated/prisma/models/cache_locks.d.ts.map +1 -0
  28. package/dist/generated/prisma/models/cache_locks.js +2 -0
  29. package/dist/generated/prisma/models/failed_jobs.d.ts +1098 -0
  30. package/dist/generated/prisma/models/failed_jobs.d.ts.map +1 -0
  31. package/dist/generated/prisma/models/failed_jobs.js +2 -0
  32. package/dist/generated/prisma/models/job_batches.d.ts +1212 -0
  33. package/dist/generated/prisma/models/job_batches.d.ts.map +1 -0
  34. package/dist/generated/prisma/models/job_batches.js +2 -0
  35. package/dist/generated/prisma/models/jobs.d.ts +1112 -0
  36. package/dist/generated/prisma/models/jobs.d.ts.map +1 -0
  37. package/dist/generated/prisma/models/jobs.js +2 -0
  38. package/dist/generated/prisma/models/migrations.d.ts +979 -0
  39. package/dist/generated/prisma/models/migrations.d.ts.map +1 -0
  40. package/dist/generated/prisma/models/migrations.js +2 -0
  41. package/dist/generated/prisma/models/password_reset_tokens.d.ts +941 -0
  42. package/dist/generated/prisma/models/password_reset_tokens.d.ts.map +1 -0
  43. package/dist/generated/prisma/models/password_reset_tokens.js +2 -0
  44. package/dist/generated/prisma/models/permissions.d.ts +1333 -0
  45. package/dist/generated/prisma/models/permissions.d.ts.map +1 -0
  46. package/dist/generated/prisma/models/permissions.js +2 -0
  47. package/dist/generated/prisma/models/personal_access_tokens.d.ts +1178 -0
  48. package/dist/generated/prisma/models/personal_access_tokens.d.ts.map +1 -0
  49. package/dist/generated/prisma/models/personal_access_tokens.js +2 -0
  50. package/dist/generated/prisma/models/role_permissions.d.ts +1291 -0
  51. package/dist/generated/prisma/models/role_permissions.d.ts.map +1 -0
  52. package/dist/generated/prisma/models/role_permissions.js +2 -0
  53. package/dist/generated/prisma/models/roles.d.ts +1333 -0
  54. package/dist/generated/prisma/models/roles.d.ts.map +1 -0
  55. package/dist/generated/prisma/models/roles.js +2 -0
  56. package/dist/generated/prisma/models/sessions.d.ts +1073 -0
  57. package/dist/generated/prisma/models/sessions.d.ts.map +1 -0
  58. package/dist/generated/prisma/models/sessions.js +2 -0
  59. package/dist/generated/prisma/models/user_permissions.d.ts +1291 -0
  60. package/dist/generated/prisma/models/user_permissions.d.ts.map +1 -0
  61. package/dist/generated/prisma/models/user_permissions.js +2 -0
  62. package/dist/generated/prisma/models/user_roles.d.ts +1291 -0
  63. package/dist/generated/prisma/models/user_roles.d.ts.map +1 -0
  64. package/dist/generated/prisma/models/user_roles.js +2 -0
  65. package/dist/generated/prisma/models/users.d.ts +1513 -0
  66. package/dist/generated/prisma/models/users.d.ts.map +1 -0
  67. package/dist/generated/prisma/models/users.js +2 -0
  68. package/dist/generated/prisma/models.d.ts +17 -0
  69. package/dist/generated/prisma/models.d.ts.map +1 -0
  70. package/dist/generated/prisma/models.js +2 -0
  71. package/dist/lib/bootstrap.d.ts +2 -0
  72. package/dist/lib/bootstrap.d.ts.map +1 -0
  73. package/dist/lib/bootstrap.js +133 -0
  74. package/dist/lib/core/database.d.ts +3 -0
  75. package/dist/lib/core/database.d.ts.map +1 -0
  76. package/dist/lib/core/database.js +34 -0
  77. package/dist/lib/core/realtime.d.ts +3 -0
  78. package/dist/lib/core/realtime.d.ts.map +1 -0
  79. package/dist/lib/core/realtime.js +36 -0
  80. package/dist/lib/core/redis.d.ts +8 -0
  81. package/dist/lib/core/redis.d.ts.map +1 -0
  82. package/dist/lib/core/redis.js +123 -0
  83. package/dist/lib/core/serializer.d.ts +43 -0
  84. package/dist/lib/core/serializer.d.ts.map +1 -0
  85. package/dist/lib/core/serializer.js +66 -0
  86. package/dist/lib/core/server.d.ts +2 -0
  87. package/dist/lib/core/server.d.ts.map +1 -0
  88. package/dist/lib/core/server.js +60 -0
  89. package/dist/lib/middleware/auth.d.ts +4 -0
  90. package/dist/lib/middleware/auth.d.ts.map +1 -0
  91. package/dist/lib/middleware/auth.js +55 -0
  92. package/dist/lib/middleware/error.d.ts +3 -0
  93. package/dist/lib/middleware/error.d.ts.map +1 -0
  94. package/dist/lib/middleware/error.js +60 -0
  95. package/dist/lib/middleware/multipart.d.ts +4 -0
  96. package/dist/lib/middleware/multipart.d.ts.map +1 -0
  97. package/dist/lib/middleware/multipart.js +17 -0
  98. package/dist/lib/middleware/rateLimit.d.ts +2 -0
  99. package/dist/lib/middleware/rateLimit.d.ts.map +1 -0
  100. package/dist/lib/middleware/rateLimit.js +19 -0
  101. package/dist/lib/middleware/requestLogger.d.ts +3 -0
  102. package/dist/lib/middleware/requestLogger.d.ts.map +1 -0
  103. package/dist/lib/middleware/requestLogger.js +22 -0
  104. package/dist/lib/middleware/visitor.d.ts +3 -0
  105. package/dist/lib/middleware/visitor.d.ts.map +1 -0
  106. package/dist/lib/middleware/visitor.js +144 -0
  107. package/dist/lib/utils/logger.d.ts +11 -0
  108. package/dist/lib/utils/logger.d.ts.map +1 -0
  109. package/dist/lib/utils/logger.js +81 -0
  110. package/dist/lib/utils/pagination.d.ts +19 -0
  111. package/dist/lib/utils/pagination.d.ts.map +1 -0
  112. package/dist/lib/utils/pagination.js +34 -0
  113. package/dist/lib/utils/response.d.ts +11 -0
  114. package/dist/lib/utils/response.d.ts.map +1 -0
  115. package/dist/lib/utils/response.js +57 -0
  116. package/dist/lib/utils/validator.d.ts +38 -0
  117. package/dist/lib/utils/validator.d.ts.map +1 -0
  118. package/dist/lib/utils/validator.js +369 -0
  119. package/dist/prisma/seed.d.ts +2 -0
  120. package/dist/prisma/seed.d.ts.map +1 -0
  121. package/dist/prisma/seed.js +381 -0
  122. package/dist/src/controllers/authController.d.ts +11 -0
  123. package/dist/src/controllers/authController.d.ts.map +1 -0
  124. package/dist/src/controllers/authController.js +414 -0
  125. package/dist/src/controllers/petController.d.ts +7 -0
  126. package/dist/src/controllers/petController.d.ts.map +1 -0
  127. package/dist/src/controllers/petController.js +163 -0
  128. package/dist/src/controllers/rbacController.d.ts +16 -0
  129. package/dist/src/controllers/rbacController.d.ts.map +1 -0
  130. package/dist/src/controllers/rbacController.js +437 -0
  131. package/dist/src/core/database.d.ts +3 -0
  132. package/dist/src/core/database.d.ts.map +1 -0
  133. package/dist/src/core/database.js +34 -0
  134. package/dist/src/core/realtime.d.ts +3 -0
  135. package/dist/src/core/realtime.d.ts.map +1 -0
  136. package/dist/src/core/realtime.js +36 -0
  137. package/dist/src/core/redis.d.ts +8 -0
  138. package/dist/src/core/redis.d.ts.map +1 -0
  139. package/dist/src/core/redis.js +123 -0
  140. package/dist/src/core/serializer.d.ts +43 -0
  141. package/dist/src/core/serializer.d.ts.map +1 -0
  142. package/dist/src/core/serializer.js +66 -0
  143. package/dist/src/core/server.d.ts +2 -0
  144. package/dist/src/core/server.d.ts.map +1 -0
  145. package/dist/src/core/server.js +60 -0
  146. package/dist/src/index.d.ts +2 -0
  147. package/dist/src/index.d.ts.map +1 -0
  148. package/dist/src/index.js +98 -0
  149. package/dist/src/middleware/auth.d.ts +4 -0
  150. package/dist/src/middleware/auth.d.ts.map +1 -0
  151. package/dist/src/middleware/auth.js +48 -0
  152. package/dist/src/middleware/error.d.ts +3 -0
  153. package/dist/src/middleware/error.d.ts.map +1 -0
  154. package/dist/src/middleware/error.js +60 -0
  155. package/dist/src/middleware/multipart.d.ts +4 -0
  156. package/dist/src/middleware/multipart.d.ts.map +1 -0
  157. package/dist/src/middleware/multipart.js +17 -0
  158. package/dist/src/middleware/rateLimit.d.ts +2 -0
  159. package/dist/src/middleware/rateLimit.d.ts.map +1 -0
  160. package/dist/src/middleware/rateLimit.js +19 -0
  161. package/dist/src/middleware/requestLogger.d.ts +3 -0
  162. package/dist/src/middleware/requestLogger.d.ts.map +1 -0
  163. package/dist/src/middleware/requestLogger.js +22 -0
  164. package/dist/src/middleware/visitor.d.ts +3 -0
  165. package/dist/src/middleware/visitor.d.ts.map +1 -0
  166. package/dist/src/middleware/visitor.js +144 -0
  167. package/dist/src/prisma.d.ts +3 -0
  168. package/dist/src/prisma.d.ts.map +1 -0
  169. package/dist/src/prisma.js +34 -0
  170. package/dist/src/realtime.d.ts +3 -0
  171. package/dist/src/realtime.d.ts.map +1 -0
  172. package/dist/src/realtime.js +36 -0
  173. package/dist/src/redis.d.ts +8 -0
  174. package/dist/src/redis.d.ts.map +1 -0
  175. package/dist/src/redis.js +122 -0
  176. package/dist/src/routes/auth.d.ts +2 -0
  177. package/dist/src/routes/auth.d.ts.map +1 -0
  178. package/dist/src/routes/auth.js +45 -0
  179. package/dist/src/routes/index.d.ts +2 -0
  180. package/dist/src/routes/index.d.ts.map +1 -0
  181. package/dist/src/routes/index.js +14 -0
  182. package/dist/src/routes/pets.d.ts +3 -0
  183. package/dist/src/routes/pets.d.ts.map +1 -0
  184. package/dist/src/routes/pets.js +45 -0
  185. package/dist/src/routes/rbac.d.ts +2 -0
  186. package/dist/src/routes/rbac.d.ts.map +1 -0
  187. package/dist/src/routes/rbac.js +23 -0
  188. package/dist/src/schema/auth-schema.d.ts +76 -0
  189. package/dist/src/schema/auth-schema.d.ts.map +1 -0
  190. package/dist/src/schema/auth-schema.js +63 -0
  191. package/dist/src/schema/pet-schema.d.ts +28 -0
  192. package/dist/src/schema/pet-schema.d.ts.map +1 -0
  193. package/dist/src/schema/pet-schema.js +14 -0
  194. package/dist/src/server.d.ts +2 -0
  195. package/dist/src/server.d.ts.map +1 -0
  196. package/dist/src/server.js +31 -0
  197. package/dist/src/utils/logger.d.ts +11 -0
  198. package/dist/src/utils/logger.d.ts.map +1 -0
  199. package/dist/src/utils/logger.js +81 -0
  200. package/dist/src/utils/pagination.d.ts +19 -0
  201. package/dist/src/utils/pagination.d.ts.map +1 -0
  202. package/dist/src/utils/pagination.js +34 -0
  203. package/dist/src/utils/response.d.ts +11 -0
  204. package/dist/src/utils/response.d.ts.map +1 -0
  205. package/dist/src/utils/response.js +57 -0
  206. package/dist/src/utils/validator.d.ts +38 -0
  207. package/dist/src/utils/validator.d.ts.map +1 -0
  208. package/dist/src/utils/validator.js +369 -0
  209. package/lib/bootstrap.ts +6 -0
  210. package/package.json +26 -14
  211. package/.env.example +0 -19
  212. package/doc/ARCHITECTURE_GUIDE.md +0 -73
  213. package/doc/CHANGELOG.md +0 -77
  214. package/doc/CHEATSHEET.md +0 -94
  215. package/doc/CLI.md +0 -139
  216. package/doc/CONTRIBUTING.md +0 -105
  217. package/doc/DEPLOYMENT.md +0 -122
  218. package/doc/FAQ.md +0 -81
  219. package/doc/FEATURES.md +0 -165
  220. package/doc/GETTING_STARTED.md +0 -108
  221. package/doc/INTRODUCTION.md +0 -60
  222. package/doc/PACKAGES.md +0 -66
  223. package/doc/PERFORMANCE.md +0 -91
  224. package/doc/ROADMAP.md +0 -93
  225. package/doc/SECURITY.md +0 -93
  226. package/doc/STRUCTURE.md +0 -90
  227. package/doc/TUTORIAL.md +0 -192
  228. package/docker-compose.yml +0 -24
  229. package/eslint.config.mjs +0 -26
  230. package/framework.md +0 -168
  231. package/nodemon.json +0 -6
  232. package/prisma.config.ts +0 -15
  233. package/src/controllers/authController.ts +0 -469
  234. package/src/controllers/petController.ts +0 -194
  235. package/src/controllers/rbacController.ts +0 -478
  236. package/src/models/core.prisma +0 -163
  237. package/src/models/pets.prisma +0 -9
  238. package/src/routes/auth.ts +0 -74
  239. package/src/routes/index.ts +0 -10
  240. package/src/routes/pets.ts +0 -13
  241. package/src/routes/rbac.ts +0 -42
  242. package/storage/logs/.gitkeep +0 -0
  243. package/tsconfig.json +0 -30
@@ -0,0 +1,976 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model cache_locks
5
+ *
6
+ */
7
+ export type cache_locksModel = runtime.Types.Result.DefaultSelection<Prisma.$cache_locksPayload>;
8
+ export type AggregateCache_locks = {
9
+ _count: Cache_locksCountAggregateOutputType | null;
10
+ _avg: Cache_locksAvgAggregateOutputType | null;
11
+ _sum: Cache_locksSumAggregateOutputType | null;
12
+ _min: Cache_locksMinAggregateOutputType | null;
13
+ _max: Cache_locksMaxAggregateOutputType | null;
14
+ };
15
+ export type Cache_locksAvgAggregateOutputType = {
16
+ expiration: number | null;
17
+ };
18
+ export type Cache_locksSumAggregateOutputType = {
19
+ expiration: number | null;
20
+ };
21
+ export type Cache_locksMinAggregateOutputType = {
22
+ key: string | null;
23
+ owner: string | null;
24
+ expiration: number | null;
25
+ };
26
+ export type Cache_locksMaxAggregateOutputType = {
27
+ key: string | null;
28
+ owner: string | null;
29
+ expiration: number | null;
30
+ };
31
+ export type Cache_locksCountAggregateOutputType = {
32
+ key: number;
33
+ owner: number;
34
+ expiration: number;
35
+ _all: number;
36
+ };
37
+ export type Cache_locksAvgAggregateInputType = {
38
+ expiration?: true;
39
+ };
40
+ export type Cache_locksSumAggregateInputType = {
41
+ expiration?: true;
42
+ };
43
+ export type Cache_locksMinAggregateInputType = {
44
+ key?: true;
45
+ owner?: true;
46
+ expiration?: true;
47
+ };
48
+ export type Cache_locksMaxAggregateInputType = {
49
+ key?: true;
50
+ owner?: true;
51
+ expiration?: true;
52
+ };
53
+ export type Cache_locksCountAggregateInputType = {
54
+ key?: true;
55
+ owner?: true;
56
+ expiration?: true;
57
+ _all?: true;
58
+ };
59
+ export type Cache_locksAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
60
+ /**
61
+ * Filter which cache_locks to aggregate.
62
+ */
63
+ where?: Prisma.cache_locksWhereInput;
64
+ /**
65
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
66
+ *
67
+ * Determine the order of cache_locks to fetch.
68
+ */
69
+ orderBy?: Prisma.cache_locksOrderByWithRelationInput | Prisma.cache_locksOrderByWithRelationInput[];
70
+ /**
71
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
72
+ *
73
+ * Sets the start position
74
+ */
75
+ cursor?: Prisma.cache_locksWhereUniqueInput;
76
+ /**
77
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
78
+ *
79
+ * Take `±n` cache_locks from the position of the cursor.
80
+ */
81
+ take?: number;
82
+ /**
83
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
84
+ *
85
+ * Skip the first `n` cache_locks.
86
+ */
87
+ skip?: number;
88
+ /**
89
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
90
+ *
91
+ * Count returned cache_locks
92
+ **/
93
+ _count?: true | Cache_locksCountAggregateInputType;
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
96
+ *
97
+ * Select which fields to average
98
+ **/
99
+ _avg?: Cache_locksAvgAggregateInputType;
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
102
+ *
103
+ * Select which fields to sum
104
+ **/
105
+ _sum?: Cache_locksSumAggregateInputType;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
108
+ *
109
+ * Select which fields to find the minimum value
110
+ **/
111
+ _min?: Cache_locksMinAggregateInputType;
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
114
+ *
115
+ * Select which fields to find the maximum value
116
+ **/
117
+ _max?: Cache_locksMaxAggregateInputType;
118
+ };
119
+ export type GetCache_locksAggregateType<T extends Cache_locksAggregateArgs> = {
120
+ [P in keyof T & keyof AggregateCache_locks]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCache_locks[P]> : Prisma.GetScalarType<T[P], AggregateCache_locks[P]>;
121
+ };
122
+ export type cache_locksGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
123
+ where?: Prisma.cache_locksWhereInput;
124
+ orderBy?: Prisma.cache_locksOrderByWithAggregationInput | Prisma.cache_locksOrderByWithAggregationInput[];
125
+ by: Prisma.Cache_locksScalarFieldEnum[] | Prisma.Cache_locksScalarFieldEnum;
126
+ having?: Prisma.cache_locksScalarWhereWithAggregatesInput;
127
+ take?: number;
128
+ skip?: number;
129
+ _count?: Cache_locksCountAggregateInputType | true;
130
+ _avg?: Cache_locksAvgAggregateInputType;
131
+ _sum?: Cache_locksSumAggregateInputType;
132
+ _min?: Cache_locksMinAggregateInputType;
133
+ _max?: Cache_locksMaxAggregateInputType;
134
+ };
135
+ export type Cache_locksGroupByOutputType = {
136
+ key: string;
137
+ owner: string;
138
+ expiration: number;
139
+ _count: Cache_locksCountAggregateOutputType | null;
140
+ _avg: Cache_locksAvgAggregateOutputType | null;
141
+ _sum: Cache_locksSumAggregateOutputType | null;
142
+ _min: Cache_locksMinAggregateOutputType | null;
143
+ _max: Cache_locksMaxAggregateOutputType | null;
144
+ };
145
+ type GetCache_locksGroupByPayload<T extends cache_locksGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Cache_locksGroupByOutputType, T['by']> & {
146
+ [P in ((keyof T) & (keyof Cache_locksGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Cache_locksGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Cache_locksGroupByOutputType[P]>;
147
+ }>>;
148
+ export type cache_locksWhereInput = {
149
+ AND?: Prisma.cache_locksWhereInput | Prisma.cache_locksWhereInput[];
150
+ OR?: Prisma.cache_locksWhereInput[];
151
+ NOT?: Prisma.cache_locksWhereInput | Prisma.cache_locksWhereInput[];
152
+ key?: Prisma.StringFilter<"cache_locks"> | string;
153
+ owner?: Prisma.StringFilter<"cache_locks"> | string;
154
+ expiration?: Prisma.IntFilter<"cache_locks"> | number;
155
+ };
156
+ export type cache_locksOrderByWithRelationInput = {
157
+ key?: Prisma.SortOrder;
158
+ owner?: Prisma.SortOrder;
159
+ expiration?: Prisma.SortOrder;
160
+ };
161
+ export type cache_locksWhereUniqueInput = Prisma.AtLeast<{
162
+ key?: string;
163
+ AND?: Prisma.cache_locksWhereInput | Prisma.cache_locksWhereInput[];
164
+ OR?: Prisma.cache_locksWhereInput[];
165
+ NOT?: Prisma.cache_locksWhereInput | Prisma.cache_locksWhereInput[];
166
+ owner?: Prisma.StringFilter<"cache_locks"> | string;
167
+ expiration?: Prisma.IntFilter<"cache_locks"> | number;
168
+ }, "key">;
169
+ export type cache_locksOrderByWithAggregationInput = {
170
+ key?: Prisma.SortOrder;
171
+ owner?: Prisma.SortOrder;
172
+ expiration?: Prisma.SortOrder;
173
+ _count?: Prisma.cache_locksCountOrderByAggregateInput;
174
+ _avg?: Prisma.cache_locksAvgOrderByAggregateInput;
175
+ _max?: Prisma.cache_locksMaxOrderByAggregateInput;
176
+ _min?: Prisma.cache_locksMinOrderByAggregateInput;
177
+ _sum?: Prisma.cache_locksSumOrderByAggregateInput;
178
+ };
179
+ export type cache_locksScalarWhereWithAggregatesInput = {
180
+ AND?: Prisma.cache_locksScalarWhereWithAggregatesInput | Prisma.cache_locksScalarWhereWithAggregatesInput[];
181
+ OR?: Prisma.cache_locksScalarWhereWithAggregatesInput[];
182
+ NOT?: Prisma.cache_locksScalarWhereWithAggregatesInput | Prisma.cache_locksScalarWhereWithAggregatesInput[];
183
+ key?: Prisma.StringWithAggregatesFilter<"cache_locks"> | string;
184
+ owner?: Prisma.StringWithAggregatesFilter<"cache_locks"> | string;
185
+ expiration?: Prisma.IntWithAggregatesFilter<"cache_locks"> | number;
186
+ };
187
+ export type cache_locksCreateInput = {
188
+ key: string;
189
+ owner: string;
190
+ expiration: number;
191
+ };
192
+ export type cache_locksUncheckedCreateInput = {
193
+ key: string;
194
+ owner: string;
195
+ expiration: number;
196
+ };
197
+ export type cache_locksUpdateInput = {
198
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
199
+ owner?: Prisma.StringFieldUpdateOperationsInput | string;
200
+ expiration?: Prisma.IntFieldUpdateOperationsInput | number;
201
+ };
202
+ export type cache_locksUncheckedUpdateInput = {
203
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
204
+ owner?: Prisma.StringFieldUpdateOperationsInput | string;
205
+ expiration?: Prisma.IntFieldUpdateOperationsInput | number;
206
+ };
207
+ export type cache_locksCreateManyInput = {
208
+ key: string;
209
+ owner: string;
210
+ expiration: number;
211
+ };
212
+ export type cache_locksUpdateManyMutationInput = {
213
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
214
+ owner?: Prisma.StringFieldUpdateOperationsInput | string;
215
+ expiration?: Prisma.IntFieldUpdateOperationsInput | number;
216
+ };
217
+ export type cache_locksUncheckedUpdateManyInput = {
218
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
219
+ owner?: Prisma.StringFieldUpdateOperationsInput | string;
220
+ expiration?: Prisma.IntFieldUpdateOperationsInput | number;
221
+ };
222
+ export type cache_locksCountOrderByAggregateInput = {
223
+ key?: Prisma.SortOrder;
224
+ owner?: Prisma.SortOrder;
225
+ expiration?: Prisma.SortOrder;
226
+ };
227
+ export type cache_locksAvgOrderByAggregateInput = {
228
+ expiration?: Prisma.SortOrder;
229
+ };
230
+ export type cache_locksMaxOrderByAggregateInput = {
231
+ key?: Prisma.SortOrder;
232
+ owner?: Prisma.SortOrder;
233
+ expiration?: Prisma.SortOrder;
234
+ };
235
+ export type cache_locksMinOrderByAggregateInput = {
236
+ key?: Prisma.SortOrder;
237
+ owner?: Prisma.SortOrder;
238
+ expiration?: Prisma.SortOrder;
239
+ };
240
+ export type cache_locksSumOrderByAggregateInput = {
241
+ expiration?: Prisma.SortOrder;
242
+ };
243
+ export type cache_locksSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
244
+ key?: boolean;
245
+ owner?: boolean;
246
+ expiration?: boolean;
247
+ }, ExtArgs["result"]["cache_locks"]>;
248
+ export type cache_locksSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
249
+ key?: boolean;
250
+ owner?: boolean;
251
+ expiration?: boolean;
252
+ }, ExtArgs["result"]["cache_locks"]>;
253
+ export type cache_locksSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
254
+ key?: boolean;
255
+ owner?: boolean;
256
+ expiration?: boolean;
257
+ }, ExtArgs["result"]["cache_locks"]>;
258
+ export type cache_locksSelectScalar = {
259
+ key?: boolean;
260
+ owner?: boolean;
261
+ expiration?: boolean;
262
+ };
263
+ export type cache_locksOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"key" | "owner" | "expiration", ExtArgs["result"]["cache_locks"]>;
264
+ export type $cache_locksPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
265
+ name: "cache_locks";
266
+ objects: {};
267
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
268
+ key: string;
269
+ owner: string;
270
+ expiration: number;
271
+ }, ExtArgs["result"]["cache_locks"]>;
272
+ composites: {};
273
+ };
274
+ export type cache_locksGetPayload<S extends boolean | null | undefined | cache_locksDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$cache_locksPayload, S>;
275
+ export type cache_locksCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<cache_locksFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
276
+ select?: Cache_locksCountAggregateInputType | true;
277
+ };
278
+ export interface cache_locksDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
279
+ [K: symbol]: {
280
+ types: Prisma.TypeMap<ExtArgs>['model']['cache_locks'];
281
+ meta: {
282
+ name: 'cache_locks';
283
+ };
284
+ };
285
+ /**
286
+ * Find zero or one Cache_locks that matches the filter.
287
+ * @param {cache_locksFindUniqueArgs} args - Arguments to find a Cache_locks
288
+ * @example
289
+ * // Get one Cache_locks
290
+ * const cache_locks = await prisma.cache_locks.findUnique({
291
+ * where: {
292
+ * // ... provide filter here
293
+ * }
294
+ * })
295
+ */
296
+ findUnique<T extends cache_locksFindUniqueArgs>(args: Prisma.SelectSubset<T, cache_locksFindUniqueArgs<ExtArgs>>): Prisma.Prisma__cache_locksClient<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
297
+ /**
298
+ * Find one Cache_locks that matches the filter or throw an error with `error.code='P2025'`
299
+ * if no matches were found.
300
+ * @param {cache_locksFindUniqueOrThrowArgs} args - Arguments to find a Cache_locks
301
+ * @example
302
+ * // Get one Cache_locks
303
+ * const cache_locks = await prisma.cache_locks.findUniqueOrThrow({
304
+ * where: {
305
+ * // ... provide filter here
306
+ * }
307
+ * })
308
+ */
309
+ findUniqueOrThrow<T extends cache_locksFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, cache_locksFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__cache_locksClient<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
310
+ /**
311
+ * Find the first Cache_locks that matches the filter.
312
+ * Note, that providing `undefined` is treated as the value not being there.
313
+ * Read more here: https://pris.ly/d/null-undefined
314
+ * @param {cache_locksFindFirstArgs} args - Arguments to find a Cache_locks
315
+ * @example
316
+ * // Get one Cache_locks
317
+ * const cache_locks = await prisma.cache_locks.findFirst({
318
+ * where: {
319
+ * // ... provide filter here
320
+ * }
321
+ * })
322
+ */
323
+ findFirst<T extends cache_locksFindFirstArgs>(args?: Prisma.SelectSubset<T, cache_locksFindFirstArgs<ExtArgs>>): Prisma.Prisma__cache_locksClient<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
324
+ /**
325
+ * Find the first Cache_locks that matches the filter or
326
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
327
+ * Note, that providing `undefined` is treated as the value not being there.
328
+ * Read more here: https://pris.ly/d/null-undefined
329
+ * @param {cache_locksFindFirstOrThrowArgs} args - Arguments to find a Cache_locks
330
+ * @example
331
+ * // Get one Cache_locks
332
+ * const cache_locks = await prisma.cache_locks.findFirstOrThrow({
333
+ * where: {
334
+ * // ... provide filter here
335
+ * }
336
+ * })
337
+ */
338
+ findFirstOrThrow<T extends cache_locksFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, cache_locksFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__cache_locksClient<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
339
+ /**
340
+ * Find zero or more Cache_locks that matches the filter.
341
+ * Note, that providing `undefined` is treated as the value not being there.
342
+ * Read more here: https://pris.ly/d/null-undefined
343
+ * @param {cache_locksFindManyArgs} args - Arguments to filter and select certain fields only.
344
+ * @example
345
+ * // Get all Cache_locks
346
+ * const cache_locks = await prisma.cache_locks.findMany()
347
+ *
348
+ * // Get first 10 Cache_locks
349
+ * const cache_locks = await prisma.cache_locks.findMany({ take: 10 })
350
+ *
351
+ * // Only select the `key`
352
+ * const cache_locksWithKeyOnly = await prisma.cache_locks.findMany({ select: { key: true } })
353
+ *
354
+ */
355
+ findMany<T extends cache_locksFindManyArgs>(args?: Prisma.SelectSubset<T, cache_locksFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
356
+ /**
357
+ * Create a Cache_locks.
358
+ * @param {cache_locksCreateArgs} args - Arguments to create a Cache_locks.
359
+ * @example
360
+ * // Create one Cache_locks
361
+ * const Cache_locks = await prisma.cache_locks.create({
362
+ * data: {
363
+ * // ... data to create a Cache_locks
364
+ * }
365
+ * })
366
+ *
367
+ */
368
+ create<T extends cache_locksCreateArgs>(args: Prisma.SelectSubset<T, cache_locksCreateArgs<ExtArgs>>): Prisma.Prisma__cache_locksClient<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
369
+ /**
370
+ * Create many Cache_locks.
371
+ * @param {cache_locksCreateManyArgs} args - Arguments to create many Cache_locks.
372
+ * @example
373
+ * // Create many Cache_locks
374
+ * const cache_locks = await prisma.cache_locks.createMany({
375
+ * data: [
376
+ * // ... provide data here
377
+ * ]
378
+ * })
379
+ *
380
+ */
381
+ createMany<T extends cache_locksCreateManyArgs>(args?: Prisma.SelectSubset<T, cache_locksCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
382
+ /**
383
+ * Create many Cache_locks and returns the data saved in the database.
384
+ * @param {cache_locksCreateManyAndReturnArgs} args - Arguments to create many Cache_locks.
385
+ * @example
386
+ * // Create many Cache_locks
387
+ * const cache_locks = await prisma.cache_locks.createManyAndReturn({
388
+ * data: [
389
+ * // ... provide data here
390
+ * ]
391
+ * })
392
+ *
393
+ * // Create many Cache_locks and only return the `key`
394
+ * const cache_locksWithKeyOnly = await prisma.cache_locks.createManyAndReturn({
395
+ * select: { key: true },
396
+ * data: [
397
+ * // ... provide data here
398
+ * ]
399
+ * })
400
+ * Note, that providing `undefined` is treated as the value not being there.
401
+ * Read more here: https://pris.ly/d/null-undefined
402
+ *
403
+ */
404
+ createManyAndReturn<T extends cache_locksCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, cache_locksCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
405
+ /**
406
+ * Delete a Cache_locks.
407
+ * @param {cache_locksDeleteArgs} args - Arguments to delete one Cache_locks.
408
+ * @example
409
+ * // Delete one Cache_locks
410
+ * const Cache_locks = await prisma.cache_locks.delete({
411
+ * where: {
412
+ * // ... filter to delete one Cache_locks
413
+ * }
414
+ * })
415
+ *
416
+ */
417
+ delete<T extends cache_locksDeleteArgs>(args: Prisma.SelectSubset<T, cache_locksDeleteArgs<ExtArgs>>): Prisma.Prisma__cache_locksClient<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
418
+ /**
419
+ * Update one Cache_locks.
420
+ * @param {cache_locksUpdateArgs} args - Arguments to update one Cache_locks.
421
+ * @example
422
+ * // Update one Cache_locks
423
+ * const cache_locks = await prisma.cache_locks.update({
424
+ * where: {
425
+ * // ... provide filter here
426
+ * },
427
+ * data: {
428
+ * // ... provide data here
429
+ * }
430
+ * })
431
+ *
432
+ */
433
+ update<T extends cache_locksUpdateArgs>(args: Prisma.SelectSubset<T, cache_locksUpdateArgs<ExtArgs>>): Prisma.Prisma__cache_locksClient<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
434
+ /**
435
+ * Delete zero or more Cache_locks.
436
+ * @param {cache_locksDeleteManyArgs} args - Arguments to filter Cache_locks to delete.
437
+ * @example
438
+ * // Delete a few Cache_locks
439
+ * const { count } = await prisma.cache_locks.deleteMany({
440
+ * where: {
441
+ * // ... provide filter here
442
+ * }
443
+ * })
444
+ *
445
+ */
446
+ deleteMany<T extends cache_locksDeleteManyArgs>(args?: Prisma.SelectSubset<T, cache_locksDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
447
+ /**
448
+ * Update zero or more Cache_locks.
449
+ * Note, that providing `undefined` is treated as the value not being there.
450
+ * Read more here: https://pris.ly/d/null-undefined
451
+ * @param {cache_locksUpdateManyArgs} args - Arguments to update one or more rows.
452
+ * @example
453
+ * // Update many Cache_locks
454
+ * const cache_locks = await prisma.cache_locks.updateMany({
455
+ * where: {
456
+ * // ... provide filter here
457
+ * },
458
+ * data: {
459
+ * // ... provide data here
460
+ * }
461
+ * })
462
+ *
463
+ */
464
+ updateMany<T extends cache_locksUpdateManyArgs>(args: Prisma.SelectSubset<T, cache_locksUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
465
+ /**
466
+ * Update zero or more Cache_locks and returns the data updated in the database.
467
+ * @param {cache_locksUpdateManyAndReturnArgs} args - Arguments to update many Cache_locks.
468
+ * @example
469
+ * // Update many Cache_locks
470
+ * const cache_locks = await prisma.cache_locks.updateManyAndReturn({
471
+ * where: {
472
+ * // ... provide filter here
473
+ * },
474
+ * data: [
475
+ * // ... provide data here
476
+ * ]
477
+ * })
478
+ *
479
+ * // Update zero or more Cache_locks and only return the `key`
480
+ * const cache_locksWithKeyOnly = await prisma.cache_locks.updateManyAndReturn({
481
+ * select: { key: true },
482
+ * where: {
483
+ * // ... provide filter here
484
+ * },
485
+ * data: [
486
+ * // ... provide data here
487
+ * ]
488
+ * })
489
+ * Note, that providing `undefined` is treated as the value not being there.
490
+ * Read more here: https://pris.ly/d/null-undefined
491
+ *
492
+ */
493
+ updateManyAndReturn<T extends cache_locksUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, cache_locksUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
494
+ /**
495
+ * Create or update one Cache_locks.
496
+ * @param {cache_locksUpsertArgs} args - Arguments to update or create a Cache_locks.
497
+ * @example
498
+ * // Update or create a Cache_locks
499
+ * const cache_locks = await prisma.cache_locks.upsert({
500
+ * create: {
501
+ * // ... data to create a Cache_locks
502
+ * },
503
+ * update: {
504
+ * // ... in case it already exists, update
505
+ * },
506
+ * where: {
507
+ * // ... the filter for the Cache_locks we want to update
508
+ * }
509
+ * })
510
+ */
511
+ upsert<T extends cache_locksUpsertArgs>(args: Prisma.SelectSubset<T, cache_locksUpsertArgs<ExtArgs>>): Prisma.Prisma__cache_locksClient<runtime.Types.Result.GetResult<Prisma.$cache_locksPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
512
+ /**
513
+ * Count the number of Cache_locks.
514
+ * Note, that providing `undefined` is treated as the value not being there.
515
+ * Read more here: https://pris.ly/d/null-undefined
516
+ * @param {cache_locksCountArgs} args - Arguments to filter Cache_locks to count.
517
+ * @example
518
+ * // Count the number of Cache_locks
519
+ * const count = await prisma.cache_locks.count({
520
+ * where: {
521
+ * // ... the filter for the Cache_locks we want to count
522
+ * }
523
+ * })
524
+ **/
525
+ count<T extends cache_locksCountArgs>(args?: Prisma.Subset<T, cache_locksCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Cache_locksCountAggregateOutputType> : number>;
526
+ /**
527
+ * Allows you to perform aggregations operations on a Cache_locks.
528
+ * Note, that providing `undefined` is treated as the value not being there.
529
+ * Read more here: https://pris.ly/d/null-undefined
530
+ * @param {Cache_locksAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
531
+ * @example
532
+ * // Ordered by age ascending
533
+ * // Where email contains prisma.io
534
+ * // Limited to the 10 users
535
+ * const aggregations = await prisma.user.aggregate({
536
+ * _avg: {
537
+ * age: true,
538
+ * },
539
+ * where: {
540
+ * email: {
541
+ * contains: "prisma.io",
542
+ * },
543
+ * },
544
+ * orderBy: {
545
+ * age: "asc",
546
+ * },
547
+ * take: 10,
548
+ * })
549
+ **/
550
+ aggregate<T extends Cache_locksAggregateArgs>(args: Prisma.Subset<T, Cache_locksAggregateArgs>): Prisma.PrismaPromise<GetCache_locksAggregateType<T>>;
551
+ /**
552
+ * Group by Cache_locks.
553
+ * Note, that providing `undefined` is treated as the value not being there.
554
+ * Read more here: https://pris.ly/d/null-undefined
555
+ * @param {cache_locksGroupByArgs} args - Group by arguments.
556
+ * @example
557
+ * // Group by city, order by createdAt, get count
558
+ * const result = await prisma.user.groupBy({
559
+ * by: ['city', 'createdAt'],
560
+ * orderBy: {
561
+ * createdAt: true
562
+ * },
563
+ * _count: {
564
+ * _all: true
565
+ * },
566
+ * })
567
+ *
568
+ **/
569
+ groupBy<T extends cache_locksGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
570
+ orderBy: cache_locksGroupByArgs['orderBy'];
571
+ } : {
572
+ orderBy?: cache_locksGroupByArgs['orderBy'];
573
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
574
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
575
+ Error,
576
+ 'Field ',
577
+ P,
578
+ ` in "having" needs to be provided in "by"`
579
+ ];
580
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
581
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
582
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
583
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
584
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
585
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
586
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, cache_locksGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCache_locksGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
587
+ /**
588
+ * Fields of the cache_locks model
589
+ */
590
+ readonly fields: cache_locksFieldRefs;
591
+ }
592
+ /**
593
+ * The delegate class that acts as a "Promise-like" for cache_locks.
594
+ * Why is this prefixed with `Prisma__`?
595
+ * Because we want to prevent naming conflicts as mentioned in
596
+ * https://github.com/prisma/prisma-client-js/issues/707
597
+ */
598
+ export interface Prisma__cache_locksClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
599
+ readonly [Symbol.toStringTag]: "PrismaPromise";
600
+ /**
601
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
602
+ * @param onfulfilled The callback to execute when the Promise is resolved.
603
+ * @param onrejected The callback to execute when the Promise is rejected.
604
+ * @returns A Promise for the completion of which ever callback is executed.
605
+ */
606
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
607
+ /**
608
+ * Attaches a callback for only the rejection of the Promise.
609
+ * @param onrejected The callback to execute when the Promise is rejected.
610
+ * @returns A Promise for the completion of the callback.
611
+ */
612
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
613
+ /**
614
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
615
+ * resolved value cannot be modified from the callback.
616
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
617
+ * @returns A Promise for the completion of the callback.
618
+ */
619
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
620
+ }
621
+ /**
622
+ * Fields of the cache_locks model
623
+ */
624
+ export interface cache_locksFieldRefs {
625
+ readonly key: Prisma.FieldRef<"cache_locks", 'String'>;
626
+ readonly owner: Prisma.FieldRef<"cache_locks", 'String'>;
627
+ readonly expiration: Prisma.FieldRef<"cache_locks", 'Int'>;
628
+ }
629
+ /**
630
+ * cache_locks findUnique
631
+ */
632
+ export type cache_locksFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
633
+ /**
634
+ * Select specific fields to fetch from the cache_locks
635
+ */
636
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
637
+ /**
638
+ * Omit specific fields from the cache_locks
639
+ */
640
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
641
+ /**
642
+ * Filter, which cache_locks to fetch.
643
+ */
644
+ where: Prisma.cache_locksWhereUniqueInput;
645
+ };
646
+ /**
647
+ * cache_locks findUniqueOrThrow
648
+ */
649
+ export type cache_locksFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
650
+ /**
651
+ * Select specific fields to fetch from the cache_locks
652
+ */
653
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
654
+ /**
655
+ * Omit specific fields from the cache_locks
656
+ */
657
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
658
+ /**
659
+ * Filter, which cache_locks to fetch.
660
+ */
661
+ where: Prisma.cache_locksWhereUniqueInput;
662
+ };
663
+ /**
664
+ * cache_locks findFirst
665
+ */
666
+ export type cache_locksFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
667
+ /**
668
+ * Select specific fields to fetch from the cache_locks
669
+ */
670
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
671
+ /**
672
+ * Omit specific fields from the cache_locks
673
+ */
674
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
675
+ /**
676
+ * Filter, which cache_locks to fetch.
677
+ */
678
+ where?: Prisma.cache_locksWhereInput;
679
+ /**
680
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
681
+ *
682
+ * Determine the order of cache_locks to fetch.
683
+ */
684
+ orderBy?: Prisma.cache_locksOrderByWithRelationInput | Prisma.cache_locksOrderByWithRelationInput[];
685
+ /**
686
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
687
+ *
688
+ * Sets the position for searching for cache_locks.
689
+ */
690
+ cursor?: Prisma.cache_locksWhereUniqueInput;
691
+ /**
692
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
693
+ *
694
+ * Take `±n` cache_locks from the position of the cursor.
695
+ */
696
+ take?: number;
697
+ /**
698
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
699
+ *
700
+ * Skip the first `n` cache_locks.
701
+ */
702
+ skip?: number;
703
+ /**
704
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
705
+ *
706
+ * Filter by unique combinations of cache_locks.
707
+ */
708
+ distinct?: Prisma.Cache_locksScalarFieldEnum | Prisma.Cache_locksScalarFieldEnum[];
709
+ };
710
+ /**
711
+ * cache_locks findFirstOrThrow
712
+ */
713
+ export type cache_locksFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
714
+ /**
715
+ * Select specific fields to fetch from the cache_locks
716
+ */
717
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
718
+ /**
719
+ * Omit specific fields from the cache_locks
720
+ */
721
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
722
+ /**
723
+ * Filter, which cache_locks to fetch.
724
+ */
725
+ where?: Prisma.cache_locksWhereInput;
726
+ /**
727
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
728
+ *
729
+ * Determine the order of cache_locks to fetch.
730
+ */
731
+ orderBy?: Prisma.cache_locksOrderByWithRelationInput | Prisma.cache_locksOrderByWithRelationInput[];
732
+ /**
733
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
734
+ *
735
+ * Sets the position for searching for cache_locks.
736
+ */
737
+ cursor?: Prisma.cache_locksWhereUniqueInput;
738
+ /**
739
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
740
+ *
741
+ * Take `±n` cache_locks from the position of the cursor.
742
+ */
743
+ take?: number;
744
+ /**
745
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
746
+ *
747
+ * Skip the first `n` cache_locks.
748
+ */
749
+ skip?: number;
750
+ /**
751
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
752
+ *
753
+ * Filter by unique combinations of cache_locks.
754
+ */
755
+ distinct?: Prisma.Cache_locksScalarFieldEnum | Prisma.Cache_locksScalarFieldEnum[];
756
+ };
757
+ /**
758
+ * cache_locks findMany
759
+ */
760
+ export type cache_locksFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
761
+ /**
762
+ * Select specific fields to fetch from the cache_locks
763
+ */
764
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
765
+ /**
766
+ * Omit specific fields from the cache_locks
767
+ */
768
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
769
+ /**
770
+ * Filter, which cache_locks to fetch.
771
+ */
772
+ where?: Prisma.cache_locksWhereInput;
773
+ /**
774
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
775
+ *
776
+ * Determine the order of cache_locks to fetch.
777
+ */
778
+ orderBy?: Prisma.cache_locksOrderByWithRelationInput | Prisma.cache_locksOrderByWithRelationInput[];
779
+ /**
780
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
781
+ *
782
+ * Sets the position for listing cache_locks.
783
+ */
784
+ cursor?: Prisma.cache_locksWhereUniqueInput;
785
+ /**
786
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
787
+ *
788
+ * Take `±n` cache_locks from the position of the cursor.
789
+ */
790
+ take?: number;
791
+ /**
792
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
793
+ *
794
+ * Skip the first `n` cache_locks.
795
+ */
796
+ skip?: number;
797
+ distinct?: Prisma.Cache_locksScalarFieldEnum | Prisma.Cache_locksScalarFieldEnum[];
798
+ };
799
+ /**
800
+ * cache_locks create
801
+ */
802
+ export type cache_locksCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
803
+ /**
804
+ * Select specific fields to fetch from the cache_locks
805
+ */
806
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
807
+ /**
808
+ * Omit specific fields from the cache_locks
809
+ */
810
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
811
+ /**
812
+ * The data needed to create a cache_locks.
813
+ */
814
+ data: Prisma.XOR<Prisma.cache_locksCreateInput, Prisma.cache_locksUncheckedCreateInput>;
815
+ };
816
+ /**
817
+ * cache_locks createMany
818
+ */
819
+ export type cache_locksCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
820
+ /**
821
+ * The data used to create many cache_locks.
822
+ */
823
+ data: Prisma.cache_locksCreateManyInput | Prisma.cache_locksCreateManyInput[];
824
+ skipDuplicates?: boolean;
825
+ };
826
+ /**
827
+ * cache_locks createManyAndReturn
828
+ */
829
+ export type cache_locksCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
830
+ /**
831
+ * Select specific fields to fetch from the cache_locks
832
+ */
833
+ select?: Prisma.cache_locksSelectCreateManyAndReturn<ExtArgs> | null;
834
+ /**
835
+ * Omit specific fields from the cache_locks
836
+ */
837
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
838
+ /**
839
+ * The data used to create many cache_locks.
840
+ */
841
+ data: Prisma.cache_locksCreateManyInput | Prisma.cache_locksCreateManyInput[];
842
+ skipDuplicates?: boolean;
843
+ };
844
+ /**
845
+ * cache_locks update
846
+ */
847
+ export type cache_locksUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
848
+ /**
849
+ * Select specific fields to fetch from the cache_locks
850
+ */
851
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
852
+ /**
853
+ * Omit specific fields from the cache_locks
854
+ */
855
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
856
+ /**
857
+ * The data needed to update a cache_locks.
858
+ */
859
+ data: Prisma.XOR<Prisma.cache_locksUpdateInput, Prisma.cache_locksUncheckedUpdateInput>;
860
+ /**
861
+ * Choose, which cache_locks to update.
862
+ */
863
+ where: Prisma.cache_locksWhereUniqueInput;
864
+ };
865
+ /**
866
+ * cache_locks updateMany
867
+ */
868
+ export type cache_locksUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
869
+ /**
870
+ * The data used to update cache_locks.
871
+ */
872
+ data: Prisma.XOR<Prisma.cache_locksUpdateManyMutationInput, Prisma.cache_locksUncheckedUpdateManyInput>;
873
+ /**
874
+ * Filter which cache_locks to update
875
+ */
876
+ where?: Prisma.cache_locksWhereInput;
877
+ /**
878
+ * Limit how many cache_locks to update.
879
+ */
880
+ limit?: number;
881
+ };
882
+ /**
883
+ * cache_locks updateManyAndReturn
884
+ */
885
+ export type cache_locksUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
886
+ /**
887
+ * Select specific fields to fetch from the cache_locks
888
+ */
889
+ select?: Prisma.cache_locksSelectUpdateManyAndReturn<ExtArgs> | null;
890
+ /**
891
+ * Omit specific fields from the cache_locks
892
+ */
893
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
894
+ /**
895
+ * The data used to update cache_locks.
896
+ */
897
+ data: Prisma.XOR<Prisma.cache_locksUpdateManyMutationInput, Prisma.cache_locksUncheckedUpdateManyInput>;
898
+ /**
899
+ * Filter which cache_locks to update
900
+ */
901
+ where?: Prisma.cache_locksWhereInput;
902
+ /**
903
+ * Limit how many cache_locks to update.
904
+ */
905
+ limit?: number;
906
+ };
907
+ /**
908
+ * cache_locks upsert
909
+ */
910
+ export type cache_locksUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
911
+ /**
912
+ * Select specific fields to fetch from the cache_locks
913
+ */
914
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
915
+ /**
916
+ * Omit specific fields from the cache_locks
917
+ */
918
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
919
+ /**
920
+ * The filter to search for the cache_locks to update in case it exists.
921
+ */
922
+ where: Prisma.cache_locksWhereUniqueInput;
923
+ /**
924
+ * In case the cache_locks found by the `where` argument doesn't exist, create a new cache_locks with this data.
925
+ */
926
+ create: Prisma.XOR<Prisma.cache_locksCreateInput, Prisma.cache_locksUncheckedCreateInput>;
927
+ /**
928
+ * In case the cache_locks was found with the provided `where` argument, update it with this data.
929
+ */
930
+ update: Prisma.XOR<Prisma.cache_locksUpdateInput, Prisma.cache_locksUncheckedUpdateInput>;
931
+ };
932
+ /**
933
+ * cache_locks delete
934
+ */
935
+ export type cache_locksDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
936
+ /**
937
+ * Select specific fields to fetch from the cache_locks
938
+ */
939
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
940
+ /**
941
+ * Omit specific fields from the cache_locks
942
+ */
943
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
944
+ /**
945
+ * Filter which cache_locks to delete.
946
+ */
947
+ where: Prisma.cache_locksWhereUniqueInput;
948
+ };
949
+ /**
950
+ * cache_locks deleteMany
951
+ */
952
+ export type cache_locksDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
953
+ /**
954
+ * Filter which cache_locks to delete
955
+ */
956
+ where?: Prisma.cache_locksWhereInput;
957
+ /**
958
+ * Limit how many cache_locks to delete.
959
+ */
960
+ limit?: number;
961
+ };
962
+ /**
963
+ * cache_locks without action
964
+ */
965
+ export type cache_locksDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
966
+ /**
967
+ * Select specific fields to fetch from the cache_locks
968
+ */
969
+ select?: Prisma.cache_locksSelect<ExtArgs> | null;
970
+ /**
971
+ * Omit specific fields from the cache_locks
972
+ */
973
+ omit?: Prisma.cache_locksOmit<ExtArgs> | null;
974
+ };
975
+ export {};
976
+ //# sourceMappingURL=cache_locks.d.ts.map