@illustrisinteractive/sentinel-nest 0.0.1
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/.prettierrc +4 -0
- package/README.md +98 -0
- package/config/config.json +24 -0
- package/dist/bin/commit.d.ts +1 -0
- package/dist/bin/commit.js +136 -0
- package/dist/bin/commit.js.map +1 -0
- package/dist/bin/init.d.ts +2 -0
- package/dist/bin/init.js +179 -0
- package/dist/bin/init.js.map +1 -0
- package/dist/bin/migrations/1-create-permission.d.ts +6 -0
- package/dist/bin/migrations/1-create-permission.js +30 -0
- package/dist/bin/migrations/1-create-permission.js.map +1 -0
- package/dist/bin/migrations/2-create-role.d.ts +2 -0
- package/dist/bin/migrations/2-create-role.js +29 -0
- package/dist/bin/migrations/2-create-role.js.map +1 -0
- package/dist/bin/migrations/3-create-rolepermissions.d.ts +2 -0
- package/dist/bin/migrations/3-create-rolepermissions.js +46 -0
- package/dist/bin/migrations/3-create-rolepermissions.js.map +1 -0
- package/dist/bin/migrations/4-create-model-roles.d.ts +2 -0
- package/dist/bin/migrations/4-create-model-roles.js +46 -0
- package/dist/bin/migrations/4-create-model-roles.js.map +1 -0
- package/dist/bin/resource.d.ts +1 -0
- package/dist/bin/resource.js +91 -0
- package/dist/bin/resource.js.map +1 -0
- package/dist/bin/sentinel.d.ts +2 -0
- package/dist/bin/sentinel.js +52 -0
- package/dist/bin/sentinel.js.map +1 -0
- package/dist/models/SecuredResource.d.ts +8 -0
- package/dist/models/SecuredResource.js +9 -0
- package/dist/models/SecuredResource.js.map +1 -0
- package/dist/models/SentinelConfig.d.ts +7 -0
- package/dist/models/SentinelConfig.js +3 -0
- package/dist/models/SentinelConfig.js.map +1 -0
- package/dist/models/sequelize/PermissionKey.d.ts +7 -0
- package/dist/models/sequelize/PermissionKey.js +39 -0
- package/dist/models/sequelize/PermissionKey.js.map +1 -0
- package/dist/prisma.config.d.ts +3 -0
- package/dist/prisma.config.js +14 -0
- package/dist/prisma.config.js.map +1 -0
- package/dist/src/can.decorator.d.ts +2 -0
- package/dist/src/can.decorator.js +6 -0
- package/dist/src/can.decorator.js.map +1 -0
- package/dist/src/generated/prisma/browser.d.ts +10 -0
- package/dist/src/generated/prisma/browser.js +44 -0
- package/dist/src/generated/prisma/browser.js.map +1 -0
- package/dist/src/generated/prisma/client.d.ts +14 -0
- package/dist/src/generated/prisma/client.js +46 -0
- package/dist/src/generated/prisma/client.js.map +1 -0
- package/dist/src/generated/prisma/commonInputTypes.d.ts +263 -0
- package/dist/src/generated/prisma/commonInputTypes.js +3 -0
- package/dist/src/generated/prisma/commonInputTypes.js.map +1 -0
- package/dist/src/generated/prisma/enums.d.ts +1 -0
- package/dist/src/generated/prisma/enums.js +3 -0
- package/dist/src/generated/prisma/enums.js.map +1 -0
- package/dist/src/generated/prisma/internal/class.d.ts +50 -0
- package/dist/src/generated/prisma/internal/class.js +75 -0
- package/dist/src/generated/prisma/internal/class.js.map +1 -0
- package/dist/src/generated/prisma/internal/prismaNamespace.d.ts +778 -0
- package/dist/src/generated/prisma/internal/prismaNamespace.js +128 -0
- package/dist/src/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.d.ts +88 -0
- package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.js +112 -0
- package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/src/generated/prisma/models/ModelHasRoles.d.ts +691 -0
- package/dist/src/generated/prisma/models/ModelHasRoles.js +3 -0
- package/dist/src/generated/prisma/models/ModelHasRoles.js.map +1 -0
- package/dist/src/generated/prisma/models/PermissionKeys.d.ts +547 -0
- package/dist/src/generated/prisma/models/PermissionKeys.js +3 -0
- package/dist/src/generated/prisma/models/PermissionKeys.js.map +1 -0
- package/dist/src/generated/prisma/models/RoleHasPermissions.d.ts +675 -0
- package/dist/src/generated/prisma/models/RoleHasPermissions.js +3 -0
- package/dist/src/generated/prisma/models/RoleHasPermissions.js.map +1 -0
- package/dist/src/generated/prisma/models/Roles.d.ts +582 -0
- package/dist/src/generated/prisma/models/Roles.js +3 -0
- package/dist/src/generated/prisma/models/Roles.js.map +1 -0
- package/dist/src/generated/prisma/models/SequelizeMeta.d.ts +289 -0
- package/dist/src/generated/prisma/models/SequelizeMeta.js +3 -0
- package/dist/src/generated/prisma/models/SequelizeMeta.js.map +1 -0
- package/dist/src/generated/prisma/models/Users.d.ts +572 -0
- package/dist/src/generated/prisma/models/Users.js +3 -0
- package/dist/src/generated/prisma/models/Users.js.map +1 -0
- package/dist/src/generated/prisma/models.d.ts +7 -0
- package/dist/src/generated/prisma/models.js +3 -0
- package/dist/src/generated/prisma/models.js.map +1 -0
- package/dist/src/main.d.ts +6 -0
- package/dist/src/main.js +23 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/models/SecuredResource.d.ts +8 -0
- package/dist/src/models/SecuredResource.js +9 -0
- package/dist/src/models/SecuredResource.js.map +1 -0
- package/dist/src/models/SentinelConfig.d.ts +7 -0
- package/dist/src/models/SentinelConfig.js +3 -0
- package/dist/src/models/SentinelConfig.js.map +1 -0
- package/dist/src/models/SentinelModel.d.ts +35 -0
- package/dist/src/models/SentinelModel.js +3 -0
- package/dist/src/models/SentinelModel.js.map +1 -0
- package/dist/src/models/SentinelModuleOptions.d.ts +7 -0
- package/dist/src/models/SentinelModuleOptions.js +3 -0
- package/dist/src/models/SentinelModuleOptions.js.map +1 -0
- package/dist/src/prisma.service.d.ts +4 -0
- package/dist/src/prisma.service.js +29 -0
- package/dist/src/prisma.service.js.map +1 -0
- package/dist/src/sentinel.guard.d.ts +9 -0
- package/dist/src/sentinel.guard.js +73 -0
- package/dist/src/sentinel.guard.js.map +1 -0
- package/dist/src/sentinel.module-definition.d.ts +2 -0
- package/dist/src/sentinel.module-definition.js +7 -0
- package/dist/src/sentinel.module-definition.js.map +1 -0
- package/dist/src/sentinel.module.d.ts +3 -0
- package/dist/src/sentinel.module.js +40 -0
- package/dist/src/sentinel.module.js.map +1 -0
- package/dist/src/sentinel.service.d.ts +39 -0
- package/dist/src/sentinel.service.js +146 -0
- package/dist/src/sentinel.service.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/eslint.config.mjs +34 -0
- package/models/index.js +43 -0
- package/models/permissionkey.js +31 -0
- package/models/role.js +23 -0
- package/models/rolehaspermission.js +43 -0
- package/nest-cli.json +8 -0
- package/package.json +103 -0
- package/prisma/migrations/20260227023704_init/migration.sql +74 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +62 -0
- package/prisma.config.ts +14 -0
- package/src/bin/commit.ts +186 -0
- package/src/bin/init.ts +251 -0
- package/src/bin/migrations/1-create-permission.js +32 -0
- package/src/bin/migrations/2-create-role.js +29 -0
- package/src/bin/migrations/3-create-rolepermissions.js +46 -0
- package/src/bin/migrations/4-create-model-roles.js +46 -0
- package/src/bin/resource.ts +107 -0
- package/src/bin/sentinel.ts +115 -0
- package/src/bin/tsconfig.json +30 -0
- package/src/can.decorator.ts +4 -0
- package/src/generated/prisma/browser.ts +49 -0
- package/src/generated/prisma/client.ts +69 -0
- package/src/generated/prisma/commonInputTypes.ts +302 -0
- package/src/generated/prisma/enums.ts +15 -0
- package/src/generated/prisma/internal/class.ts +250 -0
- package/src/generated/prisma/internal/prismaNamespace.ts +1213 -0
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +163 -0
- package/src/generated/prisma/models/ModelHasRoles.ts +1521 -0
- package/src/generated/prisma/models/PermissionKeys.ts +1362 -0
- package/src/generated/prisma/models/RoleHasPermissions.ts +1503 -0
- package/src/generated/prisma/models/Roles.ts +1437 -0
- package/src/generated/prisma/models/SequelizeMeta.ts +1032 -0
- package/src/generated/prisma/models/Users.ts +1402 -0
- package/src/generated/prisma/models.ts +17 -0
- package/src/main.ts +24 -0
- package/src/models/SecuredResource.d.ts +8 -0
- package/src/models/SecuredResource.ts +9 -0
- package/src/models/SentinelConfig.d.ts +7 -0
- package/src/models/SentinelConfig.ts +8 -0
- package/src/models/SentinelModel.ts +39 -0
- package/src/models/SentinelModuleOptions.ts +11 -0
- package/src/models/sequelize/PermissionKey.ts +22 -0
- package/src/models/tsconfig.json +25 -0
- package/src/prisma.service.ts +13 -0
- package/src/sentinel.guard.ts +63 -0
- package/src/sentinel.module-definition.ts +5 -0
- package/src/sentinel.module.ts +27 -0
- package/src/sentinel.service.ts +188 -0
- package/tsconfig.build.json +11 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelHasRoles.js","sourceRoot":"","sources":["../../../../../src/generated/prisma/models/ModelHasRoles.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
export type PermissionKeysModel = runtime.Types.Result.DefaultSelection<Prisma.$PermissionKeysPayload>;
|
|
4
|
+
export type AggregatePermissionKeys = {
|
|
5
|
+
_count: PermissionKeysCountAggregateOutputType | null;
|
|
6
|
+
_min: PermissionKeysMinAggregateOutputType | null;
|
|
7
|
+
_max: PermissionKeysMaxAggregateOutputType | null;
|
|
8
|
+
};
|
|
9
|
+
export type PermissionKeysMinAggregateOutputType = {
|
|
10
|
+
id: string | null;
|
|
11
|
+
resource: string | null;
|
|
12
|
+
action: string | null;
|
|
13
|
+
createdAt: Date | null;
|
|
14
|
+
updatedAt: Date | null;
|
|
15
|
+
description: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type PermissionKeysMaxAggregateOutputType = {
|
|
18
|
+
id: string | null;
|
|
19
|
+
resource: string | null;
|
|
20
|
+
action: string | null;
|
|
21
|
+
createdAt: Date | null;
|
|
22
|
+
updatedAt: Date | null;
|
|
23
|
+
description: string | null;
|
|
24
|
+
};
|
|
25
|
+
export type PermissionKeysCountAggregateOutputType = {
|
|
26
|
+
id: number;
|
|
27
|
+
resource: number;
|
|
28
|
+
action: number;
|
|
29
|
+
createdAt: number;
|
|
30
|
+
updatedAt: number;
|
|
31
|
+
description: number;
|
|
32
|
+
_all: number;
|
|
33
|
+
};
|
|
34
|
+
export type PermissionKeysMinAggregateInputType = {
|
|
35
|
+
id?: true;
|
|
36
|
+
resource?: true;
|
|
37
|
+
action?: true;
|
|
38
|
+
createdAt?: true;
|
|
39
|
+
updatedAt?: true;
|
|
40
|
+
description?: true;
|
|
41
|
+
};
|
|
42
|
+
export type PermissionKeysMaxAggregateInputType = {
|
|
43
|
+
id?: true;
|
|
44
|
+
resource?: true;
|
|
45
|
+
action?: true;
|
|
46
|
+
createdAt?: true;
|
|
47
|
+
updatedAt?: true;
|
|
48
|
+
description?: true;
|
|
49
|
+
};
|
|
50
|
+
export type PermissionKeysCountAggregateInputType = {
|
|
51
|
+
id?: true;
|
|
52
|
+
resource?: true;
|
|
53
|
+
action?: true;
|
|
54
|
+
createdAt?: true;
|
|
55
|
+
updatedAt?: true;
|
|
56
|
+
description?: true;
|
|
57
|
+
_all?: true;
|
|
58
|
+
};
|
|
59
|
+
export type PermissionKeysAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
60
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
61
|
+
orderBy?: Prisma.PermissionKeysOrderByWithRelationInput | Prisma.PermissionKeysOrderByWithRelationInput[];
|
|
62
|
+
cursor?: Prisma.PermissionKeysWhereUniqueInput;
|
|
63
|
+
take?: number;
|
|
64
|
+
skip?: number;
|
|
65
|
+
_count?: true | PermissionKeysCountAggregateInputType;
|
|
66
|
+
_min?: PermissionKeysMinAggregateInputType;
|
|
67
|
+
_max?: PermissionKeysMaxAggregateInputType;
|
|
68
|
+
};
|
|
69
|
+
export type GetPermissionKeysAggregateType<T extends PermissionKeysAggregateArgs> = {
|
|
70
|
+
[P in keyof T & keyof AggregatePermissionKeys]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePermissionKeys[P]> : Prisma.GetScalarType<T[P], AggregatePermissionKeys[P]>;
|
|
71
|
+
};
|
|
72
|
+
export type PermissionKeysGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
73
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
74
|
+
orderBy?: Prisma.PermissionKeysOrderByWithAggregationInput | Prisma.PermissionKeysOrderByWithAggregationInput[];
|
|
75
|
+
by: Prisma.PermissionKeysScalarFieldEnum[] | Prisma.PermissionKeysScalarFieldEnum;
|
|
76
|
+
having?: Prisma.PermissionKeysScalarWhereWithAggregatesInput;
|
|
77
|
+
take?: number;
|
|
78
|
+
skip?: number;
|
|
79
|
+
_count?: PermissionKeysCountAggregateInputType | true;
|
|
80
|
+
_min?: PermissionKeysMinAggregateInputType;
|
|
81
|
+
_max?: PermissionKeysMaxAggregateInputType;
|
|
82
|
+
};
|
|
83
|
+
export type PermissionKeysGroupByOutputType = {
|
|
84
|
+
id: string;
|
|
85
|
+
resource: string | null;
|
|
86
|
+
action: string | null;
|
|
87
|
+
createdAt: Date;
|
|
88
|
+
updatedAt: Date;
|
|
89
|
+
description: string | null;
|
|
90
|
+
_count: PermissionKeysCountAggregateOutputType | null;
|
|
91
|
+
_min: PermissionKeysMinAggregateOutputType | null;
|
|
92
|
+
_max: PermissionKeysMaxAggregateOutputType | null;
|
|
93
|
+
};
|
|
94
|
+
type GetPermissionKeysGroupByPayload<T extends PermissionKeysGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PermissionKeysGroupByOutputType, T['by']> & {
|
|
95
|
+
[P in ((keyof T) & (keyof PermissionKeysGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PermissionKeysGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PermissionKeysGroupByOutputType[P]>;
|
|
96
|
+
}>>;
|
|
97
|
+
export type PermissionKeysWhereInput = {
|
|
98
|
+
AND?: Prisma.PermissionKeysWhereInput | Prisma.PermissionKeysWhereInput[];
|
|
99
|
+
OR?: Prisma.PermissionKeysWhereInput[];
|
|
100
|
+
NOT?: Prisma.PermissionKeysWhereInput | Prisma.PermissionKeysWhereInput[];
|
|
101
|
+
id?: Prisma.StringFilter<"PermissionKeys"> | string;
|
|
102
|
+
resource?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null;
|
|
103
|
+
action?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null;
|
|
104
|
+
createdAt?: Prisma.DateTimeFilter<"PermissionKeys"> | Date | string;
|
|
105
|
+
updatedAt?: Prisma.DateTimeFilter<"PermissionKeys"> | Date | string;
|
|
106
|
+
description?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null;
|
|
107
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsListRelationFilter;
|
|
108
|
+
};
|
|
109
|
+
export type PermissionKeysOrderByWithRelationInput = {
|
|
110
|
+
id?: Prisma.SortOrder;
|
|
111
|
+
resource?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
112
|
+
action?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
113
|
+
createdAt?: Prisma.SortOrder;
|
|
114
|
+
updatedAt?: Prisma.SortOrder;
|
|
115
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
116
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsOrderByRelationAggregateInput;
|
|
117
|
+
};
|
|
118
|
+
export type PermissionKeysWhereUniqueInput = Prisma.AtLeast<{
|
|
119
|
+
id?: string;
|
|
120
|
+
AND?: Prisma.PermissionKeysWhereInput | Prisma.PermissionKeysWhereInput[];
|
|
121
|
+
OR?: Prisma.PermissionKeysWhereInput[];
|
|
122
|
+
NOT?: Prisma.PermissionKeysWhereInput | Prisma.PermissionKeysWhereInput[];
|
|
123
|
+
resource?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null;
|
|
124
|
+
action?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null;
|
|
125
|
+
createdAt?: Prisma.DateTimeFilter<"PermissionKeys"> | Date | string;
|
|
126
|
+
updatedAt?: Prisma.DateTimeFilter<"PermissionKeys"> | Date | string;
|
|
127
|
+
description?: Prisma.StringNullableFilter<"PermissionKeys"> | string | null;
|
|
128
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsListRelationFilter;
|
|
129
|
+
}, "id">;
|
|
130
|
+
export type PermissionKeysOrderByWithAggregationInput = {
|
|
131
|
+
id?: Prisma.SortOrder;
|
|
132
|
+
resource?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
133
|
+
action?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
134
|
+
createdAt?: Prisma.SortOrder;
|
|
135
|
+
updatedAt?: Prisma.SortOrder;
|
|
136
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
137
|
+
_count?: Prisma.PermissionKeysCountOrderByAggregateInput;
|
|
138
|
+
_max?: Prisma.PermissionKeysMaxOrderByAggregateInput;
|
|
139
|
+
_min?: Prisma.PermissionKeysMinOrderByAggregateInput;
|
|
140
|
+
};
|
|
141
|
+
export type PermissionKeysScalarWhereWithAggregatesInput = {
|
|
142
|
+
AND?: Prisma.PermissionKeysScalarWhereWithAggregatesInput | Prisma.PermissionKeysScalarWhereWithAggregatesInput[];
|
|
143
|
+
OR?: Prisma.PermissionKeysScalarWhereWithAggregatesInput[];
|
|
144
|
+
NOT?: Prisma.PermissionKeysScalarWhereWithAggregatesInput | Prisma.PermissionKeysScalarWhereWithAggregatesInput[];
|
|
145
|
+
id?: Prisma.StringWithAggregatesFilter<"PermissionKeys"> | string;
|
|
146
|
+
resource?: Prisma.StringNullableWithAggregatesFilter<"PermissionKeys"> | string | null;
|
|
147
|
+
action?: Prisma.StringNullableWithAggregatesFilter<"PermissionKeys"> | string | null;
|
|
148
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"PermissionKeys"> | Date | string;
|
|
149
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PermissionKeys"> | Date | string;
|
|
150
|
+
description?: Prisma.StringNullableWithAggregatesFilter<"PermissionKeys"> | string | null;
|
|
151
|
+
};
|
|
152
|
+
export type PermissionKeysCreateInput = {
|
|
153
|
+
id: string;
|
|
154
|
+
resource?: string | null;
|
|
155
|
+
action?: string | null;
|
|
156
|
+
createdAt: Date | string;
|
|
157
|
+
updatedAt: Date | string;
|
|
158
|
+
description?: string | null;
|
|
159
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsCreateNestedManyWithoutPermissionKeysInput;
|
|
160
|
+
};
|
|
161
|
+
export type PermissionKeysUncheckedCreateInput = {
|
|
162
|
+
id: string;
|
|
163
|
+
resource?: string | null;
|
|
164
|
+
action?: string | null;
|
|
165
|
+
createdAt: Date | string;
|
|
166
|
+
updatedAt: Date | string;
|
|
167
|
+
description?: string | null;
|
|
168
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsUncheckedCreateNestedManyWithoutPermissionKeysInput;
|
|
169
|
+
};
|
|
170
|
+
export type PermissionKeysUpdateInput = {
|
|
171
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
172
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
173
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
174
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
175
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
176
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
177
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsUpdateManyWithoutPermissionKeysNestedInput;
|
|
178
|
+
};
|
|
179
|
+
export type PermissionKeysUncheckedUpdateInput = {
|
|
180
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
181
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
182
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
183
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
184
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
185
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
186
|
+
RoleHasPermissions?: Prisma.RoleHasPermissionsUncheckedUpdateManyWithoutPermissionKeysNestedInput;
|
|
187
|
+
};
|
|
188
|
+
export type PermissionKeysCreateManyInput = {
|
|
189
|
+
id: string;
|
|
190
|
+
resource?: string | null;
|
|
191
|
+
action?: string | null;
|
|
192
|
+
createdAt: Date | string;
|
|
193
|
+
updatedAt: Date | string;
|
|
194
|
+
description?: string | null;
|
|
195
|
+
};
|
|
196
|
+
export type PermissionKeysUpdateManyMutationInput = {
|
|
197
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
198
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
199
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
200
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
201
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
202
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
203
|
+
};
|
|
204
|
+
export type PermissionKeysUncheckedUpdateManyInput = {
|
|
205
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
206
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
207
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
208
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
209
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
210
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
211
|
+
};
|
|
212
|
+
export type PermissionKeysCountOrderByAggregateInput = {
|
|
213
|
+
id?: Prisma.SortOrder;
|
|
214
|
+
resource?: Prisma.SortOrder;
|
|
215
|
+
action?: Prisma.SortOrder;
|
|
216
|
+
createdAt?: Prisma.SortOrder;
|
|
217
|
+
updatedAt?: Prisma.SortOrder;
|
|
218
|
+
description?: Prisma.SortOrder;
|
|
219
|
+
};
|
|
220
|
+
export type PermissionKeysMaxOrderByAggregateInput = {
|
|
221
|
+
id?: Prisma.SortOrder;
|
|
222
|
+
resource?: Prisma.SortOrder;
|
|
223
|
+
action?: Prisma.SortOrder;
|
|
224
|
+
createdAt?: Prisma.SortOrder;
|
|
225
|
+
updatedAt?: Prisma.SortOrder;
|
|
226
|
+
description?: Prisma.SortOrder;
|
|
227
|
+
};
|
|
228
|
+
export type PermissionKeysMinOrderByAggregateInput = {
|
|
229
|
+
id?: Prisma.SortOrder;
|
|
230
|
+
resource?: Prisma.SortOrder;
|
|
231
|
+
action?: Prisma.SortOrder;
|
|
232
|
+
createdAt?: Prisma.SortOrder;
|
|
233
|
+
updatedAt?: Prisma.SortOrder;
|
|
234
|
+
description?: Prisma.SortOrder;
|
|
235
|
+
};
|
|
236
|
+
export type PermissionKeysScalarRelationFilter = {
|
|
237
|
+
is?: Prisma.PermissionKeysWhereInput;
|
|
238
|
+
isNot?: Prisma.PermissionKeysWhereInput;
|
|
239
|
+
};
|
|
240
|
+
export type StringFieldUpdateOperationsInput = {
|
|
241
|
+
set?: string;
|
|
242
|
+
};
|
|
243
|
+
export type NullableStringFieldUpdateOperationsInput = {
|
|
244
|
+
set?: string | null;
|
|
245
|
+
};
|
|
246
|
+
export type PermissionKeysCreateNestedOneWithoutRoleHasPermissionsInput = {
|
|
247
|
+
create?: Prisma.XOR<Prisma.PermissionKeysCreateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput>;
|
|
248
|
+
connectOrCreate?: Prisma.PermissionKeysCreateOrConnectWithoutRoleHasPermissionsInput;
|
|
249
|
+
connect?: Prisma.PermissionKeysWhereUniqueInput;
|
|
250
|
+
};
|
|
251
|
+
export type PermissionKeysUpdateOneRequiredWithoutRoleHasPermissionsNestedInput = {
|
|
252
|
+
create?: Prisma.XOR<Prisma.PermissionKeysCreateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput>;
|
|
253
|
+
connectOrCreate?: Prisma.PermissionKeysCreateOrConnectWithoutRoleHasPermissionsInput;
|
|
254
|
+
upsert?: Prisma.PermissionKeysUpsertWithoutRoleHasPermissionsInput;
|
|
255
|
+
connect?: Prisma.PermissionKeysWhereUniqueInput;
|
|
256
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.PermissionKeysUpdateToOneWithWhereWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUpdateWithoutRoleHasPermissionsInput>, Prisma.PermissionKeysUncheckedUpdateWithoutRoleHasPermissionsInput>;
|
|
257
|
+
};
|
|
258
|
+
export type PermissionKeysCreateWithoutRoleHasPermissionsInput = {
|
|
259
|
+
id: string;
|
|
260
|
+
resource?: string | null;
|
|
261
|
+
action?: string | null;
|
|
262
|
+
createdAt: Date | string;
|
|
263
|
+
updatedAt: Date | string;
|
|
264
|
+
description?: string | null;
|
|
265
|
+
};
|
|
266
|
+
export type PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput = {
|
|
267
|
+
id: string;
|
|
268
|
+
resource?: string | null;
|
|
269
|
+
action?: string | null;
|
|
270
|
+
createdAt: Date | string;
|
|
271
|
+
updatedAt: Date | string;
|
|
272
|
+
description?: string | null;
|
|
273
|
+
};
|
|
274
|
+
export type PermissionKeysCreateOrConnectWithoutRoleHasPermissionsInput = {
|
|
275
|
+
where: Prisma.PermissionKeysWhereUniqueInput;
|
|
276
|
+
create: Prisma.XOR<Prisma.PermissionKeysCreateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput>;
|
|
277
|
+
};
|
|
278
|
+
export type PermissionKeysUpsertWithoutRoleHasPermissionsInput = {
|
|
279
|
+
update: Prisma.XOR<Prisma.PermissionKeysUpdateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedUpdateWithoutRoleHasPermissionsInput>;
|
|
280
|
+
create: Prisma.XOR<Prisma.PermissionKeysCreateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedCreateWithoutRoleHasPermissionsInput>;
|
|
281
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
282
|
+
};
|
|
283
|
+
export type PermissionKeysUpdateToOneWithWhereWithoutRoleHasPermissionsInput = {
|
|
284
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
285
|
+
data: Prisma.XOR<Prisma.PermissionKeysUpdateWithoutRoleHasPermissionsInput, Prisma.PermissionKeysUncheckedUpdateWithoutRoleHasPermissionsInput>;
|
|
286
|
+
};
|
|
287
|
+
export type PermissionKeysUpdateWithoutRoleHasPermissionsInput = {
|
|
288
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
289
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
290
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
291
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
292
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
293
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
294
|
+
};
|
|
295
|
+
export type PermissionKeysUncheckedUpdateWithoutRoleHasPermissionsInput = {
|
|
296
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
297
|
+
resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
298
|
+
action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
299
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
300
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
301
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
302
|
+
};
|
|
303
|
+
export type PermissionKeysCountOutputType = {
|
|
304
|
+
RoleHasPermissions: number;
|
|
305
|
+
};
|
|
306
|
+
export type PermissionKeysCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
307
|
+
RoleHasPermissions?: boolean | PermissionKeysCountOutputTypeCountRoleHasPermissionsArgs;
|
|
308
|
+
};
|
|
309
|
+
export type PermissionKeysCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
310
|
+
select?: Prisma.PermissionKeysCountOutputTypeSelect<ExtArgs> | null;
|
|
311
|
+
};
|
|
312
|
+
export type PermissionKeysCountOutputTypeCountRoleHasPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
313
|
+
where?: Prisma.RoleHasPermissionsWhereInput;
|
|
314
|
+
};
|
|
315
|
+
export type PermissionKeysSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
316
|
+
id?: boolean;
|
|
317
|
+
resource?: boolean;
|
|
318
|
+
action?: boolean;
|
|
319
|
+
createdAt?: boolean;
|
|
320
|
+
updatedAt?: boolean;
|
|
321
|
+
description?: boolean;
|
|
322
|
+
RoleHasPermissions?: boolean | Prisma.PermissionKeys$RoleHasPermissionsArgs<ExtArgs>;
|
|
323
|
+
_count?: boolean | Prisma.PermissionKeysCountOutputTypeDefaultArgs<ExtArgs>;
|
|
324
|
+
}, ExtArgs["result"]["permissionKeys"]>;
|
|
325
|
+
export type PermissionKeysSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
326
|
+
id?: boolean;
|
|
327
|
+
resource?: boolean;
|
|
328
|
+
action?: boolean;
|
|
329
|
+
createdAt?: boolean;
|
|
330
|
+
updatedAt?: boolean;
|
|
331
|
+
description?: boolean;
|
|
332
|
+
}, ExtArgs["result"]["permissionKeys"]>;
|
|
333
|
+
export type PermissionKeysSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
334
|
+
id?: boolean;
|
|
335
|
+
resource?: boolean;
|
|
336
|
+
action?: boolean;
|
|
337
|
+
createdAt?: boolean;
|
|
338
|
+
updatedAt?: boolean;
|
|
339
|
+
description?: boolean;
|
|
340
|
+
}, ExtArgs["result"]["permissionKeys"]>;
|
|
341
|
+
export type PermissionKeysSelectScalar = {
|
|
342
|
+
id?: boolean;
|
|
343
|
+
resource?: boolean;
|
|
344
|
+
action?: boolean;
|
|
345
|
+
createdAt?: boolean;
|
|
346
|
+
updatedAt?: boolean;
|
|
347
|
+
description?: boolean;
|
|
348
|
+
};
|
|
349
|
+
export type PermissionKeysOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "resource" | "action" | "createdAt" | "updatedAt" | "description", ExtArgs["result"]["permissionKeys"]>;
|
|
350
|
+
export type PermissionKeysInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
351
|
+
RoleHasPermissions?: boolean | Prisma.PermissionKeys$RoleHasPermissionsArgs<ExtArgs>;
|
|
352
|
+
_count?: boolean | Prisma.PermissionKeysCountOutputTypeDefaultArgs<ExtArgs>;
|
|
353
|
+
};
|
|
354
|
+
export type PermissionKeysIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
355
|
+
export type PermissionKeysIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
356
|
+
export type $PermissionKeysPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
357
|
+
name: "PermissionKeys";
|
|
358
|
+
objects: {
|
|
359
|
+
RoleHasPermissions: Prisma.$RoleHasPermissionsPayload<ExtArgs>[];
|
|
360
|
+
};
|
|
361
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
362
|
+
id: string;
|
|
363
|
+
resource: string | null;
|
|
364
|
+
action: string | null;
|
|
365
|
+
createdAt: Date;
|
|
366
|
+
updatedAt: Date;
|
|
367
|
+
description: string | null;
|
|
368
|
+
}, ExtArgs["result"]["permissionKeys"]>;
|
|
369
|
+
composites: {};
|
|
370
|
+
};
|
|
371
|
+
export type PermissionKeysGetPayload<S extends boolean | null | undefined | PermissionKeysDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload, S>;
|
|
372
|
+
export type PermissionKeysCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PermissionKeysFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
373
|
+
select?: PermissionKeysCountAggregateInputType | true;
|
|
374
|
+
};
|
|
375
|
+
export interface PermissionKeysDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
376
|
+
[K: symbol]: {
|
|
377
|
+
types: Prisma.TypeMap<ExtArgs>['model']['PermissionKeys'];
|
|
378
|
+
meta: {
|
|
379
|
+
name: 'PermissionKeys';
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
findUnique<T extends PermissionKeysFindUniqueArgs>(args: Prisma.SelectSubset<T, PermissionKeysFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
383
|
+
findUniqueOrThrow<T extends PermissionKeysFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PermissionKeysFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
384
|
+
findFirst<T extends PermissionKeysFindFirstArgs>(args?: Prisma.SelectSubset<T, PermissionKeysFindFirstArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
385
|
+
findFirstOrThrow<T extends PermissionKeysFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PermissionKeysFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
386
|
+
findMany<T extends PermissionKeysFindManyArgs>(args?: Prisma.SelectSubset<T, PermissionKeysFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
387
|
+
create<T extends PermissionKeysCreateArgs>(args: Prisma.SelectSubset<T, PermissionKeysCreateArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
388
|
+
createMany<T extends PermissionKeysCreateManyArgs>(args?: Prisma.SelectSubset<T, PermissionKeysCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
389
|
+
createManyAndReturn<T extends PermissionKeysCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PermissionKeysCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
390
|
+
delete<T extends PermissionKeysDeleteArgs>(args: Prisma.SelectSubset<T, PermissionKeysDeleteArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
391
|
+
update<T extends PermissionKeysUpdateArgs>(args: Prisma.SelectSubset<T, PermissionKeysUpdateArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
392
|
+
deleteMany<T extends PermissionKeysDeleteManyArgs>(args?: Prisma.SelectSubset<T, PermissionKeysDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
393
|
+
updateMany<T extends PermissionKeysUpdateManyArgs>(args: Prisma.SelectSubset<T, PermissionKeysUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
394
|
+
updateManyAndReturn<T extends PermissionKeysUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PermissionKeysUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
395
|
+
upsert<T extends PermissionKeysUpsertArgs>(args: Prisma.SelectSubset<T, PermissionKeysUpsertArgs<ExtArgs>>): Prisma.Prisma__PermissionKeysClient<runtime.Types.Result.GetResult<Prisma.$PermissionKeysPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
396
|
+
count<T extends PermissionKeysCountArgs>(args?: Prisma.Subset<T, PermissionKeysCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PermissionKeysCountAggregateOutputType> : number>;
|
|
397
|
+
aggregate<T extends PermissionKeysAggregateArgs>(args: Prisma.Subset<T, PermissionKeysAggregateArgs>): Prisma.PrismaPromise<GetPermissionKeysAggregateType<T>>;
|
|
398
|
+
groupBy<T extends PermissionKeysGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
399
|
+
orderBy: PermissionKeysGroupByArgs['orderBy'];
|
|
400
|
+
} : {
|
|
401
|
+
orderBy?: PermissionKeysGroupByArgs['orderBy'];
|
|
402
|
+
}, 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 ? {
|
|
403
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
404
|
+
Error,
|
|
405
|
+
'Field ',
|
|
406
|
+
P,
|
|
407
|
+
` in "having" needs to be provided in "by"`
|
|
408
|
+
];
|
|
409
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
410
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
411
|
+
}[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 ? {} : {
|
|
412
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
413
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
414
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
415
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, PermissionKeysGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPermissionKeysGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
416
|
+
readonly fields: PermissionKeysFieldRefs;
|
|
417
|
+
}
|
|
418
|
+
export interface Prisma__PermissionKeysClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
419
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
420
|
+
RoleHasPermissions<T extends Prisma.PermissionKeys$RoleHasPermissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PermissionKeys$RoleHasPermissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleHasPermissionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
421
|
+
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>;
|
|
422
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
423
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
424
|
+
}
|
|
425
|
+
export interface PermissionKeysFieldRefs {
|
|
426
|
+
readonly id: Prisma.FieldRef<"PermissionKeys", 'String'>;
|
|
427
|
+
readonly resource: Prisma.FieldRef<"PermissionKeys", 'String'>;
|
|
428
|
+
readonly action: Prisma.FieldRef<"PermissionKeys", 'String'>;
|
|
429
|
+
readonly createdAt: Prisma.FieldRef<"PermissionKeys", 'DateTime'>;
|
|
430
|
+
readonly updatedAt: Prisma.FieldRef<"PermissionKeys", 'DateTime'>;
|
|
431
|
+
readonly description: Prisma.FieldRef<"PermissionKeys", 'String'>;
|
|
432
|
+
}
|
|
433
|
+
export type PermissionKeysFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
434
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
435
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
436
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
437
|
+
where: Prisma.PermissionKeysWhereUniqueInput;
|
|
438
|
+
};
|
|
439
|
+
export type PermissionKeysFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
440
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
441
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
442
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
443
|
+
where: Prisma.PermissionKeysWhereUniqueInput;
|
|
444
|
+
};
|
|
445
|
+
export type PermissionKeysFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
446
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
447
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
448
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
449
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
450
|
+
orderBy?: Prisma.PermissionKeysOrderByWithRelationInput | Prisma.PermissionKeysOrderByWithRelationInput[];
|
|
451
|
+
cursor?: Prisma.PermissionKeysWhereUniqueInput;
|
|
452
|
+
take?: number;
|
|
453
|
+
skip?: number;
|
|
454
|
+
distinct?: Prisma.PermissionKeysScalarFieldEnum | Prisma.PermissionKeysScalarFieldEnum[];
|
|
455
|
+
};
|
|
456
|
+
export type PermissionKeysFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
457
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
458
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
459
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
460
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
461
|
+
orderBy?: Prisma.PermissionKeysOrderByWithRelationInput | Prisma.PermissionKeysOrderByWithRelationInput[];
|
|
462
|
+
cursor?: Prisma.PermissionKeysWhereUniqueInput;
|
|
463
|
+
take?: number;
|
|
464
|
+
skip?: number;
|
|
465
|
+
distinct?: Prisma.PermissionKeysScalarFieldEnum | Prisma.PermissionKeysScalarFieldEnum[];
|
|
466
|
+
};
|
|
467
|
+
export type PermissionKeysFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
468
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
469
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
470
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
471
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
472
|
+
orderBy?: Prisma.PermissionKeysOrderByWithRelationInput | Prisma.PermissionKeysOrderByWithRelationInput[];
|
|
473
|
+
cursor?: Prisma.PermissionKeysWhereUniqueInput;
|
|
474
|
+
take?: number;
|
|
475
|
+
skip?: number;
|
|
476
|
+
distinct?: Prisma.PermissionKeysScalarFieldEnum | Prisma.PermissionKeysScalarFieldEnum[];
|
|
477
|
+
};
|
|
478
|
+
export type PermissionKeysCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
479
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
480
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
481
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
482
|
+
data: Prisma.XOR<Prisma.PermissionKeysCreateInput, Prisma.PermissionKeysUncheckedCreateInput>;
|
|
483
|
+
};
|
|
484
|
+
export type PermissionKeysCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
485
|
+
data: Prisma.PermissionKeysCreateManyInput | Prisma.PermissionKeysCreateManyInput[];
|
|
486
|
+
skipDuplicates?: boolean;
|
|
487
|
+
};
|
|
488
|
+
export type PermissionKeysCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
489
|
+
select?: Prisma.PermissionKeysSelectCreateManyAndReturn<ExtArgs> | null;
|
|
490
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
491
|
+
data: Prisma.PermissionKeysCreateManyInput | Prisma.PermissionKeysCreateManyInput[];
|
|
492
|
+
skipDuplicates?: boolean;
|
|
493
|
+
};
|
|
494
|
+
export type PermissionKeysUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
495
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
496
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
497
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
498
|
+
data: Prisma.XOR<Prisma.PermissionKeysUpdateInput, Prisma.PermissionKeysUncheckedUpdateInput>;
|
|
499
|
+
where: Prisma.PermissionKeysWhereUniqueInput;
|
|
500
|
+
};
|
|
501
|
+
export type PermissionKeysUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
502
|
+
data: Prisma.XOR<Prisma.PermissionKeysUpdateManyMutationInput, Prisma.PermissionKeysUncheckedUpdateManyInput>;
|
|
503
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
504
|
+
limit?: number;
|
|
505
|
+
};
|
|
506
|
+
export type PermissionKeysUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
507
|
+
select?: Prisma.PermissionKeysSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
508
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
509
|
+
data: Prisma.XOR<Prisma.PermissionKeysUpdateManyMutationInput, Prisma.PermissionKeysUncheckedUpdateManyInput>;
|
|
510
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
511
|
+
limit?: number;
|
|
512
|
+
};
|
|
513
|
+
export type PermissionKeysUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
514
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
515
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
516
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
517
|
+
where: Prisma.PermissionKeysWhereUniqueInput;
|
|
518
|
+
create: Prisma.XOR<Prisma.PermissionKeysCreateInput, Prisma.PermissionKeysUncheckedCreateInput>;
|
|
519
|
+
update: Prisma.XOR<Prisma.PermissionKeysUpdateInput, Prisma.PermissionKeysUncheckedUpdateInput>;
|
|
520
|
+
};
|
|
521
|
+
export type PermissionKeysDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
522
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
523
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
524
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
525
|
+
where: Prisma.PermissionKeysWhereUniqueInput;
|
|
526
|
+
};
|
|
527
|
+
export type PermissionKeysDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
528
|
+
where?: Prisma.PermissionKeysWhereInput;
|
|
529
|
+
limit?: number;
|
|
530
|
+
};
|
|
531
|
+
export type PermissionKeys$RoleHasPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
532
|
+
select?: Prisma.RoleHasPermissionsSelect<ExtArgs> | null;
|
|
533
|
+
omit?: Prisma.RoleHasPermissionsOmit<ExtArgs> | null;
|
|
534
|
+
include?: Prisma.RoleHasPermissionsInclude<ExtArgs> | null;
|
|
535
|
+
where?: Prisma.RoleHasPermissionsWhereInput;
|
|
536
|
+
orderBy?: Prisma.RoleHasPermissionsOrderByWithRelationInput | Prisma.RoleHasPermissionsOrderByWithRelationInput[];
|
|
537
|
+
cursor?: Prisma.RoleHasPermissionsWhereUniqueInput;
|
|
538
|
+
take?: number;
|
|
539
|
+
skip?: number;
|
|
540
|
+
distinct?: Prisma.RoleHasPermissionsScalarFieldEnum | Prisma.RoleHasPermissionsScalarFieldEnum[];
|
|
541
|
+
};
|
|
542
|
+
export type PermissionKeysDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
543
|
+
select?: Prisma.PermissionKeysSelect<ExtArgs> | null;
|
|
544
|
+
omit?: Prisma.PermissionKeysOmit<ExtArgs> | null;
|
|
545
|
+
include?: Prisma.PermissionKeysInclude<ExtArgs> | null;
|
|
546
|
+
};
|
|
547
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermissionKeys.js","sourceRoot":"","sources":["../../../../../src/generated/prisma/models/PermissionKeys.ts"],"names":[],"mappings":""}
|