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