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,1112 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model jobs
5
+ *
6
+ */
7
+ export type jobsModel = runtime.Types.Result.DefaultSelection<Prisma.$jobsPayload>;
8
+ export type AggregateJobs = {
9
+ _count: JobsCountAggregateOutputType | null;
10
+ _avg: JobsAvgAggregateOutputType | null;
11
+ _sum: JobsSumAggregateOutputType | null;
12
+ _min: JobsMinAggregateOutputType | null;
13
+ _max: JobsMaxAggregateOutputType | null;
14
+ };
15
+ export type JobsAvgAggregateOutputType = {
16
+ id: number | null;
17
+ attempts: number | null;
18
+ reserved_at: number | null;
19
+ available_at: number | null;
20
+ created_at: number | null;
21
+ };
22
+ export type JobsSumAggregateOutputType = {
23
+ id: bigint | null;
24
+ attempts: number | null;
25
+ reserved_at: number | null;
26
+ available_at: number | null;
27
+ created_at: number | null;
28
+ };
29
+ export type JobsMinAggregateOutputType = {
30
+ id: bigint | null;
31
+ queue: string | null;
32
+ payload: string | null;
33
+ attempts: number | null;
34
+ reserved_at: number | null;
35
+ available_at: number | null;
36
+ created_at: number | null;
37
+ };
38
+ export type JobsMaxAggregateOutputType = {
39
+ id: bigint | null;
40
+ queue: string | null;
41
+ payload: string | null;
42
+ attempts: number | null;
43
+ reserved_at: number | null;
44
+ available_at: number | null;
45
+ created_at: number | null;
46
+ };
47
+ export type JobsCountAggregateOutputType = {
48
+ id: number;
49
+ queue: number;
50
+ payload: number;
51
+ attempts: number;
52
+ reserved_at: number;
53
+ available_at: number;
54
+ created_at: number;
55
+ _all: number;
56
+ };
57
+ export type JobsAvgAggregateInputType = {
58
+ id?: true;
59
+ attempts?: true;
60
+ reserved_at?: true;
61
+ available_at?: true;
62
+ created_at?: true;
63
+ };
64
+ export type JobsSumAggregateInputType = {
65
+ id?: true;
66
+ attempts?: true;
67
+ reserved_at?: true;
68
+ available_at?: true;
69
+ created_at?: true;
70
+ };
71
+ export type JobsMinAggregateInputType = {
72
+ id?: true;
73
+ queue?: true;
74
+ payload?: true;
75
+ attempts?: true;
76
+ reserved_at?: true;
77
+ available_at?: true;
78
+ created_at?: true;
79
+ };
80
+ export type JobsMaxAggregateInputType = {
81
+ id?: true;
82
+ queue?: true;
83
+ payload?: true;
84
+ attempts?: true;
85
+ reserved_at?: true;
86
+ available_at?: true;
87
+ created_at?: true;
88
+ };
89
+ export type JobsCountAggregateInputType = {
90
+ id?: true;
91
+ queue?: true;
92
+ payload?: true;
93
+ attempts?: true;
94
+ reserved_at?: true;
95
+ available_at?: true;
96
+ created_at?: true;
97
+ _all?: true;
98
+ };
99
+ export type JobsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
100
+ /**
101
+ * Filter which jobs to aggregate.
102
+ */
103
+ where?: Prisma.jobsWhereInput;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
106
+ *
107
+ * Determine the order of jobs to fetch.
108
+ */
109
+ orderBy?: Prisma.jobsOrderByWithRelationInput | Prisma.jobsOrderByWithRelationInput[];
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
112
+ *
113
+ * Sets the start position
114
+ */
115
+ cursor?: Prisma.jobsWhereUniqueInput;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
118
+ *
119
+ * Take `±n` jobs from the position of the cursor.
120
+ */
121
+ take?: number;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
124
+ *
125
+ * Skip the first `n` jobs.
126
+ */
127
+ skip?: number;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
130
+ *
131
+ * Count returned jobs
132
+ **/
133
+ _count?: true | JobsCountAggregateInputType;
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
+ *
137
+ * Select which fields to average
138
+ **/
139
+ _avg?: JobsAvgAggregateInputType;
140
+ /**
141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
142
+ *
143
+ * Select which fields to sum
144
+ **/
145
+ _sum?: JobsSumAggregateInputType;
146
+ /**
147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
148
+ *
149
+ * Select which fields to find the minimum value
150
+ **/
151
+ _min?: JobsMinAggregateInputType;
152
+ /**
153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
154
+ *
155
+ * Select which fields to find the maximum value
156
+ **/
157
+ _max?: JobsMaxAggregateInputType;
158
+ };
159
+ export type GetJobsAggregateType<T extends JobsAggregateArgs> = {
160
+ [P in keyof T & keyof AggregateJobs]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateJobs[P]> : Prisma.GetScalarType<T[P], AggregateJobs[P]>;
161
+ };
162
+ export type jobsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
163
+ where?: Prisma.jobsWhereInput;
164
+ orderBy?: Prisma.jobsOrderByWithAggregationInput | Prisma.jobsOrderByWithAggregationInput[];
165
+ by: Prisma.JobsScalarFieldEnum[] | Prisma.JobsScalarFieldEnum;
166
+ having?: Prisma.jobsScalarWhereWithAggregatesInput;
167
+ take?: number;
168
+ skip?: number;
169
+ _count?: JobsCountAggregateInputType | true;
170
+ _avg?: JobsAvgAggregateInputType;
171
+ _sum?: JobsSumAggregateInputType;
172
+ _min?: JobsMinAggregateInputType;
173
+ _max?: JobsMaxAggregateInputType;
174
+ };
175
+ export type JobsGroupByOutputType = {
176
+ id: bigint;
177
+ queue: string;
178
+ payload: string;
179
+ attempts: number;
180
+ reserved_at: number | null;
181
+ available_at: number;
182
+ created_at: number;
183
+ _count: JobsCountAggregateOutputType | null;
184
+ _avg: JobsAvgAggregateOutputType | null;
185
+ _sum: JobsSumAggregateOutputType | null;
186
+ _min: JobsMinAggregateOutputType | null;
187
+ _max: JobsMaxAggregateOutputType | null;
188
+ };
189
+ type GetJobsGroupByPayload<T extends jobsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<JobsGroupByOutputType, T['by']> & {
190
+ [P in ((keyof T) & (keyof JobsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], JobsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], JobsGroupByOutputType[P]>;
191
+ }>>;
192
+ export type jobsWhereInput = {
193
+ AND?: Prisma.jobsWhereInput | Prisma.jobsWhereInput[];
194
+ OR?: Prisma.jobsWhereInput[];
195
+ NOT?: Prisma.jobsWhereInput | Prisma.jobsWhereInput[];
196
+ id?: Prisma.BigIntFilter<"jobs"> | bigint | number;
197
+ queue?: Prisma.StringFilter<"jobs"> | string;
198
+ payload?: Prisma.StringFilter<"jobs"> | string;
199
+ attempts?: Prisma.IntFilter<"jobs"> | number;
200
+ reserved_at?: Prisma.IntNullableFilter<"jobs"> | number | null;
201
+ available_at?: Prisma.IntFilter<"jobs"> | number;
202
+ created_at?: Prisma.IntFilter<"jobs"> | number;
203
+ };
204
+ export type jobsOrderByWithRelationInput = {
205
+ id?: Prisma.SortOrder;
206
+ queue?: Prisma.SortOrder;
207
+ payload?: Prisma.SortOrder;
208
+ attempts?: Prisma.SortOrder;
209
+ reserved_at?: Prisma.SortOrderInput | Prisma.SortOrder;
210
+ available_at?: Prisma.SortOrder;
211
+ created_at?: Prisma.SortOrder;
212
+ };
213
+ export type jobsWhereUniqueInput = Prisma.AtLeast<{
214
+ id?: bigint | number;
215
+ AND?: Prisma.jobsWhereInput | Prisma.jobsWhereInput[];
216
+ OR?: Prisma.jobsWhereInput[];
217
+ NOT?: Prisma.jobsWhereInput | Prisma.jobsWhereInput[];
218
+ queue?: Prisma.StringFilter<"jobs"> | string;
219
+ payload?: Prisma.StringFilter<"jobs"> | string;
220
+ attempts?: Prisma.IntFilter<"jobs"> | number;
221
+ reserved_at?: Prisma.IntNullableFilter<"jobs"> | number | null;
222
+ available_at?: Prisma.IntFilter<"jobs"> | number;
223
+ created_at?: Prisma.IntFilter<"jobs"> | number;
224
+ }, "id">;
225
+ export type jobsOrderByWithAggregationInput = {
226
+ id?: Prisma.SortOrder;
227
+ queue?: Prisma.SortOrder;
228
+ payload?: Prisma.SortOrder;
229
+ attempts?: Prisma.SortOrder;
230
+ reserved_at?: Prisma.SortOrderInput | Prisma.SortOrder;
231
+ available_at?: Prisma.SortOrder;
232
+ created_at?: Prisma.SortOrder;
233
+ _count?: Prisma.jobsCountOrderByAggregateInput;
234
+ _avg?: Prisma.jobsAvgOrderByAggregateInput;
235
+ _max?: Prisma.jobsMaxOrderByAggregateInput;
236
+ _min?: Prisma.jobsMinOrderByAggregateInput;
237
+ _sum?: Prisma.jobsSumOrderByAggregateInput;
238
+ };
239
+ export type jobsScalarWhereWithAggregatesInput = {
240
+ AND?: Prisma.jobsScalarWhereWithAggregatesInput | Prisma.jobsScalarWhereWithAggregatesInput[];
241
+ OR?: Prisma.jobsScalarWhereWithAggregatesInput[];
242
+ NOT?: Prisma.jobsScalarWhereWithAggregatesInput | Prisma.jobsScalarWhereWithAggregatesInput[];
243
+ id?: Prisma.BigIntWithAggregatesFilter<"jobs"> | bigint | number;
244
+ queue?: Prisma.StringWithAggregatesFilter<"jobs"> | string;
245
+ payload?: Prisma.StringWithAggregatesFilter<"jobs"> | string;
246
+ attempts?: Prisma.IntWithAggregatesFilter<"jobs"> | number;
247
+ reserved_at?: Prisma.IntNullableWithAggregatesFilter<"jobs"> | number | null;
248
+ available_at?: Prisma.IntWithAggregatesFilter<"jobs"> | number;
249
+ created_at?: Prisma.IntWithAggregatesFilter<"jobs"> | number;
250
+ };
251
+ export type jobsCreateInput = {
252
+ id?: bigint | number;
253
+ queue: string;
254
+ payload: string;
255
+ attempts: number;
256
+ reserved_at?: number | null;
257
+ available_at: number;
258
+ created_at: number;
259
+ };
260
+ export type jobsUncheckedCreateInput = {
261
+ id?: bigint | number;
262
+ queue: string;
263
+ payload: string;
264
+ attempts: number;
265
+ reserved_at?: number | null;
266
+ available_at: number;
267
+ created_at: number;
268
+ };
269
+ export type jobsUpdateInput = {
270
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
271
+ queue?: Prisma.StringFieldUpdateOperationsInput | string;
272
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
273
+ attempts?: Prisma.IntFieldUpdateOperationsInput | number;
274
+ reserved_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
275
+ available_at?: Prisma.IntFieldUpdateOperationsInput | number;
276
+ created_at?: Prisma.IntFieldUpdateOperationsInput | number;
277
+ };
278
+ export type jobsUncheckedUpdateInput = {
279
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
280
+ queue?: Prisma.StringFieldUpdateOperationsInput | string;
281
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
282
+ attempts?: Prisma.IntFieldUpdateOperationsInput | number;
283
+ reserved_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
284
+ available_at?: Prisma.IntFieldUpdateOperationsInput | number;
285
+ created_at?: Prisma.IntFieldUpdateOperationsInput | number;
286
+ };
287
+ export type jobsCreateManyInput = {
288
+ id?: bigint | number;
289
+ queue: string;
290
+ payload: string;
291
+ attempts: number;
292
+ reserved_at?: number | null;
293
+ available_at: number;
294
+ created_at: number;
295
+ };
296
+ export type jobsUpdateManyMutationInput = {
297
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
298
+ queue?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ attempts?: Prisma.IntFieldUpdateOperationsInput | number;
301
+ reserved_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
302
+ available_at?: Prisma.IntFieldUpdateOperationsInput | number;
303
+ created_at?: Prisma.IntFieldUpdateOperationsInput | number;
304
+ };
305
+ export type jobsUncheckedUpdateManyInput = {
306
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
307
+ queue?: Prisma.StringFieldUpdateOperationsInput | string;
308
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
309
+ attempts?: Prisma.IntFieldUpdateOperationsInput | number;
310
+ reserved_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
311
+ available_at?: Prisma.IntFieldUpdateOperationsInput | number;
312
+ created_at?: Prisma.IntFieldUpdateOperationsInput | number;
313
+ };
314
+ export type jobsCountOrderByAggregateInput = {
315
+ id?: Prisma.SortOrder;
316
+ queue?: Prisma.SortOrder;
317
+ payload?: Prisma.SortOrder;
318
+ attempts?: Prisma.SortOrder;
319
+ reserved_at?: Prisma.SortOrder;
320
+ available_at?: Prisma.SortOrder;
321
+ created_at?: Prisma.SortOrder;
322
+ };
323
+ export type jobsAvgOrderByAggregateInput = {
324
+ id?: Prisma.SortOrder;
325
+ attempts?: Prisma.SortOrder;
326
+ reserved_at?: Prisma.SortOrder;
327
+ available_at?: Prisma.SortOrder;
328
+ created_at?: Prisma.SortOrder;
329
+ };
330
+ export type jobsMaxOrderByAggregateInput = {
331
+ id?: Prisma.SortOrder;
332
+ queue?: Prisma.SortOrder;
333
+ payload?: Prisma.SortOrder;
334
+ attempts?: Prisma.SortOrder;
335
+ reserved_at?: Prisma.SortOrder;
336
+ available_at?: Prisma.SortOrder;
337
+ created_at?: Prisma.SortOrder;
338
+ };
339
+ export type jobsMinOrderByAggregateInput = {
340
+ id?: Prisma.SortOrder;
341
+ queue?: Prisma.SortOrder;
342
+ payload?: Prisma.SortOrder;
343
+ attempts?: Prisma.SortOrder;
344
+ reserved_at?: Prisma.SortOrder;
345
+ available_at?: Prisma.SortOrder;
346
+ created_at?: Prisma.SortOrder;
347
+ };
348
+ export type jobsSumOrderByAggregateInput = {
349
+ id?: Prisma.SortOrder;
350
+ attempts?: Prisma.SortOrder;
351
+ reserved_at?: Prisma.SortOrder;
352
+ available_at?: Prisma.SortOrder;
353
+ created_at?: Prisma.SortOrder;
354
+ };
355
+ export type jobsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
356
+ id?: boolean;
357
+ queue?: boolean;
358
+ payload?: boolean;
359
+ attempts?: boolean;
360
+ reserved_at?: boolean;
361
+ available_at?: boolean;
362
+ created_at?: boolean;
363
+ }, ExtArgs["result"]["jobs"]>;
364
+ export type jobsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
365
+ id?: boolean;
366
+ queue?: boolean;
367
+ payload?: boolean;
368
+ attempts?: boolean;
369
+ reserved_at?: boolean;
370
+ available_at?: boolean;
371
+ created_at?: boolean;
372
+ }, ExtArgs["result"]["jobs"]>;
373
+ export type jobsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
374
+ id?: boolean;
375
+ queue?: boolean;
376
+ payload?: boolean;
377
+ attempts?: boolean;
378
+ reserved_at?: boolean;
379
+ available_at?: boolean;
380
+ created_at?: boolean;
381
+ }, ExtArgs["result"]["jobs"]>;
382
+ export type jobsSelectScalar = {
383
+ id?: boolean;
384
+ queue?: boolean;
385
+ payload?: boolean;
386
+ attempts?: boolean;
387
+ reserved_at?: boolean;
388
+ available_at?: boolean;
389
+ created_at?: boolean;
390
+ };
391
+ export type jobsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "queue" | "payload" | "attempts" | "reserved_at" | "available_at" | "created_at", ExtArgs["result"]["jobs"]>;
392
+ export type $jobsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
393
+ name: "jobs";
394
+ objects: {};
395
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
396
+ id: bigint;
397
+ queue: string;
398
+ payload: string;
399
+ attempts: number;
400
+ reserved_at: number | null;
401
+ available_at: number;
402
+ created_at: number;
403
+ }, ExtArgs["result"]["jobs"]>;
404
+ composites: {};
405
+ };
406
+ export type jobsGetPayload<S extends boolean | null | undefined | jobsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$jobsPayload, S>;
407
+ export type jobsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<jobsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
408
+ select?: JobsCountAggregateInputType | true;
409
+ };
410
+ export interface jobsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
411
+ [K: symbol]: {
412
+ types: Prisma.TypeMap<ExtArgs>['model']['jobs'];
413
+ meta: {
414
+ name: 'jobs';
415
+ };
416
+ };
417
+ /**
418
+ * Find zero or one Jobs that matches the filter.
419
+ * @param {jobsFindUniqueArgs} args - Arguments to find a Jobs
420
+ * @example
421
+ * // Get one Jobs
422
+ * const jobs = await prisma.jobs.findUnique({
423
+ * where: {
424
+ * // ... provide filter here
425
+ * }
426
+ * })
427
+ */
428
+ findUnique<T extends jobsFindUniqueArgs>(args: Prisma.SelectSubset<T, jobsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__jobsClient<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
429
+ /**
430
+ * Find one Jobs that matches the filter or throw an error with `error.code='P2025'`
431
+ * if no matches were found.
432
+ * @param {jobsFindUniqueOrThrowArgs} args - Arguments to find a Jobs
433
+ * @example
434
+ * // Get one Jobs
435
+ * const jobs = await prisma.jobs.findUniqueOrThrow({
436
+ * where: {
437
+ * // ... provide filter here
438
+ * }
439
+ * })
440
+ */
441
+ findUniqueOrThrow<T extends jobsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, jobsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__jobsClient<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
442
+ /**
443
+ * Find the first Jobs that matches the filter.
444
+ * Note, that providing `undefined` is treated as the value not being there.
445
+ * Read more here: https://pris.ly/d/null-undefined
446
+ * @param {jobsFindFirstArgs} args - Arguments to find a Jobs
447
+ * @example
448
+ * // Get one Jobs
449
+ * const jobs = await prisma.jobs.findFirst({
450
+ * where: {
451
+ * // ... provide filter here
452
+ * }
453
+ * })
454
+ */
455
+ findFirst<T extends jobsFindFirstArgs>(args?: Prisma.SelectSubset<T, jobsFindFirstArgs<ExtArgs>>): Prisma.Prisma__jobsClient<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
456
+ /**
457
+ * Find the first Jobs that matches the filter or
458
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
459
+ * Note, that providing `undefined` is treated as the value not being there.
460
+ * Read more here: https://pris.ly/d/null-undefined
461
+ * @param {jobsFindFirstOrThrowArgs} args - Arguments to find a Jobs
462
+ * @example
463
+ * // Get one Jobs
464
+ * const jobs = await prisma.jobs.findFirstOrThrow({
465
+ * where: {
466
+ * // ... provide filter here
467
+ * }
468
+ * })
469
+ */
470
+ findFirstOrThrow<T extends jobsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, jobsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__jobsClient<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
471
+ /**
472
+ * Find zero or more Jobs that matches the filter.
473
+ * Note, that providing `undefined` is treated as the value not being there.
474
+ * Read more here: https://pris.ly/d/null-undefined
475
+ * @param {jobsFindManyArgs} args - Arguments to filter and select certain fields only.
476
+ * @example
477
+ * // Get all Jobs
478
+ * const jobs = await prisma.jobs.findMany()
479
+ *
480
+ * // Get first 10 Jobs
481
+ * const jobs = await prisma.jobs.findMany({ take: 10 })
482
+ *
483
+ * // Only select the `id`
484
+ * const jobsWithIdOnly = await prisma.jobs.findMany({ select: { id: true } })
485
+ *
486
+ */
487
+ findMany<T extends jobsFindManyArgs>(args?: Prisma.SelectSubset<T, jobsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
488
+ /**
489
+ * Create a Jobs.
490
+ * @param {jobsCreateArgs} args - Arguments to create a Jobs.
491
+ * @example
492
+ * // Create one Jobs
493
+ * const Jobs = await prisma.jobs.create({
494
+ * data: {
495
+ * // ... data to create a Jobs
496
+ * }
497
+ * })
498
+ *
499
+ */
500
+ create<T extends jobsCreateArgs>(args: Prisma.SelectSubset<T, jobsCreateArgs<ExtArgs>>): Prisma.Prisma__jobsClient<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
501
+ /**
502
+ * Create many Jobs.
503
+ * @param {jobsCreateManyArgs} args - Arguments to create many Jobs.
504
+ * @example
505
+ * // Create many Jobs
506
+ * const jobs = await prisma.jobs.createMany({
507
+ * data: [
508
+ * // ... provide data here
509
+ * ]
510
+ * })
511
+ *
512
+ */
513
+ createMany<T extends jobsCreateManyArgs>(args?: Prisma.SelectSubset<T, jobsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
514
+ /**
515
+ * Create many Jobs and returns the data saved in the database.
516
+ * @param {jobsCreateManyAndReturnArgs} args - Arguments to create many Jobs.
517
+ * @example
518
+ * // Create many Jobs
519
+ * const jobs = await prisma.jobs.createManyAndReturn({
520
+ * data: [
521
+ * // ... provide data here
522
+ * ]
523
+ * })
524
+ *
525
+ * // Create many Jobs and only return the `id`
526
+ * const jobsWithIdOnly = await prisma.jobs.createManyAndReturn({
527
+ * select: { id: true },
528
+ * data: [
529
+ * // ... provide data here
530
+ * ]
531
+ * })
532
+ * Note, that providing `undefined` is treated as the value not being there.
533
+ * Read more here: https://pris.ly/d/null-undefined
534
+ *
535
+ */
536
+ createManyAndReturn<T extends jobsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, jobsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
537
+ /**
538
+ * Delete a Jobs.
539
+ * @param {jobsDeleteArgs} args - Arguments to delete one Jobs.
540
+ * @example
541
+ * // Delete one Jobs
542
+ * const Jobs = await prisma.jobs.delete({
543
+ * where: {
544
+ * // ... filter to delete one Jobs
545
+ * }
546
+ * })
547
+ *
548
+ */
549
+ delete<T extends jobsDeleteArgs>(args: Prisma.SelectSubset<T, jobsDeleteArgs<ExtArgs>>): Prisma.Prisma__jobsClient<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
550
+ /**
551
+ * Update one Jobs.
552
+ * @param {jobsUpdateArgs} args - Arguments to update one Jobs.
553
+ * @example
554
+ * // Update one Jobs
555
+ * const jobs = await prisma.jobs.update({
556
+ * where: {
557
+ * // ... provide filter here
558
+ * },
559
+ * data: {
560
+ * // ... provide data here
561
+ * }
562
+ * })
563
+ *
564
+ */
565
+ update<T extends jobsUpdateArgs>(args: Prisma.SelectSubset<T, jobsUpdateArgs<ExtArgs>>): Prisma.Prisma__jobsClient<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
566
+ /**
567
+ * Delete zero or more Jobs.
568
+ * @param {jobsDeleteManyArgs} args - Arguments to filter Jobs to delete.
569
+ * @example
570
+ * // Delete a few Jobs
571
+ * const { count } = await prisma.jobs.deleteMany({
572
+ * where: {
573
+ * // ... provide filter here
574
+ * }
575
+ * })
576
+ *
577
+ */
578
+ deleteMany<T extends jobsDeleteManyArgs>(args?: Prisma.SelectSubset<T, jobsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
579
+ /**
580
+ * Update zero or more Jobs.
581
+ * Note, that providing `undefined` is treated as the value not being there.
582
+ * Read more here: https://pris.ly/d/null-undefined
583
+ * @param {jobsUpdateManyArgs} args - Arguments to update one or more rows.
584
+ * @example
585
+ * // Update many Jobs
586
+ * const jobs = await prisma.jobs.updateMany({
587
+ * where: {
588
+ * // ... provide filter here
589
+ * },
590
+ * data: {
591
+ * // ... provide data here
592
+ * }
593
+ * })
594
+ *
595
+ */
596
+ updateMany<T extends jobsUpdateManyArgs>(args: Prisma.SelectSubset<T, jobsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
597
+ /**
598
+ * Update zero or more Jobs and returns the data updated in the database.
599
+ * @param {jobsUpdateManyAndReturnArgs} args - Arguments to update many Jobs.
600
+ * @example
601
+ * // Update many Jobs
602
+ * const jobs = await prisma.jobs.updateManyAndReturn({
603
+ * where: {
604
+ * // ... provide filter here
605
+ * },
606
+ * data: [
607
+ * // ... provide data here
608
+ * ]
609
+ * })
610
+ *
611
+ * // Update zero or more Jobs and only return the `id`
612
+ * const jobsWithIdOnly = await prisma.jobs.updateManyAndReturn({
613
+ * select: { id: true },
614
+ * where: {
615
+ * // ... provide filter here
616
+ * },
617
+ * data: [
618
+ * // ... provide data here
619
+ * ]
620
+ * })
621
+ * Note, that providing `undefined` is treated as the value not being there.
622
+ * Read more here: https://pris.ly/d/null-undefined
623
+ *
624
+ */
625
+ updateManyAndReturn<T extends jobsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, jobsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
626
+ /**
627
+ * Create or update one Jobs.
628
+ * @param {jobsUpsertArgs} args - Arguments to update or create a Jobs.
629
+ * @example
630
+ * // Update or create a Jobs
631
+ * const jobs = await prisma.jobs.upsert({
632
+ * create: {
633
+ * // ... data to create a Jobs
634
+ * },
635
+ * update: {
636
+ * // ... in case it already exists, update
637
+ * },
638
+ * where: {
639
+ * // ... the filter for the Jobs we want to update
640
+ * }
641
+ * })
642
+ */
643
+ upsert<T extends jobsUpsertArgs>(args: Prisma.SelectSubset<T, jobsUpsertArgs<ExtArgs>>): Prisma.Prisma__jobsClient<runtime.Types.Result.GetResult<Prisma.$jobsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
644
+ /**
645
+ * Count the number of Jobs.
646
+ * Note, that providing `undefined` is treated as the value not being there.
647
+ * Read more here: https://pris.ly/d/null-undefined
648
+ * @param {jobsCountArgs} args - Arguments to filter Jobs to count.
649
+ * @example
650
+ * // Count the number of Jobs
651
+ * const count = await prisma.jobs.count({
652
+ * where: {
653
+ * // ... the filter for the Jobs we want to count
654
+ * }
655
+ * })
656
+ **/
657
+ count<T extends jobsCountArgs>(args?: Prisma.Subset<T, jobsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], JobsCountAggregateOutputType> : number>;
658
+ /**
659
+ * Allows you to perform aggregations operations on a Jobs.
660
+ * Note, that providing `undefined` is treated as the value not being there.
661
+ * Read more here: https://pris.ly/d/null-undefined
662
+ * @param {JobsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
663
+ * @example
664
+ * // Ordered by age ascending
665
+ * // Where email contains prisma.io
666
+ * // Limited to the 10 users
667
+ * const aggregations = await prisma.user.aggregate({
668
+ * _avg: {
669
+ * age: true,
670
+ * },
671
+ * where: {
672
+ * email: {
673
+ * contains: "prisma.io",
674
+ * },
675
+ * },
676
+ * orderBy: {
677
+ * age: "asc",
678
+ * },
679
+ * take: 10,
680
+ * })
681
+ **/
682
+ aggregate<T extends JobsAggregateArgs>(args: Prisma.Subset<T, JobsAggregateArgs>): Prisma.PrismaPromise<GetJobsAggregateType<T>>;
683
+ /**
684
+ * Group by Jobs.
685
+ * Note, that providing `undefined` is treated as the value not being there.
686
+ * Read more here: https://pris.ly/d/null-undefined
687
+ * @param {jobsGroupByArgs} args - Group by arguments.
688
+ * @example
689
+ * // Group by city, order by createdAt, get count
690
+ * const result = await prisma.user.groupBy({
691
+ * by: ['city', 'createdAt'],
692
+ * orderBy: {
693
+ * createdAt: true
694
+ * },
695
+ * _count: {
696
+ * _all: true
697
+ * },
698
+ * })
699
+ *
700
+ **/
701
+ groupBy<T extends jobsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
702
+ orderBy: jobsGroupByArgs['orderBy'];
703
+ } : {
704
+ orderBy?: jobsGroupByArgs['orderBy'];
705
+ }, 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 ? {
706
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
707
+ Error,
708
+ 'Field ',
709
+ P,
710
+ ` in "having" needs to be provided in "by"`
711
+ ];
712
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
713
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
714
+ }[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 ? {} : {
715
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
716
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
717
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
718
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, jobsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetJobsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
719
+ /**
720
+ * Fields of the jobs model
721
+ */
722
+ readonly fields: jobsFieldRefs;
723
+ }
724
+ /**
725
+ * The delegate class that acts as a "Promise-like" for jobs.
726
+ * Why is this prefixed with `Prisma__`?
727
+ * Because we want to prevent naming conflicts as mentioned in
728
+ * https://github.com/prisma/prisma-client-js/issues/707
729
+ */
730
+ export interface Prisma__jobsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
731
+ readonly [Symbol.toStringTag]: "PrismaPromise";
732
+ /**
733
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
734
+ * @param onfulfilled The callback to execute when the Promise is resolved.
735
+ * @param onrejected The callback to execute when the Promise is rejected.
736
+ * @returns A Promise for the completion of which ever callback is executed.
737
+ */
738
+ 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>;
739
+ /**
740
+ * Attaches a callback for only the rejection of the Promise.
741
+ * @param onrejected The callback to execute when the Promise is rejected.
742
+ * @returns A Promise for the completion of the callback.
743
+ */
744
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
745
+ /**
746
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
747
+ * resolved value cannot be modified from the callback.
748
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
749
+ * @returns A Promise for the completion of the callback.
750
+ */
751
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
752
+ }
753
+ /**
754
+ * Fields of the jobs model
755
+ */
756
+ export interface jobsFieldRefs {
757
+ readonly id: Prisma.FieldRef<"jobs", 'BigInt'>;
758
+ readonly queue: Prisma.FieldRef<"jobs", 'String'>;
759
+ readonly payload: Prisma.FieldRef<"jobs", 'String'>;
760
+ readonly attempts: Prisma.FieldRef<"jobs", 'Int'>;
761
+ readonly reserved_at: Prisma.FieldRef<"jobs", 'Int'>;
762
+ readonly available_at: Prisma.FieldRef<"jobs", 'Int'>;
763
+ readonly created_at: Prisma.FieldRef<"jobs", 'Int'>;
764
+ }
765
+ /**
766
+ * jobs findUnique
767
+ */
768
+ export type jobsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
769
+ /**
770
+ * Select specific fields to fetch from the jobs
771
+ */
772
+ select?: Prisma.jobsSelect<ExtArgs> | null;
773
+ /**
774
+ * Omit specific fields from the jobs
775
+ */
776
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
777
+ /**
778
+ * Filter, which jobs to fetch.
779
+ */
780
+ where: Prisma.jobsWhereUniqueInput;
781
+ };
782
+ /**
783
+ * jobs findUniqueOrThrow
784
+ */
785
+ export type jobsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
786
+ /**
787
+ * Select specific fields to fetch from the jobs
788
+ */
789
+ select?: Prisma.jobsSelect<ExtArgs> | null;
790
+ /**
791
+ * Omit specific fields from the jobs
792
+ */
793
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
794
+ /**
795
+ * Filter, which jobs to fetch.
796
+ */
797
+ where: Prisma.jobsWhereUniqueInput;
798
+ };
799
+ /**
800
+ * jobs findFirst
801
+ */
802
+ export type jobsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
803
+ /**
804
+ * Select specific fields to fetch from the jobs
805
+ */
806
+ select?: Prisma.jobsSelect<ExtArgs> | null;
807
+ /**
808
+ * Omit specific fields from the jobs
809
+ */
810
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
811
+ /**
812
+ * Filter, which jobs to fetch.
813
+ */
814
+ where?: Prisma.jobsWhereInput;
815
+ /**
816
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
817
+ *
818
+ * Determine the order of jobs to fetch.
819
+ */
820
+ orderBy?: Prisma.jobsOrderByWithRelationInput | Prisma.jobsOrderByWithRelationInput[];
821
+ /**
822
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
823
+ *
824
+ * Sets the position for searching for jobs.
825
+ */
826
+ cursor?: Prisma.jobsWhereUniqueInput;
827
+ /**
828
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
829
+ *
830
+ * Take `±n` jobs from the position of the cursor.
831
+ */
832
+ take?: number;
833
+ /**
834
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
835
+ *
836
+ * Skip the first `n` jobs.
837
+ */
838
+ skip?: number;
839
+ /**
840
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
841
+ *
842
+ * Filter by unique combinations of jobs.
843
+ */
844
+ distinct?: Prisma.JobsScalarFieldEnum | Prisma.JobsScalarFieldEnum[];
845
+ };
846
+ /**
847
+ * jobs findFirstOrThrow
848
+ */
849
+ export type jobsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
850
+ /**
851
+ * Select specific fields to fetch from the jobs
852
+ */
853
+ select?: Prisma.jobsSelect<ExtArgs> | null;
854
+ /**
855
+ * Omit specific fields from the jobs
856
+ */
857
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
858
+ /**
859
+ * Filter, which jobs to fetch.
860
+ */
861
+ where?: Prisma.jobsWhereInput;
862
+ /**
863
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
864
+ *
865
+ * Determine the order of jobs to fetch.
866
+ */
867
+ orderBy?: Prisma.jobsOrderByWithRelationInput | Prisma.jobsOrderByWithRelationInput[];
868
+ /**
869
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
870
+ *
871
+ * Sets the position for searching for jobs.
872
+ */
873
+ cursor?: Prisma.jobsWhereUniqueInput;
874
+ /**
875
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
876
+ *
877
+ * Take `±n` jobs from the position of the cursor.
878
+ */
879
+ take?: number;
880
+ /**
881
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
882
+ *
883
+ * Skip the first `n` jobs.
884
+ */
885
+ skip?: number;
886
+ /**
887
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
888
+ *
889
+ * Filter by unique combinations of jobs.
890
+ */
891
+ distinct?: Prisma.JobsScalarFieldEnum | Prisma.JobsScalarFieldEnum[];
892
+ };
893
+ /**
894
+ * jobs findMany
895
+ */
896
+ export type jobsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
897
+ /**
898
+ * Select specific fields to fetch from the jobs
899
+ */
900
+ select?: Prisma.jobsSelect<ExtArgs> | null;
901
+ /**
902
+ * Omit specific fields from the jobs
903
+ */
904
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
905
+ /**
906
+ * Filter, which jobs to fetch.
907
+ */
908
+ where?: Prisma.jobsWhereInput;
909
+ /**
910
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
911
+ *
912
+ * Determine the order of jobs to fetch.
913
+ */
914
+ orderBy?: Prisma.jobsOrderByWithRelationInput | Prisma.jobsOrderByWithRelationInput[];
915
+ /**
916
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
917
+ *
918
+ * Sets the position for listing jobs.
919
+ */
920
+ cursor?: Prisma.jobsWhereUniqueInput;
921
+ /**
922
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
923
+ *
924
+ * Take `±n` jobs from the position of the cursor.
925
+ */
926
+ take?: number;
927
+ /**
928
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
929
+ *
930
+ * Skip the first `n` jobs.
931
+ */
932
+ skip?: number;
933
+ distinct?: Prisma.JobsScalarFieldEnum | Prisma.JobsScalarFieldEnum[];
934
+ };
935
+ /**
936
+ * jobs create
937
+ */
938
+ export type jobsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
939
+ /**
940
+ * Select specific fields to fetch from the jobs
941
+ */
942
+ select?: Prisma.jobsSelect<ExtArgs> | null;
943
+ /**
944
+ * Omit specific fields from the jobs
945
+ */
946
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
947
+ /**
948
+ * The data needed to create a jobs.
949
+ */
950
+ data: Prisma.XOR<Prisma.jobsCreateInput, Prisma.jobsUncheckedCreateInput>;
951
+ };
952
+ /**
953
+ * jobs createMany
954
+ */
955
+ export type jobsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
956
+ /**
957
+ * The data used to create many jobs.
958
+ */
959
+ data: Prisma.jobsCreateManyInput | Prisma.jobsCreateManyInput[];
960
+ skipDuplicates?: boolean;
961
+ };
962
+ /**
963
+ * jobs createManyAndReturn
964
+ */
965
+ export type jobsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
966
+ /**
967
+ * Select specific fields to fetch from the jobs
968
+ */
969
+ select?: Prisma.jobsSelectCreateManyAndReturn<ExtArgs> | null;
970
+ /**
971
+ * Omit specific fields from the jobs
972
+ */
973
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
974
+ /**
975
+ * The data used to create many jobs.
976
+ */
977
+ data: Prisma.jobsCreateManyInput | Prisma.jobsCreateManyInput[];
978
+ skipDuplicates?: boolean;
979
+ };
980
+ /**
981
+ * jobs update
982
+ */
983
+ export type jobsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
984
+ /**
985
+ * Select specific fields to fetch from the jobs
986
+ */
987
+ select?: Prisma.jobsSelect<ExtArgs> | null;
988
+ /**
989
+ * Omit specific fields from the jobs
990
+ */
991
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
992
+ /**
993
+ * The data needed to update a jobs.
994
+ */
995
+ data: Prisma.XOR<Prisma.jobsUpdateInput, Prisma.jobsUncheckedUpdateInput>;
996
+ /**
997
+ * Choose, which jobs to update.
998
+ */
999
+ where: Prisma.jobsWhereUniqueInput;
1000
+ };
1001
+ /**
1002
+ * jobs updateMany
1003
+ */
1004
+ export type jobsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1005
+ /**
1006
+ * The data used to update jobs.
1007
+ */
1008
+ data: Prisma.XOR<Prisma.jobsUpdateManyMutationInput, Prisma.jobsUncheckedUpdateManyInput>;
1009
+ /**
1010
+ * Filter which jobs to update
1011
+ */
1012
+ where?: Prisma.jobsWhereInput;
1013
+ /**
1014
+ * Limit how many jobs to update.
1015
+ */
1016
+ limit?: number;
1017
+ };
1018
+ /**
1019
+ * jobs updateManyAndReturn
1020
+ */
1021
+ export type jobsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1022
+ /**
1023
+ * Select specific fields to fetch from the jobs
1024
+ */
1025
+ select?: Prisma.jobsSelectUpdateManyAndReturn<ExtArgs> | null;
1026
+ /**
1027
+ * Omit specific fields from the jobs
1028
+ */
1029
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
1030
+ /**
1031
+ * The data used to update jobs.
1032
+ */
1033
+ data: Prisma.XOR<Prisma.jobsUpdateManyMutationInput, Prisma.jobsUncheckedUpdateManyInput>;
1034
+ /**
1035
+ * Filter which jobs to update
1036
+ */
1037
+ where?: Prisma.jobsWhereInput;
1038
+ /**
1039
+ * Limit how many jobs to update.
1040
+ */
1041
+ limit?: number;
1042
+ };
1043
+ /**
1044
+ * jobs upsert
1045
+ */
1046
+ export type jobsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1047
+ /**
1048
+ * Select specific fields to fetch from the jobs
1049
+ */
1050
+ select?: Prisma.jobsSelect<ExtArgs> | null;
1051
+ /**
1052
+ * Omit specific fields from the jobs
1053
+ */
1054
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
1055
+ /**
1056
+ * The filter to search for the jobs to update in case it exists.
1057
+ */
1058
+ where: Prisma.jobsWhereUniqueInput;
1059
+ /**
1060
+ * In case the jobs found by the `where` argument doesn't exist, create a new jobs with this data.
1061
+ */
1062
+ create: Prisma.XOR<Prisma.jobsCreateInput, Prisma.jobsUncheckedCreateInput>;
1063
+ /**
1064
+ * In case the jobs was found with the provided `where` argument, update it with this data.
1065
+ */
1066
+ update: Prisma.XOR<Prisma.jobsUpdateInput, Prisma.jobsUncheckedUpdateInput>;
1067
+ };
1068
+ /**
1069
+ * jobs delete
1070
+ */
1071
+ export type jobsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1072
+ /**
1073
+ * Select specific fields to fetch from the jobs
1074
+ */
1075
+ select?: Prisma.jobsSelect<ExtArgs> | null;
1076
+ /**
1077
+ * Omit specific fields from the jobs
1078
+ */
1079
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
1080
+ /**
1081
+ * Filter which jobs to delete.
1082
+ */
1083
+ where: Prisma.jobsWhereUniqueInput;
1084
+ };
1085
+ /**
1086
+ * jobs deleteMany
1087
+ */
1088
+ export type jobsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1089
+ /**
1090
+ * Filter which jobs to delete
1091
+ */
1092
+ where?: Prisma.jobsWhereInput;
1093
+ /**
1094
+ * Limit how many jobs to delete.
1095
+ */
1096
+ limit?: number;
1097
+ };
1098
+ /**
1099
+ * jobs without action
1100
+ */
1101
+ export type jobsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1102
+ /**
1103
+ * Select specific fields to fetch from the jobs
1104
+ */
1105
+ select?: Prisma.jobsSelect<ExtArgs> | null;
1106
+ /**
1107
+ * Omit specific fields from the jobs
1108
+ */
1109
+ omit?: Prisma.jobsOmit<ExtArgs> | null;
1110
+ };
1111
+ export {};
1112
+ //# sourceMappingURL=jobs.d.ts.map