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