@naisys/erp 3.0.0-beta.3

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.

Potentially problematic release.


This version of @naisys/erp might be problematic. Click here for more details.

Files changed (201) hide show
  1. package/bin/naisys-erp +2 -0
  2. package/client-dist/android-chrome-192x192.png +0 -0
  3. package/client-dist/android-chrome-512x512.png +0 -0
  4. package/client-dist/apple-touch-icon.png +0 -0
  5. package/client-dist/assets/index-45dVo30p.css +1 -0
  6. package/client-dist/assets/index-Dffms7F_.js +168 -0
  7. package/client-dist/assets/naisys-logo-CzoPnn5I.webp +0 -0
  8. package/client-dist/favicon.ico +0 -0
  9. package/client-dist/index.html +42 -0
  10. package/client-dist/site.webmanifest +22 -0
  11. package/dist/api-reference.d.ts +10 -0
  12. package/dist/api-reference.js +101 -0
  13. package/dist/audit.d.ts +5 -0
  14. package/dist/audit.js +14 -0
  15. package/dist/auth-middleware.d.ts +18 -0
  16. package/dist/auth-middleware.js +203 -0
  17. package/dist/dbConfig.d.ts +5 -0
  18. package/dist/dbConfig.js +10 -0
  19. package/dist/erpDb.d.ts +10 -0
  20. package/dist/erpDb.js +34 -0
  21. package/dist/erpServer.d.ts +10 -0
  22. package/dist/erpServer.js +321 -0
  23. package/dist/error-handler.d.ts +7 -0
  24. package/dist/error-handler.js +17 -0
  25. package/dist/generated/prisma/client.d.ts +154 -0
  26. package/dist/generated/prisma/client.js +35 -0
  27. package/dist/generated/prisma/commonInputTypes.d.ts +637 -0
  28. package/dist/generated/prisma/commonInputTypes.js +11 -0
  29. package/dist/generated/prisma/enums.d.ts +59 -0
  30. package/dist/generated/prisma/enums.js +60 -0
  31. package/dist/generated/prisma/internal/class.d.ts +406 -0
  32. package/dist/generated/prisma/internal/class.js +50 -0
  33. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2722 -0
  34. package/dist/generated/prisma/internal/prismaNamespace.js +366 -0
  35. package/dist/generated/prisma/models/Attachment.d.ts +1455 -0
  36. package/dist/generated/prisma/models/Attachment.js +2 -0
  37. package/dist/generated/prisma/models/AuditLog.d.ts +1359 -0
  38. package/dist/generated/prisma/models/AuditLog.js +2 -0
  39. package/dist/generated/prisma/models/Field.d.ts +1880 -0
  40. package/dist/generated/prisma/models/Field.js +2 -0
  41. package/dist/generated/prisma/models/FieldAttachment.d.ts +1245 -0
  42. package/dist/generated/prisma/models/FieldAttachment.js +2 -0
  43. package/dist/generated/prisma/models/FieldRecord.d.ts +1625 -0
  44. package/dist/generated/prisma/models/FieldRecord.js +2 -0
  45. package/dist/generated/prisma/models/FieldSet.d.ts +1577 -0
  46. package/dist/generated/prisma/models/FieldSet.js +2 -0
  47. package/dist/generated/prisma/models/FieldValue.d.ts +1908 -0
  48. package/dist/generated/prisma/models/FieldValue.js +2 -0
  49. package/dist/generated/prisma/models/Item.d.ts +1858 -0
  50. package/dist/generated/prisma/models/Item.js +2 -0
  51. package/dist/generated/prisma/models/ItemInstance.d.ts +1987 -0
  52. package/dist/generated/prisma/models/ItemInstance.js +2 -0
  53. package/dist/generated/prisma/models/LaborTicket.d.ts +1867 -0
  54. package/dist/generated/prisma/models/LaborTicket.js +2 -0
  55. package/dist/generated/prisma/models/Operation.d.ts +2578 -0
  56. package/dist/generated/prisma/models/Operation.js +2 -0
  57. package/dist/generated/prisma/models/OperationDependency.d.ts +1434 -0
  58. package/dist/generated/prisma/models/OperationDependency.js +2 -0
  59. package/dist/generated/prisma/models/OperationFieldRef.d.ts +1539 -0
  60. package/dist/generated/prisma/models/OperationFieldRef.js +2 -0
  61. package/dist/generated/prisma/models/OperationRun.d.ts +2563 -0
  62. package/dist/generated/prisma/models/OperationRun.js +2 -0
  63. package/dist/generated/prisma/models/OperationRunComment.d.ts +1366 -0
  64. package/dist/generated/prisma/models/OperationRunComment.js +2 -0
  65. package/dist/generated/prisma/models/Order.d.ts +1931 -0
  66. package/dist/generated/prisma/models/Order.js +2 -0
  67. package/dist/generated/prisma/models/OrderRevision.d.ts +1962 -0
  68. package/dist/generated/prisma/models/OrderRevision.js +2 -0
  69. package/dist/generated/prisma/models/OrderRun.d.ts +2310 -0
  70. package/dist/generated/prisma/models/OrderRun.js +2 -0
  71. package/dist/generated/prisma/models/SchemaVersion.d.ts +985 -0
  72. package/dist/generated/prisma/models/SchemaVersion.js +2 -0
  73. package/dist/generated/prisma/models/Session.d.ts +1213 -0
  74. package/dist/generated/prisma/models/Session.js +2 -0
  75. package/dist/generated/prisma/models/Step.d.ts +2180 -0
  76. package/dist/generated/prisma/models/Step.js +2 -0
  77. package/dist/generated/prisma/models/StepRun.d.ts +1963 -0
  78. package/dist/generated/prisma/models/StepRun.js +2 -0
  79. package/dist/generated/prisma/models/User.d.ts +11819 -0
  80. package/dist/generated/prisma/models/User.js +2 -0
  81. package/dist/generated/prisma/models/UserPermission.d.ts +1348 -0
  82. package/dist/generated/prisma/models/UserPermission.js +2 -0
  83. package/dist/generated/prisma/models/WorkCenter.d.ts +1657 -0
  84. package/dist/generated/prisma/models/WorkCenter.js +2 -0
  85. package/dist/generated/prisma/models/WorkCenterUser.d.ts +1390 -0
  86. package/dist/generated/prisma/models/WorkCenterUser.js +2 -0
  87. package/dist/generated/prisma/models.d.ts +28 -0
  88. package/dist/generated/prisma/models.js +2 -0
  89. package/dist/hateoas.d.ts +7 -0
  90. package/dist/hateoas.js +61 -0
  91. package/dist/route-helpers.d.ts +318 -0
  92. package/dist/route-helpers.js +220 -0
  93. package/dist/routes/admin.d.ts +3 -0
  94. package/dist/routes/admin.js +147 -0
  95. package/dist/routes/audit.d.ts +3 -0
  96. package/dist/routes/audit.js +36 -0
  97. package/dist/routes/auth.d.ts +3 -0
  98. package/dist/routes/auth.js +112 -0
  99. package/dist/routes/dispatch.d.ts +3 -0
  100. package/dist/routes/dispatch.js +174 -0
  101. package/dist/routes/inventory.d.ts +3 -0
  102. package/dist/routes/inventory.js +70 -0
  103. package/dist/routes/item-fields.d.ts +3 -0
  104. package/dist/routes/item-fields.js +220 -0
  105. package/dist/routes/item-instances.d.ts +3 -0
  106. package/dist/routes/item-instances.js +426 -0
  107. package/dist/routes/items.d.ts +3 -0
  108. package/dist/routes/items.js +252 -0
  109. package/dist/routes/labor-tickets.d.ts +3 -0
  110. package/dist/routes/labor-tickets.js +268 -0
  111. package/dist/routes/operation-dependencies.d.ts +3 -0
  112. package/dist/routes/operation-dependencies.js +170 -0
  113. package/dist/routes/operation-field-refs.d.ts +3 -0
  114. package/dist/routes/operation-field-refs.js +263 -0
  115. package/dist/routes/operation-run-comments.d.ts +3 -0
  116. package/dist/routes/operation-run-comments.js +108 -0
  117. package/dist/routes/operation-run-transitions.d.ts +3 -0
  118. package/dist/routes/operation-run-transitions.js +249 -0
  119. package/dist/routes/operation-runs.d.ts +112 -0
  120. package/dist/routes/operation-runs.js +299 -0
  121. package/dist/routes/operations.d.ts +3 -0
  122. package/dist/routes/operations.js +283 -0
  123. package/dist/routes/order-revision-transitions.d.ts +3 -0
  124. package/dist/routes/order-revision-transitions.js +86 -0
  125. package/dist/routes/order-revisions.d.ts +51 -0
  126. package/dist/routes/order-revisions.js +327 -0
  127. package/dist/routes/order-run-transitions.d.ts +3 -0
  128. package/dist/routes/order-run-transitions.js +215 -0
  129. package/dist/routes/order-runs.d.ts +58 -0
  130. package/dist/routes/order-runs.js +335 -0
  131. package/dist/routes/orders.d.ts +3 -0
  132. package/dist/routes/orders.js +262 -0
  133. package/dist/routes/root.d.ts +3 -0
  134. package/dist/routes/root.js +123 -0
  135. package/dist/routes/schemas.d.ts +3 -0
  136. package/dist/routes/schemas.js +31 -0
  137. package/dist/routes/step-field-attachments.d.ts +3 -0
  138. package/dist/routes/step-field-attachments.js +231 -0
  139. package/dist/routes/step-fields.d.ts +100 -0
  140. package/dist/routes/step-fields.js +315 -0
  141. package/dist/routes/step-run-fields.d.ts +3 -0
  142. package/dist/routes/step-run-fields.js +438 -0
  143. package/dist/routes/step-run-transitions.d.ts +3 -0
  144. package/dist/routes/step-run-transitions.js +113 -0
  145. package/dist/routes/step-runs.d.ts +332 -0
  146. package/dist/routes/step-runs.js +324 -0
  147. package/dist/routes/steps.d.ts +3 -0
  148. package/dist/routes/steps.js +283 -0
  149. package/dist/routes/user-permissions.d.ts +3 -0
  150. package/dist/routes/user-permissions.js +100 -0
  151. package/dist/routes/users.d.ts +57 -0
  152. package/dist/routes/users.js +381 -0
  153. package/dist/routes/work-centers.d.ts +3 -0
  154. package/dist/routes/work-centers.js +280 -0
  155. package/dist/schema-registry.d.ts +3 -0
  156. package/dist/schema-registry.js +45 -0
  157. package/dist/services/attachment-service.d.ts +33 -0
  158. package/dist/services/attachment-service.js +118 -0
  159. package/dist/services/field-ref-service.d.ts +96 -0
  160. package/dist/services/field-ref-service.js +74 -0
  161. package/dist/services/field-service.d.ts +49 -0
  162. package/dist/services/field-service.js +114 -0
  163. package/dist/services/field-value-service.d.ts +61 -0
  164. package/dist/services/field-value-service.js +256 -0
  165. package/dist/services/item-instance-service.d.ts +152 -0
  166. package/dist/services/item-instance-service.js +155 -0
  167. package/dist/services/item-service.d.ts +47 -0
  168. package/dist/services/item-service.js +56 -0
  169. package/dist/services/labor-ticket-service.d.ts +40 -0
  170. package/dist/services/labor-ticket-service.js +148 -0
  171. package/dist/services/log-file-service.d.ts +4 -0
  172. package/dist/services/log-file-service.js +11 -0
  173. package/dist/services/operation-dependency-service.d.ts +33 -0
  174. package/dist/services/operation-dependency-service.js +30 -0
  175. package/dist/services/operation-run-comment-service.d.ts +17 -0
  176. package/dist/services/operation-run-comment-service.js +26 -0
  177. package/dist/services/operation-run-service.d.ts +126 -0
  178. package/dist/services/operation-run-service.js +347 -0
  179. package/dist/services/operation-service.d.ts +47 -0
  180. package/dist/services/operation-service.js +132 -0
  181. package/dist/services/order-revision-service.d.ts +53 -0
  182. package/dist/services/order-revision-service.js +264 -0
  183. package/dist/services/order-run-service.d.ts +138 -0
  184. package/dist/services/order-run-service.js +356 -0
  185. package/dist/services/order-service.d.ts +15 -0
  186. package/dist/services/order-service.js +68 -0
  187. package/dist/services/revision-diff-service.d.ts +3 -0
  188. package/dist/services/revision-diff-service.js +194 -0
  189. package/dist/services/step-run-service.d.ts +172 -0
  190. package/dist/services/step-run-service.js +106 -0
  191. package/dist/services/step-service.d.ts +104 -0
  192. package/dist/services/step-service.js +89 -0
  193. package/dist/services/user-service.d.ts +185 -0
  194. package/dist/services/user-service.js +132 -0
  195. package/dist/services/work-center-service.d.ts +29 -0
  196. package/dist/services/work-center-service.js +106 -0
  197. package/dist/supervisorAuth.d.ts +3 -0
  198. package/dist/supervisorAuth.js +16 -0
  199. package/dist/userService.d.ts +20 -0
  200. package/dist/userService.js +118 -0
  201. package/package.json +69 -0
