create-zhx-monorepo 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/bin/index.js +65 -0
- package/package.json +18 -0
- package/templates/monorepo-starter/.vscode/settings.json +3 -0
- package/templates/monorepo-starter/README.md +42 -0
- package/templates/monorepo-starter/apps/web/components.json +20 -0
- package/templates/monorepo-starter/apps/web/eslint.config.mjs +4 -0
- package/templates/monorepo-starter/apps/web/next-env.d.ts +6 -0
- package/templates/monorepo-starter/apps/web/next.config.mjs +6 -0
- package/templates/monorepo-starter/apps/web/package.json +31 -0
- package/templates/monorepo-starter/apps/web/postcss.config.mjs +1 -0
- package/templates/monorepo-starter/apps/web/public/.gitkeep +0 -0
- package/templates/monorepo-starter/apps/web/sitemap.config.cjs +6 -0
- package/templates/monorepo-starter/apps/web/src/app/(auth)/layout.tsx +7 -0
- package/templates/monorepo-starter/apps/web/src/app/(root)/layout.tsx +15 -0
- package/templates/monorepo-starter/apps/web/src/app/(root)/page.tsx +14 -0
- package/templates/monorepo-starter/apps/web/src/app/globals.css +1 -0
- package/templates/monorepo-starter/apps/web/src/app/layout.tsx +24 -0
- package/templates/monorepo-starter/apps/web/src/components/Footer.tsx +9 -0
- package/templates/monorepo-starter/apps/web/src/components/Header.tsx +11 -0
- package/templates/monorepo-starter/apps/web/src/components/ThemeSwitch.tsx +34 -0
- package/templates/monorepo-starter/apps/web/src/hooks/.gitkeep +0 -0
- package/templates/monorepo-starter/apps/web/src/lib/.gitkeep +0 -0
- package/templates/monorepo-starter/apps/web/src/providers/index.tsx +10 -0
- package/templates/monorepo-starter/apps/web/src/providers/theme.tsx +19 -0
- package/templates/monorepo-starter/apps/web/src/types/index.d.ts +16 -0
- package/templates/monorepo-starter/apps/web/tsconfig.json +20 -0
- package/templates/monorepo-starter/eslint.config.mjs +12 -0
- package/templates/monorepo-starter/package.json +23 -0
- package/templates/monorepo-starter/packages/config/eslint/base.js +31 -0
- package/templates/monorepo-starter/packages/config/eslint/nest.js +26 -0
- package/templates/monorepo-starter/packages/config/eslint/next.js +39 -0
- package/templates/monorepo-starter/packages/config/eslint/react.js +30 -0
- package/templates/monorepo-starter/packages/config/package.json +32 -0
- package/templates/monorepo-starter/packages/config/typescript/base.json +31 -0
- package/templates/monorepo-starter/packages/config/typescript/nest.json +14 -0
- package/templates/monorepo-starter/packages/config/typescript/next.json +10 -0
- package/templates/monorepo-starter/packages/config/typescript/react.json +9 -0
- package/templates/monorepo-starter/packages/ui/components.json +20 -0
- package/templates/monorepo-starter/packages/ui/eslint.config.mjs +4 -0
- package/templates/monorepo-starter/packages/ui/package.json +38 -0
- package/templates/monorepo-starter/packages/ui/postcss.config.mjs +6 -0
- package/templates/monorepo-starter/packages/ui/src/components/button.tsx +71 -0
- package/templates/monorepo-starter/packages/ui/src/hooks/.gitkeep +0 -0
- package/templates/monorepo-starter/packages/ui/src/lib/utils.ts +6 -0
- package/templates/monorepo-starter/packages/ui/src/styles/globals.css +182 -0
- package/templates/monorepo-starter/packages/ui/tsconfig.json +13 -0
- package/templates/monorepo-starter/packages/ui/tsconfig.lint.json +8 -0
- package/templates/monorepo-starter/pnpm-lock.yaml +12441 -0
- package/templates/monorepo-starter/pnpm-workspace.yaml +17 -0
- package/templates/monorepo-starter/server/.env.example +64 -0
- package/templates/monorepo-starter/server/README.md +63 -0
- package/templates/monorepo-starter/server/eslint.config.mjs +4 -0
- package/templates/monorepo-starter/server/nest-cli.json +12 -0
- package/templates/monorepo-starter/server/package.json +97 -0
- package/templates/monorepo-starter/server/prisma/generated/browser.ts +54 -0
- package/templates/monorepo-starter/server/prisma/generated/client.ts +76 -0
- package/templates/monorepo-starter/server/prisma/generated/commonInputTypes.ts +577 -0
- package/templates/monorepo-starter/server/prisma/generated/enums.ts +68 -0
- package/templates/monorepo-starter/server/prisma/generated/internal/class.ts +250 -0
- package/templates/monorepo-starter/server/prisma/generated/internal/prismaNamespace.ts +1436 -0
- package/templates/monorepo-starter/server/prisma/generated/internal/prismaNamespaceBrowser.ts +227 -0
- package/templates/monorepo-starter/server/prisma/generated/models/BackupCode.ts +1375 -0
- package/templates/monorepo-starter/server/prisma/generated/models/Notification.ts +1587 -0
- package/templates/monorepo-starter/server/prisma/generated/models/Otp.ts +1488 -0
- package/templates/monorepo-starter/server/prisma/generated/models/RefreshToken.ts +1515 -0
- package/templates/monorepo-starter/server/prisma/generated/models/RoleAssignment.ts +1385 -0
- package/templates/monorepo-starter/server/prisma/generated/models/SecuritySetting.ts +1422 -0
- package/templates/monorepo-starter/server/prisma/generated/models/User.ts +2498 -0
- package/templates/monorepo-starter/server/prisma/generated/models.ts +18 -0
- package/templates/monorepo-starter/server/prisma/migrations/20251218164821_init/migration.sql +210 -0
- package/templates/monorepo-starter/server/prisma/migrations/migration_lock.toml +3 -0
- package/templates/monorepo-starter/server/prisma/schema.prisma +193 -0
- package/templates/monorepo-starter/server/prisma.config.ts +13 -0
- package/templates/monorepo-starter/server/scripts/generate.sh +14 -0
- package/templates/monorepo-starter/server/src/app.module.ts +49 -0
- package/templates/monorepo-starter/server/src/lib/decorators/logger.decorator.ts +20 -0
- package/templates/monorepo-starter/server/src/lib/decorators/public.decorator.ts +4 -0
- package/templates/monorepo-starter/server/src/lib/decorators/roles.decorator.ts +5 -0
- package/templates/monorepo-starter/server/src/lib/dto/auth.dto.ts +64 -0
- package/templates/monorepo-starter/server/src/lib/dto/security-setting.dto.ts +21 -0
- package/templates/monorepo-starter/server/src/lib/filters/exceptions.filter.ts +62 -0
- package/templates/monorepo-starter/server/src/lib/guards/auth.guard.ts +104 -0
- package/templates/monorepo-starter/server/src/lib/interceptors/response.interceptor.ts +33 -0
- package/templates/monorepo-starter/server/src/lib/pipes/validation.pipe.ts +7 -0
- package/templates/monorepo-starter/server/src/lib/schemas/env.schema.ts +99 -0
- package/templates/monorepo-starter/server/src/lib/utils/cookie.util.ts +23 -0
- package/templates/monorepo-starter/server/src/lib/utils/general.util.ts +24 -0
- package/templates/monorepo-starter/server/src/main.ts +41 -0
- package/templates/monorepo-starter/server/src/modules/auth/auth.controller.ts +74 -0
- package/templates/monorepo-starter/server/src/modules/auth/auth.module.ts +16 -0
- package/templates/monorepo-starter/server/src/modules/auth/auth.service.ts +525 -0
- package/templates/monorepo-starter/server/src/modules/auth/oauth.controller.ts +58 -0
- package/templates/monorepo-starter/server/src/modules/auth/oauth.service.ts +165 -0
- package/templates/monorepo-starter/server/src/modules/auth/otp.service.ts +133 -0
- package/templates/monorepo-starter/server/src/modules/auth/role.service.ts +99 -0
- package/templates/monorepo-starter/server/src/modules/auth/security-setting.service.ts +102 -0
- package/templates/monorepo-starter/server/src/modules/env/env.module.ts +9 -0
- package/templates/monorepo-starter/server/src/modules/env/env.service.ts +22 -0
- package/templates/monorepo-starter/server/src/modules/logger/logger.module.ts +12 -0
- package/templates/monorepo-starter/server/src/modules/logger/logger.service.ts +37 -0
- package/templates/monorepo-starter/server/src/modules/logger/winston.config.ts +32 -0
- package/templates/monorepo-starter/server/src/modules/notification/notification.module.ts +11 -0
- package/templates/monorepo-starter/server/src/modules/notification/notification.service.ts +118 -0
- package/templates/monorepo-starter/server/src/modules/prisma/prisma.extension.ts +72 -0
- package/templates/monorepo-starter/server/src/modules/prisma/prisma.module.ts +9 -0
- package/templates/monorepo-starter/server/src/modules/prisma/prisma.service.ts +49 -0
- package/templates/monorepo-starter/server/src/modules/public/public.controller.ts +21 -0
- package/templates/monorepo-starter/server/src/modules/public/public.module.ts +9 -0
- package/templates/monorepo-starter/server/src/modules/public/public.service.ts +30 -0
- package/templates/monorepo-starter/server/src/modules/scheduler/cleanup.service.ts +33 -0
- package/templates/monorepo-starter/server/src/modules/scheduler/scheduler.module.ts +7 -0
- package/templates/monorepo-starter/server/src/modules/template/template.module.ts +8 -0
- package/templates/monorepo-starter/server/src/modules/template/template.service.ts +33 -0
- package/templates/monorepo-starter/server/src/modules/token/token.module.ts +11 -0
- package/templates/monorepo-starter/server/src/modules/token/token.service.ts +131 -0
- package/templates/monorepo-starter/server/src/types/express.d.ts +10 -0
- package/templates/monorepo-starter/server/src/types/index.d.ts +13 -0
- package/templates/monorepo-starter/server/templates/notification.templates.ts +243 -0
- package/templates/monorepo-starter/server/test/app.e2e-spec.ts +25 -0
- package/templates/monorepo-starter/server/test/jest-e2e.json +9 -0
- package/templates/monorepo-starter/server/tsconfig.json +23 -0
- package/templates/monorepo-starter/server/tsup.config.ts +14 -0
- package/templates/monorepo-starter/tsconfig.json +3 -0
- package/templates/monorepo-starter/turbo.json +21 -0
|
@@ -0,0 +1,1515 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports the `RefreshToken` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
+
import type * as $Enums from "../enums"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model RefreshToken
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type RefreshTokenModel = runtime.Types.Result.DefaultSelection<Prisma.$RefreshTokenPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateRefreshToken = {
|
|
22
|
+
_count: RefreshTokenCountAggregateOutputType | null
|
|
23
|
+
_min: RefreshTokenMinAggregateOutputType | null
|
|
24
|
+
_max: RefreshTokenMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type RefreshTokenMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
token: string | null
|
|
30
|
+
userId: string | null
|
|
31
|
+
ip: string | null
|
|
32
|
+
userAgent: string | null
|
|
33
|
+
lastUsed: Date | null
|
|
34
|
+
createdAt: Date | null
|
|
35
|
+
expiresAt: Date | null
|
|
36
|
+
isActive: boolean | null
|
|
37
|
+
blacklisted: boolean | null
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type RefreshTokenMaxAggregateOutputType = {
|
|
41
|
+
id: string | null
|
|
42
|
+
token: string | null
|
|
43
|
+
userId: string | null
|
|
44
|
+
ip: string | null
|
|
45
|
+
userAgent: string | null
|
|
46
|
+
lastUsed: Date | null
|
|
47
|
+
createdAt: Date | null
|
|
48
|
+
expiresAt: Date | null
|
|
49
|
+
isActive: boolean | null
|
|
50
|
+
blacklisted: boolean | null
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type RefreshTokenCountAggregateOutputType = {
|
|
54
|
+
id: number
|
|
55
|
+
token: number
|
|
56
|
+
userId: number
|
|
57
|
+
ip: number
|
|
58
|
+
userAgent: number
|
|
59
|
+
lastUsed: number
|
|
60
|
+
createdAt: number
|
|
61
|
+
expiresAt: number
|
|
62
|
+
isActive: number
|
|
63
|
+
blacklisted: number
|
|
64
|
+
_all: number
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export type RefreshTokenMinAggregateInputType = {
|
|
69
|
+
id?: true
|
|
70
|
+
token?: true
|
|
71
|
+
userId?: true
|
|
72
|
+
ip?: true
|
|
73
|
+
userAgent?: true
|
|
74
|
+
lastUsed?: true
|
|
75
|
+
createdAt?: true
|
|
76
|
+
expiresAt?: true
|
|
77
|
+
isActive?: true
|
|
78
|
+
blacklisted?: true
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type RefreshTokenMaxAggregateInputType = {
|
|
82
|
+
id?: true
|
|
83
|
+
token?: true
|
|
84
|
+
userId?: true
|
|
85
|
+
ip?: true
|
|
86
|
+
userAgent?: true
|
|
87
|
+
lastUsed?: true
|
|
88
|
+
createdAt?: true
|
|
89
|
+
expiresAt?: true
|
|
90
|
+
isActive?: true
|
|
91
|
+
blacklisted?: true
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type RefreshTokenCountAggregateInputType = {
|
|
95
|
+
id?: true
|
|
96
|
+
token?: true
|
|
97
|
+
userId?: true
|
|
98
|
+
ip?: true
|
|
99
|
+
userAgent?: true
|
|
100
|
+
lastUsed?: true
|
|
101
|
+
createdAt?: true
|
|
102
|
+
expiresAt?: true
|
|
103
|
+
isActive?: true
|
|
104
|
+
blacklisted?: true
|
|
105
|
+
_all?: true
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type RefreshTokenAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
109
|
+
/**
|
|
110
|
+
* Filter which RefreshToken to aggregate.
|
|
111
|
+
*/
|
|
112
|
+
where?: Prisma.RefreshTokenWhereInput
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
115
|
+
*
|
|
116
|
+
* Determine the order of RefreshTokens to fetch.
|
|
117
|
+
*/
|
|
118
|
+
orderBy?: Prisma.RefreshTokenOrderByWithRelationInput | Prisma.RefreshTokenOrderByWithRelationInput[]
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
121
|
+
*
|
|
122
|
+
* Sets the start position
|
|
123
|
+
*/
|
|
124
|
+
cursor?: Prisma.RefreshTokenWhereUniqueInput
|
|
125
|
+
/**
|
|
126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
127
|
+
*
|
|
128
|
+
* Take `±n` RefreshTokens from the position of the cursor.
|
|
129
|
+
*/
|
|
130
|
+
take?: number
|
|
131
|
+
/**
|
|
132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
133
|
+
*
|
|
134
|
+
* Skip the first `n` RefreshTokens.
|
|
135
|
+
*/
|
|
136
|
+
skip?: number
|
|
137
|
+
/**
|
|
138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
139
|
+
*
|
|
140
|
+
* Count returned RefreshTokens
|
|
141
|
+
**/
|
|
142
|
+
_count?: true | RefreshTokenCountAggregateInputType
|
|
143
|
+
/**
|
|
144
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
145
|
+
*
|
|
146
|
+
* Select which fields to find the minimum value
|
|
147
|
+
**/
|
|
148
|
+
_min?: RefreshTokenMinAggregateInputType
|
|
149
|
+
/**
|
|
150
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
151
|
+
*
|
|
152
|
+
* Select which fields to find the maximum value
|
|
153
|
+
**/
|
|
154
|
+
_max?: RefreshTokenMaxAggregateInputType
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export type GetRefreshTokenAggregateType<T extends RefreshTokenAggregateArgs> = {
|
|
158
|
+
[P in keyof T & keyof AggregateRefreshToken]: P extends '_count' | 'count'
|
|
159
|
+
? T[P] extends true
|
|
160
|
+
? number
|
|
161
|
+
: Prisma.GetScalarType<T[P], AggregateRefreshToken[P]>
|
|
162
|
+
: Prisma.GetScalarType<T[P], AggregateRefreshToken[P]>
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
export type RefreshTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
169
|
+
where?: Prisma.RefreshTokenWhereInput
|
|
170
|
+
orderBy?: Prisma.RefreshTokenOrderByWithAggregationInput | Prisma.RefreshTokenOrderByWithAggregationInput[]
|
|
171
|
+
by: Prisma.RefreshTokenScalarFieldEnum[] | Prisma.RefreshTokenScalarFieldEnum
|
|
172
|
+
having?: Prisma.RefreshTokenScalarWhereWithAggregatesInput
|
|
173
|
+
take?: number
|
|
174
|
+
skip?: number
|
|
175
|
+
_count?: RefreshTokenCountAggregateInputType | true
|
|
176
|
+
_min?: RefreshTokenMinAggregateInputType
|
|
177
|
+
_max?: RefreshTokenMaxAggregateInputType
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type RefreshTokenGroupByOutputType = {
|
|
181
|
+
id: string
|
|
182
|
+
token: string
|
|
183
|
+
userId: string
|
|
184
|
+
ip: string
|
|
185
|
+
userAgent: string
|
|
186
|
+
lastUsed: Date
|
|
187
|
+
createdAt: Date
|
|
188
|
+
expiresAt: Date
|
|
189
|
+
isActive: boolean
|
|
190
|
+
blacklisted: boolean
|
|
191
|
+
_count: RefreshTokenCountAggregateOutputType | null
|
|
192
|
+
_min: RefreshTokenMinAggregateOutputType | null
|
|
193
|
+
_max: RefreshTokenMaxAggregateOutputType | null
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
type GetRefreshTokenGroupByPayload<T extends RefreshTokenGroupByArgs> = Prisma.PrismaPromise<
|
|
197
|
+
Array<
|
|
198
|
+
Prisma.PickEnumerable<RefreshTokenGroupByOutputType, T['by']> &
|
|
199
|
+
{
|
|
200
|
+
[P in ((keyof T) & (keyof RefreshTokenGroupByOutputType))]: P extends '_count'
|
|
201
|
+
? T[P] extends boolean
|
|
202
|
+
? number
|
|
203
|
+
: Prisma.GetScalarType<T[P], RefreshTokenGroupByOutputType[P]>
|
|
204
|
+
: Prisma.GetScalarType<T[P], RefreshTokenGroupByOutputType[P]>
|
|
205
|
+
}
|
|
206
|
+
>
|
|
207
|
+
>
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
export type RefreshTokenWhereInput = {
|
|
212
|
+
AND?: Prisma.RefreshTokenWhereInput | Prisma.RefreshTokenWhereInput[]
|
|
213
|
+
OR?: Prisma.RefreshTokenWhereInput[]
|
|
214
|
+
NOT?: Prisma.RefreshTokenWhereInput | Prisma.RefreshTokenWhereInput[]
|
|
215
|
+
id?: Prisma.StringFilter<"RefreshToken"> | string
|
|
216
|
+
token?: Prisma.StringFilter<"RefreshToken"> | string
|
|
217
|
+
userId?: Prisma.StringFilter<"RefreshToken"> | string
|
|
218
|
+
ip?: Prisma.StringFilter<"RefreshToken"> | string
|
|
219
|
+
userAgent?: Prisma.StringFilter<"RefreshToken"> | string
|
|
220
|
+
lastUsed?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
221
|
+
createdAt?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
222
|
+
expiresAt?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
223
|
+
isActive?: Prisma.BoolFilter<"RefreshToken"> | boolean
|
|
224
|
+
blacklisted?: Prisma.BoolFilter<"RefreshToken"> | boolean
|
|
225
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type RefreshTokenOrderByWithRelationInput = {
|
|
229
|
+
id?: Prisma.SortOrder
|
|
230
|
+
token?: Prisma.SortOrder
|
|
231
|
+
userId?: Prisma.SortOrder
|
|
232
|
+
ip?: Prisma.SortOrder
|
|
233
|
+
userAgent?: Prisma.SortOrder
|
|
234
|
+
lastUsed?: Prisma.SortOrder
|
|
235
|
+
createdAt?: Prisma.SortOrder
|
|
236
|
+
expiresAt?: Prisma.SortOrder
|
|
237
|
+
isActive?: Prisma.SortOrder
|
|
238
|
+
blacklisted?: Prisma.SortOrder
|
|
239
|
+
user?: Prisma.UserOrderByWithRelationInput
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export type RefreshTokenWhereUniqueInput = Prisma.AtLeast<{
|
|
243
|
+
id?: string
|
|
244
|
+
token?: string
|
|
245
|
+
AND?: Prisma.RefreshTokenWhereInput | Prisma.RefreshTokenWhereInput[]
|
|
246
|
+
OR?: Prisma.RefreshTokenWhereInput[]
|
|
247
|
+
NOT?: Prisma.RefreshTokenWhereInput | Prisma.RefreshTokenWhereInput[]
|
|
248
|
+
userId?: Prisma.StringFilter<"RefreshToken"> | string
|
|
249
|
+
ip?: Prisma.StringFilter<"RefreshToken"> | string
|
|
250
|
+
userAgent?: Prisma.StringFilter<"RefreshToken"> | string
|
|
251
|
+
lastUsed?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
252
|
+
createdAt?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
253
|
+
expiresAt?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
254
|
+
isActive?: Prisma.BoolFilter<"RefreshToken"> | boolean
|
|
255
|
+
blacklisted?: Prisma.BoolFilter<"RefreshToken"> | boolean
|
|
256
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
257
|
+
}, "id" | "token">
|
|
258
|
+
|
|
259
|
+
export type RefreshTokenOrderByWithAggregationInput = {
|
|
260
|
+
id?: Prisma.SortOrder
|
|
261
|
+
token?: Prisma.SortOrder
|
|
262
|
+
userId?: Prisma.SortOrder
|
|
263
|
+
ip?: Prisma.SortOrder
|
|
264
|
+
userAgent?: Prisma.SortOrder
|
|
265
|
+
lastUsed?: Prisma.SortOrder
|
|
266
|
+
createdAt?: Prisma.SortOrder
|
|
267
|
+
expiresAt?: Prisma.SortOrder
|
|
268
|
+
isActive?: Prisma.SortOrder
|
|
269
|
+
blacklisted?: Prisma.SortOrder
|
|
270
|
+
_count?: Prisma.RefreshTokenCountOrderByAggregateInput
|
|
271
|
+
_max?: Prisma.RefreshTokenMaxOrderByAggregateInput
|
|
272
|
+
_min?: Prisma.RefreshTokenMinOrderByAggregateInput
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type RefreshTokenScalarWhereWithAggregatesInput = {
|
|
276
|
+
AND?: Prisma.RefreshTokenScalarWhereWithAggregatesInput | Prisma.RefreshTokenScalarWhereWithAggregatesInput[]
|
|
277
|
+
OR?: Prisma.RefreshTokenScalarWhereWithAggregatesInput[]
|
|
278
|
+
NOT?: Prisma.RefreshTokenScalarWhereWithAggregatesInput | Prisma.RefreshTokenScalarWhereWithAggregatesInput[]
|
|
279
|
+
id?: Prisma.StringWithAggregatesFilter<"RefreshToken"> | string
|
|
280
|
+
token?: Prisma.StringWithAggregatesFilter<"RefreshToken"> | string
|
|
281
|
+
userId?: Prisma.StringWithAggregatesFilter<"RefreshToken"> | string
|
|
282
|
+
ip?: Prisma.StringWithAggregatesFilter<"RefreshToken"> | string
|
|
283
|
+
userAgent?: Prisma.StringWithAggregatesFilter<"RefreshToken"> | string
|
|
284
|
+
lastUsed?: Prisma.DateTimeWithAggregatesFilter<"RefreshToken"> | Date | string
|
|
285
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"RefreshToken"> | Date | string
|
|
286
|
+
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"RefreshToken"> | Date | string
|
|
287
|
+
isActive?: Prisma.BoolWithAggregatesFilter<"RefreshToken"> | boolean
|
|
288
|
+
blacklisted?: Prisma.BoolWithAggregatesFilter<"RefreshToken"> | boolean
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export type RefreshTokenCreateInput = {
|
|
292
|
+
id?: string
|
|
293
|
+
token: string
|
|
294
|
+
ip: string
|
|
295
|
+
userAgent: string
|
|
296
|
+
lastUsed?: Date | string
|
|
297
|
+
createdAt?: Date | string
|
|
298
|
+
expiresAt: Date | string
|
|
299
|
+
isActive?: boolean
|
|
300
|
+
blacklisted?: boolean
|
|
301
|
+
user: Prisma.UserCreateNestedOneWithoutRefreshTokensInput
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type RefreshTokenUncheckedCreateInput = {
|
|
305
|
+
id?: string
|
|
306
|
+
token: string
|
|
307
|
+
userId: string
|
|
308
|
+
ip: string
|
|
309
|
+
userAgent: string
|
|
310
|
+
lastUsed?: Date | string
|
|
311
|
+
createdAt?: Date | string
|
|
312
|
+
expiresAt: Date | string
|
|
313
|
+
isActive?: boolean
|
|
314
|
+
blacklisted?: boolean
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export type RefreshTokenUpdateInput = {
|
|
318
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
319
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
320
|
+
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
321
|
+
userAgent?: Prisma.StringFieldUpdateOperationsInput | string
|
|
322
|
+
lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
323
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
324
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
325
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
326
|
+
blacklisted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
327
|
+
user?: Prisma.UserUpdateOneRequiredWithoutRefreshTokensNestedInput
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export type RefreshTokenUncheckedUpdateInput = {
|
|
331
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
332
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
333
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
334
|
+
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
335
|
+
userAgent?: Prisma.StringFieldUpdateOperationsInput | string
|
|
336
|
+
lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
337
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
338
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
339
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
340
|
+
blacklisted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export type RefreshTokenCreateManyInput = {
|
|
344
|
+
id?: string
|
|
345
|
+
token: string
|
|
346
|
+
userId: string
|
|
347
|
+
ip: string
|
|
348
|
+
userAgent: string
|
|
349
|
+
lastUsed?: Date | string
|
|
350
|
+
createdAt?: Date | string
|
|
351
|
+
expiresAt: Date | string
|
|
352
|
+
isActive?: boolean
|
|
353
|
+
blacklisted?: boolean
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type RefreshTokenUpdateManyMutationInput = {
|
|
357
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
358
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
359
|
+
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
360
|
+
userAgent?: Prisma.StringFieldUpdateOperationsInput | string
|
|
361
|
+
lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
362
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
363
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
364
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
365
|
+
blacklisted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export type RefreshTokenUncheckedUpdateManyInput = {
|
|
369
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
370
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
371
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
372
|
+
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
373
|
+
userAgent?: Prisma.StringFieldUpdateOperationsInput | string
|
|
374
|
+
lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
375
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
376
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
377
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
378
|
+
blacklisted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export type RefreshTokenListRelationFilter = {
|
|
382
|
+
every?: Prisma.RefreshTokenWhereInput
|
|
383
|
+
some?: Prisma.RefreshTokenWhereInput
|
|
384
|
+
none?: Prisma.RefreshTokenWhereInput
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export type RefreshTokenOrderByRelationAggregateInput = {
|
|
388
|
+
_count?: Prisma.SortOrder
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export type RefreshTokenCountOrderByAggregateInput = {
|
|
392
|
+
id?: Prisma.SortOrder
|
|
393
|
+
token?: Prisma.SortOrder
|
|
394
|
+
userId?: Prisma.SortOrder
|
|
395
|
+
ip?: Prisma.SortOrder
|
|
396
|
+
userAgent?: Prisma.SortOrder
|
|
397
|
+
lastUsed?: Prisma.SortOrder
|
|
398
|
+
createdAt?: Prisma.SortOrder
|
|
399
|
+
expiresAt?: Prisma.SortOrder
|
|
400
|
+
isActive?: Prisma.SortOrder
|
|
401
|
+
blacklisted?: Prisma.SortOrder
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export type RefreshTokenMaxOrderByAggregateInput = {
|
|
405
|
+
id?: Prisma.SortOrder
|
|
406
|
+
token?: Prisma.SortOrder
|
|
407
|
+
userId?: Prisma.SortOrder
|
|
408
|
+
ip?: Prisma.SortOrder
|
|
409
|
+
userAgent?: Prisma.SortOrder
|
|
410
|
+
lastUsed?: Prisma.SortOrder
|
|
411
|
+
createdAt?: Prisma.SortOrder
|
|
412
|
+
expiresAt?: Prisma.SortOrder
|
|
413
|
+
isActive?: Prisma.SortOrder
|
|
414
|
+
blacklisted?: Prisma.SortOrder
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export type RefreshTokenMinOrderByAggregateInput = {
|
|
418
|
+
id?: Prisma.SortOrder
|
|
419
|
+
token?: Prisma.SortOrder
|
|
420
|
+
userId?: Prisma.SortOrder
|
|
421
|
+
ip?: Prisma.SortOrder
|
|
422
|
+
userAgent?: Prisma.SortOrder
|
|
423
|
+
lastUsed?: Prisma.SortOrder
|
|
424
|
+
createdAt?: Prisma.SortOrder
|
|
425
|
+
expiresAt?: Prisma.SortOrder
|
|
426
|
+
isActive?: Prisma.SortOrder
|
|
427
|
+
blacklisted?: Prisma.SortOrder
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export type RefreshTokenCreateNestedManyWithoutUserInput = {
|
|
431
|
+
create?: Prisma.XOR<Prisma.RefreshTokenCreateWithoutUserInput, Prisma.RefreshTokenUncheckedCreateWithoutUserInput> | Prisma.RefreshTokenCreateWithoutUserInput[] | Prisma.RefreshTokenUncheckedCreateWithoutUserInput[]
|
|
432
|
+
connectOrCreate?: Prisma.RefreshTokenCreateOrConnectWithoutUserInput | Prisma.RefreshTokenCreateOrConnectWithoutUserInput[]
|
|
433
|
+
createMany?: Prisma.RefreshTokenCreateManyUserInputEnvelope
|
|
434
|
+
connect?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export type RefreshTokenUncheckedCreateNestedManyWithoutUserInput = {
|
|
438
|
+
create?: Prisma.XOR<Prisma.RefreshTokenCreateWithoutUserInput, Prisma.RefreshTokenUncheckedCreateWithoutUserInput> | Prisma.RefreshTokenCreateWithoutUserInput[] | Prisma.RefreshTokenUncheckedCreateWithoutUserInput[]
|
|
439
|
+
connectOrCreate?: Prisma.RefreshTokenCreateOrConnectWithoutUserInput | Prisma.RefreshTokenCreateOrConnectWithoutUserInput[]
|
|
440
|
+
createMany?: Prisma.RefreshTokenCreateManyUserInputEnvelope
|
|
441
|
+
connect?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export type RefreshTokenUpdateManyWithoutUserNestedInput = {
|
|
445
|
+
create?: Prisma.XOR<Prisma.RefreshTokenCreateWithoutUserInput, Prisma.RefreshTokenUncheckedCreateWithoutUserInput> | Prisma.RefreshTokenCreateWithoutUserInput[] | Prisma.RefreshTokenUncheckedCreateWithoutUserInput[]
|
|
446
|
+
connectOrCreate?: Prisma.RefreshTokenCreateOrConnectWithoutUserInput | Prisma.RefreshTokenCreateOrConnectWithoutUserInput[]
|
|
447
|
+
upsert?: Prisma.RefreshTokenUpsertWithWhereUniqueWithoutUserInput | Prisma.RefreshTokenUpsertWithWhereUniqueWithoutUserInput[]
|
|
448
|
+
createMany?: Prisma.RefreshTokenCreateManyUserInputEnvelope
|
|
449
|
+
set?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
450
|
+
disconnect?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
451
|
+
delete?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
452
|
+
connect?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
453
|
+
update?: Prisma.RefreshTokenUpdateWithWhereUniqueWithoutUserInput | Prisma.RefreshTokenUpdateWithWhereUniqueWithoutUserInput[]
|
|
454
|
+
updateMany?: Prisma.RefreshTokenUpdateManyWithWhereWithoutUserInput | Prisma.RefreshTokenUpdateManyWithWhereWithoutUserInput[]
|
|
455
|
+
deleteMany?: Prisma.RefreshTokenScalarWhereInput | Prisma.RefreshTokenScalarWhereInput[]
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export type RefreshTokenUncheckedUpdateManyWithoutUserNestedInput = {
|
|
459
|
+
create?: Prisma.XOR<Prisma.RefreshTokenCreateWithoutUserInput, Prisma.RefreshTokenUncheckedCreateWithoutUserInput> | Prisma.RefreshTokenCreateWithoutUserInput[] | Prisma.RefreshTokenUncheckedCreateWithoutUserInput[]
|
|
460
|
+
connectOrCreate?: Prisma.RefreshTokenCreateOrConnectWithoutUserInput | Prisma.RefreshTokenCreateOrConnectWithoutUserInput[]
|
|
461
|
+
upsert?: Prisma.RefreshTokenUpsertWithWhereUniqueWithoutUserInput | Prisma.RefreshTokenUpsertWithWhereUniqueWithoutUserInput[]
|
|
462
|
+
createMany?: Prisma.RefreshTokenCreateManyUserInputEnvelope
|
|
463
|
+
set?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
464
|
+
disconnect?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
465
|
+
delete?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
466
|
+
connect?: Prisma.RefreshTokenWhereUniqueInput | Prisma.RefreshTokenWhereUniqueInput[]
|
|
467
|
+
update?: Prisma.RefreshTokenUpdateWithWhereUniqueWithoutUserInput | Prisma.RefreshTokenUpdateWithWhereUniqueWithoutUserInput[]
|
|
468
|
+
updateMany?: Prisma.RefreshTokenUpdateManyWithWhereWithoutUserInput | Prisma.RefreshTokenUpdateManyWithWhereWithoutUserInput[]
|
|
469
|
+
deleteMany?: Prisma.RefreshTokenScalarWhereInput | Prisma.RefreshTokenScalarWhereInput[]
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export type RefreshTokenCreateWithoutUserInput = {
|
|
473
|
+
id?: string
|
|
474
|
+
token: string
|
|
475
|
+
ip: string
|
|
476
|
+
userAgent: string
|
|
477
|
+
lastUsed?: Date | string
|
|
478
|
+
createdAt?: Date | string
|
|
479
|
+
expiresAt: Date | string
|
|
480
|
+
isActive?: boolean
|
|
481
|
+
blacklisted?: boolean
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export type RefreshTokenUncheckedCreateWithoutUserInput = {
|
|
485
|
+
id?: string
|
|
486
|
+
token: string
|
|
487
|
+
ip: string
|
|
488
|
+
userAgent: string
|
|
489
|
+
lastUsed?: Date | string
|
|
490
|
+
createdAt?: Date | string
|
|
491
|
+
expiresAt: Date | string
|
|
492
|
+
isActive?: boolean
|
|
493
|
+
blacklisted?: boolean
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
export type RefreshTokenCreateOrConnectWithoutUserInput = {
|
|
497
|
+
where: Prisma.RefreshTokenWhereUniqueInput
|
|
498
|
+
create: Prisma.XOR<Prisma.RefreshTokenCreateWithoutUserInput, Prisma.RefreshTokenUncheckedCreateWithoutUserInput>
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export type RefreshTokenCreateManyUserInputEnvelope = {
|
|
502
|
+
data: Prisma.RefreshTokenCreateManyUserInput | Prisma.RefreshTokenCreateManyUserInput[]
|
|
503
|
+
skipDuplicates?: boolean
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export type RefreshTokenUpsertWithWhereUniqueWithoutUserInput = {
|
|
507
|
+
where: Prisma.RefreshTokenWhereUniqueInput
|
|
508
|
+
update: Prisma.XOR<Prisma.RefreshTokenUpdateWithoutUserInput, Prisma.RefreshTokenUncheckedUpdateWithoutUserInput>
|
|
509
|
+
create: Prisma.XOR<Prisma.RefreshTokenCreateWithoutUserInput, Prisma.RefreshTokenUncheckedCreateWithoutUserInput>
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export type RefreshTokenUpdateWithWhereUniqueWithoutUserInput = {
|
|
513
|
+
where: Prisma.RefreshTokenWhereUniqueInput
|
|
514
|
+
data: Prisma.XOR<Prisma.RefreshTokenUpdateWithoutUserInput, Prisma.RefreshTokenUncheckedUpdateWithoutUserInput>
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export type RefreshTokenUpdateManyWithWhereWithoutUserInput = {
|
|
518
|
+
where: Prisma.RefreshTokenScalarWhereInput
|
|
519
|
+
data: Prisma.XOR<Prisma.RefreshTokenUpdateManyMutationInput, Prisma.RefreshTokenUncheckedUpdateManyWithoutUserInput>
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export type RefreshTokenScalarWhereInput = {
|
|
523
|
+
AND?: Prisma.RefreshTokenScalarWhereInput | Prisma.RefreshTokenScalarWhereInput[]
|
|
524
|
+
OR?: Prisma.RefreshTokenScalarWhereInput[]
|
|
525
|
+
NOT?: Prisma.RefreshTokenScalarWhereInput | Prisma.RefreshTokenScalarWhereInput[]
|
|
526
|
+
id?: Prisma.StringFilter<"RefreshToken"> | string
|
|
527
|
+
token?: Prisma.StringFilter<"RefreshToken"> | string
|
|
528
|
+
userId?: Prisma.StringFilter<"RefreshToken"> | string
|
|
529
|
+
ip?: Prisma.StringFilter<"RefreshToken"> | string
|
|
530
|
+
userAgent?: Prisma.StringFilter<"RefreshToken"> | string
|
|
531
|
+
lastUsed?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
532
|
+
createdAt?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
533
|
+
expiresAt?: Prisma.DateTimeFilter<"RefreshToken"> | Date | string
|
|
534
|
+
isActive?: Prisma.BoolFilter<"RefreshToken"> | boolean
|
|
535
|
+
blacklisted?: Prisma.BoolFilter<"RefreshToken"> | boolean
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export type RefreshTokenCreateManyUserInput = {
|
|
539
|
+
id?: string
|
|
540
|
+
token: string
|
|
541
|
+
ip: string
|
|
542
|
+
userAgent: string
|
|
543
|
+
lastUsed?: Date | string
|
|
544
|
+
createdAt?: Date | string
|
|
545
|
+
expiresAt: Date | string
|
|
546
|
+
isActive?: boolean
|
|
547
|
+
blacklisted?: boolean
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
export type RefreshTokenUpdateWithoutUserInput = {
|
|
551
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
552
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
553
|
+
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
554
|
+
userAgent?: Prisma.StringFieldUpdateOperationsInput | string
|
|
555
|
+
lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
556
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
557
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
558
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
559
|
+
blacklisted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export type RefreshTokenUncheckedUpdateWithoutUserInput = {
|
|
563
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
564
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
565
|
+
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
566
|
+
userAgent?: Prisma.StringFieldUpdateOperationsInput | string
|
|
567
|
+
lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
568
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
569
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
570
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
571
|
+
blacklisted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export type RefreshTokenUncheckedUpdateManyWithoutUserInput = {
|
|
575
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
576
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
577
|
+
ip?: Prisma.StringFieldUpdateOperationsInput | string
|
|
578
|
+
userAgent?: Prisma.StringFieldUpdateOperationsInput | string
|
|
579
|
+
lastUsed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
580
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
581
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
582
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
583
|
+
blacklisted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
export type RefreshTokenSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
589
|
+
id?: boolean
|
|
590
|
+
token?: boolean
|
|
591
|
+
userId?: boolean
|
|
592
|
+
ip?: boolean
|
|
593
|
+
userAgent?: boolean
|
|
594
|
+
lastUsed?: boolean
|
|
595
|
+
createdAt?: boolean
|
|
596
|
+
expiresAt?: boolean
|
|
597
|
+
isActive?: boolean
|
|
598
|
+
blacklisted?: boolean
|
|
599
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
600
|
+
}, ExtArgs["result"]["refreshToken"]>
|
|
601
|
+
|
|
602
|
+
export type RefreshTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
603
|
+
id?: boolean
|
|
604
|
+
token?: boolean
|
|
605
|
+
userId?: boolean
|
|
606
|
+
ip?: boolean
|
|
607
|
+
userAgent?: boolean
|
|
608
|
+
lastUsed?: boolean
|
|
609
|
+
createdAt?: boolean
|
|
610
|
+
expiresAt?: boolean
|
|
611
|
+
isActive?: boolean
|
|
612
|
+
blacklisted?: boolean
|
|
613
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
614
|
+
}, ExtArgs["result"]["refreshToken"]>
|
|
615
|
+
|
|
616
|
+
export type RefreshTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
617
|
+
id?: boolean
|
|
618
|
+
token?: boolean
|
|
619
|
+
userId?: boolean
|
|
620
|
+
ip?: boolean
|
|
621
|
+
userAgent?: boolean
|
|
622
|
+
lastUsed?: boolean
|
|
623
|
+
createdAt?: boolean
|
|
624
|
+
expiresAt?: boolean
|
|
625
|
+
isActive?: boolean
|
|
626
|
+
blacklisted?: boolean
|
|
627
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
628
|
+
}, ExtArgs["result"]["refreshToken"]>
|
|
629
|
+
|
|
630
|
+
export type RefreshTokenSelectScalar = {
|
|
631
|
+
id?: boolean
|
|
632
|
+
token?: boolean
|
|
633
|
+
userId?: boolean
|
|
634
|
+
ip?: boolean
|
|
635
|
+
userAgent?: boolean
|
|
636
|
+
lastUsed?: boolean
|
|
637
|
+
createdAt?: boolean
|
|
638
|
+
expiresAt?: boolean
|
|
639
|
+
isActive?: boolean
|
|
640
|
+
blacklisted?: boolean
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export type RefreshTokenOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "token" | "userId" | "ip" | "userAgent" | "lastUsed" | "createdAt" | "expiresAt" | "isActive" | "blacklisted", ExtArgs["result"]["refreshToken"]>
|
|
644
|
+
export type RefreshTokenInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
645
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
646
|
+
}
|
|
647
|
+
export type RefreshTokenIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
648
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
649
|
+
}
|
|
650
|
+
export type RefreshTokenIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
651
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export type $RefreshTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
655
|
+
name: "RefreshToken"
|
|
656
|
+
objects: {
|
|
657
|
+
user: Prisma.$UserPayload<ExtArgs>
|
|
658
|
+
}
|
|
659
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
660
|
+
id: string
|
|
661
|
+
token: string
|
|
662
|
+
userId: string
|
|
663
|
+
ip: string
|
|
664
|
+
userAgent: string
|
|
665
|
+
lastUsed: Date
|
|
666
|
+
createdAt: Date
|
|
667
|
+
expiresAt: Date
|
|
668
|
+
isActive: boolean
|
|
669
|
+
blacklisted: boolean
|
|
670
|
+
}, ExtArgs["result"]["refreshToken"]>
|
|
671
|
+
composites: {}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export type RefreshTokenGetPayload<S extends boolean | null | undefined | RefreshTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload, S>
|
|
675
|
+
|
|
676
|
+
export type RefreshTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
677
|
+
Omit<RefreshTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
678
|
+
select?: RefreshTokenCountAggregateInputType | true
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
export interface RefreshTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
682
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RefreshToken'], meta: { name: 'RefreshToken' } }
|
|
683
|
+
/**
|
|
684
|
+
* Find zero or one RefreshToken that matches the filter.
|
|
685
|
+
* @param {RefreshTokenFindUniqueArgs} args - Arguments to find a RefreshToken
|
|
686
|
+
* @example
|
|
687
|
+
* // Get one RefreshToken
|
|
688
|
+
* const refreshToken = await prisma.refreshToken.findUnique({
|
|
689
|
+
* where: {
|
|
690
|
+
* // ... provide filter here
|
|
691
|
+
* }
|
|
692
|
+
* })
|
|
693
|
+
*/
|
|
694
|
+
findUnique<T extends RefreshTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, RefreshTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Find one RefreshToken that matches the filter or throw an error with `error.code='P2025'`
|
|
698
|
+
* if no matches were found.
|
|
699
|
+
* @param {RefreshTokenFindUniqueOrThrowArgs} args - Arguments to find a RefreshToken
|
|
700
|
+
* @example
|
|
701
|
+
* // Get one RefreshToken
|
|
702
|
+
* const refreshToken = await prisma.refreshToken.findUniqueOrThrow({
|
|
703
|
+
* where: {
|
|
704
|
+
* // ... provide filter here
|
|
705
|
+
* }
|
|
706
|
+
* })
|
|
707
|
+
*/
|
|
708
|
+
findUniqueOrThrow<T extends RefreshTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RefreshTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Find the first RefreshToken that matches the filter.
|
|
712
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
713
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
714
|
+
* @param {RefreshTokenFindFirstArgs} args - Arguments to find a RefreshToken
|
|
715
|
+
* @example
|
|
716
|
+
* // Get one RefreshToken
|
|
717
|
+
* const refreshToken = await prisma.refreshToken.findFirst({
|
|
718
|
+
* where: {
|
|
719
|
+
* // ... provide filter here
|
|
720
|
+
* }
|
|
721
|
+
* })
|
|
722
|
+
*/
|
|
723
|
+
findFirst<T extends RefreshTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, RefreshTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__RefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Find the first RefreshToken that matches the filter or
|
|
727
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
728
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
729
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
730
|
+
* @param {RefreshTokenFindFirstOrThrowArgs} args - Arguments to find a RefreshToken
|
|
731
|
+
* @example
|
|
732
|
+
* // Get one RefreshToken
|
|
733
|
+
* const refreshToken = await prisma.refreshToken.findFirstOrThrow({
|
|
734
|
+
* where: {
|
|
735
|
+
* // ... provide filter here
|
|
736
|
+
* }
|
|
737
|
+
* })
|
|
738
|
+
*/
|
|
739
|
+
findFirstOrThrow<T extends RefreshTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RefreshTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Find zero or more RefreshTokens that matches the filter.
|
|
743
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
744
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
745
|
+
* @param {RefreshTokenFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
746
|
+
* @example
|
|
747
|
+
* // Get all RefreshTokens
|
|
748
|
+
* const refreshTokens = await prisma.refreshToken.findMany()
|
|
749
|
+
*
|
|
750
|
+
* // Get first 10 RefreshTokens
|
|
751
|
+
* const refreshTokens = await prisma.refreshToken.findMany({ take: 10 })
|
|
752
|
+
*
|
|
753
|
+
* // Only select the `id`
|
|
754
|
+
* const refreshTokenWithIdOnly = await prisma.refreshToken.findMany({ select: { id: true } })
|
|
755
|
+
*
|
|
756
|
+
*/
|
|
757
|
+
findMany<T extends RefreshTokenFindManyArgs>(args?: Prisma.SelectSubset<T, RefreshTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Create a RefreshToken.
|
|
761
|
+
* @param {RefreshTokenCreateArgs} args - Arguments to create a RefreshToken.
|
|
762
|
+
* @example
|
|
763
|
+
* // Create one RefreshToken
|
|
764
|
+
* const RefreshToken = await prisma.refreshToken.create({
|
|
765
|
+
* data: {
|
|
766
|
+
* // ... data to create a RefreshToken
|
|
767
|
+
* }
|
|
768
|
+
* })
|
|
769
|
+
*
|
|
770
|
+
*/
|
|
771
|
+
create<T extends RefreshTokenCreateArgs>(args: Prisma.SelectSubset<T, RefreshTokenCreateArgs<ExtArgs>>): Prisma.Prisma__RefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Create many RefreshTokens.
|
|
775
|
+
* @param {RefreshTokenCreateManyArgs} args - Arguments to create many RefreshTokens.
|
|
776
|
+
* @example
|
|
777
|
+
* // Create many RefreshTokens
|
|
778
|
+
* const refreshToken = await prisma.refreshToken.createMany({
|
|
779
|
+
* data: [
|
|
780
|
+
* // ... provide data here
|
|
781
|
+
* ]
|
|
782
|
+
* })
|
|
783
|
+
*
|
|
784
|
+
*/
|
|
785
|
+
createMany<T extends RefreshTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, RefreshTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Create many RefreshTokens and returns the data saved in the database.
|
|
789
|
+
* @param {RefreshTokenCreateManyAndReturnArgs} args - Arguments to create many RefreshTokens.
|
|
790
|
+
* @example
|
|
791
|
+
* // Create many RefreshTokens
|
|
792
|
+
* const refreshToken = await prisma.refreshToken.createManyAndReturn({
|
|
793
|
+
* data: [
|
|
794
|
+
* // ... provide data here
|
|
795
|
+
* ]
|
|
796
|
+
* })
|
|
797
|
+
*
|
|
798
|
+
* // Create many RefreshTokens and only return the `id`
|
|
799
|
+
* const refreshTokenWithIdOnly = await prisma.refreshToken.createManyAndReturn({
|
|
800
|
+
* select: { id: true },
|
|
801
|
+
* data: [
|
|
802
|
+
* // ... provide data here
|
|
803
|
+
* ]
|
|
804
|
+
* })
|
|
805
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
806
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
807
|
+
*
|
|
808
|
+
*/
|
|
809
|
+
createManyAndReturn<T extends RefreshTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RefreshTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Delete a RefreshToken.
|
|
813
|
+
* @param {RefreshTokenDeleteArgs} args - Arguments to delete one RefreshToken.
|
|
814
|
+
* @example
|
|
815
|
+
* // Delete one RefreshToken
|
|
816
|
+
* const RefreshToken = await prisma.refreshToken.delete({
|
|
817
|
+
* where: {
|
|
818
|
+
* // ... filter to delete one RefreshToken
|
|
819
|
+
* }
|
|
820
|
+
* })
|
|
821
|
+
*
|
|
822
|
+
*/
|
|
823
|
+
delete<T extends RefreshTokenDeleteArgs>(args: Prisma.SelectSubset<T, RefreshTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__RefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Update one RefreshToken.
|
|
827
|
+
* @param {RefreshTokenUpdateArgs} args - Arguments to update one RefreshToken.
|
|
828
|
+
* @example
|
|
829
|
+
* // Update one RefreshToken
|
|
830
|
+
* const refreshToken = await prisma.refreshToken.update({
|
|
831
|
+
* where: {
|
|
832
|
+
* // ... provide filter here
|
|
833
|
+
* },
|
|
834
|
+
* data: {
|
|
835
|
+
* // ... provide data here
|
|
836
|
+
* }
|
|
837
|
+
* })
|
|
838
|
+
*
|
|
839
|
+
*/
|
|
840
|
+
update<T extends RefreshTokenUpdateArgs>(args: Prisma.SelectSubset<T, RefreshTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__RefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Delete zero or more RefreshTokens.
|
|
844
|
+
* @param {RefreshTokenDeleteManyArgs} args - Arguments to filter RefreshTokens to delete.
|
|
845
|
+
* @example
|
|
846
|
+
* // Delete a few RefreshTokens
|
|
847
|
+
* const { count } = await prisma.refreshToken.deleteMany({
|
|
848
|
+
* where: {
|
|
849
|
+
* // ... provide filter here
|
|
850
|
+
* }
|
|
851
|
+
* })
|
|
852
|
+
*
|
|
853
|
+
*/
|
|
854
|
+
deleteMany<T extends RefreshTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, RefreshTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Update zero or more RefreshTokens.
|
|
858
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
859
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
860
|
+
* @param {RefreshTokenUpdateManyArgs} args - Arguments to update one or more rows.
|
|
861
|
+
* @example
|
|
862
|
+
* // Update many RefreshTokens
|
|
863
|
+
* const refreshToken = await prisma.refreshToken.updateMany({
|
|
864
|
+
* where: {
|
|
865
|
+
* // ... provide filter here
|
|
866
|
+
* },
|
|
867
|
+
* data: {
|
|
868
|
+
* // ... provide data here
|
|
869
|
+
* }
|
|
870
|
+
* })
|
|
871
|
+
*
|
|
872
|
+
*/
|
|
873
|
+
updateMany<T extends RefreshTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, RefreshTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Update zero or more RefreshTokens and returns the data updated in the database.
|
|
877
|
+
* @param {RefreshTokenUpdateManyAndReturnArgs} args - Arguments to update many RefreshTokens.
|
|
878
|
+
* @example
|
|
879
|
+
* // Update many RefreshTokens
|
|
880
|
+
* const refreshToken = await prisma.refreshToken.updateManyAndReturn({
|
|
881
|
+
* where: {
|
|
882
|
+
* // ... provide filter here
|
|
883
|
+
* },
|
|
884
|
+
* data: [
|
|
885
|
+
* // ... provide data here
|
|
886
|
+
* ]
|
|
887
|
+
* })
|
|
888
|
+
*
|
|
889
|
+
* // Update zero or more RefreshTokens and only return the `id`
|
|
890
|
+
* const refreshTokenWithIdOnly = await prisma.refreshToken.updateManyAndReturn({
|
|
891
|
+
* select: { id: true },
|
|
892
|
+
* where: {
|
|
893
|
+
* // ... provide filter here
|
|
894
|
+
* },
|
|
895
|
+
* data: [
|
|
896
|
+
* // ... provide data here
|
|
897
|
+
* ]
|
|
898
|
+
* })
|
|
899
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
900
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
901
|
+
*
|
|
902
|
+
*/
|
|
903
|
+
updateManyAndReturn<T extends RefreshTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RefreshTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Create or update one RefreshToken.
|
|
907
|
+
* @param {RefreshTokenUpsertArgs} args - Arguments to update or create a RefreshToken.
|
|
908
|
+
* @example
|
|
909
|
+
* // Update or create a RefreshToken
|
|
910
|
+
* const refreshToken = await prisma.refreshToken.upsert({
|
|
911
|
+
* create: {
|
|
912
|
+
* // ... data to create a RefreshToken
|
|
913
|
+
* },
|
|
914
|
+
* update: {
|
|
915
|
+
* // ... in case it already exists, update
|
|
916
|
+
* },
|
|
917
|
+
* where: {
|
|
918
|
+
* // ... the filter for the RefreshToken we want to update
|
|
919
|
+
* }
|
|
920
|
+
* })
|
|
921
|
+
*/
|
|
922
|
+
upsert<T extends RefreshTokenUpsertArgs>(args: Prisma.SelectSubset<T, RefreshTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__RefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$RefreshTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Count the number of RefreshTokens.
|
|
927
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
928
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
929
|
+
* @param {RefreshTokenCountArgs} args - Arguments to filter RefreshTokens to count.
|
|
930
|
+
* @example
|
|
931
|
+
* // Count the number of RefreshTokens
|
|
932
|
+
* const count = await prisma.refreshToken.count({
|
|
933
|
+
* where: {
|
|
934
|
+
* // ... the filter for the RefreshTokens we want to count
|
|
935
|
+
* }
|
|
936
|
+
* })
|
|
937
|
+
**/
|
|
938
|
+
count<T extends RefreshTokenCountArgs>(
|
|
939
|
+
args?: Prisma.Subset<T, RefreshTokenCountArgs>,
|
|
940
|
+
): Prisma.PrismaPromise<
|
|
941
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
942
|
+
? T['select'] extends true
|
|
943
|
+
? number
|
|
944
|
+
: Prisma.GetScalarType<T['select'], RefreshTokenCountAggregateOutputType>
|
|
945
|
+
: number
|
|
946
|
+
>
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* Allows you to perform aggregations operations on a RefreshToken.
|
|
950
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
951
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
952
|
+
* @param {RefreshTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
953
|
+
* @example
|
|
954
|
+
* // Ordered by age ascending
|
|
955
|
+
* // Where email contains prisma.io
|
|
956
|
+
* // Limited to the 10 users
|
|
957
|
+
* const aggregations = await prisma.user.aggregate({
|
|
958
|
+
* _avg: {
|
|
959
|
+
* age: true,
|
|
960
|
+
* },
|
|
961
|
+
* where: {
|
|
962
|
+
* email: {
|
|
963
|
+
* contains: "prisma.io",
|
|
964
|
+
* },
|
|
965
|
+
* },
|
|
966
|
+
* orderBy: {
|
|
967
|
+
* age: "asc",
|
|
968
|
+
* },
|
|
969
|
+
* take: 10,
|
|
970
|
+
* })
|
|
971
|
+
**/
|
|
972
|
+
aggregate<T extends RefreshTokenAggregateArgs>(args: Prisma.Subset<T, RefreshTokenAggregateArgs>): Prisma.PrismaPromise<GetRefreshTokenAggregateType<T>>
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Group by RefreshToken.
|
|
976
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
977
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
978
|
+
* @param {RefreshTokenGroupByArgs} args - Group by arguments.
|
|
979
|
+
* @example
|
|
980
|
+
* // Group by city, order by createdAt, get count
|
|
981
|
+
* const result = await prisma.user.groupBy({
|
|
982
|
+
* by: ['city', 'createdAt'],
|
|
983
|
+
* orderBy: {
|
|
984
|
+
* createdAt: true
|
|
985
|
+
* },
|
|
986
|
+
* _count: {
|
|
987
|
+
* _all: true
|
|
988
|
+
* },
|
|
989
|
+
* })
|
|
990
|
+
*
|
|
991
|
+
**/
|
|
992
|
+
groupBy<
|
|
993
|
+
T extends RefreshTokenGroupByArgs,
|
|
994
|
+
HasSelectOrTake extends Prisma.Or<
|
|
995
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
996
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
997
|
+
>,
|
|
998
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
999
|
+
? { orderBy: RefreshTokenGroupByArgs['orderBy'] }
|
|
1000
|
+
: { orderBy?: RefreshTokenGroupByArgs['orderBy'] },
|
|
1001
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1002
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1003
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1004
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1005
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1006
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1007
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1008
|
+
? `Error: "by" must not be empty.`
|
|
1009
|
+
: HavingValid extends Prisma.False
|
|
1010
|
+
? {
|
|
1011
|
+
[P in HavingFields]: P extends ByFields
|
|
1012
|
+
? never
|
|
1013
|
+
: P extends string
|
|
1014
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1015
|
+
: [
|
|
1016
|
+
Error,
|
|
1017
|
+
'Field ',
|
|
1018
|
+
P,
|
|
1019
|
+
` in "having" needs to be provided in "by"`,
|
|
1020
|
+
]
|
|
1021
|
+
}[HavingFields]
|
|
1022
|
+
: 'take' extends Prisma.Keys<T>
|
|
1023
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1024
|
+
? ByValid extends Prisma.True
|
|
1025
|
+
? {}
|
|
1026
|
+
: {
|
|
1027
|
+
[P in OrderFields]: P extends ByFields
|
|
1028
|
+
? never
|
|
1029
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1030
|
+
}[OrderFields]
|
|
1031
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1032
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1033
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1034
|
+
? ByValid extends Prisma.True
|
|
1035
|
+
? {}
|
|
1036
|
+
: {
|
|
1037
|
+
[P in OrderFields]: P extends ByFields
|
|
1038
|
+
? never
|
|
1039
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1040
|
+
}[OrderFields]
|
|
1041
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1042
|
+
: ByValid extends Prisma.True
|
|
1043
|
+
? {}
|
|
1044
|
+
: {
|
|
1045
|
+
[P in OrderFields]: P extends ByFields
|
|
1046
|
+
? never
|
|
1047
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1048
|
+
}[OrderFields]
|
|
1049
|
+
>(args: Prisma.SubsetIntersection<T, RefreshTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRefreshTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1050
|
+
/**
|
|
1051
|
+
* Fields of the RefreshToken model
|
|
1052
|
+
*/
|
|
1053
|
+
readonly fields: RefreshTokenFieldRefs;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* The delegate class that acts as a "Promise-like" for RefreshToken.
|
|
1058
|
+
* Why is this prefixed with `Prisma__`?
|
|
1059
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1060
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1061
|
+
*/
|
|
1062
|
+
export interface Prisma__RefreshTokenClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1063
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1064
|
+
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>
|
|
1065
|
+
/**
|
|
1066
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1067
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1068
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1069
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1070
|
+
*/
|
|
1071
|
+
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>
|
|
1072
|
+
/**
|
|
1073
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1074
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1075
|
+
* @returns A Promise for the completion of the callback.
|
|
1076
|
+
*/
|
|
1077
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1078
|
+
/**
|
|
1079
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1080
|
+
* resolved value cannot be modified from the callback.
|
|
1081
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1082
|
+
* @returns A Promise for the completion of the callback.
|
|
1083
|
+
*/
|
|
1084
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Fields of the RefreshToken model
|
|
1092
|
+
*/
|
|
1093
|
+
export interface RefreshTokenFieldRefs {
|
|
1094
|
+
readonly id: Prisma.FieldRef<"RefreshToken", 'String'>
|
|
1095
|
+
readonly token: Prisma.FieldRef<"RefreshToken", 'String'>
|
|
1096
|
+
readonly userId: Prisma.FieldRef<"RefreshToken", 'String'>
|
|
1097
|
+
readonly ip: Prisma.FieldRef<"RefreshToken", 'String'>
|
|
1098
|
+
readonly userAgent: Prisma.FieldRef<"RefreshToken", 'String'>
|
|
1099
|
+
readonly lastUsed: Prisma.FieldRef<"RefreshToken", 'DateTime'>
|
|
1100
|
+
readonly createdAt: Prisma.FieldRef<"RefreshToken", 'DateTime'>
|
|
1101
|
+
readonly expiresAt: Prisma.FieldRef<"RefreshToken", 'DateTime'>
|
|
1102
|
+
readonly isActive: Prisma.FieldRef<"RefreshToken", 'Boolean'>
|
|
1103
|
+
readonly blacklisted: Prisma.FieldRef<"RefreshToken", 'Boolean'>
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
// Custom InputTypes
|
|
1108
|
+
/**
|
|
1109
|
+
* RefreshToken findUnique
|
|
1110
|
+
*/
|
|
1111
|
+
export type RefreshTokenFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1112
|
+
/**
|
|
1113
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1114
|
+
*/
|
|
1115
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1116
|
+
/**
|
|
1117
|
+
* Omit specific fields from the RefreshToken
|
|
1118
|
+
*/
|
|
1119
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1120
|
+
/**
|
|
1121
|
+
* Choose, which related nodes to fetch as well
|
|
1122
|
+
*/
|
|
1123
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1124
|
+
/**
|
|
1125
|
+
* Filter, which RefreshToken to fetch.
|
|
1126
|
+
*/
|
|
1127
|
+
where: Prisma.RefreshTokenWhereUniqueInput
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* RefreshToken findUniqueOrThrow
|
|
1132
|
+
*/
|
|
1133
|
+
export type RefreshTokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1134
|
+
/**
|
|
1135
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1136
|
+
*/
|
|
1137
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1138
|
+
/**
|
|
1139
|
+
* Omit specific fields from the RefreshToken
|
|
1140
|
+
*/
|
|
1141
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1142
|
+
/**
|
|
1143
|
+
* Choose, which related nodes to fetch as well
|
|
1144
|
+
*/
|
|
1145
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1146
|
+
/**
|
|
1147
|
+
* Filter, which RefreshToken to fetch.
|
|
1148
|
+
*/
|
|
1149
|
+
where: Prisma.RefreshTokenWhereUniqueInput
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* RefreshToken findFirst
|
|
1154
|
+
*/
|
|
1155
|
+
export type RefreshTokenFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1156
|
+
/**
|
|
1157
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1158
|
+
*/
|
|
1159
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1160
|
+
/**
|
|
1161
|
+
* Omit specific fields from the RefreshToken
|
|
1162
|
+
*/
|
|
1163
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1164
|
+
/**
|
|
1165
|
+
* Choose, which related nodes to fetch as well
|
|
1166
|
+
*/
|
|
1167
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1168
|
+
/**
|
|
1169
|
+
* Filter, which RefreshToken to fetch.
|
|
1170
|
+
*/
|
|
1171
|
+
where?: Prisma.RefreshTokenWhereInput
|
|
1172
|
+
/**
|
|
1173
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1174
|
+
*
|
|
1175
|
+
* Determine the order of RefreshTokens to fetch.
|
|
1176
|
+
*/
|
|
1177
|
+
orderBy?: Prisma.RefreshTokenOrderByWithRelationInput | Prisma.RefreshTokenOrderByWithRelationInput[]
|
|
1178
|
+
/**
|
|
1179
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1180
|
+
*
|
|
1181
|
+
* Sets the position for searching for RefreshTokens.
|
|
1182
|
+
*/
|
|
1183
|
+
cursor?: Prisma.RefreshTokenWhereUniqueInput
|
|
1184
|
+
/**
|
|
1185
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1186
|
+
*
|
|
1187
|
+
* Take `±n` RefreshTokens from the position of the cursor.
|
|
1188
|
+
*/
|
|
1189
|
+
take?: number
|
|
1190
|
+
/**
|
|
1191
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1192
|
+
*
|
|
1193
|
+
* Skip the first `n` RefreshTokens.
|
|
1194
|
+
*/
|
|
1195
|
+
skip?: number
|
|
1196
|
+
/**
|
|
1197
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1198
|
+
*
|
|
1199
|
+
* Filter by unique combinations of RefreshTokens.
|
|
1200
|
+
*/
|
|
1201
|
+
distinct?: Prisma.RefreshTokenScalarFieldEnum | Prisma.RefreshTokenScalarFieldEnum[]
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* RefreshToken findFirstOrThrow
|
|
1206
|
+
*/
|
|
1207
|
+
export type RefreshTokenFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1208
|
+
/**
|
|
1209
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1210
|
+
*/
|
|
1211
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1212
|
+
/**
|
|
1213
|
+
* Omit specific fields from the RefreshToken
|
|
1214
|
+
*/
|
|
1215
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1216
|
+
/**
|
|
1217
|
+
* Choose, which related nodes to fetch as well
|
|
1218
|
+
*/
|
|
1219
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1220
|
+
/**
|
|
1221
|
+
* Filter, which RefreshToken to fetch.
|
|
1222
|
+
*/
|
|
1223
|
+
where?: Prisma.RefreshTokenWhereInput
|
|
1224
|
+
/**
|
|
1225
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1226
|
+
*
|
|
1227
|
+
* Determine the order of RefreshTokens to fetch.
|
|
1228
|
+
*/
|
|
1229
|
+
orderBy?: Prisma.RefreshTokenOrderByWithRelationInput | Prisma.RefreshTokenOrderByWithRelationInput[]
|
|
1230
|
+
/**
|
|
1231
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1232
|
+
*
|
|
1233
|
+
* Sets the position for searching for RefreshTokens.
|
|
1234
|
+
*/
|
|
1235
|
+
cursor?: Prisma.RefreshTokenWhereUniqueInput
|
|
1236
|
+
/**
|
|
1237
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1238
|
+
*
|
|
1239
|
+
* Take `±n` RefreshTokens from the position of the cursor.
|
|
1240
|
+
*/
|
|
1241
|
+
take?: number
|
|
1242
|
+
/**
|
|
1243
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1244
|
+
*
|
|
1245
|
+
* Skip the first `n` RefreshTokens.
|
|
1246
|
+
*/
|
|
1247
|
+
skip?: number
|
|
1248
|
+
/**
|
|
1249
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1250
|
+
*
|
|
1251
|
+
* Filter by unique combinations of RefreshTokens.
|
|
1252
|
+
*/
|
|
1253
|
+
distinct?: Prisma.RefreshTokenScalarFieldEnum | Prisma.RefreshTokenScalarFieldEnum[]
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* RefreshToken findMany
|
|
1258
|
+
*/
|
|
1259
|
+
export type RefreshTokenFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1260
|
+
/**
|
|
1261
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1262
|
+
*/
|
|
1263
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1264
|
+
/**
|
|
1265
|
+
* Omit specific fields from the RefreshToken
|
|
1266
|
+
*/
|
|
1267
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1268
|
+
/**
|
|
1269
|
+
* Choose, which related nodes to fetch as well
|
|
1270
|
+
*/
|
|
1271
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1272
|
+
/**
|
|
1273
|
+
* Filter, which RefreshTokens to fetch.
|
|
1274
|
+
*/
|
|
1275
|
+
where?: Prisma.RefreshTokenWhereInput
|
|
1276
|
+
/**
|
|
1277
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1278
|
+
*
|
|
1279
|
+
* Determine the order of RefreshTokens to fetch.
|
|
1280
|
+
*/
|
|
1281
|
+
orderBy?: Prisma.RefreshTokenOrderByWithRelationInput | Prisma.RefreshTokenOrderByWithRelationInput[]
|
|
1282
|
+
/**
|
|
1283
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1284
|
+
*
|
|
1285
|
+
* Sets the position for listing RefreshTokens.
|
|
1286
|
+
*/
|
|
1287
|
+
cursor?: Prisma.RefreshTokenWhereUniqueInput
|
|
1288
|
+
/**
|
|
1289
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1290
|
+
*
|
|
1291
|
+
* Take `±n` RefreshTokens from the position of the cursor.
|
|
1292
|
+
*/
|
|
1293
|
+
take?: number
|
|
1294
|
+
/**
|
|
1295
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1296
|
+
*
|
|
1297
|
+
* Skip the first `n` RefreshTokens.
|
|
1298
|
+
*/
|
|
1299
|
+
skip?: number
|
|
1300
|
+
distinct?: Prisma.RefreshTokenScalarFieldEnum | Prisma.RefreshTokenScalarFieldEnum[]
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* RefreshToken create
|
|
1305
|
+
*/
|
|
1306
|
+
export type RefreshTokenCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1307
|
+
/**
|
|
1308
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1309
|
+
*/
|
|
1310
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1311
|
+
/**
|
|
1312
|
+
* Omit specific fields from the RefreshToken
|
|
1313
|
+
*/
|
|
1314
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1315
|
+
/**
|
|
1316
|
+
* Choose, which related nodes to fetch as well
|
|
1317
|
+
*/
|
|
1318
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1319
|
+
/**
|
|
1320
|
+
* The data needed to create a RefreshToken.
|
|
1321
|
+
*/
|
|
1322
|
+
data: Prisma.XOR<Prisma.RefreshTokenCreateInput, Prisma.RefreshTokenUncheckedCreateInput>
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* RefreshToken createMany
|
|
1327
|
+
*/
|
|
1328
|
+
export type RefreshTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1329
|
+
/**
|
|
1330
|
+
* The data used to create many RefreshTokens.
|
|
1331
|
+
*/
|
|
1332
|
+
data: Prisma.RefreshTokenCreateManyInput | Prisma.RefreshTokenCreateManyInput[]
|
|
1333
|
+
skipDuplicates?: boolean
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* RefreshToken createManyAndReturn
|
|
1338
|
+
*/
|
|
1339
|
+
export type RefreshTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1340
|
+
/**
|
|
1341
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1342
|
+
*/
|
|
1343
|
+
select?: Prisma.RefreshTokenSelectCreateManyAndReturn<ExtArgs> | null
|
|
1344
|
+
/**
|
|
1345
|
+
* Omit specific fields from the RefreshToken
|
|
1346
|
+
*/
|
|
1347
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1348
|
+
/**
|
|
1349
|
+
* The data used to create many RefreshTokens.
|
|
1350
|
+
*/
|
|
1351
|
+
data: Prisma.RefreshTokenCreateManyInput | Prisma.RefreshTokenCreateManyInput[]
|
|
1352
|
+
skipDuplicates?: boolean
|
|
1353
|
+
/**
|
|
1354
|
+
* Choose, which related nodes to fetch as well
|
|
1355
|
+
*/
|
|
1356
|
+
include?: Prisma.RefreshTokenIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* RefreshToken update
|
|
1361
|
+
*/
|
|
1362
|
+
export type RefreshTokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1363
|
+
/**
|
|
1364
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1365
|
+
*/
|
|
1366
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1367
|
+
/**
|
|
1368
|
+
* Omit specific fields from the RefreshToken
|
|
1369
|
+
*/
|
|
1370
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1371
|
+
/**
|
|
1372
|
+
* Choose, which related nodes to fetch as well
|
|
1373
|
+
*/
|
|
1374
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1375
|
+
/**
|
|
1376
|
+
* The data needed to update a RefreshToken.
|
|
1377
|
+
*/
|
|
1378
|
+
data: Prisma.XOR<Prisma.RefreshTokenUpdateInput, Prisma.RefreshTokenUncheckedUpdateInput>
|
|
1379
|
+
/**
|
|
1380
|
+
* Choose, which RefreshToken to update.
|
|
1381
|
+
*/
|
|
1382
|
+
where: Prisma.RefreshTokenWhereUniqueInput
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* RefreshToken updateMany
|
|
1387
|
+
*/
|
|
1388
|
+
export type RefreshTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1389
|
+
/**
|
|
1390
|
+
* The data used to update RefreshTokens.
|
|
1391
|
+
*/
|
|
1392
|
+
data: Prisma.XOR<Prisma.RefreshTokenUpdateManyMutationInput, Prisma.RefreshTokenUncheckedUpdateManyInput>
|
|
1393
|
+
/**
|
|
1394
|
+
* Filter which RefreshTokens to update
|
|
1395
|
+
*/
|
|
1396
|
+
where?: Prisma.RefreshTokenWhereInput
|
|
1397
|
+
/**
|
|
1398
|
+
* Limit how many RefreshTokens to update.
|
|
1399
|
+
*/
|
|
1400
|
+
limit?: number
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* RefreshToken updateManyAndReturn
|
|
1405
|
+
*/
|
|
1406
|
+
export type RefreshTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1407
|
+
/**
|
|
1408
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1409
|
+
*/
|
|
1410
|
+
select?: Prisma.RefreshTokenSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1411
|
+
/**
|
|
1412
|
+
* Omit specific fields from the RefreshToken
|
|
1413
|
+
*/
|
|
1414
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1415
|
+
/**
|
|
1416
|
+
* The data used to update RefreshTokens.
|
|
1417
|
+
*/
|
|
1418
|
+
data: Prisma.XOR<Prisma.RefreshTokenUpdateManyMutationInput, Prisma.RefreshTokenUncheckedUpdateManyInput>
|
|
1419
|
+
/**
|
|
1420
|
+
* Filter which RefreshTokens to update
|
|
1421
|
+
*/
|
|
1422
|
+
where?: Prisma.RefreshTokenWhereInput
|
|
1423
|
+
/**
|
|
1424
|
+
* Limit how many RefreshTokens to update.
|
|
1425
|
+
*/
|
|
1426
|
+
limit?: number
|
|
1427
|
+
/**
|
|
1428
|
+
* Choose, which related nodes to fetch as well
|
|
1429
|
+
*/
|
|
1430
|
+
include?: Prisma.RefreshTokenIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* RefreshToken upsert
|
|
1435
|
+
*/
|
|
1436
|
+
export type RefreshTokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1437
|
+
/**
|
|
1438
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1439
|
+
*/
|
|
1440
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1441
|
+
/**
|
|
1442
|
+
* Omit specific fields from the RefreshToken
|
|
1443
|
+
*/
|
|
1444
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1445
|
+
/**
|
|
1446
|
+
* Choose, which related nodes to fetch as well
|
|
1447
|
+
*/
|
|
1448
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1449
|
+
/**
|
|
1450
|
+
* The filter to search for the RefreshToken to update in case it exists.
|
|
1451
|
+
*/
|
|
1452
|
+
where: Prisma.RefreshTokenWhereUniqueInput
|
|
1453
|
+
/**
|
|
1454
|
+
* In case the RefreshToken found by the `where` argument doesn't exist, create a new RefreshToken with this data.
|
|
1455
|
+
*/
|
|
1456
|
+
create: Prisma.XOR<Prisma.RefreshTokenCreateInput, Prisma.RefreshTokenUncheckedCreateInput>
|
|
1457
|
+
/**
|
|
1458
|
+
* In case the RefreshToken was found with the provided `where` argument, update it with this data.
|
|
1459
|
+
*/
|
|
1460
|
+
update: Prisma.XOR<Prisma.RefreshTokenUpdateInput, Prisma.RefreshTokenUncheckedUpdateInput>
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* RefreshToken delete
|
|
1465
|
+
*/
|
|
1466
|
+
export type RefreshTokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1467
|
+
/**
|
|
1468
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1469
|
+
*/
|
|
1470
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1471
|
+
/**
|
|
1472
|
+
* Omit specific fields from the RefreshToken
|
|
1473
|
+
*/
|
|
1474
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1475
|
+
/**
|
|
1476
|
+
* Choose, which related nodes to fetch as well
|
|
1477
|
+
*/
|
|
1478
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1479
|
+
/**
|
|
1480
|
+
* Filter which RefreshToken to delete.
|
|
1481
|
+
*/
|
|
1482
|
+
where: Prisma.RefreshTokenWhereUniqueInput
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* RefreshToken deleteMany
|
|
1487
|
+
*/
|
|
1488
|
+
export type RefreshTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1489
|
+
/**
|
|
1490
|
+
* Filter which RefreshTokens to delete
|
|
1491
|
+
*/
|
|
1492
|
+
where?: Prisma.RefreshTokenWhereInput
|
|
1493
|
+
/**
|
|
1494
|
+
* Limit how many RefreshTokens to delete.
|
|
1495
|
+
*/
|
|
1496
|
+
limit?: number
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* RefreshToken without action
|
|
1501
|
+
*/
|
|
1502
|
+
export type RefreshTokenDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1503
|
+
/**
|
|
1504
|
+
* Select specific fields to fetch from the RefreshToken
|
|
1505
|
+
*/
|
|
1506
|
+
select?: Prisma.RefreshTokenSelect<ExtArgs> | null
|
|
1507
|
+
/**
|
|
1508
|
+
* Omit specific fields from the RefreshToken
|
|
1509
|
+
*/
|
|
1510
|
+
omit?: Prisma.RefreshTokenOmit<ExtArgs> | null
|
|
1511
|
+
/**
|
|
1512
|
+
* Choose, which related nodes to fetch as well
|
|
1513
|
+
*/
|
|
1514
|
+
include?: Prisma.RefreshTokenInclude<ExtArgs> | null
|
|
1515
|
+
}
|