@naisys/erp 3.0.0-beta.3
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.
Potentially problematic release.
This version of @naisys/erp might be problematic. Click here for more details.
- package/bin/naisys-erp +2 -0
- package/client-dist/android-chrome-192x192.png +0 -0
- package/client-dist/android-chrome-512x512.png +0 -0
- package/client-dist/apple-touch-icon.png +0 -0
- package/client-dist/assets/index-45dVo30p.css +1 -0
- package/client-dist/assets/index-Dffms7F_.js +168 -0
- package/client-dist/assets/naisys-logo-CzoPnn5I.webp +0 -0
- package/client-dist/favicon.ico +0 -0
- package/client-dist/index.html +42 -0
- package/client-dist/site.webmanifest +22 -0
- package/dist/api-reference.d.ts +10 -0
- package/dist/api-reference.js +101 -0
- package/dist/audit.d.ts +5 -0
- package/dist/audit.js +14 -0
- package/dist/auth-middleware.d.ts +18 -0
- package/dist/auth-middleware.js +203 -0
- package/dist/dbConfig.d.ts +5 -0
- package/dist/dbConfig.js +10 -0
- package/dist/erpDb.d.ts +10 -0
- package/dist/erpDb.js +34 -0
- package/dist/erpServer.d.ts +10 -0
- package/dist/erpServer.js +321 -0
- package/dist/error-handler.d.ts +7 -0
- package/dist/error-handler.js +17 -0
- package/dist/generated/prisma/client.d.ts +154 -0
- package/dist/generated/prisma/client.js +35 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +637 -0
- package/dist/generated/prisma/commonInputTypes.js +11 -0
- package/dist/generated/prisma/enums.d.ts +59 -0
- package/dist/generated/prisma/enums.js +60 -0
- package/dist/generated/prisma/internal/class.d.ts +406 -0
- package/dist/generated/prisma/internal/class.js +50 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +2722 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +366 -0
- package/dist/generated/prisma/models/Attachment.d.ts +1455 -0
- package/dist/generated/prisma/models/Attachment.js +2 -0
- package/dist/generated/prisma/models/AuditLog.d.ts +1359 -0
- package/dist/generated/prisma/models/AuditLog.js +2 -0
- package/dist/generated/prisma/models/Field.d.ts +1880 -0
- package/dist/generated/prisma/models/Field.js +2 -0
- package/dist/generated/prisma/models/FieldAttachment.d.ts +1245 -0
- package/dist/generated/prisma/models/FieldAttachment.js +2 -0
- package/dist/generated/prisma/models/FieldRecord.d.ts +1625 -0
- package/dist/generated/prisma/models/FieldRecord.js +2 -0
- package/dist/generated/prisma/models/FieldSet.d.ts +1577 -0
- package/dist/generated/prisma/models/FieldSet.js +2 -0
- package/dist/generated/prisma/models/FieldValue.d.ts +1908 -0
- package/dist/generated/prisma/models/FieldValue.js +2 -0
- package/dist/generated/prisma/models/Item.d.ts +1858 -0
- package/dist/generated/prisma/models/Item.js +2 -0
- package/dist/generated/prisma/models/ItemInstance.d.ts +1987 -0
- package/dist/generated/prisma/models/ItemInstance.js +2 -0
- package/dist/generated/prisma/models/LaborTicket.d.ts +1867 -0
- package/dist/generated/prisma/models/LaborTicket.js +2 -0
- package/dist/generated/prisma/models/Operation.d.ts +2578 -0
- package/dist/generated/prisma/models/Operation.js +2 -0
- package/dist/generated/prisma/models/OperationDependency.d.ts +1434 -0
- package/dist/generated/prisma/models/OperationDependency.js +2 -0
- package/dist/generated/prisma/models/OperationFieldRef.d.ts +1539 -0
- package/dist/generated/prisma/models/OperationFieldRef.js +2 -0
- package/dist/generated/prisma/models/OperationRun.d.ts +2563 -0
- package/dist/generated/prisma/models/OperationRun.js +2 -0
- package/dist/generated/prisma/models/OperationRunComment.d.ts +1366 -0
- package/dist/generated/prisma/models/OperationRunComment.js +2 -0
- package/dist/generated/prisma/models/Order.d.ts +1931 -0
- package/dist/generated/prisma/models/Order.js +2 -0
- package/dist/generated/prisma/models/OrderRevision.d.ts +1962 -0
- package/dist/generated/prisma/models/OrderRevision.js +2 -0
- package/dist/generated/prisma/models/OrderRun.d.ts +2310 -0
- package/dist/generated/prisma/models/OrderRun.js +2 -0
- package/dist/generated/prisma/models/SchemaVersion.d.ts +985 -0
- package/dist/generated/prisma/models/SchemaVersion.js +2 -0
- package/dist/generated/prisma/models/Session.d.ts +1213 -0
- package/dist/generated/prisma/models/Session.js +2 -0
- package/dist/generated/prisma/models/Step.d.ts +2180 -0
- package/dist/generated/prisma/models/Step.js +2 -0
- package/dist/generated/prisma/models/StepRun.d.ts +1963 -0
- package/dist/generated/prisma/models/StepRun.js +2 -0
- package/dist/generated/prisma/models/User.d.ts +11819 -0
- package/dist/generated/prisma/models/User.js +2 -0
- package/dist/generated/prisma/models/UserPermission.d.ts +1348 -0
- package/dist/generated/prisma/models/UserPermission.js +2 -0
- package/dist/generated/prisma/models/WorkCenter.d.ts +1657 -0
- package/dist/generated/prisma/models/WorkCenter.js +2 -0
- package/dist/generated/prisma/models/WorkCenterUser.d.ts +1390 -0
- package/dist/generated/prisma/models/WorkCenterUser.js +2 -0
- package/dist/generated/prisma/models.d.ts +28 -0
- package/dist/generated/prisma/models.js +2 -0
- package/dist/hateoas.d.ts +7 -0
- package/dist/hateoas.js +61 -0
- package/dist/route-helpers.d.ts +318 -0
- package/dist/route-helpers.js +220 -0
- package/dist/routes/admin.d.ts +3 -0
- package/dist/routes/admin.js +147 -0
- package/dist/routes/audit.d.ts +3 -0
- package/dist/routes/audit.js +36 -0
- package/dist/routes/auth.d.ts +3 -0
- package/dist/routes/auth.js +112 -0
- package/dist/routes/dispatch.d.ts +3 -0
- package/dist/routes/dispatch.js +174 -0
- package/dist/routes/inventory.d.ts +3 -0
- package/dist/routes/inventory.js +70 -0
- package/dist/routes/item-fields.d.ts +3 -0
- package/dist/routes/item-fields.js +220 -0
- package/dist/routes/item-instances.d.ts +3 -0
- package/dist/routes/item-instances.js +426 -0
- package/dist/routes/items.d.ts +3 -0
- package/dist/routes/items.js +252 -0
- package/dist/routes/labor-tickets.d.ts +3 -0
- package/dist/routes/labor-tickets.js +268 -0
- package/dist/routes/operation-dependencies.d.ts +3 -0
- package/dist/routes/operation-dependencies.js +170 -0
- package/dist/routes/operation-field-refs.d.ts +3 -0
- package/dist/routes/operation-field-refs.js +263 -0
- package/dist/routes/operation-run-comments.d.ts +3 -0
- package/dist/routes/operation-run-comments.js +108 -0
- package/dist/routes/operation-run-transitions.d.ts +3 -0
- package/dist/routes/operation-run-transitions.js +249 -0
- package/dist/routes/operation-runs.d.ts +112 -0
- package/dist/routes/operation-runs.js +299 -0
- package/dist/routes/operations.d.ts +3 -0
- package/dist/routes/operations.js +283 -0
- package/dist/routes/order-revision-transitions.d.ts +3 -0
- package/dist/routes/order-revision-transitions.js +86 -0
- package/dist/routes/order-revisions.d.ts +51 -0
- package/dist/routes/order-revisions.js +327 -0
- package/dist/routes/order-run-transitions.d.ts +3 -0
- package/dist/routes/order-run-transitions.js +215 -0
- package/dist/routes/order-runs.d.ts +58 -0
- package/dist/routes/order-runs.js +335 -0
- package/dist/routes/orders.d.ts +3 -0
- package/dist/routes/orders.js +262 -0
- package/dist/routes/root.d.ts +3 -0
- package/dist/routes/root.js +123 -0
- package/dist/routes/schemas.d.ts +3 -0
- package/dist/routes/schemas.js +31 -0
- package/dist/routes/step-field-attachments.d.ts +3 -0
- package/dist/routes/step-field-attachments.js +231 -0
- package/dist/routes/step-fields.d.ts +100 -0
- package/dist/routes/step-fields.js +315 -0
- package/dist/routes/step-run-fields.d.ts +3 -0
- package/dist/routes/step-run-fields.js +438 -0
- package/dist/routes/step-run-transitions.d.ts +3 -0
- package/dist/routes/step-run-transitions.js +113 -0
- package/dist/routes/step-runs.d.ts +332 -0
- package/dist/routes/step-runs.js +324 -0
- package/dist/routes/steps.d.ts +3 -0
- package/dist/routes/steps.js +283 -0
- package/dist/routes/user-permissions.d.ts +3 -0
- package/dist/routes/user-permissions.js +100 -0
- package/dist/routes/users.d.ts +57 -0
- package/dist/routes/users.js +381 -0
- package/dist/routes/work-centers.d.ts +3 -0
- package/dist/routes/work-centers.js +280 -0
- package/dist/schema-registry.d.ts +3 -0
- package/dist/schema-registry.js +45 -0
- package/dist/services/attachment-service.d.ts +33 -0
- package/dist/services/attachment-service.js +118 -0
- package/dist/services/field-ref-service.d.ts +96 -0
- package/dist/services/field-ref-service.js +74 -0
- package/dist/services/field-service.d.ts +49 -0
- package/dist/services/field-service.js +114 -0
- package/dist/services/field-value-service.d.ts +61 -0
- package/dist/services/field-value-service.js +256 -0
- package/dist/services/item-instance-service.d.ts +152 -0
- package/dist/services/item-instance-service.js +155 -0
- package/dist/services/item-service.d.ts +47 -0
- package/dist/services/item-service.js +56 -0
- package/dist/services/labor-ticket-service.d.ts +40 -0
- package/dist/services/labor-ticket-service.js +148 -0
- package/dist/services/log-file-service.d.ts +4 -0
- package/dist/services/log-file-service.js +11 -0
- package/dist/services/operation-dependency-service.d.ts +33 -0
- package/dist/services/operation-dependency-service.js +30 -0
- package/dist/services/operation-run-comment-service.d.ts +17 -0
- package/dist/services/operation-run-comment-service.js +26 -0
- package/dist/services/operation-run-service.d.ts +126 -0
- package/dist/services/operation-run-service.js +347 -0
- package/dist/services/operation-service.d.ts +47 -0
- package/dist/services/operation-service.js +132 -0
- package/dist/services/order-revision-service.d.ts +53 -0
- package/dist/services/order-revision-service.js +264 -0
- package/dist/services/order-run-service.d.ts +138 -0
- package/dist/services/order-run-service.js +356 -0
- package/dist/services/order-service.d.ts +15 -0
- package/dist/services/order-service.js +68 -0
- package/dist/services/revision-diff-service.d.ts +3 -0
- package/dist/services/revision-diff-service.js +194 -0
- package/dist/services/step-run-service.d.ts +172 -0
- package/dist/services/step-run-service.js +106 -0
- package/dist/services/step-service.d.ts +104 -0
- package/dist/services/step-service.js +89 -0
- package/dist/services/user-service.d.ts +185 -0
- package/dist/services/user-service.js +132 -0
- package/dist/services/work-center-service.d.ts +29 -0
- package/dist/services/work-center-service.js +106 -0
- package/dist/supervisorAuth.d.ts +3 -0
- package/dist/supervisorAuth.js +16 -0
- package/dist/userService.d.ts +20 -0
- package/dist/userService.js +118 -0
- package/package.json +69 -0
|
@@ -0,0 +1,1348 @@
|
|
|
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 UserPermission
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type UserPermissionModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPermissionPayload>;
|
|
9
|
+
export type AggregateUserPermission = {
|
|
10
|
+
_count: UserPermissionCountAggregateOutputType | null;
|
|
11
|
+
_avg: UserPermissionAvgAggregateOutputType | null;
|
|
12
|
+
_sum: UserPermissionSumAggregateOutputType | null;
|
|
13
|
+
_min: UserPermissionMinAggregateOutputType | null;
|
|
14
|
+
_max: UserPermissionMaxAggregateOutputType | null;
|
|
15
|
+
};
|
|
16
|
+
export type UserPermissionAvgAggregateOutputType = {
|
|
17
|
+
id: number | null;
|
|
18
|
+
userId: number | null;
|
|
19
|
+
grantedBy: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type UserPermissionSumAggregateOutputType = {
|
|
22
|
+
id: number | null;
|
|
23
|
+
userId: number | null;
|
|
24
|
+
grantedBy: number | null;
|
|
25
|
+
};
|
|
26
|
+
export type UserPermissionMinAggregateOutputType = {
|
|
27
|
+
id: number | null;
|
|
28
|
+
userId: number | null;
|
|
29
|
+
permission: $Enums.ErpPermission | null;
|
|
30
|
+
grantedAt: Date | null;
|
|
31
|
+
grantedBy: number | null;
|
|
32
|
+
};
|
|
33
|
+
export type UserPermissionMaxAggregateOutputType = {
|
|
34
|
+
id: number | null;
|
|
35
|
+
userId: number | null;
|
|
36
|
+
permission: $Enums.ErpPermission | null;
|
|
37
|
+
grantedAt: Date | null;
|
|
38
|
+
grantedBy: number | null;
|
|
39
|
+
};
|
|
40
|
+
export type UserPermissionCountAggregateOutputType = {
|
|
41
|
+
id: number;
|
|
42
|
+
userId: number;
|
|
43
|
+
permission: number;
|
|
44
|
+
grantedAt: number;
|
|
45
|
+
grantedBy: number;
|
|
46
|
+
_all: number;
|
|
47
|
+
};
|
|
48
|
+
export type UserPermissionAvgAggregateInputType = {
|
|
49
|
+
id?: true;
|
|
50
|
+
userId?: true;
|
|
51
|
+
grantedBy?: true;
|
|
52
|
+
};
|
|
53
|
+
export type UserPermissionSumAggregateInputType = {
|
|
54
|
+
id?: true;
|
|
55
|
+
userId?: true;
|
|
56
|
+
grantedBy?: true;
|
|
57
|
+
};
|
|
58
|
+
export type UserPermissionMinAggregateInputType = {
|
|
59
|
+
id?: true;
|
|
60
|
+
userId?: true;
|
|
61
|
+
permission?: true;
|
|
62
|
+
grantedAt?: true;
|
|
63
|
+
grantedBy?: true;
|
|
64
|
+
};
|
|
65
|
+
export type UserPermissionMaxAggregateInputType = {
|
|
66
|
+
id?: true;
|
|
67
|
+
userId?: true;
|
|
68
|
+
permission?: true;
|
|
69
|
+
grantedAt?: true;
|
|
70
|
+
grantedBy?: true;
|
|
71
|
+
};
|
|
72
|
+
export type UserPermissionCountAggregateInputType = {
|
|
73
|
+
id?: true;
|
|
74
|
+
userId?: true;
|
|
75
|
+
permission?: true;
|
|
76
|
+
grantedAt?: true;
|
|
77
|
+
grantedBy?: true;
|
|
78
|
+
_all?: true;
|
|
79
|
+
};
|
|
80
|
+
export type UserPermissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
81
|
+
/**
|
|
82
|
+
* Filter which UserPermission to aggregate.
|
|
83
|
+
*/
|
|
84
|
+
where?: Prisma.UserPermissionWhereInput;
|
|
85
|
+
/**
|
|
86
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
87
|
+
*
|
|
88
|
+
* Determine the order of UserPermissions to fetch.
|
|
89
|
+
*/
|
|
90
|
+
orderBy?: Prisma.UserPermissionOrderByWithRelationInput | Prisma.UserPermissionOrderByWithRelationInput[];
|
|
91
|
+
/**
|
|
92
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
93
|
+
*
|
|
94
|
+
* Sets the start position
|
|
95
|
+
*/
|
|
96
|
+
cursor?: Prisma.UserPermissionWhereUniqueInput;
|
|
97
|
+
/**
|
|
98
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
99
|
+
*
|
|
100
|
+
* Take `±n` UserPermissions from the position of the cursor.
|
|
101
|
+
*/
|
|
102
|
+
take?: number;
|
|
103
|
+
/**
|
|
104
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
105
|
+
*
|
|
106
|
+
* Skip the first `n` UserPermissions.
|
|
107
|
+
*/
|
|
108
|
+
skip?: number;
|
|
109
|
+
/**
|
|
110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
111
|
+
*
|
|
112
|
+
* Count returned UserPermissions
|
|
113
|
+
**/
|
|
114
|
+
_count?: true | UserPermissionCountAggregateInputType;
|
|
115
|
+
/**
|
|
116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
117
|
+
*
|
|
118
|
+
* Select which fields to average
|
|
119
|
+
**/
|
|
120
|
+
_avg?: UserPermissionAvgAggregateInputType;
|
|
121
|
+
/**
|
|
122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
123
|
+
*
|
|
124
|
+
* Select which fields to sum
|
|
125
|
+
**/
|
|
126
|
+
_sum?: UserPermissionSumAggregateInputType;
|
|
127
|
+
/**
|
|
128
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
129
|
+
*
|
|
130
|
+
* Select which fields to find the minimum value
|
|
131
|
+
**/
|
|
132
|
+
_min?: UserPermissionMinAggregateInputType;
|
|
133
|
+
/**
|
|
134
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
135
|
+
*
|
|
136
|
+
* Select which fields to find the maximum value
|
|
137
|
+
**/
|
|
138
|
+
_max?: UserPermissionMaxAggregateInputType;
|
|
139
|
+
};
|
|
140
|
+
export type GetUserPermissionAggregateType<T extends UserPermissionAggregateArgs> = {
|
|
141
|
+
[P in keyof T & keyof AggregateUserPermission]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateUserPermission[P]> : Prisma.GetScalarType<T[P], AggregateUserPermission[P]>;
|
|
142
|
+
};
|
|
143
|
+
export type UserPermissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
144
|
+
where?: Prisma.UserPermissionWhereInput;
|
|
145
|
+
orderBy?: Prisma.UserPermissionOrderByWithAggregationInput | Prisma.UserPermissionOrderByWithAggregationInput[];
|
|
146
|
+
by: Prisma.UserPermissionScalarFieldEnum[] | Prisma.UserPermissionScalarFieldEnum;
|
|
147
|
+
having?: Prisma.UserPermissionScalarWhereWithAggregatesInput;
|
|
148
|
+
take?: number;
|
|
149
|
+
skip?: number;
|
|
150
|
+
_count?: UserPermissionCountAggregateInputType | true;
|
|
151
|
+
_avg?: UserPermissionAvgAggregateInputType;
|
|
152
|
+
_sum?: UserPermissionSumAggregateInputType;
|
|
153
|
+
_min?: UserPermissionMinAggregateInputType;
|
|
154
|
+
_max?: UserPermissionMaxAggregateInputType;
|
|
155
|
+
};
|
|
156
|
+
export type UserPermissionGroupByOutputType = {
|
|
157
|
+
id: number;
|
|
158
|
+
userId: number;
|
|
159
|
+
permission: $Enums.ErpPermission;
|
|
160
|
+
grantedAt: Date;
|
|
161
|
+
grantedBy: number | null;
|
|
162
|
+
_count: UserPermissionCountAggregateOutputType | null;
|
|
163
|
+
_avg: UserPermissionAvgAggregateOutputType | null;
|
|
164
|
+
_sum: UserPermissionSumAggregateOutputType | null;
|
|
165
|
+
_min: UserPermissionMinAggregateOutputType | null;
|
|
166
|
+
_max: UserPermissionMaxAggregateOutputType | null;
|
|
167
|
+
};
|
|
168
|
+
type GetUserPermissionGroupByPayload<T extends UserPermissionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<UserPermissionGroupByOutputType, T['by']> & {
|
|
169
|
+
[P in ((keyof T) & (keyof UserPermissionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], UserPermissionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], UserPermissionGroupByOutputType[P]>;
|
|
170
|
+
}>>;
|
|
171
|
+
export type UserPermissionWhereInput = {
|
|
172
|
+
AND?: Prisma.UserPermissionWhereInput | Prisma.UserPermissionWhereInput[];
|
|
173
|
+
OR?: Prisma.UserPermissionWhereInput[];
|
|
174
|
+
NOT?: Prisma.UserPermissionWhereInput | Prisma.UserPermissionWhereInput[];
|
|
175
|
+
id?: Prisma.IntFilter<"UserPermission"> | number;
|
|
176
|
+
userId?: Prisma.IntFilter<"UserPermission"> | number;
|
|
177
|
+
permission?: Prisma.EnumErpPermissionFilter<"UserPermission"> | $Enums.ErpPermission;
|
|
178
|
+
grantedAt?: Prisma.DateTimeFilter<"UserPermission"> | Date | string;
|
|
179
|
+
grantedBy?: Prisma.IntNullableFilter<"UserPermission"> | number | null;
|
|
180
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
181
|
+
grantedByUser?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
182
|
+
};
|
|
183
|
+
export type UserPermissionOrderByWithRelationInput = {
|
|
184
|
+
id?: Prisma.SortOrder;
|
|
185
|
+
userId?: Prisma.SortOrder;
|
|
186
|
+
permission?: Prisma.SortOrder;
|
|
187
|
+
grantedAt?: Prisma.SortOrder;
|
|
188
|
+
grantedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
189
|
+
user?: Prisma.UserOrderByWithRelationInput;
|
|
190
|
+
grantedByUser?: Prisma.UserOrderByWithRelationInput;
|
|
191
|
+
};
|
|
192
|
+
export type UserPermissionWhereUniqueInput = Prisma.AtLeast<{
|
|
193
|
+
id?: number;
|
|
194
|
+
userId_permission?: Prisma.UserPermissionUserIdPermissionCompoundUniqueInput;
|
|
195
|
+
AND?: Prisma.UserPermissionWhereInput | Prisma.UserPermissionWhereInput[];
|
|
196
|
+
OR?: Prisma.UserPermissionWhereInput[];
|
|
197
|
+
NOT?: Prisma.UserPermissionWhereInput | Prisma.UserPermissionWhereInput[];
|
|
198
|
+
userId?: Prisma.IntFilter<"UserPermission"> | number;
|
|
199
|
+
permission?: Prisma.EnumErpPermissionFilter<"UserPermission"> | $Enums.ErpPermission;
|
|
200
|
+
grantedAt?: Prisma.DateTimeFilter<"UserPermission"> | Date | string;
|
|
201
|
+
grantedBy?: Prisma.IntNullableFilter<"UserPermission"> | number | null;
|
|
202
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
203
|
+
grantedByUser?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
204
|
+
}, "id" | "userId_permission">;
|
|
205
|
+
export type UserPermissionOrderByWithAggregationInput = {
|
|
206
|
+
id?: Prisma.SortOrder;
|
|
207
|
+
userId?: Prisma.SortOrder;
|
|
208
|
+
permission?: Prisma.SortOrder;
|
|
209
|
+
grantedAt?: Prisma.SortOrder;
|
|
210
|
+
grantedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
211
|
+
_count?: Prisma.UserPermissionCountOrderByAggregateInput;
|
|
212
|
+
_avg?: Prisma.UserPermissionAvgOrderByAggregateInput;
|
|
213
|
+
_max?: Prisma.UserPermissionMaxOrderByAggregateInput;
|
|
214
|
+
_min?: Prisma.UserPermissionMinOrderByAggregateInput;
|
|
215
|
+
_sum?: Prisma.UserPermissionSumOrderByAggregateInput;
|
|
216
|
+
};
|
|
217
|
+
export type UserPermissionScalarWhereWithAggregatesInput = {
|
|
218
|
+
AND?: Prisma.UserPermissionScalarWhereWithAggregatesInput | Prisma.UserPermissionScalarWhereWithAggregatesInput[];
|
|
219
|
+
OR?: Prisma.UserPermissionScalarWhereWithAggregatesInput[];
|
|
220
|
+
NOT?: Prisma.UserPermissionScalarWhereWithAggregatesInput | Prisma.UserPermissionScalarWhereWithAggregatesInput[];
|
|
221
|
+
id?: Prisma.IntWithAggregatesFilter<"UserPermission"> | number;
|
|
222
|
+
userId?: Prisma.IntWithAggregatesFilter<"UserPermission"> | number;
|
|
223
|
+
permission?: Prisma.EnumErpPermissionWithAggregatesFilter<"UserPermission"> | $Enums.ErpPermission;
|
|
224
|
+
grantedAt?: Prisma.DateTimeWithAggregatesFilter<"UserPermission"> | Date | string;
|
|
225
|
+
grantedBy?: Prisma.IntNullableWithAggregatesFilter<"UserPermission"> | number | null;
|
|
226
|
+
};
|
|
227
|
+
export type UserPermissionCreateInput = {
|
|
228
|
+
permission: $Enums.ErpPermission;
|
|
229
|
+
grantedAt?: Date | string;
|
|
230
|
+
user: Prisma.UserCreateNestedOneWithoutPermissionsInput;
|
|
231
|
+
grantedByUser?: Prisma.UserCreateNestedOneWithoutGrantedPermissionsInput;
|
|
232
|
+
};
|
|
233
|
+
export type UserPermissionUncheckedCreateInput = {
|
|
234
|
+
id?: number;
|
|
235
|
+
userId: number;
|
|
236
|
+
permission: $Enums.ErpPermission;
|
|
237
|
+
grantedAt?: Date | string;
|
|
238
|
+
grantedBy?: number | null;
|
|
239
|
+
};
|
|
240
|
+
export type UserPermissionUpdateInput = {
|
|
241
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
242
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
243
|
+
user?: Prisma.UserUpdateOneRequiredWithoutPermissionsNestedInput;
|
|
244
|
+
grantedByUser?: Prisma.UserUpdateOneWithoutGrantedPermissionsNestedInput;
|
|
245
|
+
};
|
|
246
|
+
export type UserPermissionUncheckedUpdateInput = {
|
|
247
|
+
id?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
248
|
+
userId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
249
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
250
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
251
|
+
grantedBy?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
252
|
+
};
|
|
253
|
+
export type UserPermissionCreateManyInput = {
|
|
254
|
+
id?: number;
|
|
255
|
+
userId: number;
|
|
256
|
+
permission: $Enums.ErpPermission;
|
|
257
|
+
grantedAt?: Date | string;
|
|
258
|
+
grantedBy?: number | null;
|
|
259
|
+
};
|
|
260
|
+
export type UserPermissionUpdateManyMutationInput = {
|
|
261
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
262
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
263
|
+
};
|
|
264
|
+
export type UserPermissionUncheckedUpdateManyInput = {
|
|
265
|
+
id?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
266
|
+
userId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
267
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
268
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
269
|
+
grantedBy?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
270
|
+
};
|
|
271
|
+
export type UserPermissionListRelationFilter = {
|
|
272
|
+
every?: Prisma.UserPermissionWhereInput;
|
|
273
|
+
some?: Prisma.UserPermissionWhereInput;
|
|
274
|
+
none?: Prisma.UserPermissionWhereInput;
|
|
275
|
+
};
|
|
276
|
+
export type UserPermissionOrderByRelationAggregateInput = {
|
|
277
|
+
_count?: Prisma.SortOrder;
|
|
278
|
+
};
|
|
279
|
+
export type UserPermissionUserIdPermissionCompoundUniqueInput = {
|
|
280
|
+
userId: number;
|
|
281
|
+
permission: $Enums.ErpPermission;
|
|
282
|
+
};
|
|
283
|
+
export type UserPermissionCountOrderByAggregateInput = {
|
|
284
|
+
id?: Prisma.SortOrder;
|
|
285
|
+
userId?: Prisma.SortOrder;
|
|
286
|
+
permission?: Prisma.SortOrder;
|
|
287
|
+
grantedAt?: Prisma.SortOrder;
|
|
288
|
+
grantedBy?: Prisma.SortOrder;
|
|
289
|
+
};
|
|
290
|
+
export type UserPermissionAvgOrderByAggregateInput = {
|
|
291
|
+
id?: Prisma.SortOrder;
|
|
292
|
+
userId?: Prisma.SortOrder;
|
|
293
|
+
grantedBy?: Prisma.SortOrder;
|
|
294
|
+
};
|
|
295
|
+
export type UserPermissionMaxOrderByAggregateInput = {
|
|
296
|
+
id?: Prisma.SortOrder;
|
|
297
|
+
userId?: Prisma.SortOrder;
|
|
298
|
+
permission?: Prisma.SortOrder;
|
|
299
|
+
grantedAt?: Prisma.SortOrder;
|
|
300
|
+
grantedBy?: Prisma.SortOrder;
|
|
301
|
+
};
|
|
302
|
+
export type UserPermissionMinOrderByAggregateInput = {
|
|
303
|
+
id?: Prisma.SortOrder;
|
|
304
|
+
userId?: Prisma.SortOrder;
|
|
305
|
+
permission?: Prisma.SortOrder;
|
|
306
|
+
grantedAt?: Prisma.SortOrder;
|
|
307
|
+
grantedBy?: Prisma.SortOrder;
|
|
308
|
+
};
|
|
309
|
+
export type UserPermissionSumOrderByAggregateInput = {
|
|
310
|
+
id?: Prisma.SortOrder;
|
|
311
|
+
userId?: Prisma.SortOrder;
|
|
312
|
+
grantedBy?: Prisma.SortOrder;
|
|
313
|
+
};
|
|
314
|
+
export type UserPermissionCreateNestedManyWithoutUserInput = {
|
|
315
|
+
create?: Prisma.XOR<Prisma.UserPermissionCreateWithoutUserInput, Prisma.UserPermissionUncheckedCreateWithoutUserInput> | Prisma.UserPermissionCreateWithoutUserInput[] | Prisma.UserPermissionUncheckedCreateWithoutUserInput[];
|
|
316
|
+
connectOrCreate?: Prisma.UserPermissionCreateOrConnectWithoutUserInput | Prisma.UserPermissionCreateOrConnectWithoutUserInput[];
|
|
317
|
+
createMany?: Prisma.UserPermissionCreateManyUserInputEnvelope;
|
|
318
|
+
connect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
319
|
+
};
|
|
320
|
+
export type UserPermissionCreateNestedManyWithoutGrantedByUserInput = {
|
|
321
|
+
create?: Prisma.XOR<Prisma.UserPermissionCreateWithoutGrantedByUserInput, Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput> | Prisma.UserPermissionCreateWithoutGrantedByUserInput[] | Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput[];
|
|
322
|
+
connectOrCreate?: Prisma.UserPermissionCreateOrConnectWithoutGrantedByUserInput | Prisma.UserPermissionCreateOrConnectWithoutGrantedByUserInput[];
|
|
323
|
+
createMany?: Prisma.UserPermissionCreateManyGrantedByUserInputEnvelope;
|
|
324
|
+
connect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
325
|
+
};
|
|
326
|
+
export type UserPermissionUncheckedCreateNestedManyWithoutUserInput = {
|
|
327
|
+
create?: Prisma.XOR<Prisma.UserPermissionCreateWithoutUserInput, Prisma.UserPermissionUncheckedCreateWithoutUserInput> | Prisma.UserPermissionCreateWithoutUserInput[] | Prisma.UserPermissionUncheckedCreateWithoutUserInput[];
|
|
328
|
+
connectOrCreate?: Prisma.UserPermissionCreateOrConnectWithoutUserInput | Prisma.UserPermissionCreateOrConnectWithoutUserInput[];
|
|
329
|
+
createMany?: Prisma.UserPermissionCreateManyUserInputEnvelope;
|
|
330
|
+
connect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
331
|
+
};
|
|
332
|
+
export type UserPermissionUncheckedCreateNestedManyWithoutGrantedByUserInput = {
|
|
333
|
+
create?: Prisma.XOR<Prisma.UserPermissionCreateWithoutGrantedByUserInput, Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput> | Prisma.UserPermissionCreateWithoutGrantedByUserInput[] | Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput[];
|
|
334
|
+
connectOrCreate?: Prisma.UserPermissionCreateOrConnectWithoutGrantedByUserInput | Prisma.UserPermissionCreateOrConnectWithoutGrantedByUserInput[];
|
|
335
|
+
createMany?: Prisma.UserPermissionCreateManyGrantedByUserInputEnvelope;
|
|
336
|
+
connect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
337
|
+
};
|
|
338
|
+
export type UserPermissionUpdateManyWithoutUserNestedInput = {
|
|
339
|
+
create?: Prisma.XOR<Prisma.UserPermissionCreateWithoutUserInput, Prisma.UserPermissionUncheckedCreateWithoutUserInput> | Prisma.UserPermissionCreateWithoutUserInput[] | Prisma.UserPermissionUncheckedCreateWithoutUserInput[];
|
|
340
|
+
connectOrCreate?: Prisma.UserPermissionCreateOrConnectWithoutUserInput | Prisma.UserPermissionCreateOrConnectWithoutUserInput[];
|
|
341
|
+
upsert?: Prisma.UserPermissionUpsertWithWhereUniqueWithoutUserInput | Prisma.UserPermissionUpsertWithWhereUniqueWithoutUserInput[];
|
|
342
|
+
createMany?: Prisma.UserPermissionCreateManyUserInputEnvelope;
|
|
343
|
+
set?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
344
|
+
disconnect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
345
|
+
delete?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
346
|
+
connect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
347
|
+
update?: Prisma.UserPermissionUpdateWithWhereUniqueWithoutUserInput | Prisma.UserPermissionUpdateWithWhereUniqueWithoutUserInput[];
|
|
348
|
+
updateMany?: Prisma.UserPermissionUpdateManyWithWhereWithoutUserInput | Prisma.UserPermissionUpdateManyWithWhereWithoutUserInput[];
|
|
349
|
+
deleteMany?: Prisma.UserPermissionScalarWhereInput | Prisma.UserPermissionScalarWhereInput[];
|
|
350
|
+
};
|
|
351
|
+
export type UserPermissionUpdateManyWithoutGrantedByUserNestedInput = {
|
|
352
|
+
create?: Prisma.XOR<Prisma.UserPermissionCreateWithoutGrantedByUserInput, Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput> | Prisma.UserPermissionCreateWithoutGrantedByUserInput[] | Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput[];
|
|
353
|
+
connectOrCreate?: Prisma.UserPermissionCreateOrConnectWithoutGrantedByUserInput | Prisma.UserPermissionCreateOrConnectWithoutGrantedByUserInput[];
|
|
354
|
+
upsert?: Prisma.UserPermissionUpsertWithWhereUniqueWithoutGrantedByUserInput | Prisma.UserPermissionUpsertWithWhereUniqueWithoutGrantedByUserInput[];
|
|
355
|
+
createMany?: Prisma.UserPermissionCreateManyGrantedByUserInputEnvelope;
|
|
356
|
+
set?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
357
|
+
disconnect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
358
|
+
delete?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
359
|
+
connect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
360
|
+
update?: Prisma.UserPermissionUpdateWithWhereUniqueWithoutGrantedByUserInput | Prisma.UserPermissionUpdateWithWhereUniqueWithoutGrantedByUserInput[];
|
|
361
|
+
updateMany?: Prisma.UserPermissionUpdateManyWithWhereWithoutGrantedByUserInput | Prisma.UserPermissionUpdateManyWithWhereWithoutGrantedByUserInput[];
|
|
362
|
+
deleteMany?: Prisma.UserPermissionScalarWhereInput | Prisma.UserPermissionScalarWhereInput[];
|
|
363
|
+
};
|
|
364
|
+
export type UserPermissionUncheckedUpdateManyWithoutUserNestedInput = {
|
|
365
|
+
create?: Prisma.XOR<Prisma.UserPermissionCreateWithoutUserInput, Prisma.UserPermissionUncheckedCreateWithoutUserInput> | Prisma.UserPermissionCreateWithoutUserInput[] | Prisma.UserPermissionUncheckedCreateWithoutUserInput[];
|
|
366
|
+
connectOrCreate?: Prisma.UserPermissionCreateOrConnectWithoutUserInput | Prisma.UserPermissionCreateOrConnectWithoutUserInput[];
|
|
367
|
+
upsert?: Prisma.UserPermissionUpsertWithWhereUniqueWithoutUserInput | Prisma.UserPermissionUpsertWithWhereUniqueWithoutUserInput[];
|
|
368
|
+
createMany?: Prisma.UserPermissionCreateManyUserInputEnvelope;
|
|
369
|
+
set?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
370
|
+
disconnect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
371
|
+
delete?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
372
|
+
connect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
373
|
+
update?: Prisma.UserPermissionUpdateWithWhereUniqueWithoutUserInput | Prisma.UserPermissionUpdateWithWhereUniqueWithoutUserInput[];
|
|
374
|
+
updateMany?: Prisma.UserPermissionUpdateManyWithWhereWithoutUserInput | Prisma.UserPermissionUpdateManyWithWhereWithoutUserInput[];
|
|
375
|
+
deleteMany?: Prisma.UserPermissionScalarWhereInput | Prisma.UserPermissionScalarWhereInput[];
|
|
376
|
+
};
|
|
377
|
+
export type UserPermissionUncheckedUpdateManyWithoutGrantedByUserNestedInput = {
|
|
378
|
+
create?: Prisma.XOR<Prisma.UserPermissionCreateWithoutGrantedByUserInput, Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput> | Prisma.UserPermissionCreateWithoutGrantedByUserInput[] | Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput[];
|
|
379
|
+
connectOrCreate?: Prisma.UserPermissionCreateOrConnectWithoutGrantedByUserInput | Prisma.UserPermissionCreateOrConnectWithoutGrantedByUserInput[];
|
|
380
|
+
upsert?: Prisma.UserPermissionUpsertWithWhereUniqueWithoutGrantedByUserInput | Prisma.UserPermissionUpsertWithWhereUniqueWithoutGrantedByUserInput[];
|
|
381
|
+
createMany?: Prisma.UserPermissionCreateManyGrantedByUserInputEnvelope;
|
|
382
|
+
set?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
383
|
+
disconnect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
384
|
+
delete?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
385
|
+
connect?: Prisma.UserPermissionWhereUniqueInput | Prisma.UserPermissionWhereUniqueInput[];
|
|
386
|
+
update?: Prisma.UserPermissionUpdateWithWhereUniqueWithoutGrantedByUserInput | Prisma.UserPermissionUpdateWithWhereUniqueWithoutGrantedByUserInput[];
|
|
387
|
+
updateMany?: Prisma.UserPermissionUpdateManyWithWhereWithoutGrantedByUserInput | Prisma.UserPermissionUpdateManyWithWhereWithoutGrantedByUserInput[];
|
|
388
|
+
deleteMany?: Prisma.UserPermissionScalarWhereInput | Prisma.UserPermissionScalarWhereInput[];
|
|
389
|
+
};
|
|
390
|
+
export type EnumErpPermissionFieldUpdateOperationsInput = {
|
|
391
|
+
set?: $Enums.ErpPermission;
|
|
392
|
+
};
|
|
393
|
+
export type UserPermissionCreateWithoutUserInput = {
|
|
394
|
+
permission: $Enums.ErpPermission;
|
|
395
|
+
grantedAt?: Date | string;
|
|
396
|
+
grantedByUser?: Prisma.UserCreateNestedOneWithoutGrantedPermissionsInput;
|
|
397
|
+
};
|
|
398
|
+
export type UserPermissionUncheckedCreateWithoutUserInput = {
|
|
399
|
+
id?: number;
|
|
400
|
+
permission: $Enums.ErpPermission;
|
|
401
|
+
grantedAt?: Date | string;
|
|
402
|
+
grantedBy?: number | null;
|
|
403
|
+
};
|
|
404
|
+
export type UserPermissionCreateOrConnectWithoutUserInput = {
|
|
405
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
406
|
+
create: Prisma.XOR<Prisma.UserPermissionCreateWithoutUserInput, Prisma.UserPermissionUncheckedCreateWithoutUserInput>;
|
|
407
|
+
};
|
|
408
|
+
export type UserPermissionCreateManyUserInputEnvelope = {
|
|
409
|
+
data: Prisma.UserPermissionCreateManyUserInput | Prisma.UserPermissionCreateManyUserInput[];
|
|
410
|
+
};
|
|
411
|
+
export type UserPermissionCreateWithoutGrantedByUserInput = {
|
|
412
|
+
permission: $Enums.ErpPermission;
|
|
413
|
+
grantedAt?: Date | string;
|
|
414
|
+
user: Prisma.UserCreateNestedOneWithoutPermissionsInput;
|
|
415
|
+
};
|
|
416
|
+
export type UserPermissionUncheckedCreateWithoutGrantedByUserInput = {
|
|
417
|
+
id?: number;
|
|
418
|
+
userId: number;
|
|
419
|
+
permission: $Enums.ErpPermission;
|
|
420
|
+
grantedAt?: Date | string;
|
|
421
|
+
};
|
|
422
|
+
export type UserPermissionCreateOrConnectWithoutGrantedByUserInput = {
|
|
423
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
424
|
+
create: Prisma.XOR<Prisma.UserPermissionCreateWithoutGrantedByUserInput, Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput>;
|
|
425
|
+
};
|
|
426
|
+
export type UserPermissionCreateManyGrantedByUserInputEnvelope = {
|
|
427
|
+
data: Prisma.UserPermissionCreateManyGrantedByUserInput | Prisma.UserPermissionCreateManyGrantedByUserInput[];
|
|
428
|
+
};
|
|
429
|
+
export type UserPermissionUpsertWithWhereUniqueWithoutUserInput = {
|
|
430
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
431
|
+
update: Prisma.XOR<Prisma.UserPermissionUpdateWithoutUserInput, Prisma.UserPermissionUncheckedUpdateWithoutUserInput>;
|
|
432
|
+
create: Prisma.XOR<Prisma.UserPermissionCreateWithoutUserInput, Prisma.UserPermissionUncheckedCreateWithoutUserInput>;
|
|
433
|
+
};
|
|
434
|
+
export type UserPermissionUpdateWithWhereUniqueWithoutUserInput = {
|
|
435
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
436
|
+
data: Prisma.XOR<Prisma.UserPermissionUpdateWithoutUserInput, Prisma.UserPermissionUncheckedUpdateWithoutUserInput>;
|
|
437
|
+
};
|
|
438
|
+
export type UserPermissionUpdateManyWithWhereWithoutUserInput = {
|
|
439
|
+
where: Prisma.UserPermissionScalarWhereInput;
|
|
440
|
+
data: Prisma.XOR<Prisma.UserPermissionUpdateManyMutationInput, Prisma.UserPermissionUncheckedUpdateManyWithoutUserInput>;
|
|
441
|
+
};
|
|
442
|
+
export type UserPermissionScalarWhereInput = {
|
|
443
|
+
AND?: Prisma.UserPermissionScalarWhereInput | Prisma.UserPermissionScalarWhereInput[];
|
|
444
|
+
OR?: Prisma.UserPermissionScalarWhereInput[];
|
|
445
|
+
NOT?: Prisma.UserPermissionScalarWhereInput | Prisma.UserPermissionScalarWhereInput[];
|
|
446
|
+
id?: Prisma.IntFilter<"UserPermission"> | number;
|
|
447
|
+
userId?: Prisma.IntFilter<"UserPermission"> | number;
|
|
448
|
+
permission?: Prisma.EnumErpPermissionFilter<"UserPermission"> | $Enums.ErpPermission;
|
|
449
|
+
grantedAt?: Prisma.DateTimeFilter<"UserPermission"> | Date | string;
|
|
450
|
+
grantedBy?: Prisma.IntNullableFilter<"UserPermission"> | number | null;
|
|
451
|
+
};
|
|
452
|
+
export type UserPermissionUpsertWithWhereUniqueWithoutGrantedByUserInput = {
|
|
453
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
454
|
+
update: Prisma.XOR<Prisma.UserPermissionUpdateWithoutGrantedByUserInput, Prisma.UserPermissionUncheckedUpdateWithoutGrantedByUserInput>;
|
|
455
|
+
create: Prisma.XOR<Prisma.UserPermissionCreateWithoutGrantedByUserInput, Prisma.UserPermissionUncheckedCreateWithoutGrantedByUserInput>;
|
|
456
|
+
};
|
|
457
|
+
export type UserPermissionUpdateWithWhereUniqueWithoutGrantedByUserInput = {
|
|
458
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
459
|
+
data: Prisma.XOR<Prisma.UserPermissionUpdateWithoutGrantedByUserInput, Prisma.UserPermissionUncheckedUpdateWithoutGrantedByUserInput>;
|
|
460
|
+
};
|
|
461
|
+
export type UserPermissionUpdateManyWithWhereWithoutGrantedByUserInput = {
|
|
462
|
+
where: Prisma.UserPermissionScalarWhereInput;
|
|
463
|
+
data: Prisma.XOR<Prisma.UserPermissionUpdateManyMutationInput, Prisma.UserPermissionUncheckedUpdateManyWithoutGrantedByUserInput>;
|
|
464
|
+
};
|
|
465
|
+
export type UserPermissionCreateManyUserInput = {
|
|
466
|
+
id?: number;
|
|
467
|
+
permission: $Enums.ErpPermission;
|
|
468
|
+
grantedAt?: Date | string;
|
|
469
|
+
grantedBy?: number | null;
|
|
470
|
+
};
|
|
471
|
+
export type UserPermissionCreateManyGrantedByUserInput = {
|
|
472
|
+
id?: number;
|
|
473
|
+
userId: number;
|
|
474
|
+
permission: $Enums.ErpPermission;
|
|
475
|
+
grantedAt?: Date | string;
|
|
476
|
+
};
|
|
477
|
+
export type UserPermissionUpdateWithoutUserInput = {
|
|
478
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
479
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
480
|
+
grantedByUser?: Prisma.UserUpdateOneWithoutGrantedPermissionsNestedInput;
|
|
481
|
+
};
|
|
482
|
+
export type UserPermissionUncheckedUpdateWithoutUserInput = {
|
|
483
|
+
id?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
484
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
485
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
486
|
+
grantedBy?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
487
|
+
};
|
|
488
|
+
export type UserPermissionUncheckedUpdateManyWithoutUserInput = {
|
|
489
|
+
id?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
490
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
491
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
492
|
+
grantedBy?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
493
|
+
};
|
|
494
|
+
export type UserPermissionUpdateWithoutGrantedByUserInput = {
|
|
495
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
496
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
497
|
+
user?: Prisma.UserUpdateOneRequiredWithoutPermissionsNestedInput;
|
|
498
|
+
};
|
|
499
|
+
export type UserPermissionUncheckedUpdateWithoutGrantedByUserInput = {
|
|
500
|
+
id?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
501
|
+
userId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
502
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
503
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
504
|
+
};
|
|
505
|
+
export type UserPermissionUncheckedUpdateManyWithoutGrantedByUserInput = {
|
|
506
|
+
id?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
507
|
+
userId?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
508
|
+
permission?: Prisma.EnumErpPermissionFieldUpdateOperationsInput | $Enums.ErpPermission;
|
|
509
|
+
grantedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
510
|
+
};
|
|
511
|
+
export type UserPermissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
512
|
+
id?: boolean;
|
|
513
|
+
userId?: boolean;
|
|
514
|
+
permission?: boolean;
|
|
515
|
+
grantedAt?: boolean;
|
|
516
|
+
grantedBy?: boolean;
|
|
517
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
518
|
+
grantedByUser?: boolean | Prisma.UserPermission$grantedByUserArgs<ExtArgs>;
|
|
519
|
+
}, ExtArgs["result"]["userPermission"]>;
|
|
520
|
+
export type UserPermissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
521
|
+
id?: boolean;
|
|
522
|
+
userId?: boolean;
|
|
523
|
+
permission?: boolean;
|
|
524
|
+
grantedAt?: boolean;
|
|
525
|
+
grantedBy?: boolean;
|
|
526
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
527
|
+
grantedByUser?: boolean | Prisma.UserPermission$grantedByUserArgs<ExtArgs>;
|
|
528
|
+
}, ExtArgs["result"]["userPermission"]>;
|
|
529
|
+
export type UserPermissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
530
|
+
id?: boolean;
|
|
531
|
+
userId?: boolean;
|
|
532
|
+
permission?: boolean;
|
|
533
|
+
grantedAt?: boolean;
|
|
534
|
+
grantedBy?: boolean;
|
|
535
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
536
|
+
grantedByUser?: boolean | Prisma.UserPermission$grantedByUserArgs<ExtArgs>;
|
|
537
|
+
}, ExtArgs["result"]["userPermission"]>;
|
|
538
|
+
export type UserPermissionSelectScalar = {
|
|
539
|
+
id?: boolean;
|
|
540
|
+
userId?: boolean;
|
|
541
|
+
permission?: boolean;
|
|
542
|
+
grantedAt?: boolean;
|
|
543
|
+
grantedBy?: boolean;
|
|
544
|
+
};
|
|
545
|
+
export type UserPermissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "permission" | "grantedAt" | "grantedBy", ExtArgs["result"]["userPermission"]>;
|
|
546
|
+
export type UserPermissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
547
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
548
|
+
grantedByUser?: boolean | Prisma.UserPermission$grantedByUserArgs<ExtArgs>;
|
|
549
|
+
};
|
|
550
|
+
export type UserPermissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
551
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
552
|
+
grantedByUser?: boolean | Prisma.UserPermission$grantedByUserArgs<ExtArgs>;
|
|
553
|
+
};
|
|
554
|
+
export type UserPermissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
555
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
556
|
+
grantedByUser?: boolean | Prisma.UserPermission$grantedByUserArgs<ExtArgs>;
|
|
557
|
+
};
|
|
558
|
+
export type $UserPermissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
559
|
+
name: "UserPermission";
|
|
560
|
+
objects: {
|
|
561
|
+
user: Prisma.$UserPayload<ExtArgs>;
|
|
562
|
+
grantedByUser: Prisma.$UserPayload<ExtArgs> | null;
|
|
563
|
+
};
|
|
564
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
565
|
+
id: number;
|
|
566
|
+
userId: number;
|
|
567
|
+
permission: $Enums.ErpPermission;
|
|
568
|
+
grantedAt: Date;
|
|
569
|
+
grantedBy: number | null;
|
|
570
|
+
}, ExtArgs["result"]["userPermission"]>;
|
|
571
|
+
composites: {};
|
|
572
|
+
};
|
|
573
|
+
export type UserPermissionGetPayload<S extends boolean | null | undefined | UserPermissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload, S>;
|
|
574
|
+
export type UserPermissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<UserPermissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
575
|
+
select?: UserPermissionCountAggregateInputType | true;
|
|
576
|
+
};
|
|
577
|
+
export interface UserPermissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
578
|
+
[K: symbol]: {
|
|
579
|
+
types: Prisma.TypeMap<ExtArgs>['model']['UserPermission'];
|
|
580
|
+
meta: {
|
|
581
|
+
name: 'UserPermission';
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* Find zero or one UserPermission that matches the filter.
|
|
586
|
+
* @param {UserPermissionFindUniqueArgs} args - Arguments to find a UserPermission
|
|
587
|
+
* @example
|
|
588
|
+
* // Get one UserPermission
|
|
589
|
+
* const userPermission = await prisma.userPermission.findUnique({
|
|
590
|
+
* where: {
|
|
591
|
+
* // ... provide filter here
|
|
592
|
+
* }
|
|
593
|
+
* })
|
|
594
|
+
*/
|
|
595
|
+
findUnique<T extends UserPermissionFindUniqueArgs>(args: Prisma.SelectSubset<T, UserPermissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserPermissionClient<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
596
|
+
/**
|
|
597
|
+
* Find one UserPermission that matches the filter or throw an error with `error.code='P2025'`
|
|
598
|
+
* if no matches were found.
|
|
599
|
+
* @param {UserPermissionFindUniqueOrThrowArgs} args - Arguments to find a UserPermission
|
|
600
|
+
* @example
|
|
601
|
+
* // Get one UserPermission
|
|
602
|
+
* const userPermission = await prisma.userPermission.findUniqueOrThrow({
|
|
603
|
+
* where: {
|
|
604
|
+
* // ... provide filter here
|
|
605
|
+
* }
|
|
606
|
+
* })
|
|
607
|
+
*/
|
|
608
|
+
findUniqueOrThrow<T extends UserPermissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserPermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserPermissionClient<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
609
|
+
/**
|
|
610
|
+
* Find the first UserPermission that matches the filter.
|
|
611
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
612
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
613
|
+
* @param {UserPermissionFindFirstArgs} args - Arguments to find a UserPermission
|
|
614
|
+
* @example
|
|
615
|
+
* // Get one UserPermission
|
|
616
|
+
* const userPermission = await prisma.userPermission.findFirst({
|
|
617
|
+
* where: {
|
|
618
|
+
* // ... provide filter here
|
|
619
|
+
* }
|
|
620
|
+
* })
|
|
621
|
+
*/
|
|
622
|
+
findFirst<T extends UserPermissionFindFirstArgs>(args?: Prisma.SelectSubset<T, UserPermissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserPermissionClient<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
623
|
+
/**
|
|
624
|
+
* Find the first UserPermission that matches the filter or
|
|
625
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
626
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
627
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
628
|
+
* @param {UserPermissionFindFirstOrThrowArgs} args - Arguments to find a UserPermission
|
|
629
|
+
* @example
|
|
630
|
+
* // Get one UserPermission
|
|
631
|
+
* const userPermission = await prisma.userPermission.findFirstOrThrow({
|
|
632
|
+
* where: {
|
|
633
|
+
* // ... provide filter here
|
|
634
|
+
* }
|
|
635
|
+
* })
|
|
636
|
+
*/
|
|
637
|
+
findFirstOrThrow<T extends UserPermissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserPermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserPermissionClient<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
638
|
+
/**
|
|
639
|
+
* Find zero or more UserPermissions that matches the filter.
|
|
640
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
641
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
642
|
+
* @param {UserPermissionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
643
|
+
* @example
|
|
644
|
+
* // Get all UserPermissions
|
|
645
|
+
* const userPermissions = await prisma.userPermission.findMany()
|
|
646
|
+
*
|
|
647
|
+
* // Get first 10 UserPermissions
|
|
648
|
+
* const userPermissions = await prisma.userPermission.findMany({ take: 10 })
|
|
649
|
+
*
|
|
650
|
+
* // Only select the `id`
|
|
651
|
+
* const userPermissionWithIdOnly = await prisma.userPermission.findMany({ select: { id: true } })
|
|
652
|
+
*
|
|
653
|
+
*/
|
|
654
|
+
findMany<T extends UserPermissionFindManyArgs>(args?: Prisma.SelectSubset<T, UserPermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
655
|
+
/**
|
|
656
|
+
* Create a UserPermission.
|
|
657
|
+
* @param {UserPermissionCreateArgs} args - Arguments to create a UserPermission.
|
|
658
|
+
* @example
|
|
659
|
+
* // Create one UserPermission
|
|
660
|
+
* const UserPermission = await prisma.userPermission.create({
|
|
661
|
+
* data: {
|
|
662
|
+
* // ... data to create a UserPermission
|
|
663
|
+
* }
|
|
664
|
+
* })
|
|
665
|
+
*
|
|
666
|
+
*/
|
|
667
|
+
create<T extends UserPermissionCreateArgs>(args: Prisma.SelectSubset<T, UserPermissionCreateArgs<ExtArgs>>): Prisma.Prisma__UserPermissionClient<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
668
|
+
/**
|
|
669
|
+
* Create many UserPermissions.
|
|
670
|
+
* @param {UserPermissionCreateManyArgs} args - Arguments to create many UserPermissions.
|
|
671
|
+
* @example
|
|
672
|
+
* // Create many UserPermissions
|
|
673
|
+
* const userPermission = await prisma.userPermission.createMany({
|
|
674
|
+
* data: [
|
|
675
|
+
* // ... provide data here
|
|
676
|
+
* ]
|
|
677
|
+
* })
|
|
678
|
+
*
|
|
679
|
+
*/
|
|
680
|
+
createMany<T extends UserPermissionCreateManyArgs>(args?: Prisma.SelectSubset<T, UserPermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
681
|
+
/**
|
|
682
|
+
* Create many UserPermissions and returns the data saved in the database.
|
|
683
|
+
* @param {UserPermissionCreateManyAndReturnArgs} args - Arguments to create many UserPermissions.
|
|
684
|
+
* @example
|
|
685
|
+
* // Create many UserPermissions
|
|
686
|
+
* const userPermission = await prisma.userPermission.createManyAndReturn({
|
|
687
|
+
* data: [
|
|
688
|
+
* // ... provide data here
|
|
689
|
+
* ]
|
|
690
|
+
* })
|
|
691
|
+
*
|
|
692
|
+
* // Create many UserPermissions and only return the `id`
|
|
693
|
+
* const userPermissionWithIdOnly = await prisma.userPermission.createManyAndReturn({
|
|
694
|
+
* select: { id: true },
|
|
695
|
+
* data: [
|
|
696
|
+
* // ... provide data here
|
|
697
|
+
* ]
|
|
698
|
+
* })
|
|
699
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
700
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
701
|
+
*
|
|
702
|
+
*/
|
|
703
|
+
createManyAndReturn<T extends UserPermissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserPermissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
704
|
+
/**
|
|
705
|
+
* Delete a UserPermission.
|
|
706
|
+
* @param {UserPermissionDeleteArgs} args - Arguments to delete one UserPermission.
|
|
707
|
+
* @example
|
|
708
|
+
* // Delete one UserPermission
|
|
709
|
+
* const UserPermission = await prisma.userPermission.delete({
|
|
710
|
+
* where: {
|
|
711
|
+
* // ... filter to delete one UserPermission
|
|
712
|
+
* }
|
|
713
|
+
* })
|
|
714
|
+
*
|
|
715
|
+
*/
|
|
716
|
+
delete<T extends UserPermissionDeleteArgs>(args: Prisma.SelectSubset<T, UserPermissionDeleteArgs<ExtArgs>>): Prisma.Prisma__UserPermissionClient<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
717
|
+
/**
|
|
718
|
+
* Update one UserPermission.
|
|
719
|
+
* @param {UserPermissionUpdateArgs} args - Arguments to update one UserPermission.
|
|
720
|
+
* @example
|
|
721
|
+
* // Update one UserPermission
|
|
722
|
+
* const userPermission = await prisma.userPermission.update({
|
|
723
|
+
* where: {
|
|
724
|
+
* // ... provide filter here
|
|
725
|
+
* },
|
|
726
|
+
* data: {
|
|
727
|
+
* // ... provide data here
|
|
728
|
+
* }
|
|
729
|
+
* })
|
|
730
|
+
*
|
|
731
|
+
*/
|
|
732
|
+
update<T extends UserPermissionUpdateArgs>(args: Prisma.SelectSubset<T, UserPermissionUpdateArgs<ExtArgs>>): Prisma.Prisma__UserPermissionClient<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
733
|
+
/**
|
|
734
|
+
* Delete zero or more UserPermissions.
|
|
735
|
+
* @param {UserPermissionDeleteManyArgs} args - Arguments to filter UserPermissions to delete.
|
|
736
|
+
* @example
|
|
737
|
+
* // Delete a few UserPermissions
|
|
738
|
+
* const { count } = await prisma.userPermission.deleteMany({
|
|
739
|
+
* where: {
|
|
740
|
+
* // ... provide filter here
|
|
741
|
+
* }
|
|
742
|
+
* })
|
|
743
|
+
*
|
|
744
|
+
*/
|
|
745
|
+
deleteMany<T extends UserPermissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserPermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
746
|
+
/**
|
|
747
|
+
* Update zero or more UserPermissions.
|
|
748
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
749
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
750
|
+
* @param {UserPermissionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
751
|
+
* @example
|
|
752
|
+
* // Update many UserPermissions
|
|
753
|
+
* const userPermission = await prisma.userPermission.updateMany({
|
|
754
|
+
* where: {
|
|
755
|
+
* // ... provide filter here
|
|
756
|
+
* },
|
|
757
|
+
* data: {
|
|
758
|
+
* // ... provide data here
|
|
759
|
+
* }
|
|
760
|
+
* })
|
|
761
|
+
*
|
|
762
|
+
*/
|
|
763
|
+
updateMany<T extends UserPermissionUpdateManyArgs>(args: Prisma.SelectSubset<T, UserPermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
764
|
+
/**
|
|
765
|
+
* Update zero or more UserPermissions and returns the data updated in the database.
|
|
766
|
+
* @param {UserPermissionUpdateManyAndReturnArgs} args - Arguments to update many UserPermissions.
|
|
767
|
+
* @example
|
|
768
|
+
* // Update many UserPermissions
|
|
769
|
+
* const userPermission = await prisma.userPermission.updateManyAndReturn({
|
|
770
|
+
* where: {
|
|
771
|
+
* // ... provide filter here
|
|
772
|
+
* },
|
|
773
|
+
* data: [
|
|
774
|
+
* // ... provide data here
|
|
775
|
+
* ]
|
|
776
|
+
* })
|
|
777
|
+
*
|
|
778
|
+
* // Update zero or more UserPermissions and only return the `id`
|
|
779
|
+
* const userPermissionWithIdOnly = await prisma.userPermission.updateManyAndReturn({
|
|
780
|
+
* select: { id: true },
|
|
781
|
+
* where: {
|
|
782
|
+
* // ... provide filter here
|
|
783
|
+
* },
|
|
784
|
+
* data: [
|
|
785
|
+
* // ... provide data here
|
|
786
|
+
* ]
|
|
787
|
+
* })
|
|
788
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
789
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
790
|
+
*
|
|
791
|
+
*/
|
|
792
|
+
updateManyAndReturn<T extends UserPermissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserPermissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
793
|
+
/**
|
|
794
|
+
* Create or update one UserPermission.
|
|
795
|
+
* @param {UserPermissionUpsertArgs} args - Arguments to update or create a UserPermission.
|
|
796
|
+
* @example
|
|
797
|
+
* // Update or create a UserPermission
|
|
798
|
+
* const userPermission = await prisma.userPermission.upsert({
|
|
799
|
+
* create: {
|
|
800
|
+
* // ... data to create a UserPermission
|
|
801
|
+
* },
|
|
802
|
+
* update: {
|
|
803
|
+
* // ... in case it already exists, update
|
|
804
|
+
* },
|
|
805
|
+
* where: {
|
|
806
|
+
* // ... the filter for the UserPermission we want to update
|
|
807
|
+
* }
|
|
808
|
+
* })
|
|
809
|
+
*/
|
|
810
|
+
upsert<T extends UserPermissionUpsertArgs>(args: Prisma.SelectSubset<T, UserPermissionUpsertArgs<ExtArgs>>): Prisma.Prisma__UserPermissionClient<runtime.Types.Result.GetResult<Prisma.$UserPermissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
811
|
+
/**
|
|
812
|
+
* Count the number of UserPermissions.
|
|
813
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
814
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
815
|
+
* @param {UserPermissionCountArgs} args - Arguments to filter UserPermissions to count.
|
|
816
|
+
* @example
|
|
817
|
+
* // Count the number of UserPermissions
|
|
818
|
+
* const count = await prisma.userPermission.count({
|
|
819
|
+
* where: {
|
|
820
|
+
* // ... the filter for the UserPermissions we want to count
|
|
821
|
+
* }
|
|
822
|
+
* })
|
|
823
|
+
**/
|
|
824
|
+
count<T extends UserPermissionCountArgs>(args?: Prisma.Subset<T, UserPermissionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], UserPermissionCountAggregateOutputType> : number>;
|
|
825
|
+
/**
|
|
826
|
+
* Allows you to perform aggregations operations on a UserPermission.
|
|
827
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
828
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
829
|
+
* @param {UserPermissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
830
|
+
* @example
|
|
831
|
+
* // Ordered by age ascending
|
|
832
|
+
* // Where email contains prisma.io
|
|
833
|
+
* // Limited to the 10 users
|
|
834
|
+
* const aggregations = await prisma.user.aggregate({
|
|
835
|
+
* _avg: {
|
|
836
|
+
* age: true,
|
|
837
|
+
* },
|
|
838
|
+
* where: {
|
|
839
|
+
* email: {
|
|
840
|
+
* contains: "prisma.io",
|
|
841
|
+
* },
|
|
842
|
+
* },
|
|
843
|
+
* orderBy: {
|
|
844
|
+
* age: "asc",
|
|
845
|
+
* },
|
|
846
|
+
* take: 10,
|
|
847
|
+
* })
|
|
848
|
+
**/
|
|
849
|
+
aggregate<T extends UserPermissionAggregateArgs>(args: Prisma.Subset<T, UserPermissionAggregateArgs>): Prisma.PrismaPromise<GetUserPermissionAggregateType<T>>;
|
|
850
|
+
/**
|
|
851
|
+
* Group by UserPermission.
|
|
852
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
853
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
854
|
+
* @param {UserPermissionGroupByArgs} args - Group by arguments.
|
|
855
|
+
* @example
|
|
856
|
+
* // Group by city, order by createdAt, get count
|
|
857
|
+
* const result = await prisma.user.groupBy({
|
|
858
|
+
* by: ['city', 'createdAt'],
|
|
859
|
+
* orderBy: {
|
|
860
|
+
* createdAt: true
|
|
861
|
+
* },
|
|
862
|
+
* _count: {
|
|
863
|
+
* _all: true
|
|
864
|
+
* },
|
|
865
|
+
* })
|
|
866
|
+
*
|
|
867
|
+
**/
|
|
868
|
+
groupBy<T extends UserPermissionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
869
|
+
orderBy: UserPermissionGroupByArgs['orderBy'];
|
|
870
|
+
} : {
|
|
871
|
+
orderBy?: UserPermissionGroupByArgs['orderBy'];
|
|
872
|
+
}, 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 ? {
|
|
873
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
874
|
+
Error,
|
|
875
|
+
'Field ',
|
|
876
|
+
P,
|
|
877
|
+
` in "having" needs to be provided in "by"`
|
|
878
|
+
];
|
|
879
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
880
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
881
|
+
}[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 ? {} : {
|
|
882
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
883
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
884
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
885
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, UserPermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserPermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
886
|
+
/**
|
|
887
|
+
* Fields of the UserPermission model
|
|
888
|
+
*/
|
|
889
|
+
readonly fields: UserPermissionFieldRefs;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* The delegate class that acts as a "Promise-like" for UserPermission.
|
|
893
|
+
* Why is this prefixed with `Prisma__`?
|
|
894
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
895
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
896
|
+
*/
|
|
897
|
+
export interface Prisma__UserPermissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
898
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
899
|
+
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
900
|
+
grantedByUser<T extends Prisma.UserPermission$grantedByUserArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserPermission$grantedByUserArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
901
|
+
/**
|
|
902
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
903
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
904
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
905
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
906
|
+
*/
|
|
907
|
+
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>;
|
|
908
|
+
/**
|
|
909
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
910
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
911
|
+
* @returns A Promise for the completion of the callback.
|
|
912
|
+
*/
|
|
913
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
914
|
+
/**
|
|
915
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
916
|
+
* resolved value cannot be modified from the callback.
|
|
917
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
918
|
+
* @returns A Promise for the completion of the callback.
|
|
919
|
+
*/
|
|
920
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Fields of the UserPermission model
|
|
924
|
+
*/
|
|
925
|
+
export interface UserPermissionFieldRefs {
|
|
926
|
+
readonly id: Prisma.FieldRef<"UserPermission", 'Int'>;
|
|
927
|
+
readonly userId: Prisma.FieldRef<"UserPermission", 'Int'>;
|
|
928
|
+
readonly permission: Prisma.FieldRef<"UserPermission", 'ErpPermission'>;
|
|
929
|
+
readonly grantedAt: Prisma.FieldRef<"UserPermission", 'DateTime'>;
|
|
930
|
+
readonly grantedBy: Prisma.FieldRef<"UserPermission", 'Int'>;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* UserPermission findUnique
|
|
934
|
+
*/
|
|
935
|
+
export type UserPermissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
936
|
+
/**
|
|
937
|
+
* Select specific fields to fetch from the UserPermission
|
|
938
|
+
*/
|
|
939
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
940
|
+
/**
|
|
941
|
+
* Omit specific fields from the UserPermission
|
|
942
|
+
*/
|
|
943
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
944
|
+
/**
|
|
945
|
+
* Choose, which related nodes to fetch as well
|
|
946
|
+
*/
|
|
947
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
948
|
+
/**
|
|
949
|
+
* Filter, which UserPermission to fetch.
|
|
950
|
+
*/
|
|
951
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
952
|
+
};
|
|
953
|
+
/**
|
|
954
|
+
* UserPermission findUniqueOrThrow
|
|
955
|
+
*/
|
|
956
|
+
export type UserPermissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
957
|
+
/**
|
|
958
|
+
* Select specific fields to fetch from the UserPermission
|
|
959
|
+
*/
|
|
960
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
961
|
+
/**
|
|
962
|
+
* Omit specific fields from the UserPermission
|
|
963
|
+
*/
|
|
964
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
965
|
+
/**
|
|
966
|
+
* Choose, which related nodes to fetch as well
|
|
967
|
+
*/
|
|
968
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
969
|
+
/**
|
|
970
|
+
* Filter, which UserPermission to fetch.
|
|
971
|
+
*/
|
|
972
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* UserPermission findFirst
|
|
976
|
+
*/
|
|
977
|
+
export type UserPermissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
978
|
+
/**
|
|
979
|
+
* Select specific fields to fetch from the UserPermission
|
|
980
|
+
*/
|
|
981
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
982
|
+
/**
|
|
983
|
+
* Omit specific fields from the UserPermission
|
|
984
|
+
*/
|
|
985
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
986
|
+
/**
|
|
987
|
+
* Choose, which related nodes to fetch as well
|
|
988
|
+
*/
|
|
989
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
990
|
+
/**
|
|
991
|
+
* Filter, which UserPermission to fetch.
|
|
992
|
+
*/
|
|
993
|
+
where?: Prisma.UserPermissionWhereInput;
|
|
994
|
+
/**
|
|
995
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
996
|
+
*
|
|
997
|
+
* Determine the order of UserPermissions to fetch.
|
|
998
|
+
*/
|
|
999
|
+
orderBy?: Prisma.UserPermissionOrderByWithRelationInput | Prisma.UserPermissionOrderByWithRelationInput[];
|
|
1000
|
+
/**
|
|
1001
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1002
|
+
*
|
|
1003
|
+
* Sets the position for searching for UserPermissions.
|
|
1004
|
+
*/
|
|
1005
|
+
cursor?: Prisma.UserPermissionWhereUniqueInput;
|
|
1006
|
+
/**
|
|
1007
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1008
|
+
*
|
|
1009
|
+
* Take `±n` UserPermissions from the position of the cursor.
|
|
1010
|
+
*/
|
|
1011
|
+
take?: number;
|
|
1012
|
+
/**
|
|
1013
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1014
|
+
*
|
|
1015
|
+
* Skip the first `n` UserPermissions.
|
|
1016
|
+
*/
|
|
1017
|
+
skip?: number;
|
|
1018
|
+
/**
|
|
1019
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1020
|
+
*
|
|
1021
|
+
* Filter by unique combinations of UserPermissions.
|
|
1022
|
+
*/
|
|
1023
|
+
distinct?: Prisma.UserPermissionScalarFieldEnum | Prisma.UserPermissionScalarFieldEnum[];
|
|
1024
|
+
};
|
|
1025
|
+
/**
|
|
1026
|
+
* UserPermission findFirstOrThrow
|
|
1027
|
+
*/
|
|
1028
|
+
export type UserPermissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1029
|
+
/**
|
|
1030
|
+
* Select specific fields to fetch from the UserPermission
|
|
1031
|
+
*/
|
|
1032
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* Omit specific fields from the UserPermission
|
|
1035
|
+
*/
|
|
1036
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Choose, which related nodes to fetch as well
|
|
1039
|
+
*/
|
|
1040
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* Filter, which UserPermission to fetch.
|
|
1043
|
+
*/
|
|
1044
|
+
where?: Prisma.UserPermissionWhereInput;
|
|
1045
|
+
/**
|
|
1046
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1047
|
+
*
|
|
1048
|
+
* Determine the order of UserPermissions to fetch.
|
|
1049
|
+
*/
|
|
1050
|
+
orderBy?: Prisma.UserPermissionOrderByWithRelationInput | Prisma.UserPermissionOrderByWithRelationInput[];
|
|
1051
|
+
/**
|
|
1052
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1053
|
+
*
|
|
1054
|
+
* Sets the position for searching for UserPermissions.
|
|
1055
|
+
*/
|
|
1056
|
+
cursor?: Prisma.UserPermissionWhereUniqueInput;
|
|
1057
|
+
/**
|
|
1058
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1059
|
+
*
|
|
1060
|
+
* Take `±n` UserPermissions from the position of the cursor.
|
|
1061
|
+
*/
|
|
1062
|
+
take?: number;
|
|
1063
|
+
/**
|
|
1064
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1065
|
+
*
|
|
1066
|
+
* Skip the first `n` UserPermissions.
|
|
1067
|
+
*/
|
|
1068
|
+
skip?: number;
|
|
1069
|
+
/**
|
|
1070
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1071
|
+
*
|
|
1072
|
+
* Filter by unique combinations of UserPermissions.
|
|
1073
|
+
*/
|
|
1074
|
+
distinct?: Prisma.UserPermissionScalarFieldEnum | Prisma.UserPermissionScalarFieldEnum[];
|
|
1075
|
+
};
|
|
1076
|
+
/**
|
|
1077
|
+
* UserPermission findMany
|
|
1078
|
+
*/
|
|
1079
|
+
export type UserPermissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1080
|
+
/**
|
|
1081
|
+
* Select specific fields to fetch from the UserPermission
|
|
1082
|
+
*/
|
|
1083
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
1084
|
+
/**
|
|
1085
|
+
* Omit specific fields from the UserPermission
|
|
1086
|
+
*/
|
|
1087
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1088
|
+
/**
|
|
1089
|
+
* Choose, which related nodes to fetch as well
|
|
1090
|
+
*/
|
|
1091
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
1092
|
+
/**
|
|
1093
|
+
* Filter, which UserPermissions to fetch.
|
|
1094
|
+
*/
|
|
1095
|
+
where?: Prisma.UserPermissionWhereInput;
|
|
1096
|
+
/**
|
|
1097
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1098
|
+
*
|
|
1099
|
+
* Determine the order of UserPermissions to fetch.
|
|
1100
|
+
*/
|
|
1101
|
+
orderBy?: Prisma.UserPermissionOrderByWithRelationInput | Prisma.UserPermissionOrderByWithRelationInput[];
|
|
1102
|
+
/**
|
|
1103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1104
|
+
*
|
|
1105
|
+
* Sets the position for listing UserPermissions.
|
|
1106
|
+
*/
|
|
1107
|
+
cursor?: Prisma.UserPermissionWhereUniqueInput;
|
|
1108
|
+
/**
|
|
1109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1110
|
+
*
|
|
1111
|
+
* Take `±n` UserPermissions from the position of the cursor.
|
|
1112
|
+
*/
|
|
1113
|
+
take?: number;
|
|
1114
|
+
/**
|
|
1115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1116
|
+
*
|
|
1117
|
+
* Skip the first `n` UserPermissions.
|
|
1118
|
+
*/
|
|
1119
|
+
skip?: number;
|
|
1120
|
+
/**
|
|
1121
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1122
|
+
*
|
|
1123
|
+
* Filter by unique combinations of UserPermissions.
|
|
1124
|
+
*/
|
|
1125
|
+
distinct?: Prisma.UserPermissionScalarFieldEnum | Prisma.UserPermissionScalarFieldEnum[];
|
|
1126
|
+
};
|
|
1127
|
+
/**
|
|
1128
|
+
* UserPermission create
|
|
1129
|
+
*/
|
|
1130
|
+
export type UserPermissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1131
|
+
/**
|
|
1132
|
+
* Select specific fields to fetch from the UserPermission
|
|
1133
|
+
*/
|
|
1134
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
1135
|
+
/**
|
|
1136
|
+
* Omit specific fields from the UserPermission
|
|
1137
|
+
*/
|
|
1138
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1139
|
+
/**
|
|
1140
|
+
* Choose, which related nodes to fetch as well
|
|
1141
|
+
*/
|
|
1142
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
1143
|
+
/**
|
|
1144
|
+
* The data needed to create a UserPermission.
|
|
1145
|
+
*/
|
|
1146
|
+
data: Prisma.XOR<Prisma.UserPermissionCreateInput, Prisma.UserPermissionUncheckedCreateInput>;
|
|
1147
|
+
};
|
|
1148
|
+
/**
|
|
1149
|
+
* UserPermission createMany
|
|
1150
|
+
*/
|
|
1151
|
+
export type UserPermissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1152
|
+
/**
|
|
1153
|
+
* The data used to create many UserPermissions.
|
|
1154
|
+
*/
|
|
1155
|
+
data: Prisma.UserPermissionCreateManyInput | Prisma.UserPermissionCreateManyInput[];
|
|
1156
|
+
};
|
|
1157
|
+
/**
|
|
1158
|
+
* UserPermission createManyAndReturn
|
|
1159
|
+
*/
|
|
1160
|
+
export type UserPermissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1161
|
+
/**
|
|
1162
|
+
* Select specific fields to fetch from the UserPermission
|
|
1163
|
+
*/
|
|
1164
|
+
select?: Prisma.UserPermissionSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1165
|
+
/**
|
|
1166
|
+
* Omit specific fields from the UserPermission
|
|
1167
|
+
*/
|
|
1168
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1169
|
+
/**
|
|
1170
|
+
* The data used to create many UserPermissions.
|
|
1171
|
+
*/
|
|
1172
|
+
data: Prisma.UserPermissionCreateManyInput | Prisma.UserPermissionCreateManyInput[];
|
|
1173
|
+
/**
|
|
1174
|
+
* Choose, which related nodes to fetch as well
|
|
1175
|
+
*/
|
|
1176
|
+
include?: Prisma.UserPermissionIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1177
|
+
};
|
|
1178
|
+
/**
|
|
1179
|
+
* UserPermission update
|
|
1180
|
+
*/
|
|
1181
|
+
export type UserPermissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1182
|
+
/**
|
|
1183
|
+
* Select specific fields to fetch from the UserPermission
|
|
1184
|
+
*/
|
|
1185
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
1186
|
+
/**
|
|
1187
|
+
* Omit specific fields from the UserPermission
|
|
1188
|
+
*/
|
|
1189
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1190
|
+
/**
|
|
1191
|
+
* Choose, which related nodes to fetch as well
|
|
1192
|
+
*/
|
|
1193
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* The data needed to update a UserPermission.
|
|
1196
|
+
*/
|
|
1197
|
+
data: Prisma.XOR<Prisma.UserPermissionUpdateInput, Prisma.UserPermissionUncheckedUpdateInput>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Choose, which UserPermission to update.
|
|
1200
|
+
*/
|
|
1201
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
1202
|
+
};
|
|
1203
|
+
/**
|
|
1204
|
+
* UserPermission updateMany
|
|
1205
|
+
*/
|
|
1206
|
+
export type UserPermissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1207
|
+
/**
|
|
1208
|
+
* The data used to update UserPermissions.
|
|
1209
|
+
*/
|
|
1210
|
+
data: Prisma.XOR<Prisma.UserPermissionUpdateManyMutationInput, Prisma.UserPermissionUncheckedUpdateManyInput>;
|
|
1211
|
+
/**
|
|
1212
|
+
* Filter which UserPermissions to update
|
|
1213
|
+
*/
|
|
1214
|
+
where?: Prisma.UserPermissionWhereInput;
|
|
1215
|
+
/**
|
|
1216
|
+
* Limit how many UserPermissions to update.
|
|
1217
|
+
*/
|
|
1218
|
+
limit?: number;
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* UserPermission updateManyAndReturn
|
|
1222
|
+
*/
|
|
1223
|
+
export type UserPermissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1224
|
+
/**
|
|
1225
|
+
* Select specific fields to fetch from the UserPermission
|
|
1226
|
+
*/
|
|
1227
|
+
select?: Prisma.UserPermissionSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1228
|
+
/**
|
|
1229
|
+
* Omit specific fields from the UserPermission
|
|
1230
|
+
*/
|
|
1231
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* The data used to update UserPermissions.
|
|
1234
|
+
*/
|
|
1235
|
+
data: Prisma.XOR<Prisma.UserPermissionUpdateManyMutationInput, Prisma.UserPermissionUncheckedUpdateManyInput>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Filter which UserPermissions to update
|
|
1238
|
+
*/
|
|
1239
|
+
where?: Prisma.UserPermissionWhereInput;
|
|
1240
|
+
/**
|
|
1241
|
+
* Limit how many UserPermissions to update.
|
|
1242
|
+
*/
|
|
1243
|
+
limit?: number;
|
|
1244
|
+
/**
|
|
1245
|
+
* Choose, which related nodes to fetch as well
|
|
1246
|
+
*/
|
|
1247
|
+
include?: Prisma.UserPermissionIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1248
|
+
};
|
|
1249
|
+
/**
|
|
1250
|
+
* UserPermission upsert
|
|
1251
|
+
*/
|
|
1252
|
+
export type UserPermissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1253
|
+
/**
|
|
1254
|
+
* Select specific fields to fetch from the UserPermission
|
|
1255
|
+
*/
|
|
1256
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
1257
|
+
/**
|
|
1258
|
+
* Omit specific fields from the UserPermission
|
|
1259
|
+
*/
|
|
1260
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1261
|
+
/**
|
|
1262
|
+
* Choose, which related nodes to fetch as well
|
|
1263
|
+
*/
|
|
1264
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
1265
|
+
/**
|
|
1266
|
+
* The filter to search for the UserPermission to update in case it exists.
|
|
1267
|
+
*/
|
|
1268
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
1269
|
+
/**
|
|
1270
|
+
* In case the UserPermission found by the `where` argument doesn't exist, create a new UserPermission with this data.
|
|
1271
|
+
*/
|
|
1272
|
+
create: Prisma.XOR<Prisma.UserPermissionCreateInput, Prisma.UserPermissionUncheckedCreateInput>;
|
|
1273
|
+
/**
|
|
1274
|
+
* In case the UserPermission was found with the provided `where` argument, update it with this data.
|
|
1275
|
+
*/
|
|
1276
|
+
update: Prisma.XOR<Prisma.UserPermissionUpdateInput, Prisma.UserPermissionUncheckedUpdateInput>;
|
|
1277
|
+
};
|
|
1278
|
+
/**
|
|
1279
|
+
* UserPermission delete
|
|
1280
|
+
*/
|
|
1281
|
+
export type UserPermissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1282
|
+
/**
|
|
1283
|
+
* Select specific fields to fetch from the UserPermission
|
|
1284
|
+
*/
|
|
1285
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
1286
|
+
/**
|
|
1287
|
+
* Omit specific fields from the UserPermission
|
|
1288
|
+
*/
|
|
1289
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1290
|
+
/**
|
|
1291
|
+
* Choose, which related nodes to fetch as well
|
|
1292
|
+
*/
|
|
1293
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
1294
|
+
/**
|
|
1295
|
+
* Filter which UserPermission to delete.
|
|
1296
|
+
*/
|
|
1297
|
+
where: Prisma.UserPermissionWhereUniqueInput;
|
|
1298
|
+
};
|
|
1299
|
+
/**
|
|
1300
|
+
* UserPermission deleteMany
|
|
1301
|
+
*/
|
|
1302
|
+
export type UserPermissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1303
|
+
/**
|
|
1304
|
+
* Filter which UserPermissions to delete
|
|
1305
|
+
*/
|
|
1306
|
+
where?: Prisma.UserPermissionWhereInput;
|
|
1307
|
+
/**
|
|
1308
|
+
* Limit how many UserPermissions to delete.
|
|
1309
|
+
*/
|
|
1310
|
+
limit?: number;
|
|
1311
|
+
};
|
|
1312
|
+
/**
|
|
1313
|
+
* UserPermission.grantedByUser
|
|
1314
|
+
*/
|
|
1315
|
+
export type UserPermission$grantedByUserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1316
|
+
/**
|
|
1317
|
+
* Select specific fields to fetch from the User
|
|
1318
|
+
*/
|
|
1319
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* Omit specific fields from the User
|
|
1322
|
+
*/
|
|
1323
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1324
|
+
/**
|
|
1325
|
+
* Choose, which related nodes to fetch as well
|
|
1326
|
+
*/
|
|
1327
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1328
|
+
where?: Prisma.UserWhereInput;
|
|
1329
|
+
};
|
|
1330
|
+
/**
|
|
1331
|
+
* UserPermission without action
|
|
1332
|
+
*/
|
|
1333
|
+
export type UserPermissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1334
|
+
/**
|
|
1335
|
+
* Select specific fields to fetch from the UserPermission
|
|
1336
|
+
*/
|
|
1337
|
+
select?: Prisma.UserPermissionSelect<ExtArgs> | null;
|
|
1338
|
+
/**
|
|
1339
|
+
* Omit specific fields from the UserPermission
|
|
1340
|
+
*/
|
|
1341
|
+
omit?: Prisma.UserPermissionOmit<ExtArgs> | null;
|
|
1342
|
+
/**
|
|
1343
|
+
* Choose, which related nodes to fetch as well
|
|
1344
|
+
*/
|
|
1345
|
+
include?: Prisma.UserPermissionInclude<ExtArgs> | null;
|
|
1346
|
+
};
|
|
1347
|
+
export {};
|
|
1348
|
+
//# sourceMappingURL=UserPermission.d.ts.map
|