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