@@ -0,0 +1,1213 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Session
5
+ *
6
+ */
7
+ export type SessionModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionPayload>;
8
+ export type AggregateSession = {
9
+ _count: SessionCountAggregateOutputType | null;
10
+ _avg: SessionAvgAggregateOutputType | null;
11
+ _sum: SessionSumAggregateOutputType | null;
12
+ _min: SessionMinAggregateOutputType | null;
13
+ _max: SessionMaxAggregateOutputType | null;
14
+ };
15
+ export type SessionAvgAggregateOutputType = {
16
+ id: number | null;
17
+ userId: number | null;
18
+ };
19
+ export type SessionSumAggregateOutputType = {
20
+ id: number | null;
21
+ userId: number | null;
22
+ };
23
+ export type SessionMinAggregateOutputType = {
24
+ id: number | null;
25
+ userId: number | null;
26
+ tokenHash: string | null;
27
+ expiresAt: Date | null;
28
+ createdAt: Date | null;
29
+ };
30
+ export type SessionMaxAggregateOutputType = {
31
+ id: number | null;
32
+ userId: number | null;
33
+ tokenHash: string | null;
34
+ expiresAt: Date | null;
35
+ createdAt: Date | null;
36
+ };
37
+ export type SessionCountAggregateOutputType = {
38
+ id: number;
39
+ userId: number;
40
+ tokenHash: number;
41
+ expiresAt: number;
42
+ createdAt: number;
43
+ _all: number;
44
+ };
45
+ export type SessionAvgAggregateInputType = {
46
+ id?: true;
47
+ userId?: true;
48
+ };
49
+ export type SessionSumAggregateInputType = {
50
+ id?: true;
51
+ userId?: true;
52
+ };
53
+ export type SessionMinAggregateInputType = {
54
+ id?: true;
55
+ userId?: true;
56
+ tokenHash?: true;
57
+ expiresAt?: true;
58
+ createdAt?: true;
59
+ };
60
+ export type SessionMaxAggregateInputType = {
61
+ id?: true;
62
+ userId?: true;
63
+ tokenHash?: true;
64
+ expiresAt?: true;
65
+ createdAt?: true;
66
+ };
67
+ export type SessionCountAggregateInputType = {
68
+ id?: true;
69
+ userId?: true;
70
+ tokenHash?: true;
71
+ expiresAt?: true;
72
+ createdAt?: true;
73
+ _all?: true;
74
+ };
75
+ export type SessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
76
+ /**
77
+ * Filter which Session to aggregate.
78
+ */
79
+ where?: Prisma.SessionWhereInput;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
82
+ *
83
+ * Determine the order of Sessions to fetch.
84
+ */
85
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88
+ *
89
+ * Sets the start position
90
+ */
91
+ cursor?: Prisma.SessionWhereUniqueInput;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Take `±n` Sessions from the position of the cursor.
96
+ */
97
+ take?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
+ *
101
+ * Skip the first `n` Sessions.
102
+ */
103
+ skip?: number;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Count returned Sessions
108
+ **/
109
+ _count?: true | SessionCountAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to average
114
+ **/
115
+ _avg?: SessionAvgAggregateInputType;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Select which fields to sum
120
+ **/
121
+ _sum?: SessionSumAggregateInputType;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Select which fields to find the minimum value
126
+ **/
127
+ _min?: SessionMinAggregateInputType;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
130
+ *
131
+ * Select which fields to find the maximum value
132
+ **/
133
+ _max?: SessionMaxAggregateInputType;
134
+ };
135
+ export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
136
+ [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSession[P]> : Prisma.GetScalarType<T[P], AggregateSession[P]>;
137
+ };
138
+ export type SessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
139
+ where?: Prisma.SessionWhereInput;
140
+ orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[];
141
+ by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum;
142
+ having?: Prisma.SessionScalarWhereWithAggregatesInput;
143
+ take?: number;
144
+ skip?: number;
145
+ _count?: SessionCountAggregateInputType | true;
146
+ _avg?: SessionAvgAggregateInputType;
147
+ _sum?: SessionSumAggregateInputType;
148
+ _min?: SessionMinAggregateInputType;
149
+ _max?: SessionMaxAggregateInputType;
150
+ };
151
+ export type SessionGroupByOutputType = {
152
+ id: number;
153
+ userId: number;
154
+ tokenHash: string;
155
+ expiresAt: Date;
156
+ createdAt: Date;
157
+ _count: SessionCountAggregateOutputType | null;
158
+ _avg: SessionAvgAggregateOutputType | null;
159
+ _sum: SessionSumAggregateOutputType | null;
160
+ _min: SessionMinAggregateOutputType | null;
161
+ _max: SessionMaxAggregateOutputType | null;
162
+ };
163
+ type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SessionGroupByOutputType, T['by']> & {
164
+ [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]>;
165
+ }>>;
166
+ export type SessionWhereInput = {
167
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
168
+ OR?: Prisma.SessionWhereInput[];
169
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
170
+ id?: Prisma.IntFilter<"Session"> | number;
171
+ userId?: Prisma.IntFilter<"Session"> | number;
172
+ tokenHash?: Prisma.StringFilter<"Session"> | string;
173
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
174
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
175
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
176
+ };
177
+ export type SessionOrderByWithRelationInput = {
178
+ id?: Prisma.SortOrder;
179
+ userId?: Prisma.SortOrder;
180
+ tokenHash?: Prisma.SortOrder;
181
+ expiresAt?: Prisma.SortOrder;
182
+ createdAt?: Prisma.SortOrder;
183
+ user?: Prisma.UserOrderByWithRelationInput;
184
+ };
185
+ export type SessionWhereUniqueInput = Prisma.AtLeast<{
186
+ id?: number;
187
+ tokenHash?: string;
188
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
189
+ OR?: Prisma.SessionWhereInput[];
190
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
191
+ userId?: Prisma.IntFilter<"Session"> | number;
192
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
193
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
194
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
195
+ }, "id" | "tokenHash">;
196
+ export type SessionOrderByWithAggregationInput = {
197
+ id?: Prisma.SortOrder;
198
+ userId?: Prisma.SortOrder;
199
+ tokenHash?: Prisma.SortOrder;
200
+ expiresAt?: Prisma.SortOrder;
201
+ createdAt?: Prisma.SortOrder;
202
+ _count?: Prisma.SessionCountOrderByAggregateInput;
203
+ _avg?: Prisma.SessionAvgOrderByAggregateInput;
204
+ _max?: Prisma.SessionMaxOrderByAggregateInput;
205
+ _min?: Prisma.SessionMinOrderByAggregateInput;
206
+ _sum?: Prisma.SessionSumOrderByAggregateInput;
207
+ };
208
+ export type SessionScalarWhereWithAggregatesInput = {
209
+ AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[];
210
+ OR?: Prisma.SessionScalarWhereWithAggregatesInput[];
211
+ NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[];
212
+ id?: Prisma.IntWithAggregatesFilter<"Session"> | number;
213
+ userId?: Prisma.IntWithAggregatesFilter<"Session"> | number;
214
+ tokenHash?: Prisma.StringWithAggregatesFilter<"Session"> | string;
215
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
216
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
217
+ };
218
+ export type SessionCreateInput = {
219
+ tokenHash: string;
220
+ expiresAt: Date | string;
221
+ createdAt?: Date | string;
222
+ user: Prisma.UserCreateNestedOneWithoutSessionsInput;
223
+ };
224
+ export type SessionUncheckedCreateInput = {
225
+ id?: number;
226
+ userId: number;
227
+ tokenHash: string;
228
+ expiresAt: Date | string;
229
+ createdAt?: Date | string;
230
+ };
231
+ export type SessionUpdateInput = {
232
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
233
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
234
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
235
+ user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput;
236
+ };
237
+ export type SessionUncheckedUpdateInput = {
238
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
239
+ userId?: Prisma.IntFieldUpdateOperationsInput | number;
240
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
241
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
242
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
243
+ };
244
+ export type SessionCreateManyInput = {
245
+ id?: number;
246
+ userId: number;
247
+ tokenHash: string;
248
+ expiresAt: Date | string;
249
+ createdAt?: Date | string;
250
+ };
251
+ export type SessionUpdateManyMutationInput = {
252
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
253
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
254
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
255
+ };
256
+ export type SessionUncheckedUpdateManyInput = {
257
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
258
+ userId?: Prisma.IntFieldUpdateOperationsInput | number;
259
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
260
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
261
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
262
+ };
263
+ export type SessionListRelationFilter = {
264
+ every?: Prisma.SessionWhereInput;
265
+ some?: Prisma.SessionWhereInput;
266
+ none?: Prisma.SessionWhereInput;
267
+ };
268
+ export type SessionOrderByRelationAggregateInput = {
269
+ _count?: Prisma.SortOrder;
270
+ };
271
+ export type SessionCountOrderByAggregateInput = {
272
+ id?: Prisma.SortOrder;
273
+ userId?: Prisma.SortOrder;
274
+ tokenHash?: Prisma.SortOrder;
275
+ expiresAt?: Prisma.SortOrder;
276
+ createdAt?: Prisma.SortOrder;
277
+ };
278
+ export type SessionAvgOrderByAggregateInput = {
279
+ id?: Prisma.SortOrder;
280
+ userId?: Prisma.SortOrder;
281
+ };
282
+ export type SessionMaxOrderByAggregateInput = {
283
+ id?: Prisma.SortOrder;
284
+ userId?: Prisma.SortOrder;
285
+ tokenHash?: Prisma.SortOrder;
286
+ expiresAt?: Prisma.SortOrder;
287
+ createdAt?: Prisma.SortOrder;
288
+ };
289
+ export type SessionMinOrderByAggregateInput = {
290
+ id?: Prisma.SortOrder;
291
+ userId?: Prisma.SortOrder;
292
+ tokenHash?: Prisma.SortOrder;
293
+ expiresAt?: Prisma.SortOrder;
294
+ createdAt?: Prisma.SortOrder;
295
+ };
296
+ export type SessionSumOrderByAggregateInput = {
297
+ id?: Prisma.SortOrder;
298
+ userId?: Prisma.SortOrder;
299
+ };
300
+ export type SessionCreateNestedManyWithoutUserInput = {
301
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
302
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
303
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
304
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
305
+ };
306
+ export type SessionUncheckedCreateNestedManyWithoutUserInput = {
307
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
308
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
309
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
310
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
311
+ };
312
+ export type SessionUpdateManyWithoutUserNestedInput = {
313
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
314
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
315
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[];
316
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
317
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
318
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
319
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
320
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
321
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[];
322
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[];
323
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
324
+ };
325
+ export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
326
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
327
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
328
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[];
329
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
330
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
331
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
332
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
333
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
334
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[];
335
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[];
336
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
337
+ };
338
+ export type SessionCreateWithoutUserInput = {
339
+ tokenHash: string;
340
+ expiresAt: Date | string;
341
+ createdAt?: Date | string;
342
+ };
343
+ export type SessionUncheckedCreateWithoutUserInput = {
344
+ id?: number;
345
+ tokenHash: string;
346
+ expiresAt: Date | string;
347
+ createdAt?: Date | string;
348
+ };
349
+ export type SessionCreateOrConnectWithoutUserInput = {
350
+ where: Prisma.SessionWhereUniqueInput;
351
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>;
352
+ };
353
+ export type SessionCreateManyUserInputEnvelope = {
354
+ data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[];
355
+ };
356
+ export type SessionUpsertWithWhereUniqueWithoutUserInput = {
357
+ where: Prisma.SessionWhereUniqueInput;
358
+ update: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>;
359
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>;
360
+ };
361
+ export type SessionUpdateWithWhereUniqueWithoutUserInput = {
362
+ where: Prisma.SessionWhereUniqueInput;
363
+ data: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>;
364
+ };
365
+ export type SessionUpdateManyWithWhereWithoutUserInput = {
366
+ where: Prisma.SessionScalarWhereInput;
367
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyWithoutUserInput>;
368
+ };
369
+ export type SessionScalarWhereInput = {
370
+ AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
371
+ OR?: Prisma.SessionScalarWhereInput[];
372
+ NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
373
+ id?: Prisma.IntFilter<"Session"> | number;
374
+ userId?: Prisma.IntFilter<"Session"> | number;
375
+ tokenHash?: Prisma.StringFilter<"Session"> | string;
376
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
377
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
378
+ };
379
+ export type SessionCreateManyUserInput = {
380
+ id?: number;
381
+ tokenHash: string;
382
+ expiresAt: Date | string;
383
+ createdAt?: Date | string;
384
+ };
385
+ export type SessionUpdateWithoutUserInput = {
386
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
387
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
388
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
389
+ };
390
+ export type SessionUncheckedUpdateWithoutUserInput = {
391
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
392
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
393
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
394
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
395
+ };
396
+ export type SessionUncheckedUpdateManyWithoutUserInput = {
397
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
398
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
399
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
400
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
401
+ };
402
+ export type SessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
403
+ id?: boolean;
404
+ userId?: boolean;
405
+ tokenHash?: boolean;
406
+ expiresAt?: boolean;
407
+ createdAt?: boolean;
408
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
409
+ }, ExtArgs["result"]["session"]>;
410
+ export type SessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
411
+ id?: boolean;
412
+ userId?: boolean;
413
+ tokenHash?: boolean;
414
+ expiresAt?: boolean;
415
+ createdAt?: boolean;
416
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
417
+ }, ExtArgs["result"]["session"]>;
418
+ export type SessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
419
+ id?: boolean;
420
+ userId?: boolean;
421
+ tokenHash?: boolean;
422
+ expiresAt?: boolean;
423
+ createdAt?: boolean;
424
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
425
+ }, ExtArgs["result"]["session"]>;
426
+ export type SessionSelectScalar = {
427
+ id?: boolean;
428
+ userId?: boolean;
429
+ tokenHash?: boolean;
430
+ expiresAt?: boolean;
431
+ createdAt?: boolean;
432
+ };
433
+ export type SessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "tokenHash" | "expiresAt" | "createdAt", ExtArgs["result"]["session"]>;
434
+ export type SessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
435
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
436
+ };
437
+ export type SessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
438
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
439
+ };
440
+ export type SessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
441
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
442
+ };
443
+ export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
444
+ name: "Session";
445
+ objects: {
446
+ user: Prisma.$UserPayload<ExtArgs>;
447
+ };
448
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
449
+ id: number;
450
+ userId: number;
451
+ tokenHash: string;
452
+ expiresAt: Date;
453
+ createdAt: Date;
454
+ }, ExtArgs["result"]["session"]>;
455
+ composites: {};
456
+ };
457
+ export type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionPayload, S>;
458
+ export type SessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
459
+ select?: SessionCountAggregateInputType | true;
460
+ };
461
+ export interface SessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
462
+ [K: symbol]: {
463
+ types: Prisma.TypeMap<ExtArgs>['model']['Session'];
464
+ meta: {
465
+ name: 'Session';
466
+ };
467
+ };
468
+ /**
469
+ * Find zero or one Session that matches the filter.
470
+ * @param {SessionFindUniqueArgs} args - Arguments to find a Session
471
+ * @example
472
+ * // Get one Session
473
+ * const session = await prisma.session.findUnique({
474
+ * where: {
475
+ * // ... provide filter here
476
+ * }
477
+ * })
478
+ */
479
+ findUnique<T extends SessionFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
480
+ /**
481
+ * Find one Session that matches the filter or throw an error with `error.code='P2025'`
482
+ * if no matches were found.
483
+ * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
484
+ * @example
485
+ * // Get one Session
486
+ * const session = await prisma.session.findUniqueOrThrow({
487
+ * where: {
488
+ * // ... provide filter here
489
+ * }
490
+ * })
491
+ */
492
+ findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
493
+ /**
494
+ * Find the first Session that matches the filter.
495
+ * Note, that providing `undefined` is treated as the value not being there.
496
+ * Read more here: https://pris.ly/d/null-undefined
497
+ * @param {SessionFindFirstArgs} args - Arguments to find a Session
498
+ * @example
499
+ * // Get one Session
500
+ * const session = await prisma.session.findFirst({
501
+ * where: {
502
+ * // ... provide filter here
503
+ * }
504
+ * })
505
+ */
506
+ findFirst<T extends SessionFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
507
+ /**
508
+ * Find the first Session that matches the filter or
509
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
510
+ * Note, that providing `undefined` is treated as the value not being there.
511
+ * Read more here: https://pris.ly/d/null-undefined
512
+ * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
513
+ * @example
514
+ * // Get one Session
515
+ * const session = await prisma.session.findFirstOrThrow({
516
+ * where: {
517
+ * // ... provide filter here
518
+ * }
519
+ * })
520
+ */
521
+ findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
522
+ /**
523
+ * Find zero or more Sessions that matches the filter.
524
+ * Note, that providing `undefined` is treated as the value not being there.
525
+ * Read more here: https://pris.ly/d/null-undefined
526
+ * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
527
+ * @example
528
+ * // Get all Sessions
529
+ * const sessions = await prisma.session.findMany()
530
+ *
531
+ * // Get first 10 Sessions
532
+ * const sessions = await prisma.session.findMany({ take: 10 })
533
+ *
534
+ * // Only select the `id`
535
+ * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
536
+ *
537
+ */
538
+ findMany<T extends SessionFindManyArgs>(args?: Prisma.SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
539
+ /**
540
+ * Create a Session.
541
+ * @param {SessionCreateArgs} args - Arguments to create a Session.
542
+ * @example
543
+ * // Create one Session
544
+ * const Session = await prisma.session.create({
545
+ * data: {
546
+ * // ... data to create a Session
547
+ * }
548
+ * })
549
+ *
550
+ */
551
+ create<T extends SessionCreateArgs>(args: Prisma.SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
552
+ /**
553
+ * Create many Sessions.
554
+ * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
555
+ * @example
556
+ * // Create many Sessions
557
+ * const session = await prisma.session.createMany({
558
+ * data: [
559
+ * // ... provide data here
560
+ * ]
561
+ * })
562
+ *
563
+ */
564
+ createMany<T extends SessionCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
565
+ /**
566
+ * Create many Sessions and returns the data saved in the database.
567
+ * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
568
+ * @example
569
+ * // Create many Sessions
570
+ * const session = await prisma.session.createManyAndReturn({
571
+ * data: [
572
+ * // ... provide data here
573
+ * ]
574
+ * })
575
+ *
576
+ * // Create many Sessions and only return the `id`
577
+ * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
578
+ * select: { id: true },
579
+ * data: [
580
+ * // ... provide data here
581
+ * ]
582
+ * })
583
+ * Note, that providing `undefined` is treated as the value not being there.
584
+ * Read more here: https://pris.ly/d/null-undefined
585
+ *
586
+ */
587
+ createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
588
+ /**
589
+ * Delete a Session.
590
+ * @param {SessionDeleteArgs} args - Arguments to delete one Session.
591
+ * @example
592
+ * // Delete one Session
593
+ * const Session = await prisma.session.delete({
594
+ * where: {
595
+ * // ... filter to delete one Session
596
+ * }
597
+ * })
598
+ *
599
+ */
600
+ delete<T extends SessionDeleteArgs>(args: Prisma.SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
601
+ /**
602
+ * Update one Session.
603
+ * @param {SessionUpdateArgs} args - Arguments to update one Session.
604
+ * @example
605
+ * // Update one Session
606
+ * const session = await prisma.session.update({
607
+ * where: {
608
+ * // ... provide filter here
609
+ * },
610
+ * data: {
611
+ * // ... provide data here
612
+ * }
613
+ * })
614
+ *
615
+ */
616
+ update<T extends SessionUpdateArgs>(args: Prisma.SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
617
+ /**
618
+ * Delete zero or more Sessions.
619
+ * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
620
+ * @example
621
+ * // Delete a few Sessions
622
+ * const { count } = await prisma.session.deleteMany({
623
+ * where: {
624
+ * // ... provide filter here
625
+ * }
626
+ * })
627
+ *
628
+ */
629
+ deleteMany<T extends SessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
630
+ /**
631
+ * Update zero or more Sessions.
632
+ * Note, that providing `undefined` is treated as the value not being there.
633
+ * Read more here: https://pris.ly/d/null-undefined
634
+ * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
635
+ * @example
636
+ * // Update many Sessions
637
+ * const session = await prisma.session.updateMany({
638
+ * where: {
639
+ * // ... provide filter here
640
+ * },
641
+ * data: {
642
+ * // ... provide data here
643
+ * }
644
+ * })
645
+ *
646
+ */
647
+ updateMany<T extends SessionUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
648
+ /**
649
+ * Update zero or more Sessions and returns the data updated in the database.
650
+ * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
651
+ * @example
652
+ * // Update many Sessions
653
+ * const session = await prisma.session.updateManyAndReturn({
654
+ * where: {
655
+ * // ... provide filter here
656
+ * },
657
+ * data: [
658
+ * // ... provide data here
659
+ * ]
660
+ * })
661
+ *
662
+ * // Update zero or more Sessions and only return the `id`
663
+ * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
664
+ * select: { id: true },
665
+ * where: {
666
+ * // ... provide filter here
667
+ * },
668
+ * data: [
669
+ * // ... provide data here
670
+ * ]
671
+ * })
672
+ * Note, that providing `undefined` is treated as the value not being there.
673
+ * Read more here: https://pris.ly/d/null-undefined
674
+ *
675
+ */
676
+ updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
677
+ /**
678
+ * Create or update one Session.
679
+ * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
680
+ * @example
681
+ * // Update or create a Session
682
+ * const session = await prisma.session.upsert({
683
+ * create: {
684
+ * // ... data to create a Session
685
+ * },
686
+ * update: {
687
+ * // ... in case it already exists, update
688
+ * },
689
+ * where: {
690
+ * // ... the filter for the Session we want to update
691
+ * }
692
+ * })
693
+ */
694
+ upsert<T extends SessionUpsertArgs>(args: Prisma.SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
695
+ /**
696
+ * Count the number of Sessions.
697
+ * Note, that providing `undefined` is treated as the value not being there.
698
+ * Read more here: https://pris.ly/d/null-undefined
699
+ * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
700
+ * @example
701
+ * // Count the number of Sessions
702
+ * const count = await prisma.session.count({
703
+ * where: {
704
+ * // ... the filter for the Sessions we want to count
705
+ * }
706
+ * })
707
+ **/
708
+ count<T extends SessionCountArgs>(args?: Prisma.Subset<T, SessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SessionCountAggregateOutputType> : number>;
709
+ /**
710
+ * Allows you to perform aggregations operations on a Session.
711
+ * Note, that providing `undefined` is treated as the value not being there.
712
+ * Read more here: https://pris.ly/d/null-undefined
713
+ * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
714
+ * @example
715
+ * // Ordered by age ascending
716
+ * // Where email contains prisma.io
717
+ * // Limited to the 10 users
718
+ * const aggregations = await prisma.user.aggregate({
719
+ * _avg: {
720
+ * age: true,
721
+ * },
722
+ * where: {
723
+ * email: {
724
+ * contains: "prisma.io",
725
+ * },
726
+ * },
727
+ * orderBy: {
728
+ * age: "asc",
729
+ * },
730
+ * take: 10,
731
+ * })
732
+ **/
733
+ aggregate<T extends SessionAggregateArgs>(args: Prisma.Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>;
734
+ /**
735
+ * Group by Session.
736
+ * Note, that providing `undefined` is treated as the value not being there.
737
+ * Read more here: https://pris.ly/d/null-undefined
738
+ * @param {SessionGroupByArgs} args - Group by arguments.
739
+ * @example
740
+ * // Group by city, order by createdAt, get count
741
+ * const result = await prisma.user.groupBy({
742
+ * by: ['city', 'createdAt'],
743
+ * orderBy: {
744
+ * createdAt: true
745
+ * },
746
+ * _count: {
747
+ * _all: true
748
+ * },
749
+ * })
750
+ *
751
+ **/
752
+ groupBy<T extends SessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
753
+ orderBy: SessionGroupByArgs['orderBy'];
754
+ } : {
755
+ orderBy?: SessionGroupByArgs['orderBy'];
756
+ }, 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 ? {
757
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
758
+ Error,
759
+ 'Field ',
760
+ P,
761
+ ` in "having" needs to be provided in "by"`
762
+ ];
763
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
764
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
765
+ }[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 ? {} : {
766
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
767
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
768
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
769
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
770
+ /**
771
+ * Fields of the Session model
772
+ */
773
+ readonly fields: SessionFieldRefs;
774
+ }
775
+ /**
776
+ * The delegate class that acts as a "Promise-like" for Session.
777
+ * Why is this prefixed with `Prisma__`?
778
+ * Because we want to prevent naming conflicts as mentioned in
779
+ * https://github.com/prisma/prisma-client-js/issues/707
780
+ */
781
+ export interface Prisma__SessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
782
+ readonly [Symbol.toStringTag]: "PrismaPromise";
783
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
784
+ /**
785
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
786
+ * @param onfulfilled The callback to execute when the Promise is resolved.
787
+ * @param onrejected The callback to execute when the Promise is rejected.
788
+ * @returns A Promise for the completion of which ever callback is executed.
789
+ */
790
+ 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>;
791
+ /**
792
+ * Attaches a callback for only the rejection of the Promise.
793
+ * @param onrejected The callback to execute when the Promise is rejected.
794
+ * @returns A Promise for the completion of the callback.
795
+ */
796
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
797
+ /**
798
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
799
+ * resolved value cannot be modified from the callback.
800
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
801
+ * @returns A Promise for the completion of the callback.
802
+ */
803
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
804
+ }
805
+ /**
806
+ * Fields of the Session model
807
+ */
808
+ export interface SessionFieldRefs {
809
+ readonly id: Prisma.FieldRef<"Session", 'Int'>;
810
+ readonly userId: Prisma.FieldRef<"Session", 'Int'>;
811
+ readonly tokenHash: Prisma.FieldRef<"Session", 'String'>;
812
+ readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'>;
813
+ readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'>;
814
+ }
815
+ /**
816
+ * Session findUnique
817
+ */
818
+ export type SessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
819
+ /**
820
+ * Select specific fields to fetch from the Session
821
+ */
822
+ select?: Prisma.SessionSelect<ExtArgs> | null;
823
+ /**
824
+ * Omit specific fields from the Session
825
+ */
826
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
827
+ /**
828
+ * Choose, which related nodes to fetch as well
829
+ */
830
+ include?: Prisma.SessionInclude<ExtArgs> | null;
831
+ /**
832
+ * Filter, which Session to fetch.
833
+ */
834
+ where: Prisma.SessionWhereUniqueInput;
835
+ };
836
+ /**
837
+ * Session findUniqueOrThrow
838
+ */
839
+ export type SessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
840
+ /**
841
+ * Select specific fields to fetch from the Session
842
+ */
843
+ select?: Prisma.SessionSelect<ExtArgs> | null;
844
+ /**
845
+ * Omit specific fields from the Session
846
+ */
847
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
848
+ /**
849
+ * Choose, which related nodes to fetch as well
850
+ */
851
+ include?: Prisma.SessionInclude<ExtArgs> | null;
852
+ /**
853
+ * Filter, which Session to fetch.
854
+ */
855
+ where: Prisma.SessionWhereUniqueInput;
856
+ };
857
+ /**
858
+ * Session findFirst
859
+ */
860
+ export type SessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
861
+ /**
862
+ * Select specific fields to fetch from the Session
863
+ */
864
+ select?: Prisma.SessionSelect<ExtArgs> | null;
865
+ /**
866
+ * Omit specific fields from the Session
867
+ */
868
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
869
+ /**
870
+ * Choose, which related nodes to fetch as well
871
+ */
872
+ include?: Prisma.SessionInclude<ExtArgs> | null;
873
+ /**
874
+ * Filter, which Session to fetch.
875
+ */
876
+ where?: Prisma.SessionWhereInput;
877
+ /**
878
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
879
+ *
880
+ * Determine the order of Sessions to fetch.
881
+ */
882
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
883
+ /**
884
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
885
+ *
886
+ * Sets the position for searching for Sessions.
887
+ */
888
+ cursor?: Prisma.SessionWhereUniqueInput;
889
+ /**
890
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
891
+ *
892
+ * Take `±n` Sessions from the position of the cursor.
893
+ */
894
+ take?: number;
895
+ /**
896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
897
+ *
898
+ * Skip the first `n` Sessions.
899
+ */
900
+ skip?: number;
901
+ /**
902
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
903
+ *
904
+ * Filter by unique combinations of Sessions.
905
+ */
906
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
907
+ };
908
+ /**
909
+ * Session findFirstOrThrow
910
+ */
911
+ export type SessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
912
+ /**
913
+ * Select specific fields to fetch from the Session
914
+ */
915
+ select?: Prisma.SessionSelect<ExtArgs> | null;
916
+ /**
917
+ * Omit specific fields from the Session
918
+ */
919
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
920
+ /**
921
+ * Choose, which related nodes to fetch as well
922
+ */
923
+ include?: Prisma.SessionInclude<ExtArgs> | null;
924
+ /**
925
+ * Filter, which Session to fetch.
926
+ */
927
+ where?: Prisma.SessionWhereInput;
928
+ /**
929
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
930
+ *
931
+ * Determine the order of Sessions to fetch.
932
+ */
933
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
934
+ /**
935
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
936
+ *
937
+ * Sets the position for searching for Sessions.
938
+ */
939
+ cursor?: Prisma.SessionWhereUniqueInput;
940
+ /**
941
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
942
+ *
943
+ * Take `±n` Sessions from the position of the cursor.
944
+ */
945
+ take?: number;
946
+ /**
947
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
948
+ *
949
+ * Skip the first `n` Sessions.
950
+ */
951
+ skip?: number;
952
+ /**
953
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
954
+ *
955
+ * Filter by unique combinations of Sessions.
956
+ */
957
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
958
+ };
959
+ /**
960
+ * Session findMany
961
+ */
962
+ export type SessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
963
+ /**
964
+ * Select specific fields to fetch from the Session
965
+ */
966
+ select?: Prisma.SessionSelect<ExtArgs> | null;
967
+ /**
968
+ * Omit specific fields from the Session
969
+ */
970
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
971
+ /**
972
+ * Choose, which related nodes to fetch as well
973
+ */
974
+ include?: Prisma.SessionInclude<ExtArgs> | null;
975
+ /**
976
+ * Filter, which Sessions to fetch.
977
+ */
978
+ where?: Prisma.SessionWhereInput;
979
+ /**
980
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
981
+ *
982
+ * Determine the order of Sessions to fetch.
983
+ */
984
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
985
+ /**
986
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
987
+ *
988
+ * Sets the position for listing Sessions.
989
+ */
990
+ cursor?: Prisma.SessionWhereUniqueInput;
991
+ /**
992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
993
+ *
994
+ * Take `±n` Sessions from the position of the cursor.
995
+ */
996
+ take?: number;
997
+ /**
998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
999
+ *
1000
+ * Skip the first `n` Sessions.
1001
+ */
1002
+ skip?: number;
1003
+ /**
1004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1005
+ *
1006
+ * Filter by unique combinations of Sessions.
1007
+ */
1008
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
1009
+ };
1010
+ /**
1011
+ * Session create
1012
+ */
1013
+ export type SessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1014
+ /**
1015
+ * Select specific fields to fetch from the Session
1016
+ */
1017
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1018
+ /**
1019
+ * Omit specific fields from the Session
1020
+ */
1021
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1022
+ /**
1023
+ * Choose, which related nodes to fetch as well
1024
+ */
1025
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1026
+ /**
1027
+ * The data needed to create a Session.
1028
+ */
1029
+ data: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
1030
+ };
1031
+ /**
1032
+ * Session createMany
1033
+ */
1034
+ export type SessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1035
+ /**
1036
+ * The data used to create many Sessions.
1037
+ */
1038
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
1039
+ };
1040
+ /**
1041
+ * Session createManyAndReturn
1042
+ */
1043
+ export type SessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1044
+ /**
1045
+ * Select specific fields to fetch from the Session
1046
+ */
1047
+ select?: Prisma.SessionSelectCreateManyAndReturn<ExtArgs> | null;
1048
+ /**
1049
+ * Omit specific fields from the Session
1050
+ */
1051
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1052
+ /**
1053
+ * The data used to create many Sessions.
1054
+ */
1055
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
1056
+ /**
1057
+ * Choose, which related nodes to fetch as well
1058
+ */
1059
+ include?: Prisma.SessionIncludeCreateManyAndReturn<ExtArgs> | null;
1060
+ };
1061
+ /**
1062
+ * Session update
1063
+ */
1064
+ export type SessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1065
+ /**
1066
+ * Select specific fields to fetch from the Session
1067
+ */
1068
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1069
+ /**
1070
+ * Omit specific fields from the Session
1071
+ */
1072
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1073
+ /**
1074
+ * Choose, which related nodes to fetch as well
1075
+ */
1076
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1077
+ /**
1078
+ * The data needed to update a Session.
1079
+ */
1080
+ data: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
1081
+ /**
1082
+ * Choose, which Session to update.
1083
+ */
1084
+ where: Prisma.SessionWhereUniqueInput;
1085
+ };
1086
+ /**
1087
+ * Session updateMany
1088
+ */
1089
+ export type SessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1090
+ /**
1091
+ * The data used to update Sessions.
1092
+ */
1093
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
1094
+ /**
1095
+ * Filter which Sessions to update
1096
+ */
1097
+ where?: Prisma.SessionWhereInput;
1098
+ /**
1099
+ * Limit how many Sessions to update.
1100
+ */
1101
+ limit?: number;
1102
+ };
1103
+ /**
1104
+ * Session updateManyAndReturn
1105
+ */
1106
+ export type SessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1107
+ /**
1108
+ * Select specific fields to fetch from the Session
1109
+ */
1110
+ select?: Prisma.SessionSelectUpdateManyAndReturn<ExtArgs> | null;
1111
+ /**
1112
+ * Omit specific fields from the Session
1113
+ */
1114
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1115
+ /**
1116
+ * The data used to update Sessions.
1117
+ */
1118
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
1119
+ /**
1120
+ * Filter which Sessions to update
1121
+ */
1122
+ where?: Prisma.SessionWhereInput;
1123
+ /**
1124
+ * Limit how many Sessions to update.
1125
+ */
1126
+ limit?: number;
1127
+ /**
1128
+ * Choose, which related nodes to fetch as well
1129
+ */
1130
+ include?: Prisma.SessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1131
+ };
1132
+ /**
1133
+ * Session upsert
1134
+ */
1135
+ export type SessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1136
+ /**
1137
+ * Select specific fields to fetch from the Session
1138
+ */
1139
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1140
+ /**
1141
+ * Omit specific fields from the Session
1142
+ */
1143
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1144
+ /**
1145
+ * Choose, which related nodes to fetch as well
1146
+ */
1147
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1148
+ /**
1149
+ * The filter to search for the Session to update in case it exists.
1150
+ */
1151
+ where: Prisma.SessionWhereUniqueInput;
1152
+ /**
1153
+ * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
1154
+ */
1155
+ create: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
1156
+ /**
1157
+ * In case the Session was found with the provided `where` argument, update it with this data.
1158
+ */
1159
+ update: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
1160
+ };
1161
+ /**
1162
+ * Session delete
1163
+ */
1164
+ export type SessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1165
+ /**
1166
+ * Select specific fields to fetch from the Session
1167
+ */
1168
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1169
+ /**
1170
+ * Omit specific fields from the Session
1171
+ */
1172
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1173
+ /**
1174
+ * Choose, which related nodes to fetch as well
1175
+ */
1176
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1177
+ /**
1178
+ * Filter which Session to delete.
1179
+ */
1180
+ where: Prisma.SessionWhereUniqueInput;
1181
+ };
1182
+ /**
1183
+ * Session deleteMany
1184
+ */
1185
+ export type SessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1186
+ /**
1187
+ * Filter which Sessions to delete
1188
+ */
1189
+ where?: Prisma.SessionWhereInput;
1190
+ /**
1191
+ * Limit how many Sessions to delete.
1192
+ */
1193
+ limit?: number;
1194
+ };
1195
+ /**
1196
+ * Session without action
1197
+ */
1198
+ export type SessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1199
+ /**
1200
+ * Select specific fields to fetch from the Session
1201
+ */
1202
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1203
+ /**
1204
+ * Omit specific fields from the Session
1205
+ */
1206
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1207
+ /**
1208
+ * Choose, which related nodes to fetch as well
1209
+ */
1210
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1211
+ };
1212
+ export {};
1213
+ //# sourceMappingURL=Session.d.ts.map