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