@valentine-efagene/qshelter-common 2.0.143 → 2.0.145
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/generated/client/browser.d.ts +20 -11
- package/dist/generated/client/client.d.ts +20 -11
- package/dist/generated/client/commonInputTypes.d.ts +324 -234
- package/dist/generated/client/enums.d.ts +38 -24
- package/dist/generated/client/enums.js +33 -21
- package/dist/generated/client/internal/class.d.ts +44 -22
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +438 -204
- package/dist/generated/client/internal/prismaNamespace.js +140 -52
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +147 -55
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +140 -52
- package/dist/generated/client/models/Application.d.ts +669 -1
- package/dist/generated/client/models/ApplicationDocument.d.ts +577 -1
- package/dist/generated/client/models/ApplicationOrganization.d.ts +2385 -0
- package/dist/generated/client/models/ApplicationOrganization.js +1 -0
- package/dist/generated/client/models/BankDocumentRequirement.d.ts +1932 -0
- package/dist/generated/client/models/BankDocumentRequirement.js +1 -0
- package/dist/generated/client/models/DocumentExpiryWarning.d.ts +1141 -0
- package/dist/generated/client/models/DocumentExpiryWarning.js +1 -0
- package/dist/generated/client/models/EventHandler.d.ts +0 -158
- package/dist/generated/client/models/EventType.d.ts +0 -134
- package/dist/generated/client/models/Organization.d.ts +390 -0
- package/dist/generated/client/models/PropertyMedia.d.ts +0 -7
- package/dist/generated/client/models/PropertyPaymentMethod.d.ts +192 -3
- package/dist/generated/client/models/PropertyVariant.d.ts +0 -7
- package/dist/generated/client/models/ScheduledJob.d.ts +1317 -0
- package/dist/generated/client/models/ScheduledJob.js +1 -0
- package/dist/generated/client/models/StateTransitionDefinition.d.ts +1104 -0
- package/dist/generated/client/models/StateTransitionDefinition.js +1 -0
- package/dist/generated/client/models/StateTransitionLog.d.ts +1383 -0
- package/dist/generated/client/models/StateTransitionLog.js +1 -0
- package/dist/generated/client/models/Tenant.d.ts +1314 -1314
- package/dist/generated/client/models/index.d.ts +4 -2
- package/dist/generated/client/models/index.js +4 -2
- package/dist/generated/client/models.d.ts +4 -2
- package/dist/src/prisma/tenant.js +2 -0
- package/package.json +1 -1
- package/prisma/schema.prisma +333 -134
|
@@ -0,0 +1,1383 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as $Enums from "../enums.js";
|
|
3
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
4
|
+
/**
|
|
5
|
+
* Model StateTransitionLog
|
|
6
|
+
* State Transition Log - Audit trail for all state changes
|
|
7
|
+
* Records every state transition for compliance and debugging
|
|
8
|
+
*/
|
|
9
|
+
export type StateTransitionLogModel = runtime.Types.Result.DefaultSelection<Prisma.$StateTransitionLogPayload>;
|
|
10
|
+
export type AggregateStateTransitionLog = {
|
|
11
|
+
_count: StateTransitionLogCountAggregateOutputType | null;
|
|
12
|
+
_avg: StateTransitionLogAvgAggregateOutputType | null;
|
|
13
|
+
_sum: StateTransitionLogSumAggregateOutputType | null;
|
|
14
|
+
_min: StateTransitionLogMinAggregateOutputType | null;
|
|
15
|
+
_max: StateTransitionLogMaxAggregateOutputType | null;
|
|
16
|
+
};
|
|
17
|
+
export type StateTransitionLogAvgAggregateOutputType = {
|
|
18
|
+
durationMs: number | null;
|
|
19
|
+
};
|
|
20
|
+
export type StateTransitionLogSumAggregateOutputType = {
|
|
21
|
+
durationMs: number | null;
|
|
22
|
+
};
|
|
23
|
+
export type StateTransitionLogMinAggregateOutputType = {
|
|
24
|
+
id: string | null;
|
|
25
|
+
tenantId: string | null;
|
|
26
|
+
entityType: $Enums.StateMachineEntity | null;
|
|
27
|
+
entityId: string | null;
|
|
28
|
+
fromState: string | null;
|
|
29
|
+
toState: string | null;
|
|
30
|
+
trigger: string | null;
|
|
31
|
+
actorId: string | null;
|
|
32
|
+
actorType: $Enums.EventActorType | null;
|
|
33
|
+
occurredAt: Date | null;
|
|
34
|
+
durationMs: number | null;
|
|
35
|
+
wasValid: boolean | null;
|
|
36
|
+
errorMessage: string | null;
|
|
37
|
+
};
|
|
38
|
+
export type StateTransitionLogMaxAggregateOutputType = {
|
|
39
|
+
id: string | null;
|
|
40
|
+
tenantId: string | null;
|
|
41
|
+
entityType: $Enums.StateMachineEntity | null;
|
|
42
|
+
entityId: string | null;
|
|
43
|
+
fromState: string | null;
|
|
44
|
+
toState: string | null;
|
|
45
|
+
trigger: string | null;
|
|
46
|
+
actorId: string | null;
|
|
47
|
+
actorType: $Enums.EventActorType | null;
|
|
48
|
+
occurredAt: Date | null;
|
|
49
|
+
durationMs: number | null;
|
|
50
|
+
wasValid: boolean | null;
|
|
51
|
+
errorMessage: string | null;
|
|
52
|
+
};
|
|
53
|
+
export type StateTransitionLogCountAggregateOutputType = {
|
|
54
|
+
id: number;
|
|
55
|
+
tenantId: number;
|
|
56
|
+
entityType: number;
|
|
57
|
+
entityId: number;
|
|
58
|
+
fromState: number;
|
|
59
|
+
toState: number;
|
|
60
|
+
trigger: number;
|
|
61
|
+
actorId: number;
|
|
62
|
+
actorType: number;
|
|
63
|
+
contextSnapshot: number;
|
|
64
|
+
occurredAt: number;
|
|
65
|
+
durationMs: number;
|
|
66
|
+
wasValid: number;
|
|
67
|
+
errorMessage: number;
|
|
68
|
+
_all: number;
|
|
69
|
+
};
|
|
70
|
+
export type StateTransitionLogAvgAggregateInputType = {
|
|
71
|
+
durationMs?: true;
|
|
72
|
+
};
|
|
73
|
+
export type StateTransitionLogSumAggregateInputType = {
|
|
74
|
+
durationMs?: true;
|
|
75
|
+
};
|
|
76
|
+
export type StateTransitionLogMinAggregateInputType = {
|
|
77
|
+
id?: true;
|
|
78
|
+
tenantId?: true;
|
|
79
|
+
entityType?: true;
|
|
80
|
+
entityId?: true;
|
|
81
|
+
fromState?: true;
|
|
82
|
+
toState?: true;
|
|
83
|
+
trigger?: true;
|
|
84
|
+
actorId?: true;
|
|
85
|
+
actorType?: true;
|
|
86
|
+
occurredAt?: true;
|
|
87
|
+
durationMs?: true;
|
|
88
|
+
wasValid?: true;
|
|
89
|
+
errorMessage?: true;
|
|
90
|
+
};
|
|
91
|
+
export type StateTransitionLogMaxAggregateInputType = {
|
|
92
|
+
id?: true;
|
|
93
|
+
tenantId?: true;
|
|
94
|
+
entityType?: true;
|
|
95
|
+
entityId?: true;
|
|
96
|
+
fromState?: true;
|
|
97
|
+
toState?: true;
|
|
98
|
+
trigger?: true;
|
|
99
|
+
actorId?: true;
|
|
100
|
+
actorType?: true;
|
|
101
|
+
occurredAt?: true;
|
|
102
|
+
durationMs?: true;
|
|
103
|
+
wasValid?: true;
|
|
104
|
+
errorMessage?: true;
|
|
105
|
+
};
|
|
106
|
+
export type StateTransitionLogCountAggregateInputType = {
|
|
107
|
+
id?: true;
|
|
108
|
+
tenantId?: true;
|
|
109
|
+
entityType?: true;
|
|
110
|
+
entityId?: true;
|
|
111
|
+
fromState?: true;
|
|
112
|
+
toState?: true;
|
|
113
|
+
trigger?: true;
|
|
114
|
+
actorId?: true;
|
|
115
|
+
actorType?: true;
|
|
116
|
+
contextSnapshot?: true;
|
|
117
|
+
occurredAt?: true;
|
|
118
|
+
durationMs?: true;
|
|
119
|
+
wasValid?: true;
|
|
120
|
+
errorMessage?: true;
|
|
121
|
+
_all?: true;
|
|
122
|
+
};
|
|
123
|
+
export type StateTransitionLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
124
|
+
/**
|
|
125
|
+
* Filter which StateTransitionLog to aggregate.
|
|
126
|
+
*/
|
|
127
|
+
where?: Prisma.StateTransitionLogWhereInput;
|
|
128
|
+
/**
|
|
129
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
130
|
+
*
|
|
131
|
+
* Determine the order of StateTransitionLogs to fetch.
|
|
132
|
+
*/
|
|
133
|
+
orderBy?: Prisma.StateTransitionLogOrderByWithRelationInput | Prisma.StateTransitionLogOrderByWithRelationInput[];
|
|
134
|
+
/**
|
|
135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
136
|
+
*
|
|
137
|
+
* Sets the start position
|
|
138
|
+
*/
|
|
139
|
+
cursor?: Prisma.StateTransitionLogWhereUniqueInput;
|
|
140
|
+
/**
|
|
141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
142
|
+
*
|
|
143
|
+
* Take `±n` StateTransitionLogs from the position of the cursor.
|
|
144
|
+
*/
|
|
145
|
+
take?: number;
|
|
146
|
+
/**
|
|
147
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
148
|
+
*
|
|
149
|
+
* Skip the first `n` StateTransitionLogs.
|
|
150
|
+
*/
|
|
151
|
+
skip?: number;
|
|
152
|
+
/**
|
|
153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
154
|
+
*
|
|
155
|
+
* Count returned StateTransitionLogs
|
|
156
|
+
**/
|
|
157
|
+
_count?: true | StateTransitionLogCountAggregateInputType;
|
|
158
|
+
/**
|
|
159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
160
|
+
*
|
|
161
|
+
* Select which fields to average
|
|
162
|
+
**/
|
|
163
|
+
_avg?: StateTransitionLogAvgAggregateInputType;
|
|
164
|
+
/**
|
|
165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
166
|
+
*
|
|
167
|
+
* Select which fields to sum
|
|
168
|
+
**/
|
|
169
|
+
_sum?: StateTransitionLogSumAggregateInputType;
|
|
170
|
+
/**
|
|
171
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
172
|
+
*
|
|
173
|
+
* Select which fields to find the minimum value
|
|
174
|
+
**/
|
|
175
|
+
_min?: StateTransitionLogMinAggregateInputType;
|
|
176
|
+
/**
|
|
177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
178
|
+
*
|
|
179
|
+
* Select which fields to find the maximum value
|
|
180
|
+
**/
|
|
181
|
+
_max?: StateTransitionLogMaxAggregateInputType;
|
|
182
|
+
};
|
|
183
|
+
export type GetStateTransitionLogAggregateType<T extends StateTransitionLogAggregateArgs> = {
|
|
184
|
+
[P in keyof T & keyof AggregateStateTransitionLog]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateStateTransitionLog[P]> : Prisma.GetScalarType<T[P], AggregateStateTransitionLog[P]>;
|
|
185
|
+
};
|
|
186
|
+
export type StateTransitionLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
187
|
+
where?: Prisma.StateTransitionLogWhereInput;
|
|
188
|
+
orderBy?: Prisma.StateTransitionLogOrderByWithAggregationInput | Prisma.StateTransitionLogOrderByWithAggregationInput[];
|
|
189
|
+
by: Prisma.StateTransitionLogScalarFieldEnum[] | Prisma.StateTransitionLogScalarFieldEnum;
|
|
190
|
+
having?: Prisma.StateTransitionLogScalarWhereWithAggregatesInput;
|
|
191
|
+
take?: number;
|
|
192
|
+
skip?: number;
|
|
193
|
+
_count?: StateTransitionLogCountAggregateInputType | true;
|
|
194
|
+
_avg?: StateTransitionLogAvgAggregateInputType;
|
|
195
|
+
_sum?: StateTransitionLogSumAggregateInputType;
|
|
196
|
+
_min?: StateTransitionLogMinAggregateInputType;
|
|
197
|
+
_max?: StateTransitionLogMaxAggregateInputType;
|
|
198
|
+
};
|
|
199
|
+
export type StateTransitionLogGroupByOutputType = {
|
|
200
|
+
id: string;
|
|
201
|
+
tenantId: string;
|
|
202
|
+
entityType: $Enums.StateMachineEntity;
|
|
203
|
+
entityId: string;
|
|
204
|
+
fromState: string;
|
|
205
|
+
toState: string;
|
|
206
|
+
trigger: string;
|
|
207
|
+
actorId: string | null;
|
|
208
|
+
actorType: $Enums.EventActorType | null;
|
|
209
|
+
contextSnapshot: runtime.JsonValue | null;
|
|
210
|
+
occurredAt: Date;
|
|
211
|
+
durationMs: number | null;
|
|
212
|
+
wasValid: boolean;
|
|
213
|
+
errorMessage: string | null;
|
|
214
|
+
_count: StateTransitionLogCountAggregateOutputType | null;
|
|
215
|
+
_avg: StateTransitionLogAvgAggregateOutputType | null;
|
|
216
|
+
_sum: StateTransitionLogSumAggregateOutputType | null;
|
|
217
|
+
_min: StateTransitionLogMinAggregateOutputType | null;
|
|
218
|
+
_max: StateTransitionLogMaxAggregateOutputType | null;
|
|
219
|
+
};
|
|
220
|
+
type GetStateTransitionLogGroupByPayload<T extends StateTransitionLogGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<StateTransitionLogGroupByOutputType, T['by']> & {
|
|
221
|
+
[P in ((keyof T) & (keyof StateTransitionLogGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], StateTransitionLogGroupByOutputType[P]> : Prisma.GetScalarType<T[P], StateTransitionLogGroupByOutputType[P]>;
|
|
222
|
+
}>>;
|
|
223
|
+
export type StateTransitionLogWhereInput = {
|
|
224
|
+
AND?: Prisma.StateTransitionLogWhereInput | Prisma.StateTransitionLogWhereInput[];
|
|
225
|
+
OR?: Prisma.StateTransitionLogWhereInput[];
|
|
226
|
+
NOT?: Prisma.StateTransitionLogWhereInput | Prisma.StateTransitionLogWhereInput[];
|
|
227
|
+
id?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
228
|
+
tenantId?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
229
|
+
entityType?: Prisma.EnumStateMachineEntityFilter<"StateTransitionLog"> | $Enums.StateMachineEntity;
|
|
230
|
+
entityId?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
231
|
+
fromState?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
232
|
+
toState?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
233
|
+
trigger?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
234
|
+
actorId?: Prisma.StringNullableFilter<"StateTransitionLog"> | string | null;
|
|
235
|
+
actorType?: Prisma.EnumEventActorTypeNullableFilter<"StateTransitionLog"> | $Enums.EventActorType | null;
|
|
236
|
+
contextSnapshot?: Prisma.JsonNullableFilter<"StateTransitionLog">;
|
|
237
|
+
occurredAt?: Prisma.DateTimeFilter<"StateTransitionLog"> | Date | string;
|
|
238
|
+
durationMs?: Prisma.IntNullableFilter<"StateTransitionLog"> | number | null;
|
|
239
|
+
wasValid?: Prisma.BoolFilter<"StateTransitionLog"> | boolean;
|
|
240
|
+
errorMessage?: Prisma.StringNullableFilter<"StateTransitionLog"> | string | null;
|
|
241
|
+
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
|
|
242
|
+
};
|
|
243
|
+
export type StateTransitionLogOrderByWithRelationInput = {
|
|
244
|
+
id?: Prisma.SortOrder;
|
|
245
|
+
tenantId?: Prisma.SortOrder;
|
|
246
|
+
entityType?: Prisma.SortOrder;
|
|
247
|
+
entityId?: Prisma.SortOrder;
|
|
248
|
+
fromState?: Prisma.SortOrder;
|
|
249
|
+
toState?: Prisma.SortOrder;
|
|
250
|
+
trigger?: Prisma.SortOrder;
|
|
251
|
+
actorId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
252
|
+
actorType?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
253
|
+
contextSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
254
|
+
occurredAt?: Prisma.SortOrder;
|
|
255
|
+
durationMs?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
256
|
+
wasValid?: Prisma.SortOrder;
|
|
257
|
+
errorMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
258
|
+
tenant?: Prisma.TenantOrderByWithRelationInput;
|
|
259
|
+
_relevance?: Prisma.StateTransitionLogOrderByRelevanceInput;
|
|
260
|
+
};
|
|
261
|
+
export type StateTransitionLogWhereUniqueInput = Prisma.AtLeast<{
|
|
262
|
+
id?: string;
|
|
263
|
+
AND?: Prisma.StateTransitionLogWhereInput | Prisma.StateTransitionLogWhereInput[];
|
|
264
|
+
OR?: Prisma.StateTransitionLogWhereInput[];
|
|
265
|
+
NOT?: Prisma.StateTransitionLogWhereInput | Prisma.StateTransitionLogWhereInput[];
|
|
266
|
+
tenantId?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
267
|
+
entityType?: Prisma.EnumStateMachineEntityFilter<"StateTransitionLog"> | $Enums.StateMachineEntity;
|
|
268
|
+
entityId?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
269
|
+
fromState?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
270
|
+
toState?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
271
|
+
trigger?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
272
|
+
actorId?: Prisma.StringNullableFilter<"StateTransitionLog"> | string | null;
|
|
273
|
+
actorType?: Prisma.EnumEventActorTypeNullableFilter<"StateTransitionLog"> | $Enums.EventActorType | null;
|
|
274
|
+
contextSnapshot?: Prisma.JsonNullableFilter<"StateTransitionLog">;
|
|
275
|
+
occurredAt?: Prisma.DateTimeFilter<"StateTransitionLog"> | Date | string;
|
|
276
|
+
durationMs?: Prisma.IntNullableFilter<"StateTransitionLog"> | number | null;
|
|
277
|
+
wasValid?: Prisma.BoolFilter<"StateTransitionLog"> | boolean;
|
|
278
|
+
errorMessage?: Prisma.StringNullableFilter<"StateTransitionLog"> | string | null;
|
|
279
|
+
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
|
|
280
|
+
}, "id">;
|
|
281
|
+
export type StateTransitionLogOrderByWithAggregationInput = {
|
|
282
|
+
id?: Prisma.SortOrder;
|
|
283
|
+
tenantId?: Prisma.SortOrder;
|
|
284
|
+
entityType?: Prisma.SortOrder;
|
|
285
|
+
entityId?: Prisma.SortOrder;
|
|
286
|
+
fromState?: Prisma.SortOrder;
|
|
287
|
+
toState?: Prisma.SortOrder;
|
|
288
|
+
trigger?: Prisma.SortOrder;
|
|
289
|
+
actorId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
290
|
+
actorType?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
291
|
+
contextSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
292
|
+
occurredAt?: Prisma.SortOrder;
|
|
293
|
+
durationMs?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
294
|
+
wasValid?: Prisma.SortOrder;
|
|
295
|
+
errorMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
296
|
+
_count?: Prisma.StateTransitionLogCountOrderByAggregateInput;
|
|
297
|
+
_avg?: Prisma.StateTransitionLogAvgOrderByAggregateInput;
|
|
298
|
+
_max?: Prisma.StateTransitionLogMaxOrderByAggregateInput;
|
|
299
|
+
_min?: Prisma.StateTransitionLogMinOrderByAggregateInput;
|
|
300
|
+
_sum?: Prisma.StateTransitionLogSumOrderByAggregateInput;
|
|
301
|
+
};
|
|
302
|
+
export type StateTransitionLogScalarWhereWithAggregatesInput = {
|
|
303
|
+
AND?: Prisma.StateTransitionLogScalarWhereWithAggregatesInput | Prisma.StateTransitionLogScalarWhereWithAggregatesInput[];
|
|
304
|
+
OR?: Prisma.StateTransitionLogScalarWhereWithAggregatesInput[];
|
|
305
|
+
NOT?: Prisma.StateTransitionLogScalarWhereWithAggregatesInput | Prisma.StateTransitionLogScalarWhereWithAggregatesInput[];
|
|
306
|
+
id?: Prisma.StringWithAggregatesFilter<"StateTransitionLog"> | string;
|
|
307
|
+
tenantId?: Prisma.StringWithAggregatesFilter<"StateTransitionLog"> | string;
|
|
308
|
+
entityType?: Prisma.EnumStateMachineEntityWithAggregatesFilter<"StateTransitionLog"> | $Enums.StateMachineEntity;
|
|
309
|
+
entityId?: Prisma.StringWithAggregatesFilter<"StateTransitionLog"> | string;
|
|
310
|
+
fromState?: Prisma.StringWithAggregatesFilter<"StateTransitionLog"> | string;
|
|
311
|
+
toState?: Prisma.StringWithAggregatesFilter<"StateTransitionLog"> | string;
|
|
312
|
+
trigger?: Prisma.StringWithAggregatesFilter<"StateTransitionLog"> | string;
|
|
313
|
+
actorId?: Prisma.StringNullableWithAggregatesFilter<"StateTransitionLog"> | string | null;
|
|
314
|
+
actorType?: Prisma.EnumEventActorTypeNullableWithAggregatesFilter<"StateTransitionLog"> | $Enums.EventActorType | null;
|
|
315
|
+
contextSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"StateTransitionLog">;
|
|
316
|
+
occurredAt?: Prisma.DateTimeWithAggregatesFilter<"StateTransitionLog"> | Date | string;
|
|
317
|
+
durationMs?: Prisma.IntNullableWithAggregatesFilter<"StateTransitionLog"> | number | null;
|
|
318
|
+
wasValid?: Prisma.BoolWithAggregatesFilter<"StateTransitionLog"> | boolean;
|
|
319
|
+
errorMessage?: Prisma.StringNullableWithAggregatesFilter<"StateTransitionLog"> | string | null;
|
|
320
|
+
};
|
|
321
|
+
export type StateTransitionLogCreateInput = {
|
|
322
|
+
id?: string;
|
|
323
|
+
entityType: $Enums.StateMachineEntity;
|
|
324
|
+
entityId: string;
|
|
325
|
+
fromState: string;
|
|
326
|
+
toState: string;
|
|
327
|
+
trigger: string;
|
|
328
|
+
actorId?: string | null;
|
|
329
|
+
actorType?: $Enums.EventActorType | null;
|
|
330
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
331
|
+
occurredAt?: Date | string;
|
|
332
|
+
durationMs?: number | null;
|
|
333
|
+
wasValid?: boolean;
|
|
334
|
+
errorMessage?: string | null;
|
|
335
|
+
tenant: Prisma.TenantCreateNestedOneWithoutStateTransitionLogsInput;
|
|
336
|
+
};
|
|
337
|
+
export type StateTransitionLogUncheckedCreateInput = {
|
|
338
|
+
id?: string;
|
|
339
|
+
tenantId: string;
|
|
340
|
+
entityType: $Enums.StateMachineEntity;
|
|
341
|
+
entityId: string;
|
|
342
|
+
fromState: string;
|
|
343
|
+
toState: string;
|
|
344
|
+
trigger: string;
|
|
345
|
+
actorId?: string | null;
|
|
346
|
+
actorType?: $Enums.EventActorType | null;
|
|
347
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
348
|
+
occurredAt?: Date | string;
|
|
349
|
+
durationMs?: number | null;
|
|
350
|
+
wasValid?: boolean;
|
|
351
|
+
errorMessage?: string | null;
|
|
352
|
+
};
|
|
353
|
+
export type StateTransitionLogUpdateInput = {
|
|
354
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
355
|
+
entityType?: Prisma.EnumStateMachineEntityFieldUpdateOperationsInput | $Enums.StateMachineEntity;
|
|
356
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
357
|
+
fromState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
358
|
+
toState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
359
|
+
trigger?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
360
|
+
actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
361
|
+
actorType?: Prisma.NullableEnumEventActorTypeFieldUpdateOperationsInput | $Enums.EventActorType | null;
|
|
362
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
363
|
+
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
364
|
+
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
365
|
+
wasValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
366
|
+
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
367
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutStateTransitionLogsNestedInput;
|
|
368
|
+
};
|
|
369
|
+
export type StateTransitionLogUncheckedUpdateInput = {
|
|
370
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
371
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
372
|
+
entityType?: Prisma.EnumStateMachineEntityFieldUpdateOperationsInput | $Enums.StateMachineEntity;
|
|
373
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
374
|
+
fromState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
375
|
+
toState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
376
|
+
trigger?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
377
|
+
actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
378
|
+
actorType?: Prisma.NullableEnumEventActorTypeFieldUpdateOperationsInput | $Enums.EventActorType | null;
|
|
379
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
380
|
+
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
381
|
+
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
382
|
+
wasValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
383
|
+
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
384
|
+
};
|
|
385
|
+
export type StateTransitionLogCreateManyInput = {
|
|
386
|
+
id?: string;
|
|
387
|
+
tenantId: string;
|
|
388
|
+
entityType: $Enums.StateMachineEntity;
|
|
389
|
+
entityId: string;
|
|
390
|
+
fromState: string;
|
|
391
|
+
toState: string;
|
|
392
|
+
trigger: string;
|
|
393
|
+
actorId?: string | null;
|
|
394
|
+
actorType?: $Enums.EventActorType | null;
|
|
395
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
396
|
+
occurredAt?: Date | string;
|
|
397
|
+
durationMs?: number | null;
|
|
398
|
+
wasValid?: boolean;
|
|
399
|
+
errorMessage?: string | null;
|
|
400
|
+
};
|
|
401
|
+
export type StateTransitionLogUpdateManyMutationInput = {
|
|
402
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
403
|
+
entityType?: Prisma.EnumStateMachineEntityFieldUpdateOperationsInput | $Enums.StateMachineEntity;
|
|
404
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
405
|
+
fromState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
406
|
+
toState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
407
|
+
trigger?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
408
|
+
actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
409
|
+
actorType?: Prisma.NullableEnumEventActorTypeFieldUpdateOperationsInput | $Enums.EventActorType | null;
|
|
410
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
411
|
+
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
412
|
+
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
413
|
+
wasValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
414
|
+
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
415
|
+
};
|
|
416
|
+
export type StateTransitionLogUncheckedUpdateManyInput = {
|
|
417
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
418
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
419
|
+
entityType?: Prisma.EnumStateMachineEntityFieldUpdateOperationsInput | $Enums.StateMachineEntity;
|
|
420
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
421
|
+
fromState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
422
|
+
toState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
423
|
+
trigger?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
424
|
+
actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
425
|
+
actorType?: Prisma.NullableEnumEventActorTypeFieldUpdateOperationsInput | $Enums.EventActorType | null;
|
|
426
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
427
|
+
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
428
|
+
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
429
|
+
wasValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
430
|
+
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
431
|
+
};
|
|
432
|
+
export type StateTransitionLogListRelationFilter = {
|
|
433
|
+
every?: Prisma.StateTransitionLogWhereInput;
|
|
434
|
+
some?: Prisma.StateTransitionLogWhereInput;
|
|
435
|
+
none?: Prisma.StateTransitionLogWhereInput;
|
|
436
|
+
};
|
|
437
|
+
export type StateTransitionLogOrderByRelationAggregateInput = {
|
|
438
|
+
_count?: Prisma.SortOrder;
|
|
439
|
+
};
|
|
440
|
+
export type StateTransitionLogOrderByRelevanceInput = {
|
|
441
|
+
fields: Prisma.StateTransitionLogOrderByRelevanceFieldEnum | Prisma.StateTransitionLogOrderByRelevanceFieldEnum[];
|
|
442
|
+
sort: Prisma.SortOrder;
|
|
443
|
+
search: string;
|
|
444
|
+
};
|
|
445
|
+
export type StateTransitionLogCountOrderByAggregateInput = {
|
|
446
|
+
id?: Prisma.SortOrder;
|
|
447
|
+
tenantId?: Prisma.SortOrder;
|
|
448
|
+
entityType?: Prisma.SortOrder;
|
|
449
|
+
entityId?: Prisma.SortOrder;
|
|
450
|
+
fromState?: Prisma.SortOrder;
|
|
451
|
+
toState?: Prisma.SortOrder;
|
|
452
|
+
trigger?: Prisma.SortOrder;
|
|
453
|
+
actorId?: Prisma.SortOrder;
|
|
454
|
+
actorType?: Prisma.SortOrder;
|
|
455
|
+
contextSnapshot?: Prisma.SortOrder;
|
|
456
|
+
occurredAt?: Prisma.SortOrder;
|
|
457
|
+
durationMs?: Prisma.SortOrder;
|
|
458
|
+
wasValid?: Prisma.SortOrder;
|
|
459
|
+
errorMessage?: Prisma.SortOrder;
|
|
460
|
+
};
|
|
461
|
+
export type StateTransitionLogAvgOrderByAggregateInput = {
|
|
462
|
+
durationMs?: Prisma.SortOrder;
|
|
463
|
+
};
|
|
464
|
+
export type StateTransitionLogMaxOrderByAggregateInput = {
|
|
465
|
+
id?: Prisma.SortOrder;
|
|
466
|
+
tenantId?: Prisma.SortOrder;
|
|
467
|
+
entityType?: Prisma.SortOrder;
|
|
468
|
+
entityId?: Prisma.SortOrder;
|
|
469
|
+
fromState?: Prisma.SortOrder;
|
|
470
|
+
toState?: Prisma.SortOrder;
|
|
471
|
+
trigger?: Prisma.SortOrder;
|
|
472
|
+
actorId?: Prisma.SortOrder;
|
|
473
|
+
actorType?: Prisma.SortOrder;
|
|
474
|
+
occurredAt?: Prisma.SortOrder;
|
|
475
|
+
durationMs?: Prisma.SortOrder;
|
|
476
|
+
wasValid?: Prisma.SortOrder;
|
|
477
|
+
errorMessage?: Prisma.SortOrder;
|
|
478
|
+
};
|
|
479
|
+
export type StateTransitionLogMinOrderByAggregateInput = {
|
|
480
|
+
id?: Prisma.SortOrder;
|
|
481
|
+
tenantId?: Prisma.SortOrder;
|
|
482
|
+
entityType?: Prisma.SortOrder;
|
|
483
|
+
entityId?: Prisma.SortOrder;
|
|
484
|
+
fromState?: Prisma.SortOrder;
|
|
485
|
+
toState?: Prisma.SortOrder;
|
|
486
|
+
trigger?: Prisma.SortOrder;
|
|
487
|
+
actorId?: Prisma.SortOrder;
|
|
488
|
+
actorType?: Prisma.SortOrder;
|
|
489
|
+
occurredAt?: Prisma.SortOrder;
|
|
490
|
+
durationMs?: Prisma.SortOrder;
|
|
491
|
+
wasValid?: Prisma.SortOrder;
|
|
492
|
+
errorMessage?: Prisma.SortOrder;
|
|
493
|
+
};
|
|
494
|
+
export type StateTransitionLogSumOrderByAggregateInput = {
|
|
495
|
+
durationMs?: Prisma.SortOrder;
|
|
496
|
+
};
|
|
497
|
+
export type StateTransitionLogCreateNestedManyWithoutTenantInput = {
|
|
498
|
+
create?: Prisma.XOR<Prisma.StateTransitionLogCreateWithoutTenantInput, Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput> | Prisma.StateTransitionLogCreateWithoutTenantInput[] | Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput[];
|
|
499
|
+
connectOrCreate?: Prisma.StateTransitionLogCreateOrConnectWithoutTenantInput | Prisma.StateTransitionLogCreateOrConnectWithoutTenantInput[];
|
|
500
|
+
createMany?: Prisma.StateTransitionLogCreateManyTenantInputEnvelope;
|
|
501
|
+
connect?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
502
|
+
};
|
|
503
|
+
export type StateTransitionLogUncheckedCreateNestedManyWithoutTenantInput = {
|
|
504
|
+
create?: Prisma.XOR<Prisma.StateTransitionLogCreateWithoutTenantInput, Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput> | Prisma.StateTransitionLogCreateWithoutTenantInput[] | Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput[];
|
|
505
|
+
connectOrCreate?: Prisma.StateTransitionLogCreateOrConnectWithoutTenantInput | Prisma.StateTransitionLogCreateOrConnectWithoutTenantInput[];
|
|
506
|
+
createMany?: Prisma.StateTransitionLogCreateManyTenantInputEnvelope;
|
|
507
|
+
connect?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
508
|
+
};
|
|
509
|
+
export type StateTransitionLogUpdateManyWithoutTenantNestedInput = {
|
|
510
|
+
create?: Prisma.XOR<Prisma.StateTransitionLogCreateWithoutTenantInput, Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput> | Prisma.StateTransitionLogCreateWithoutTenantInput[] | Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput[];
|
|
511
|
+
connectOrCreate?: Prisma.StateTransitionLogCreateOrConnectWithoutTenantInput | Prisma.StateTransitionLogCreateOrConnectWithoutTenantInput[];
|
|
512
|
+
upsert?: Prisma.StateTransitionLogUpsertWithWhereUniqueWithoutTenantInput | Prisma.StateTransitionLogUpsertWithWhereUniqueWithoutTenantInput[];
|
|
513
|
+
createMany?: Prisma.StateTransitionLogCreateManyTenantInputEnvelope;
|
|
514
|
+
set?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
515
|
+
disconnect?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
516
|
+
delete?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
517
|
+
connect?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
518
|
+
update?: Prisma.StateTransitionLogUpdateWithWhereUniqueWithoutTenantInput | Prisma.StateTransitionLogUpdateWithWhereUniqueWithoutTenantInput[];
|
|
519
|
+
updateMany?: Prisma.StateTransitionLogUpdateManyWithWhereWithoutTenantInput | Prisma.StateTransitionLogUpdateManyWithWhereWithoutTenantInput[];
|
|
520
|
+
deleteMany?: Prisma.StateTransitionLogScalarWhereInput | Prisma.StateTransitionLogScalarWhereInput[];
|
|
521
|
+
};
|
|
522
|
+
export type StateTransitionLogUncheckedUpdateManyWithoutTenantNestedInput = {
|
|
523
|
+
create?: Prisma.XOR<Prisma.StateTransitionLogCreateWithoutTenantInput, Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput> | Prisma.StateTransitionLogCreateWithoutTenantInput[] | Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput[];
|
|
524
|
+
connectOrCreate?: Prisma.StateTransitionLogCreateOrConnectWithoutTenantInput | Prisma.StateTransitionLogCreateOrConnectWithoutTenantInput[];
|
|
525
|
+
upsert?: Prisma.StateTransitionLogUpsertWithWhereUniqueWithoutTenantInput | Prisma.StateTransitionLogUpsertWithWhereUniqueWithoutTenantInput[];
|
|
526
|
+
createMany?: Prisma.StateTransitionLogCreateManyTenantInputEnvelope;
|
|
527
|
+
set?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
528
|
+
disconnect?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
529
|
+
delete?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
530
|
+
connect?: Prisma.StateTransitionLogWhereUniqueInput | Prisma.StateTransitionLogWhereUniqueInput[];
|
|
531
|
+
update?: Prisma.StateTransitionLogUpdateWithWhereUniqueWithoutTenantInput | Prisma.StateTransitionLogUpdateWithWhereUniqueWithoutTenantInput[];
|
|
532
|
+
updateMany?: Prisma.StateTransitionLogUpdateManyWithWhereWithoutTenantInput | Prisma.StateTransitionLogUpdateManyWithWhereWithoutTenantInput[];
|
|
533
|
+
deleteMany?: Prisma.StateTransitionLogScalarWhereInput | Prisma.StateTransitionLogScalarWhereInput[];
|
|
534
|
+
};
|
|
535
|
+
export type StateTransitionLogCreateWithoutTenantInput = {
|
|
536
|
+
id?: string;
|
|
537
|
+
entityType: $Enums.StateMachineEntity;
|
|
538
|
+
entityId: string;
|
|
539
|
+
fromState: string;
|
|
540
|
+
toState: string;
|
|
541
|
+
trigger: string;
|
|
542
|
+
actorId?: string | null;
|
|
543
|
+
actorType?: $Enums.EventActorType | null;
|
|
544
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
545
|
+
occurredAt?: Date | string;
|
|
546
|
+
durationMs?: number | null;
|
|
547
|
+
wasValid?: boolean;
|
|
548
|
+
errorMessage?: string | null;
|
|
549
|
+
};
|
|
550
|
+
export type StateTransitionLogUncheckedCreateWithoutTenantInput = {
|
|
551
|
+
id?: string;
|
|
552
|
+
entityType: $Enums.StateMachineEntity;
|
|
553
|
+
entityId: string;
|
|
554
|
+
fromState: string;
|
|
555
|
+
toState: string;
|
|
556
|
+
trigger: string;
|
|
557
|
+
actorId?: string | null;
|
|
558
|
+
actorType?: $Enums.EventActorType | null;
|
|
559
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
560
|
+
occurredAt?: Date | string;
|
|
561
|
+
durationMs?: number | null;
|
|
562
|
+
wasValid?: boolean;
|
|
563
|
+
errorMessage?: string | null;
|
|
564
|
+
};
|
|
565
|
+
export type StateTransitionLogCreateOrConnectWithoutTenantInput = {
|
|
566
|
+
where: Prisma.StateTransitionLogWhereUniqueInput;
|
|
567
|
+
create: Prisma.XOR<Prisma.StateTransitionLogCreateWithoutTenantInput, Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput>;
|
|
568
|
+
};
|
|
569
|
+
export type StateTransitionLogCreateManyTenantInputEnvelope = {
|
|
570
|
+
data: Prisma.StateTransitionLogCreateManyTenantInput | Prisma.StateTransitionLogCreateManyTenantInput[];
|
|
571
|
+
skipDuplicates?: boolean;
|
|
572
|
+
};
|
|
573
|
+
export type StateTransitionLogUpsertWithWhereUniqueWithoutTenantInput = {
|
|
574
|
+
where: Prisma.StateTransitionLogWhereUniqueInput;
|
|
575
|
+
update: Prisma.XOR<Prisma.StateTransitionLogUpdateWithoutTenantInput, Prisma.StateTransitionLogUncheckedUpdateWithoutTenantInput>;
|
|
576
|
+
create: Prisma.XOR<Prisma.StateTransitionLogCreateWithoutTenantInput, Prisma.StateTransitionLogUncheckedCreateWithoutTenantInput>;
|
|
577
|
+
};
|
|
578
|
+
export type StateTransitionLogUpdateWithWhereUniqueWithoutTenantInput = {
|
|
579
|
+
where: Prisma.StateTransitionLogWhereUniqueInput;
|
|
580
|
+
data: Prisma.XOR<Prisma.StateTransitionLogUpdateWithoutTenantInput, Prisma.StateTransitionLogUncheckedUpdateWithoutTenantInput>;
|
|
581
|
+
};
|
|
582
|
+
export type StateTransitionLogUpdateManyWithWhereWithoutTenantInput = {
|
|
583
|
+
where: Prisma.StateTransitionLogScalarWhereInput;
|
|
584
|
+
data: Prisma.XOR<Prisma.StateTransitionLogUpdateManyMutationInput, Prisma.StateTransitionLogUncheckedUpdateManyWithoutTenantInput>;
|
|
585
|
+
};
|
|
586
|
+
export type StateTransitionLogScalarWhereInput = {
|
|
587
|
+
AND?: Prisma.StateTransitionLogScalarWhereInput | Prisma.StateTransitionLogScalarWhereInput[];
|
|
588
|
+
OR?: Prisma.StateTransitionLogScalarWhereInput[];
|
|
589
|
+
NOT?: Prisma.StateTransitionLogScalarWhereInput | Prisma.StateTransitionLogScalarWhereInput[];
|
|
590
|
+
id?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
591
|
+
tenantId?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
592
|
+
entityType?: Prisma.EnumStateMachineEntityFilter<"StateTransitionLog"> | $Enums.StateMachineEntity;
|
|
593
|
+
entityId?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
594
|
+
fromState?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
595
|
+
toState?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
596
|
+
trigger?: Prisma.StringFilter<"StateTransitionLog"> | string;
|
|
597
|
+
actorId?: Prisma.StringNullableFilter<"StateTransitionLog"> | string | null;
|
|
598
|
+
actorType?: Prisma.EnumEventActorTypeNullableFilter<"StateTransitionLog"> | $Enums.EventActorType | null;
|
|
599
|
+
contextSnapshot?: Prisma.JsonNullableFilter<"StateTransitionLog">;
|
|
600
|
+
occurredAt?: Prisma.DateTimeFilter<"StateTransitionLog"> | Date | string;
|
|
601
|
+
durationMs?: Prisma.IntNullableFilter<"StateTransitionLog"> | number | null;
|
|
602
|
+
wasValid?: Prisma.BoolFilter<"StateTransitionLog"> | boolean;
|
|
603
|
+
errorMessage?: Prisma.StringNullableFilter<"StateTransitionLog"> | string | null;
|
|
604
|
+
};
|
|
605
|
+
export type StateTransitionLogCreateManyTenantInput = {
|
|
606
|
+
id?: string;
|
|
607
|
+
entityType: $Enums.StateMachineEntity;
|
|
608
|
+
entityId: string;
|
|
609
|
+
fromState: string;
|
|
610
|
+
toState: string;
|
|
611
|
+
trigger: string;
|
|
612
|
+
actorId?: string | null;
|
|
613
|
+
actorType?: $Enums.EventActorType | null;
|
|
614
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
615
|
+
occurredAt?: Date | string;
|
|
616
|
+
durationMs?: number | null;
|
|
617
|
+
wasValid?: boolean;
|
|
618
|
+
errorMessage?: string | null;
|
|
619
|
+
};
|
|
620
|
+
export type StateTransitionLogUpdateWithoutTenantInput = {
|
|
621
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
622
|
+
entityType?: Prisma.EnumStateMachineEntityFieldUpdateOperationsInput | $Enums.StateMachineEntity;
|
|
623
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
624
|
+
fromState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
625
|
+
toState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
626
|
+
trigger?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
627
|
+
actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
628
|
+
actorType?: Prisma.NullableEnumEventActorTypeFieldUpdateOperationsInput | $Enums.EventActorType | null;
|
|
629
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
630
|
+
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
631
|
+
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
632
|
+
wasValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
633
|
+
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
634
|
+
};
|
|
635
|
+
export type StateTransitionLogUncheckedUpdateWithoutTenantInput = {
|
|
636
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
637
|
+
entityType?: Prisma.EnumStateMachineEntityFieldUpdateOperationsInput | $Enums.StateMachineEntity;
|
|
638
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
639
|
+
fromState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
640
|
+
toState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
641
|
+
trigger?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
642
|
+
actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
643
|
+
actorType?: Prisma.NullableEnumEventActorTypeFieldUpdateOperationsInput | $Enums.EventActorType | null;
|
|
644
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
645
|
+
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
646
|
+
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
647
|
+
wasValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
648
|
+
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
649
|
+
};
|
|
650
|
+
export type StateTransitionLogUncheckedUpdateManyWithoutTenantInput = {
|
|
651
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
652
|
+
entityType?: Prisma.EnumStateMachineEntityFieldUpdateOperationsInput | $Enums.StateMachineEntity;
|
|
653
|
+
entityId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
654
|
+
fromState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
655
|
+
toState?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
656
|
+
trigger?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
657
|
+
actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
658
|
+
actorType?: Prisma.NullableEnumEventActorTypeFieldUpdateOperationsInput | $Enums.EventActorType | null;
|
|
659
|
+
contextSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
660
|
+
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
661
|
+
durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
662
|
+
wasValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
663
|
+
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
664
|
+
};
|
|
665
|
+
export type StateTransitionLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
666
|
+
id?: boolean;
|
|
667
|
+
tenantId?: boolean;
|
|
668
|
+
entityType?: boolean;
|
|
669
|
+
entityId?: boolean;
|
|
670
|
+
fromState?: boolean;
|
|
671
|
+
toState?: boolean;
|
|
672
|
+
trigger?: boolean;
|
|
673
|
+
actorId?: boolean;
|
|
674
|
+
actorType?: boolean;
|
|
675
|
+
contextSnapshot?: boolean;
|
|
676
|
+
occurredAt?: boolean;
|
|
677
|
+
durationMs?: boolean;
|
|
678
|
+
wasValid?: boolean;
|
|
679
|
+
errorMessage?: boolean;
|
|
680
|
+
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
|
|
681
|
+
}, ExtArgs["result"]["stateTransitionLog"]>;
|
|
682
|
+
export type StateTransitionLogSelectScalar = {
|
|
683
|
+
id?: boolean;
|
|
684
|
+
tenantId?: boolean;
|
|
685
|
+
entityType?: boolean;
|
|
686
|
+
entityId?: boolean;
|
|
687
|
+
fromState?: boolean;
|
|
688
|
+
toState?: boolean;
|
|
689
|
+
trigger?: boolean;
|
|
690
|
+
actorId?: boolean;
|
|
691
|
+
actorType?: boolean;
|
|
692
|
+
contextSnapshot?: boolean;
|
|
693
|
+
occurredAt?: boolean;
|
|
694
|
+
durationMs?: boolean;
|
|
695
|
+
wasValid?: boolean;
|
|
696
|
+
errorMessage?: boolean;
|
|
697
|
+
};
|
|
698
|
+
export type StateTransitionLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "entityType" | "entityId" | "fromState" | "toState" | "trigger" | "actorId" | "actorType" | "contextSnapshot" | "occurredAt" | "durationMs" | "wasValid" | "errorMessage", ExtArgs["result"]["stateTransitionLog"]>;
|
|
699
|
+
export type StateTransitionLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
700
|
+
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
|
|
701
|
+
};
|
|
702
|
+
export type $StateTransitionLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
703
|
+
name: "StateTransitionLog";
|
|
704
|
+
objects: {
|
|
705
|
+
tenant: Prisma.$TenantPayload<ExtArgs>;
|
|
706
|
+
};
|
|
707
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
708
|
+
id: string;
|
|
709
|
+
tenantId: string;
|
|
710
|
+
entityType: $Enums.StateMachineEntity;
|
|
711
|
+
entityId: string;
|
|
712
|
+
fromState: string;
|
|
713
|
+
toState: string;
|
|
714
|
+
trigger: string;
|
|
715
|
+
actorId: string | null;
|
|
716
|
+
actorType: $Enums.EventActorType | null;
|
|
717
|
+
contextSnapshot: runtime.JsonValue | null;
|
|
718
|
+
occurredAt: Date;
|
|
719
|
+
durationMs: number | null;
|
|
720
|
+
wasValid: boolean;
|
|
721
|
+
errorMessage: string | null;
|
|
722
|
+
}, ExtArgs["result"]["stateTransitionLog"]>;
|
|
723
|
+
composites: {};
|
|
724
|
+
};
|
|
725
|
+
export type StateTransitionLogGetPayload<S extends boolean | null | undefined | StateTransitionLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload, S>;
|
|
726
|
+
export type StateTransitionLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<StateTransitionLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
727
|
+
select?: StateTransitionLogCountAggregateInputType | true;
|
|
728
|
+
};
|
|
729
|
+
export interface StateTransitionLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
730
|
+
[K: symbol]: {
|
|
731
|
+
types: Prisma.TypeMap<ExtArgs>['model']['StateTransitionLog'];
|
|
732
|
+
meta: {
|
|
733
|
+
name: 'StateTransitionLog';
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
/**
|
|
737
|
+
* Find zero or one StateTransitionLog that matches the filter.
|
|
738
|
+
* @param {StateTransitionLogFindUniqueArgs} args - Arguments to find a StateTransitionLog
|
|
739
|
+
* @example
|
|
740
|
+
* // Get one StateTransitionLog
|
|
741
|
+
* const stateTransitionLog = await prisma.stateTransitionLog.findUnique({
|
|
742
|
+
* where: {
|
|
743
|
+
* // ... provide filter here
|
|
744
|
+
* }
|
|
745
|
+
* })
|
|
746
|
+
*/
|
|
747
|
+
findUnique<T extends StateTransitionLogFindUniqueArgs>(args: Prisma.SelectSubset<T, StateTransitionLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StateTransitionLogClient<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
748
|
+
/**
|
|
749
|
+
* Find one StateTransitionLog that matches the filter or throw an error with `error.code='P2025'`
|
|
750
|
+
* if no matches were found.
|
|
751
|
+
* @param {StateTransitionLogFindUniqueOrThrowArgs} args - Arguments to find a StateTransitionLog
|
|
752
|
+
* @example
|
|
753
|
+
* // Get one StateTransitionLog
|
|
754
|
+
* const stateTransitionLog = await prisma.stateTransitionLog.findUniqueOrThrow({
|
|
755
|
+
* where: {
|
|
756
|
+
* // ... provide filter here
|
|
757
|
+
* }
|
|
758
|
+
* })
|
|
759
|
+
*/
|
|
760
|
+
findUniqueOrThrow<T extends StateTransitionLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StateTransitionLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StateTransitionLogClient<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
761
|
+
/**
|
|
762
|
+
* Find the first StateTransitionLog that matches the filter.
|
|
763
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
764
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
765
|
+
* @param {StateTransitionLogFindFirstArgs} args - Arguments to find a StateTransitionLog
|
|
766
|
+
* @example
|
|
767
|
+
* // Get one StateTransitionLog
|
|
768
|
+
* const stateTransitionLog = await prisma.stateTransitionLog.findFirst({
|
|
769
|
+
* where: {
|
|
770
|
+
* // ... provide filter here
|
|
771
|
+
* }
|
|
772
|
+
* })
|
|
773
|
+
*/
|
|
774
|
+
findFirst<T extends StateTransitionLogFindFirstArgs>(args?: Prisma.SelectSubset<T, StateTransitionLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__StateTransitionLogClient<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
775
|
+
/**
|
|
776
|
+
* Find the first StateTransitionLog that matches the filter or
|
|
777
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
778
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
779
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
780
|
+
* @param {StateTransitionLogFindFirstOrThrowArgs} args - Arguments to find a StateTransitionLog
|
|
781
|
+
* @example
|
|
782
|
+
* // Get one StateTransitionLog
|
|
783
|
+
* const stateTransitionLog = await prisma.stateTransitionLog.findFirstOrThrow({
|
|
784
|
+
* where: {
|
|
785
|
+
* // ... provide filter here
|
|
786
|
+
* }
|
|
787
|
+
* })
|
|
788
|
+
*/
|
|
789
|
+
findFirstOrThrow<T extends StateTransitionLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StateTransitionLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StateTransitionLogClient<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
790
|
+
/**
|
|
791
|
+
* Find zero or more StateTransitionLogs that matches the filter.
|
|
792
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
793
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
794
|
+
* @param {StateTransitionLogFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
795
|
+
* @example
|
|
796
|
+
* // Get all StateTransitionLogs
|
|
797
|
+
* const stateTransitionLogs = await prisma.stateTransitionLog.findMany()
|
|
798
|
+
*
|
|
799
|
+
* // Get first 10 StateTransitionLogs
|
|
800
|
+
* const stateTransitionLogs = await prisma.stateTransitionLog.findMany({ take: 10 })
|
|
801
|
+
*
|
|
802
|
+
* // Only select the `id`
|
|
803
|
+
* const stateTransitionLogWithIdOnly = await prisma.stateTransitionLog.findMany({ select: { id: true } })
|
|
804
|
+
*
|
|
805
|
+
*/
|
|
806
|
+
findMany<T extends StateTransitionLogFindManyArgs>(args?: Prisma.SelectSubset<T, StateTransitionLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
807
|
+
/**
|
|
808
|
+
* Create a StateTransitionLog.
|
|
809
|
+
* @param {StateTransitionLogCreateArgs} args - Arguments to create a StateTransitionLog.
|
|
810
|
+
* @example
|
|
811
|
+
* // Create one StateTransitionLog
|
|
812
|
+
* const StateTransitionLog = await prisma.stateTransitionLog.create({
|
|
813
|
+
* data: {
|
|
814
|
+
* // ... data to create a StateTransitionLog
|
|
815
|
+
* }
|
|
816
|
+
* })
|
|
817
|
+
*
|
|
818
|
+
*/
|
|
819
|
+
create<T extends StateTransitionLogCreateArgs>(args: Prisma.SelectSubset<T, StateTransitionLogCreateArgs<ExtArgs>>): Prisma.Prisma__StateTransitionLogClient<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
820
|
+
/**
|
|
821
|
+
* Create many StateTransitionLogs.
|
|
822
|
+
* @param {StateTransitionLogCreateManyArgs} args - Arguments to create many StateTransitionLogs.
|
|
823
|
+
* @example
|
|
824
|
+
* // Create many StateTransitionLogs
|
|
825
|
+
* const stateTransitionLog = await prisma.stateTransitionLog.createMany({
|
|
826
|
+
* data: [
|
|
827
|
+
* // ... provide data here
|
|
828
|
+
* ]
|
|
829
|
+
* })
|
|
830
|
+
*
|
|
831
|
+
*/
|
|
832
|
+
createMany<T extends StateTransitionLogCreateManyArgs>(args?: Prisma.SelectSubset<T, StateTransitionLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
833
|
+
/**
|
|
834
|
+
* Delete a StateTransitionLog.
|
|
835
|
+
* @param {StateTransitionLogDeleteArgs} args - Arguments to delete one StateTransitionLog.
|
|
836
|
+
* @example
|
|
837
|
+
* // Delete one StateTransitionLog
|
|
838
|
+
* const StateTransitionLog = await prisma.stateTransitionLog.delete({
|
|
839
|
+
* where: {
|
|
840
|
+
* // ... filter to delete one StateTransitionLog
|
|
841
|
+
* }
|
|
842
|
+
* })
|
|
843
|
+
*
|
|
844
|
+
*/
|
|
845
|
+
delete<T extends StateTransitionLogDeleteArgs>(args: Prisma.SelectSubset<T, StateTransitionLogDeleteArgs<ExtArgs>>): Prisma.Prisma__StateTransitionLogClient<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
846
|
+
/**
|
|
847
|
+
* Update one StateTransitionLog.
|
|
848
|
+
* @param {StateTransitionLogUpdateArgs} args - Arguments to update one StateTransitionLog.
|
|
849
|
+
* @example
|
|
850
|
+
* // Update one StateTransitionLog
|
|
851
|
+
* const stateTransitionLog = await prisma.stateTransitionLog.update({
|
|
852
|
+
* where: {
|
|
853
|
+
* // ... provide filter here
|
|
854
|
+
* },
|
|
855
|
+
* data: {
|
|
856
|
+
* // ... provide data here
|
|
857
|
+
* }
|
|
858
|
+
* })
|
|
859
|
+
*
|
|
860
|
+
*/
|
|
861
|
+
update<T extends StateTransitionLogUpdateArgs>(args: Prisma.SelectSubset<T, StateTransitionLogUpdateArgs<ExtArgs>>): Prisma.Prisma__StateTransitionLogClient<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
862
|
+
/**
|
|
863
|
+
* Delete zero or more StateTransitionLogs.
|
|
864
|
+
* @param {StateTransitionLogDeleteManyArgs} args - Arguments to filter StateTransitionLogs to delete.
|
|
865
|
+
* @example
|
|
866
|
+
* // Delete a few StateTransitionLogs
|
|
867
|
+
* const { count } = await prisma.stateTransitionLog.deleteMany({
|
|
868
|
+
* where: {
|
|
869
|
+
* // ... provide filter here
|
|
870
|
+
* }
|
|
871
|
+
* })
|
|
872
|
+
*
|
|
873
|
+
*/
|
|
874
|
+
deleteMany<T extends StateTransitionLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, StateTransitionLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
875
|
+
/**
|
|
876
|
+
* Update zero or more StateTransitionLogs.
|
|
877
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
878
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
879
|
+
* @param {StateTransitionLogUpdateManyArgs} args - Arguments to update one or more rows.
|
|
880
|
+
* @example
|
|
881
|
+
* // Update many StateTransitionLogs
|
|
882
|
+
* const stateTransitionLog = await prisma.stateTransitionLog.updateMany({
|
|
883
|
+
* where: {
|
|
884
|
+
* // ... provide filter here
|
|
885
|
+
* },
|
|
886
|
+
* data: {
|
|
887
|
+
* // ... provide data here
|
|
888
|
+
* }
|
|
889
|
+
* })
|
|
890
|
+
*
|
|
891
|
+
*/
|
|
892
|
+
updateMany<T extends StateTransitionLogUpdateManyArgs>(args: Prisma.SelectSubset<T, StateTransitionLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
893
|
+
/**
|
|
894
|
+
* Create or update one StateTransitionLog.
|
|
895
|
+
* @param {StateTransitionLogUpsertArgs} args - Arguments to update or create a StateTransitionLog.
|
|
896
|
+
* @example
|
|
897
|
+
* // Update or create a StateTransitionLog
|
|
898
|
+
* const stateTransitionLog = await prisma.stateTransitionLog.upsert({
|
|
899
|
+
* create: {
|
|
900
|
+
* // ... data to create a StateTransitionLog
|
|
901
|
+
* },
|
|
902
|
+
* update: {
|
|
903
|
+
* // ... in case it already exists, update
|
|
904
|
+
* },
|
|
905
|
+
* where: {
|
|
906
|
+
* // ... the filter for the StateTransitionLog we want to update
|
|
907
|
+
* }
|
|
908
|
+
* })
|
|
909
|
+
*/
|
|
910
|
+
upsert<T extends StateTransitionLogUpsertArgs>(args: Prisma.SelectSubset<T, StateTransitionLogUpsertArgs<ExtArgs>>): Prisma.Prisma__StateTransitionLogClient<runtime.Types.Result.GetResult<Prisma.$StateTransitionLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
911
|
+
/**
|
|
912
|
+
* Count the number of StateTransitionLogs.
|
|
913
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
914
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
915
|
+
* @param {StateTransitionLogCountArgs} args - Arguments to filter StateTransitionLogs to count.
|
|
916
|
+
* @example
|
|
917
|
+
* // Count the number of StateTransitionLogs
|
|
918
|
+
* const count = await prisma.stateTransitionLog.count({
|
|
919
|
+
* where: {
|
|
920
|
+
* // ... the filter for the StateTransitionLogs we want to count
|
|
921
|
+
* }
|
|
922
|
+
* })
|
|
923
|
+
**/
|
|
924
|
+
count<T extends StateTransitionLogCountArgs>(args?: Prisma.Subset<T, StateTransitionLogCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], StateTransitionLogCountAggregateOutputType> : number>;
|
|
925
|
+
/**
|
|
926
|
+
* Allows you to perform aggregations operations on a StateTransitionLog.
|
|
927
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
928
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
929
|
+
* @param {StateTransitionLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
930
|
+
* @example
|
|
931
|
+
* // Ordered by age ascending
|
|
932
|
+
* // Where email contains prisma.io
|
|
933
|
+
* // Limited to the 10 users
|
|
934
|
+
* const aggregations = await prisma.user.aggregate({
|
|
935
|
+
* _avg: {
|
|
936
|
+
* age: true,
|
|
937
|
+
* },
|
|
938
|
+
* where: {
|
|
939
|
+
* email: {
|
|
940
|
+
* contains: "prisma.io",
|
|
941
|
+
* },
|
|
942
|
+
* },
|
|
943
|
+
* orderBy: {
|
|
944
|
+
* age: "asc",
|
|
945
|
+
* },
|
|
946
|
+
* take: 10,
|
|
947
|
+
* })
|
|
948
|
+
**/
|
|
949
|
+
aggregate<T extends StateTransitionLogAggregateArgs>(args: Prisma.Subset<T, StateTransitionLogAggregateArgs>): Prisma.PrismaPromise<GetStateTransitionLogAggregateType<T>>;
|
|
950
|
+
/**
|
|
951
|
+
* Group by StateTransitionLog.
|
|
952
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
953
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
954
|
+
* @param {StateTransitionLogGroupByArgs} args - Group by arguments.
|
|
955
|
+
* @example
|
|
956
|
+
* // Group by city, order by createdAt, get count
|
|
957
|
+
* const result = await prisma.user.groupBy({
|
|
958
|
+
* by: ['city', 'createdAt'],
|
|
959
|
+
* orderBy: {
|
|
960
|
+
* createdAt: true
|
|
961
|
+
* },
|
|
962
|
+
* _count: {
|
|
963
|
+
* _all: true
|
|
964
|
+
* },
|
|
965
|
+
* })
|
|
966
|
+
*
|
|
967
|
+
**/
|
|
968
|
+
groupBy<T extends StateTransitionLogGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
969
|
+
orderBy: StateTransitionLogGroupByArgs['orderBy'];
|
|
970
|
+
} : {
|
|
971
|
+
orderBy?: StateTransitionLogGroupByArgs['orderBy'];
|
|
972
|
+
}, 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 ? {
|
|
973
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
974
|
+
Error,
|
|
975
|
+
'Field ',
|
|
976
|
+
P,
|
|
977
|
+
` in "having" needs to be provided in "by"`
|
|
978
|
+
];
|
|
979
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
980
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
981
|
+
}[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 ? {} : {
|
|
982
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
983
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
984
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
985
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, StateTransitionLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStateTransitionLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
986
|
+
/**
|
|
987
|
+
* Fields of the StateTransitionLog model
|
|
988
|
+
*/
|
|
989
|
+
readonly fields: StateTransitionLogFieldRefs;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* The delegate class that acts as a "Promise-like" for StateTransitionLog.
|
|
993
|
+
* Why is this prefixed with `Prisma__`?
|
|
994
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
995
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
996
|
+
*/
|
|
997
|
+
export interface Prisma__StateTransitionLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
998
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
999
|
+
tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1002
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1003
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1004
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1005
|
+
*/
|
|
1006
|
+
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>;
|
|
1007
|
+
/**
|
|
1008
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1009
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1010
|
+
* @returns A Promise for the completion of the callback.
|
|
1011
|
+
*/
|
|
1012
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1015
|
+
* resolved value cannot be modified from the callback.
|
|
1016
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1017
|
+
* @returns A Promise for the completion of the callback.
|
|
1018
|
+
*/
|
|
1019
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Fields of the StateTransitionLog model
|
|
1023
|
+
*/
|
|
1024
|
+
export interface StateTransitionLogFieldRefs {
|
|
1025
|
+
readonly id: Prisma.FieldRef<"StateTransitionLog", 'String'>;
|
|
1026
|
+
readonly tenantId: Prisma.FieldRef<"StateTransitionLog", 'String'>;
|
|
1027
|
+
readonly entityType: Prisma.FieldRef<"StateTransitionLog", 'StateMachineEntity'>;
|
|
1028
|
+
readonly entityId: Prisma.FieldRef<"StateTransitionLog", 'String'>;
|
|
1029
|
+
readonly fromState: Prisma.FieldRef<"StateTransitionLog", 'String'>;
|
|
1030
|
+
readonly toState: Prisma.FieldRef<"StateTransitionLog", 'String'>;
|
|
1031
|
+
readonly trigger: Prisma.FieldRef<"StateTransitionLog", 'String'>;
|
|
1032
|
+
readonly actorId: Prisma.FieldRef<"StateTransitionLog", 'String'>;
|
|
1033
|
+
readonly actorType: Prisma.FieldRef<"StateTransitionLog", 'EventActorType'>;
|
|
1034
|
+
readonly contextSnapshot: Prisma.FieldRef<"StateTransitionLog", 'Json'>;
|
|
1035
|
+
readonly occurredAt: Prisma.FieldRef<"StateTransitionLog", 'DateTime'>;
|
|
1036
|
+
readonly durationMs: Prisma.FieldRef<"StateTransitionLog", 'Int'>;
|
|
1037
|
+
readonly wasValid: Prisma.FieldRef<"StateTransitionLog", 'Boolean'>;
|
|
1038
|
+
readonly errorMessage: Prisma.FieldRef<"StateTransitionLog", 'String'>;
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* StateTransitionLog findUnique
|
|
1042
|
+
*/
|
|
1043
|
+
export type StateTransitionLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1044
|
+
/**
|
|
1045
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1046
|
+
*/
|
|
1047
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1048
|
+
/**
|
|
1049
|
+
* Omit specific fields from the StateTransitionLog
|
|
1050
|
+
*/
|
|
1051
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1052
|
+
/**
|
|
1053
|
+
* Choose, which related nodes to fetch as well
|
|
1054
|
+
*/
|
|
1055
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1056
|
+
/**
|
|
1057
|
+
* Filter, which StateTransitionLog to fetch.
|
|
1058
|
+
*/
|
|
1059
|
+
where: Prisma.StateTransitionLogWhereUniqueInput;
|
|
1060
|
+
};
|
|
1061
|
+
/**
|
|
1062
|
+
* StateTransitionLog findUniqueOrThrow
|
|
1063
|
+
*/
|
|
1064
|
+
export type StateTransitionLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1065
|
+
/**
|
|
1066
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1067
|
+
*/
|
|
1068
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* Omit specific fields from the StateTransitionLog
|
|
1071
|
+
*/
|
|
1072
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1073
|
+
/**
|
|
1074
|
+
* Choose, which related nodes to fetch as well
|
|
1075
|
+
*/
|
|
1076
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1077
|
+
/**
|
|
1078
|
+
* Filter, which StateTransitionLog to fetch.
|
|
1079
|
+
*/
|
|
1080
|
+
where: Prisma.StateTransitionLogWhereUniqueInput;
|
|
1081
|
+
};
|
|
1082
|
+
/**
|
|
1083
|
+
* StateTransitionLog findFirst
|
|
1084
|
+
*/
|
|
1085
|
+
export type StateTransitionLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1086
|
+
/**
|
|
1087
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1088
|
+
*/
|
|
1089
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1090
|
+
/**
|
|
1091
|
+
* Omit specific fields from the StateTransitionLog
|
|
1092
|
+
*/
|
|
1093
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1094
|
+
/**
|
|
1095
|
+
* Choose, which related nodes to fetch as well
|
|
1096
|
+
*/
|
|
1097
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* Filter, which StateTransitionLog to fetch.
|
|
1100
|
+
*/
|
|
1101
|
+
where?: Prisma.StateTransitionLogWhereInput;
|
|
1102
|
+
/**
|
|
1103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1104
|
+
*
|
|
1105
|
+
* Determine the order of StateTransitionLogs to fetch.
|
|
1106
|
+
*/
|
|
1107
|
+
orderBy?: Prisma.StateTransitionLogOrderByWithRelationInput | Prisma.StateTransitionLogOrderByWithRelationInput[];
|
|
1108
|
+
/**
|
|
1109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1110
|
+
*
|
|
1111
|
+
* Sets the position for searching for StateTransitionLogs.
|
|
1112
|
+
*/
|
|
1113
|
+
cursor?: Prisma.StateTransitionLogWhereUniqueInput;
|
|
1114
|
+
/**
|
|
1115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1116
|
+
*
|
|
1117
|
+
* Take `±n` StateTransitionLogs from the position of the cursor.
|
|
1118
|
+
*/
|
|
1119
|
+
take?: number;
|
|
1120
|
+
/**
|
|
1121
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1122
|
+
*
|
|
1123
|
+
* Skip the first `n` StateTransitionLogs.
|
|
1124
|
+
*/
|
|
1125
|
+
skip?: number;
|
|
1126
|
+
/**
|
|
1127
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1128
|
+
*
|
|
1129
|
+
* Filter by unique combinations of StateTransitionLogs.
|
|
1130
|
+
*/
|
|
1131
|
+
distinct?: Prisma.StateTransitionLogScalarFieldEnum | Prisma.StateTransitionLogScalarFieldEnum[];
|
|
1132
|
+
};
|
|
1133
|
+
/**
|
|
1134
|
+
* StateTransitionLog findFirstOrThrow
|
|
1135
|
+
*/
|
|
1136
|
+
export type StateTransitionLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1137
|
+
/**
|
|
1138
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1139
|
+
*/
|
|
1140
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* Omit specific fields from the StateTransitionLog
|
|
1143
|
+
*/
|
|
1144
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1145
|
+
/**
|
|
1146
|
+
* Choose, which related nodes to fetch as well
|
|
1147
|
+
*/
|
|
1148
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1149
|
+
/**
|
|
1150
|
+
* Filter, which StateTransitionLog to fetch.
|
|
1151
|
+
*/
|
|
1152
|
+
where?: Prisma.StateTransitionLogWhereInput;
|
|
1153
|
+
/**
|
|
1154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1155
|
+
*
|
|
1156
|
+
* Determine the order of StateTransitionLogs to fetch.
|
|
1157
|
+
*/
|
|
1158
|
+
orderBy?: Prisma.StateTransitionLogOrderByWithRelationInput | Prisma.StateTransitionLogOrderByWithRelationInput[];
|
|
1159
|
+
/**
|
|
1160
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1161
|
+
*
|
|
1162
|
+
* Sets the position for searching for StateTransitionLogs.
|
|
1163
|
+
*/
|
|
1164
|
+
cursor?: Prisma.StateTransitionLogWhereUniqueInput;
|
|
1165
|
+
/**
|
|
1166
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1167
|
+
*
|
|
1168
|
+
* Take `±n` StateTransitionLogs from the position of the cursor.
|
|
1169
|
+
*/
|
|
1170
|
+
take?: number;
|
|
1171
|
+
/**
|
|
1172
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1173
|
+
*
|
|
1174
|
+
* Skip the first `n` StateTransitionLogs.
|
|
1175
|
+
*/
|
|
1176
|
+
skip?: number;
|
|
1177
|
+
/**
|
|
1178
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1179
|
+
*
|
|
1180
|
+
* Filter by unique combinations of StateTransitionLogs.
|
|
1181
|
+
*/
|
|
1182
|
+
distinct?: Prisma.StateTransitionLogScalarFieldEnum | Prisma.StateTransitionLogScalarFieldEnum[];
|
|
1183
|
+
};
|
|
1184
|
+
/**
|
|
1185
|
+
* StateTransitionLog findMany
|
|
1186
|
+
*/
|
|
1187
|
+
export type StateTransitionLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1188
|
+
/**
|
|
1189
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1190
|
+
*/
|
|
1191
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1192
|
+
/**
|
|
1193
|
+
* Omit specific fields from the StateTransitionLog
|
|
1194
|
+
*/
|
|
1195
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1196
|
+
/**
|
|
1197
|
+
* Choose, which related nodes to fetch as well
|
|
1198
|
+
*/
|
|
1199
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1200
|
+
/**
|
|
1201
|
+
* Filter, which StateTransitionLogs to fetch.
|
|
1202
|
+
*/
|
|
1203
|
+
where?: Prisma.StateTransitionLogWhereInput;
|
|
1204
|
+
/**
|
|
1205
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1206
|
+
*
|
|
1207
|
+
* Determine the order of StateTransitionLogs to fetch.
|
|
1208
|
+
*/
|
|
1209
|
+
orderBy?: Prisma.StateTransitionLogOrderByWithRelationInput | Prisma.StateTransitionLogOrderByWithRelationInput[];
|
|
1210
|
+
/**
|
|
1211
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1212
|
+
*
|
|
1213
|
+
* Sets the position for listing StateTransitionLogs.
|
|
1214
|
+
*/
|
|
1215
|
+
cursor?: Prisma.StateTransitionLogWhereUniqueInput;
|
|
1216
|
+
/**
|
|
1217
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1218
|
+
*
|
|
1219
|
+
* Take `±n` StateTransitionLogs from the position of the cursor.
|
|
1220
|
+
*/
|
|
1221
|
+
take?: number;
|
|
1222
|
+
/**
|
|
1223
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1224
|
+
*
|
|
1225
|
+
* Skip the first `n` StateTransitionLogs.
|
|
1226
|
+
*/
|
|
1227
|
+
skip?: number;
|
|
1228
|
+
distinct?: Prisma.StateTransitionLogScalarFieldEnum | Prisma.StateTransitionLogScalarFieldEnum[];
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* StateTransitionLog create
|
|
1232
|
+
*/
|
|
1233
|
+
export type StateTransitionLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1234
|
+
/**
|
|
1235
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1236
|
+
*/
|
|
1237
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1238
|
+
/**
|
|
1239
|
+
* Omit specific fields from the StateTransitionLog
|
|
1240
|
+
*/
|
|
1241
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* Choose, which related nodes to fetch as well
|
|
1244
|
+
*/
|
|
1245
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1246
|
+
/**
|
|
1247
|
+
* The data needed to create a StateTransitionLog.
|
|
1248
|
+
*/
|
|
1249
|
+
data: Prisma.XOR<Prisma.StateTransitionLogCreateInput, Prisma.StateTransitionLogUncheckedCreateInput>;
|
|
1250
|
+
};
|
|
1251
|
+
/**
|
|
1252
|
+
* StateTransitionLog createMany
|
|
1253
|
+
*/
|
|
1254
|
+
export type StateTransitionLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1255
|
+
/**
|
|
1256
|
+
* The data used to create many StateTransitionLogs.
|
|
1257
|
+
*/
|
|
1258
|
+
data: Prisma.StateTransitionLogCreateManyInput | Prisma.StateTransitionLogCreateManyInput[];
|
|
1259
|
+
skipDuplicates?: boolean;
|
|
1260
|
+
};
|
|
1261
|
+
/**
|
|
1262
|
+
* StateTransitionLog update
|
|
1263
|
+
*/
|
|
1264
|
+
export type StateTransitionLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1265
|
+
/**
|
|
1266
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1267
|
+
*/
|
|
1268
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1269
|
+
/**
|
|
1270
|
+
* Omit specific fields from the StateTransitionLog
|
|
1271
|
+
*/
|
|
1272
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Choose, which related nodes to fetch as well
|
|
1275
|
+
*/
|
|
1276
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* The data needed to update a StateTransitionLog.
|
|
1279
|
+
*/
|
|
1280
|
+
data: Prisma.XOR<Prisma.StateTransitionLogUpdateInput, Prisma.StateTransitionLogUncheckedUpdateInput>;
|
|
1281
|
+
/**
|
|
1282
|
+
* Choose, which StateTransitionLog to update.
|
|
1283
|
+
*/
|
|
1284
|
+
where: Prisma.StateTransitionLogWhereUniqueInput;
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* StateTransitionLog updateMany
|
|
1288
|
+
*/
|
|
1289
|
+
export type StateTransitionLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1290
|
+
/**
|
|
1291
|
+
* The data used to update StateTransitionLogs.
|
|
1292
|
+
*/
|
|
1293
|
+
data: Prisma.XOR<Prisma.StateTransitionLogUpdateManyMutationInput, Prisma.StateTransitionLogUncheckedUpdateManyInput>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Filter which StateTransitionLogs to update
|
|
1296
|
+
*/
|
|
1297
|
+
where?: Prisma.StateTransitionLogWhereInput;
|
|
1298
|
+
/**
|
|
1299
|
+
* Limit how many StateTransitionLogs to update.
|
|
1300
|
+
*/
|
|
1301
|
+
limit?: number;
|
|
1302
|
+
};
|
|
1303
|
+
/**
|
|
1304
|
+
* StateTransitionLog upsert
|
|
1305
|
+
*/
|
|
1306
|
+
export type StateTransitionLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1307
|
+
/**
|
|
1308
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1309
|
+
*/
|
|
1310
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1311
|
+
/**
|
|
1312
|
+
* Omit specific fields from the StateTransitionLog
|
|
1313
|
+
*/
|
|
1314
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1315
|
+
/**
|
|
1316
|
+
* Choose, which related nodes to fetch as well
|
|
1317
|
+
*/
|
|
1318
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1319
|
+
/**
|
|
1320
|
+
* The filter to search for the StateTransitionLog to update in case it exists.
|
|
1321
|
+
*/
|
|
1322
|
+
where: Prisma.StateTransitionLogWhereUniqueInput;
|
|
1323
|
+
/**
|
|
1324
|
+
* In case the StateTransitionLog found by the `where` argument doesn't exist, create a new StateTransitionLog with this data.
|
|
1325
|
+
*/
|
|
1326
|
+
create: Prisma.XOR<Prisma.StateTransitionLogCreateInput, Prisma.StateTransitionLogUncheckedCreateInput>;
|
|
1327
|
+
/**
|
|
1328
|
+
* In case the StateTransitionLog was found with the provided `where` argument, update it with this data.
|
|
1329
|
+
*/
|
|
1330
|
+
update: Prisma.XOR<Prisma.StateTransitionLogUpdateInput, Prisma.StateTransitionLogUncheckedUpdateInput>;
|
|
1331
|
+
};
|
|
1332
|
+
/**
|
|
1333
|
+
* StateTransitionLog delete
|
|
1334
|
+
*/
|
|
1335
|
+
export type StateTransitionLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1336
|
+
/**
|
|
1337
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1338
|
+
*/
|
|
1339
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1340
|
+
/**
|
|
1341
|
+
* Omit specific fields from the StateTransitionLog
|
|
1342
|
+
*/
|
|
1343
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1344
|
+
/**
|
|
1345
|
+
* Choose, which related nodes to fetch as well
|
|
1346
|
+
*/
|
|
1347
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1348
|
+
/**
|
|
1349
|
+
* Filter which StateTransitionLog to delete.
|
|
1350
|
+
*/
|
|
1351
|
+
where: Prisma.StateTransitionLogWhereUniqueInput;
|
|
1352
|
+
};
|
|
1353
|
+
/**
|
|
1354
|
+
* StateTransitionLog deleteMany
|
|
1355
|
+
*/
|
|
1356
|
+
export type StateTransitionLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1357
|
+
/**
|
|
1358
|
+
* Filter which StateTransitionLogs to delete
|
|
1359
|
+
*/
|
|
1360
|
+
where?: Prisma.StateTransitionLogWhereInput;
|
|
1361
|
+
/**
|
|
1362
|
+
* Limit how many StateTransitionLogs to delete.
|
|
1363
|
+
*/
|
|
1364
|
+
limit?: number;
|
|
1365
|
+
};
|
|
1366
|
+
/**
|
|
1367
|
+
* StateTransitionLog without action
|
|
1368
|
+
*/
|
|
1369
|
+
export type StateTransitionLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1370
|
+
/**
|
|
1371
|
+
* Select specific fields to fetch from the StateTransitionLog
|
|
1372
|
+
*/
|
|
1373
|
+
select?: Prisma.StateTransitionLogSelect<ExtArgs> | null;
|
|
1374
|
+
/**
|
|
1375
|
+
* Omit specific fields from the StateTransitionLog
|
|
1376
|
+
*/
|
|
1377
|
+
omit?: Prisma.StateTransitionLogOmit<ExtArgs> | null;
|
|
1378
|
+
/**
|
|
1379
|
+
* Choose, which related nodes to fetch as well
|
|
1380
|
+
*/
|
|
1381
|
+
include?: Prisma.StateTransitionLogInclude<ExtArgs> | null;
|
|
1382
|
+
};
|
|
1383
|
+
export {};
|