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