telemeister 0.1.0

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