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