telemeister 0.1.21 → 0.2.8

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