@roundtreasury/prisma-extension-soft-delete 1.1.0 → 2.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/README.md +1 -1
- package/dist/esm/generated/nested-ops-meta/index.d.ts +13 -0
- package/dist/esm/generated/nested-ops-meta/index.js +107 -0
- package/dist/esm/generated/prisma/browser.d.ts +24 -0
- package/dist/esm/generated/prisma/browser.js +17 -0
- package/dist/esm/generated/prisma/client.d.ts +43 -0
- package/dist/esm/generated/prisma/client.js +31 -0
- package/dist/esm/generated/prisma/commonInputTypes.d.ts +359 -0
- package/dist/esm/generated/prisma/commonInputTypes.js +10 -0
- package/dist/esm/generated/prisma/enums.js +10 -0
- package/dist/esm/generated/prisma/internal/class.d.ts +165 -0
- package/dist/esm/generated/prisma/internal/class.js +49 -0
- package/dist/esm/generated/prisma/internal/prismaNamespace.d.ts +815 -0
- package/dist/esm/generated/prisma/internal/prismaNamespace.js +131 -0
- package/dist/esm/generated/prisma/internal/prismaNamespaceBrowser.d.ts +95 -0
- package/dist/esm/generated/prisma/internal/prismaNamespaceBrowser.js +102 -0
- package/dist/esm/generated/prisma/models/Comment.d.ts +1768 -0
- package/dist/esm/generated/prisma/models/Comment.js +1 -0
- package/dist/esm/generated/prisma/models/Post.d.ts +1543 -0
- package/dist/esm/generated/prisma/models/Post.js +1 -0
- package/dist/esm/generated/prisma/models/Profile.d.ts +1130 -0
- package/dist/esm/generated/prisma/models/Profile.js +1 -0
- package/dist/esm/generated/prisma/models/User.d.ts +1531 -0
- package/dist/esm/generated/prisma/models/User.js +1 -0
- package/dist/esm/generated/prisma/models.d.ts +5 -0
- package/dist/esm/generated/prisma/models.js +1 -0
- package/dist/esm/prisma.config.d.ts +3 -0
- package/dist/esm/prisma.config.js +11 -0
- package/dist/esm/src/lib/createSoftDeleteExtension.d.ts +2 -0
- package/dist/esm/{lib → src/lib}/createSoftDeleteExtension.js +11 -17
- package/dist/esm/{lib → src/lib}/helpers/createParams.d.ts +4 -4
- package/dist/esm/{lib → src/lib}/helpers/createParams.js +4 -16
- package/dist/esm/{lib → src/lib}/types.d.ts +14 -4
- package/dist/esm/src/lib/types.js +1 -0
- package/dist/generated/nested-ops-meta/index.d.ts +13 -0
- package/dist/generated/nested-ops-meta/index.js +110 -0
- package/dist/generated/prisma/browser.d.ts +24 -0
- package/dist/generated/prisma/browser.js +56 -0
- package/dist/generated/prisma/client.d.ts +43 -0
- package/dist/generated/prisma/client.js +70 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +359 -0
- package/dist/generated/prisma/commonInputTypes.js +11 -0
- package/dist/generated/prisma/enums.d.ts +1 -0
- package/dist/generated/prisma/enums.js +11 -0
- package/dist/generated/prisma/internal/class.d.ts +165 -0
- package/dist/generated/prisma/internal/class.js +85 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +815 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +167 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +95 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +138 -0
- package/dist/generated/prisma/models/Comment.d.ts +1768 -0
- package/dist/generated/prisma/models/Comment.js +2 -0
- package/dist/generated/prisma/models/Post.d.ts +1543 -0
- package/dist/generated/prisma/models/Post.js +2 -0
- package/dist/generated/prisma/models/Profile.d.ts +1130 -0
- package/dist/generated/prisma/models/Profile.js +2 -0
- package/dist/generated/prisma/models/User.d.ts +1531 -0
- package/dist/generated/prisma/models/User.js +2 -0
- package/dist/generated/prisma/models.d.ts +5 -0
- package/dist/prisma.config.d.ts +3 -0
- package/dist/prisma.config.js +13 -0
- package/dist/src/lib/createSoftDeleteExtension.d.ts +2 -0
- package/dist/{lib → src/lib}/createSoftDeleteExtension.js +12 -19
- package/dist/{lib → src/lib}/helpers/createParams.d.ts +4 -4
- package/dist/{lib → src/lib}/helpers/createParams.js +4 -16
- package/dist/{lib → src/lib}/helpers/modifyResult.js +1 -2
- package/dist/{lib → src/lib}/types.d.ts +14 -4
- package/dist/src/lib/types.js +2 -0
- package/dist/{lib → src/lib}/utils/nestedReads.js +2 -3
- package/dist/{lib → src/lib}/utils/resultFiltering.js +2 -3
- package/package.json +11 -9
- package/dist/esm/lib/createSoftDeleteExtension.d.ts +0 -2
- package/dist/lib/createSoftDeleteExtension.d.ts +0 -2
- /package/dist/esm/{lib/types.js → generated/prisma/enums.d.ts} +0 -0
- /package/dist/esm/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/esm/{index.js → src/index.js} +0 -0
- /package/dist/esm/{lib → src/lib}/helpers/modifyResult.d.ts +0 -0
- /package/dist/esm/{lib → src/lib}/helpers/modifyResult.js +0 -0
- /package/dist/esm/{lib → src/lib}/utils/nestedReads.d.ts +0 -0
- /package/dist/esm/{lib → src/lib}/utils/nestedReads.js +0 -0
- /package/dist/esm/{lib → src/lib}/utils/resultFiltering.d.ts +0 -0
- /package/dist/esm/{lib → src/lib}/utils/resultFiltering.js +0 -0
- /package/dist/{lib/types.js → generated/prisma/models.js} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{lib → src/lib}/helpers/modifyResult.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/nestedReads.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils/resultFiltering.d.ts +0 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import type * as Prisma from "./internal/prismaNamespace";
|
|
2
|
+
export type IntFilter<$PrismaModel = never> = {
|
|
3
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
4
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
5
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
6
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
7
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
8
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
9
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
10
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
11
|
+
};
|
|
12
|
+
export type StringFilter<$PrismaModel = never> = {
|
|
13
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
14
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
15
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
16
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
17
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
18
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
19
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
20
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
21
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
22
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
23
|
+
mode?: Prisma.QueryMode;
|
|
24
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
25
|
+
};
|
|
26
|
+
export type IntNullableFilter<$PrismaModel = never> = {
|
|
27
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
28
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
29
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
30
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
31
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
32
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
33
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
34
|
+
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
|
35
|
+
};
|
|
36
|
+
export type BoolFilter<$PrismaModel = never> = {
|
|
37
|
+
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
|
38
|
+
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean;
|
|
39
|
+
};
|
|
40
|
+
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
41
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
42
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
43
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
44
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
45
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
46
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
47
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
48
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
49
|
+
};
|
|
50
|
+
export type SortOrderInput = {
|
|
51
|
+
sort: Prisma.SortOrder;
|
|
52
|
+
nulls?: Prisma.NullsOrder;
|
|
53
|
+
};
|
|
54
|
+
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
55
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
56
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
57
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
58
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
59
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
60
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
61
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
62
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
63
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
64
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
65
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
66
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
67
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
68
|
+
};
|
|
69
|
+
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
70
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
71
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
72
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
73
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
74
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
75
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
76
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
77
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
78
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
79
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
80
|
+
mode?: Prisma.QueryMode;
|
|
81
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
82
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
83
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
84
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
85
|
+
};
|
|
86
|
+
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
87
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
88
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
89
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
90
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
91
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
92
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
93
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
94
|
+
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null;
|
|
95
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
96
|
+
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
|
|
97
|
+
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
98
|
+
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
99
|
+
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
100
|
+
};
|
|
101
|
+
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
102
|
+
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
|
103
|
+
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean;
|
|
104
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
105
|
+
_min?: Prisma.NestedBoolFilter<$PrismaModel>;
|
|
106
|
+
_max?: Prisma.NestedBoolFilter<$PrismaModel>;
|
|
107
|
+
};
|
|
108
|
+
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
109
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
110
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
111
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
112
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
113
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
114
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
115
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
116
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
117
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
118
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
119
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
120
|
+
};
|
|
121
|
+
export type DateTimeFilter<$PrismaModel = never> = {
|
|
122
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
123
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
124
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
125
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
126
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
127
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
128
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
129
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
130
|
+
};
|
|
131
|
+
export type StringNullableFilter<$PrismaModel = never> = {
|
|
132
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
133
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
134
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
135
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
136
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
137
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
138
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
139
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
140
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
141
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
142
|
+
mode?: Prisma.QueryMode;
|
|
143
|
+
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
|
144
|
+
};
|
|
145
|
+
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
146
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
147
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
148
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
149
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
150
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
151
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
152
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
153
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
154
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
155
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
156
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
157
|
+
};
|
|
158
|
+
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
159
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
160
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
161
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
162
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
163
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
164
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
165
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
166
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
167
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
168
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
169
|
+
mode?: Prisma.QueryMode;
|
|
170
|
+
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null;
|
|
171
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
172
|
+
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
173
|
+
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
174
|
+
};
|
|
175
|
+
export type NestedIntFilter<$PrismaModel = never> = {
|
|
176
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
177
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
178
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
179
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
180
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
181
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
182
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
183
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
184
|
+
};
|
|
185
|
+
export type NestedStringFilter<$PrismaModel = never> = {
|
|
186
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
187
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
188
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
189
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
190
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
191
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
192
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
193
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
194
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
195
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
196
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
197
|
+
};
|
|
198
|
+
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
199
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
200
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
201
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
202
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
203
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
204
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
205
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
206
|
+
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
|
207
|
+
};
|
|
208
|
+
export type NestedBoolFilter<$PrismaModel = never> = {
|
|
209
|
+
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
|
210
|
+
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean;
|
|
211
|
+
};
|
|
212
|
+
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
213
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
214
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
215
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
216
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
217
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
218
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
219
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
220
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
221
|
+
};
|
|
222
|
+
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
223
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
224
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
225
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
226
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
227
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
228
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
229
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
230
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
231
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
232
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
233
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
234
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
235
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
236
|
+
};
|
|
237
|
+
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
238
|
+
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
239
|
+
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
|
240
|
+
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
|
241
|
+
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
242
|
+
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
243
|
+
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
244
|
+
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
245
|
+
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
|
246
|
+
};
|
|
247
|
+
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
248
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
249
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
250
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
251
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
252
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
253
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
254
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
255
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
256
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
257
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
258
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
259
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
260
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
261
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
262
|
+
};
|
|
263
|
+
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
264
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
265
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
266
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
267
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
268
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
269
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
270
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
271
|
+
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null;
|
|
272
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
273
|
+
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
|
|
274
|
+
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
275
|
+
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
276
|
+
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
277
|
+
};
|
|
278
|
+
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|
279
|
+
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null;
|
|
280
|
+
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null;
|
|
281
|
+
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null;
|
|
282
|
+
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
283
|
+
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
284
|
+
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
285
|
+
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
286
|
+
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null;
|
|
287
|
+
};
|
|
288
|
+
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
289
|
+
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
|
290
|
+
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean;
|
|
291
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
292
|
+
_min?: Prisma.NestedBoolFilter<$PrismaModel>;
|
|
293
|
+
_max?: Prisma.NestedBoolFilter<$PrismaModel>;
|
|
294
|
+
};
|
|
295
|
+
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
296
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
297
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
298
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
299
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
300
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
301
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
302
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
303
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
304
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
305
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
306
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
307
|
+
};
|
|
308
|
+
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
309
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
310
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
311
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
312
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
313
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
314
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
315
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
316
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
317
|
+
};
|
|
318
|
+
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
319
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
320
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
321
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
322
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
323
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
324
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
325
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
326
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
327
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
328
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
329
|
+
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
|
330
|
+
};
|
|
331
|
+
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
332
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
333
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
334
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
335
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
336
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
337
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
338
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
339
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
340
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
341
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
342
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
343
|
+
};
|
|
344
|
+
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
345
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
346
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
347
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
348
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
349
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
350
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
351
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
352
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
353
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
354
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
355
|
+
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null;
|
|
356
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
357
|
+
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
358
|
+
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
359
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
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 various common sort, input & filter types that are not directly linked to a particular model.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
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 all enum related types from the schema.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./prismaNamespace";
|
|
3
|
+
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
|
|
4
|
+
export interface PrismaClientConstructor {
|
|
5
|
+
/**
|
|
6
|
+
* ## Prisma Client
|
|
7
|
+
*
|
|
8
|
+
* Type-safe database client for TypeScript
|
|
9
|
+
* @example
|
|
10
|
+
* ```
|
|
11
|
+
* const prisma = new PrismaClient({
|
|
12
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
13
|
+
* })
|
|
14
|
+
* // Fetch zero or more Users
|
|
15
|
+
* const users = await prisma.user.findMany()
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
19
|
+
*/
|
|
20
|
+
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
21
|
+
omit: infer U;
|
|
22
|
+
} ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* ## Prisma Client
|
|
26
|
+
*
|
|
27
|
+
* Type-safe database client for TypeScript
|
|
28
|
+
* @example
|
|
29
|
+
* ```
|
|
30
|
+
* const prisma = new PrismaClient({
|
|
31
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
32
|
+
* })
|
|
33
|
+
* // Fetch zero or more Users
|
|
34
|
+
* const users = await prisma.user.findMany()
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
38
|
+
*/
|
|
39
|
+
export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
40
|
+
[K: symbol]: {
|
|
41
|
+
types: Prisma.TypeMap<ExtArgs>['other'];
|
|
42
|
+
};
|
|
43
|
+
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
44
|
+
/**
|
|
45
|
+
* Connect with the database
|
|
46
|
+
*/
|
|
47
|
+
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Disconnect from the database
|
|
50
|
+
*/
|
|
51
|
+
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Executes a prepared raw query and returns the number of affected rows.
|
|
54
|
+
* @example
|
|
55
|
+
* ```
|
|
56
|
+
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
60
|
+
*/
|
|
61
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Executes a raw query and returns the number of affected rows.
|
|
64
|
+
* Susceptible to SQL injections, see documentation.
|
|
65
|
+
* @example
|
|
66
|
+
* ```
|
|
67
|
+
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
71
|
+
*/
|
|
72
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Performs a prepared raw query and returns the `SELECT` data.
|
|
75
|
+
* @example
|
|
76
|
+
* ```
|
|
77
|
+
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
81
|
+
*/
|
|
82
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
83
|
+
/**
|
|
84
|
+
* Performs a raw query and returns the `SELECT` data.
|
|
85
|
+
* Susceptible to SQL injections, see documentation.
|
|
86
|
+
* @example
|
|
87
|
+
* ```
|
|
88
|
+
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
92
|
+
*/
|
|
93
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
94
|
+
/**
|
|
95
|
+
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
96
|
+
* @example
|
|
97
|
+
* ```
|
|
98
|
+
* const [george, bob, alice] = await prisma.$transaction([
|
|
99
|
+
* prisma.user.create({ data: { name: 'George' } }),
|
|
100
|
+
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
101
|
+
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
102
|
+
* ])
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
|
|
106
|
+
*/
|
|
107
|
+
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
108
|
+
maxWait?: number;
|
|
109
|
+
timeout?: number;
|
|
110
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
111
|
+
}): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
|
112
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
|
|
113
|
+
maxWait?: number;
|
|
114
|
+
timeout?: number;
|
|
115
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
116
|
+
}): runtime.Types.Utils.JsPromise<R>;
|
|
117
|
+
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
118
|
+
extArgs: ExtArgs;
|
|
119
|
+
}>>;
|
|
120
|
+
/**
|
|
121
|
+
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
122
|
+
* Example usage:
|
|
123
|
+
* ```ts
|
|
124
|
+
* // Fetch zero or more Users
|
|
125
|
+
* const users = await prisma.user.findMany()
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
get user(): Prisma.UserDelegate<ExtArgs, {
|
|
129
|
+
omit: OmitOpts;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* `prisma.post`: Exposes CRUD operations for the **Post** model.
|
|
133
|
+
* Example usage:
|
|
134
|
+
* ```ts
|
|
135
|
+
* // Fetch zero or more Posts
|
|
136
|
+
* const posts = await prisma.post.findMany()
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
get post(): Prisma.PostDelegate<ExtArgs, {
|
|
140
|
+
omit: OmitOpts;
|
|
141
|
+
}>;
|
|
142
|
+
/**
|
|
143
|
+
* `prisma.comment`: Exposes CRUD operations for the **Comment** model.
|
|
144
|
+
* Example usage:
|
|
145
|
+
* ```ts
|
|
146
|
+
* // Fetch zero or more Comments
|
|
147
|
+
* const comments = await prisma.comment.findMany()
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
get comment(): Prisma.CommentDelegate<ExtArgs, {
|
|
151
|
+
omit: OmitOpts;
|
|
152
|
+
}>;
|
|
153
|
+
/**
|
|
154
|
+
* `prisma.profile`: Exposes CRUD operations for the **Profile** model.
|
|
155
|
+
* Example usage:
|
|
156
|
+
* ```ts
|
|
157
|
+
* // Fetch zero or more Profiles
|
|
158
|
+
* const profiles = await prisma.profile.findMany()
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
get profile(): Prisma.ProfileDelegate<ExtArgs, {
|
|
162
|
+
omit: OmitOpts;
|
|
163
|
+
}>;
|
|
164
|
+
}
|
|
165
|
+
export declare function getPrismaClientClass(): PrismaClientConstructor;
|