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