@appweaver/data 0.0.0-stage → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +61 -2
- package/config.d.ts +6 -0
- package/config.js +22 -0
- package/database/create-client.d.ts +11 -0
- package/database/create-client.js +145 -0
- package/database/database-config.d.ts +14 -0
- package/database/database-config.js +40 -0
- package/database/database-error.d.ts +49 -0
- package/database/database-error.js +216 -0
- package/database/index.d.ts +3 -0
- package/database/index.js +19 -0
- package/database/prisma-database.d.ts +33 -0
- package/database/prisma-database.js +178 -0
- package/database/run-transaction.d.ts +21 -0
- package/database/run-transaction.js +15 -0
- package/export/export-config.d.ts +7 -0
- package/export/export-config.js +17 -0
- package/export/export-service.d.ts +22 -0
- package/export/export-service.js +188 -0
- package/export/index.d.ts +1 -0
- package/export/index.js +17 -0
- package/factory/create-model.d.ts +11 -0
- package/factory/create-model.js +479 -0
- package/factory/create-policy.d.ts +12 -0
- package/factory/create-policy.js +20 -0
- package/factory/create-service.d.ts +14 -0
- package/factory/create-service.js +116 -0
- package/index.d.ts +22 -0
- package/index.js +38 -0
- package/internal.d.ts +2 -0
- package/internal.js +6 -0
- package/module.d.ts +3 -0
- package/module.js +81 -0
- package/package.json +67 -3
- package/prisma/client/browser.d.ts +39 -0
- package/prisma/client/browser.js +56 -0
- package/prisma/client/client.d.ts +58 -0
- package/prisma/client/client.js +70 -0
- package/prisma/client/commonInputTypes.d.ts +345 -0
- package/prisma/client/commonInputTypes.js +11 -0
- package/prisma/client/enums.d.ts +1 -0
- package/prisma/client/enums.js +11 -0
- package/prisma/client/internal/class.d.ts +198 -0
- package/prisma/client/internal/class.js +85 -0
- package/prisma/client/internal/prismaNamespace.d.ts +1125 -0
- package/prisma/client/internal/prismaNamespace.js +204 -0
- package/prisma/client/internal/prismaNamespaceBrowser.d.ts +137 -0
- package/prisma/client/internal/prismaNamespaceBrowser.js +175 -0
- package/prisma/client/models/ApiKey.d.ts +1167 -0
- package/prisma/client/models/ApiKey.js +2 -0
- package/prisma/client/models/ConnectedAccount.d.ts +1094 -0
- package/prisma/client/models/ConnectedAccount.js +2 -0
- package/prisma/client/models/File.d.ts +1291 -0
- package/prisma/client/models/File.js +2 -0
- package/prisma/client/models/OneTimeToken.d.ts +1055 -0
- package/prisma/client/models/OneTimeToken.js +2 -0
- package/prisma/client/models/Permission.d.ts +1209 -0
- package/prisma/client/models/Permission.js +2 -0
- package/prisma/client/models/Role.d.ts +1209 -0
- package/prisma/client/models/Role.js +2 -0
- package/prisma/client/models/Seeder.d.ts +1023 -0
- package/prisma/client/models/Seeder.js +2 -0
- package/prisma/client/models.d.ts +8 -0
- package/prisma/client/models.js +2 -0
- package/resource/load-data-resources.d.ts +13 -0
- package/resource/load-data-resources.js +37 -0
- package/resource/model-schema.d.ts +34 -0
- package/resource/model-schema.js +54 -0
- package/resource/resource-config.d.ts +16 -0
- package/resource/resource-config.js +62 -0
- package/resource/resource-loader.d.ts +25 -0
- package/resource/resource-loader.js +138 -0
- package/resource/resource-service.d.ts +462 -0
- package/resource/resource-service.js +1042 -0
- package/resource/schemas/index.d.ts +3 -0
- package/resource/schemas/index.js +19 -0
- package/resource/schemas/resource-aggregate-schema.d.ts +53 -0
- package/resource/schemas/resource-aggregate-schema.js +130 -0
- package/resource/schemas/resource-filter-schema.d.ts +39 -0
- package/resource/schemas/resource-filter-schema.js +153 -0
- package/resource/schemas/resource-sort-schema.d.ts +38 -0
- package/resource/schemas/resource-sort-schema.js +113 -0
- package/resource/utils/aggregate-util.d.ts +113 -0
- package/resource/utils/aggregate-util.js +322 -0
- package/resource/utils/cursor-util.d.ts +60 -0
- package/resource/utils/cursor-util.js +116 -0
- package/resource/utils/date-util.d.ts +22 -0
- package/resource/utils/date-util.js +112 -0
- package/resource/utils/delete-util.d.ts +131 -0
- package/resource/utils/delete-util.js +385 -0
- package/resource/utils/filter-util.d.ts +24 -0
- package/resource/utils/filter-util.js +289 -0
- package/resource/utils/prune-util.d.ts +11 -0
- package/resource/utils/prune-util.js +56 -0
- package/resource/utils/relation-util.d.ts +75 -0
- package/resource/utils/relation-util.js +400 -0
- package/resource/utils/sort-util.d.ts +31 -0
- package/resource/utils/sort-util.js +235 -0
- package/resource/utils/text-search-util.d.ts +14 -0
- package/resource/utils/text-search-util.js +39 -0
- package/resources.d.ts +10 -0
- package/resources.js +26 -0
- package/security/auth-config.d.ts +23 -0
- package/security/auth-config.js +43 -0
- package/security/create-auth-resources.d.ts +28 -0
- package/security/create-auth-resources.js +163 -0
- package/security/helper.d.ts +109 -0
- package/security/helper.js +298 -0
- package/security/resources/api-key/model.d.ts +2 -0
- package/security/resources/api-key/model.js +67 -0
- package/security/resources/api-key/policy.d.ts +2 -0
- package/security/resources/api-key/policy.js +27 -0
- package/security/resources/api-key/service.d.ts +3 -0
- package/security/resources/api-key/service.js +34 -0
- package/security/resources/connected-account/model.d.ts +2 -0
- package/security/resources/connected-account/model.js +57 -0
- package/security/resources/connected-account/service.d.ts +2 -0
- package/security/resources/connected-account/service.js +7 -0
- package/security/resources/one-time-token/model.d.ts +2 -0
- package/security/resources/one-time-token/model.js +36 -0
- package/security/resources/permission/model.d.ts +2 -0
- package/security/resources/permission/model.js +16 -0
- package/security/resources/role/model.d.ts +2 -0
- package/security/resources/role/model.js +22 -0
- package/security/store/database-security-store.d.ts +5 -0
- package/security/store/database-security-store.js +54 -0
- package/seeder/create-seeder.d.ts +29 -0
- package/seeder/create-seeder.js +28 -0
- package/seeder/index.d.ts +2 -0
- package/seeder/index.js +18 -0
- package/seeder/resources/seeder/model.d.ts +2 -0
- package/seeder/resources/seeder/model.js +38 -0
- package/seeder/seeder.d.ts +29 -0
- package/seeder/seeder.js +197 -0
- package/storage/file-service.d.ts +133 -0
- package/storage/file-service.js +586 -0
- package/storage/image-config.d.ts +3 -0
- package/storage/image-config.js +11 -0
- package/storage/resources/file/model.d.ts +2 -0
- package/storage/resources/file/model.js +80 -0
- package/types/auth.d.ts +23 -0
- package/types/auth.js +2 -0
- package/types/generated.d.ts +366 -0
- package/types/generated.js +3 -0
- package/types/storage.d.ts +35 -0
- package/types/storage.js +2 -0
- package/utils/export-util.d.ts +8 -0
- package/utils/export-util.js +26 -0
- package/utils/file-util.d.ts +106 -0
- package/utils/file-util.js +254 -0
- package/utils/model-util.d.ts +36 -0
- package/utils/model-util.js +154 -0
- package/utils/policy-util.d.ts +18 -0
- package/utils/policy-util.js +28 -0
- package/utils/virtual-util.d.ts +11 -0
- package/utils/virtual-util.js +53 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./internal/prismaNamespace";
|
|
3
|
+
export type IntFilter<$PrismaModel = never> = {
|
|
4
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
5
|
+
in?: number[];
|
|
6
|
+
notIn?: number[];
|
|
7
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
8
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
9
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
10
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
11
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
12
|
+
};
|
|
13
|
+
export type StringFilter<$PrismaModel = never> = {
|
|
14
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
15
|
+
in?: string[];
|
|
16
|
+
notIn?: string[];
|
|
17
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
18
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
19
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
20
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
21
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
22
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
23
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
24
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
25
|
+
};
|
|
26
|
+
export type StringNullableFilter<$PrismaModel = never> = {
|
|
27
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
28
|
+
in?: string[] | null;
|
|
29
|
+
notIn?: string[] | null;
|
|
30
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
31
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
32
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
33
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
34
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
35
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
36
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
37
|
+
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
|
38
|
+
};
|
|
39
|
+
export type BoolFilter<$PrismaModel = never> = {
|
|
40
|
+
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
|
41
|
+
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean;
|
|
42
|
+
};
|
|
43
|
+
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
44
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
45
|
+
in?: Date[] | string[] | null;
|
|
46
|
+
notIn?: Date[] | string[] | null;
|
|
47
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
48
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
49
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
50
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
51
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
52
|
+
};
|
|
53
|
+
export type DateTimeFilter<$PrismaModel = never> = {
|
|
54
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
55
|
+
in?: Date[] | string[];
|
|
56
|
+
notIn?: Date[] | string[];
|
|
57
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
58
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
59
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
60
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
61
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
62
|
+
};
|
|
63
|
+
export type SortOrderInput = {
|
|
64
|
+
sort: Prisma.SortOrder;
|
|
65
|
+
nulls?: Prisma.NullsOrder;
|
|
66
|
+
};
|
|
67
|
+
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
68
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
69
|
+
in?: number[];
|
|
70
|
+
notIn?: number[];
|
|
71
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
72
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
73
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
74
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
75
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
76
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
77
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
78
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
79
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
80
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
81
|
+
};
|
|
82
|
+
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
83
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
84
|
+
in?: string[];
|
|
85
|
+
notIn?: string[];
|
|
86
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
87
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
88
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
89
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
90
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
91
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
92
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
93
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
94
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
95
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
96
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
97
|
+
};
|
|
98
|
+
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
99
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
100
|
+
in?: string[] | null;
|
|
101
|
+
notIn?: string[] | null;
|
|
102
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
103
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
104
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
105
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
106
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
107
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
108
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
109
|
+
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null;
|
|
110
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
111
|
+
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
112
|
+
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
113
|
+
};
|
|
114
|
+
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
115
|
+
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
|
116
|
+
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean;
|
|
117
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
118
|
+
_min?: Prisma.NestedBoolFilter<$PrismaModel>;
|
|
119
|
+
_max?: Prisma.NestedBoolFilter<$PrismaModel>;
|
|
120
|
+
};
|
|
121
|
+
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
122
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
123
|
+
in?: Date[] | string[] | null;
|
|
124
|
+
notIn?: Date[] | string[] | null;
|
|
125
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
126
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
127
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
128
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
129
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
130
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
131
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
132
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
133
|
+
};
|
|
134
|
+
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
135
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
136
|
+
in?: Date[] | string[];
|
|
137
|
+
notIn?: Date[] | string[];
|
|
138
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
139
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
140
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
141
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
142
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
143
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
144
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
145
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
146
|
+
};
|
|
147
|
+
export type JsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>, Required<JsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>;
|
|
148
|
+
export type JsonFilterBase<$PrismaModel = never> = {
|
|
149
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
150
|
+
path?: string;
|
|
151
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
152
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
153
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
154
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
155
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
156
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
157
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
158
|
+
};
|
|
159
|
+
export type JsonWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
160
|
+
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
161
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
162
|
+
path?: string;
|
|
163
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
164
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
165
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
166
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
167
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
168
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
169
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
170
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
171
|
+
_min?: Prisma.NestedJsonFilter<$PrismaModel>;
|
|
172
|
+
_max?: Prisma.NestedJsonFilter<$PrismaModel>;
|
|
173
|
+
};
|
|
174
|
+
export type NestedIntFilter<$PrismaModel = never> = {
|
|
175
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
176
|
+
in?: number[];
|
|
177
|
+
notIn?: number[];
|
|
178
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
179
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
180
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
181
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
182
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
183
|
+
};
|
|
184
|
+
export type NestedStringFilter<$PrismaModel = never> = {
|
|
185
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
186
|
+
in?: string[];
|
|
187
|
+
notIn?: string[];
|
|
188
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
189
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
190
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
191
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
192
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
193
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
194
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
195
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
196
|
+
};
|
|
197
|
+
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
198
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
199
|
+
in?: string[] | null;
|
|
200
|
+
notIn?: string[] | null;
|
|
201
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
202
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
203
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
204
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
205
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
206
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
207
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
208
|
+
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
|
209
|
+
};
|
|
210
|
+
export type NestedBoolFilter<$PrismaModel = never> = {
|
|
211
|
+
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
|
212
|
+
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean;
|
|
213
|
+
};
|
|
214
|
+
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
215
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
216
|
+
in?: Date[] | string[] | null;
|
|
217
|
+
notIn?: Date[] | string[] | null;
|
|
218
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
219
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
220
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
221
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
222
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
223
|
+
};
|
|
224
|
+
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
225
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
226
|
+
in?: Date[] | string[];
|
|
227
|
+
notIn?: Date[] | string[];
|
|
228
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
229
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
230
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
231
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
232
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
233
|
+
};
|
|
234
|
+
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
235
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
236
|
+
in?: number[];
|
|
237
|
+
notIn?: number[];
|
|
238
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
239
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
240
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
241
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
242
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
243
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
244
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
245
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
246
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
247
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
248
|
+
};
|
|
249
|
+
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
250
|
+
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
251
|
+
in?: number[];
|
|
252
|
+
notIn?: number[];
|
|
253
|
+
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
254
|
+
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
255
|
+
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
256
|
+
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
257
|
+
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
|
258
|
+
};
|
|
259
|
+
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
260
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
261
|
+
in?: string[];
|
|
262
|
+
notIn?: string[];
|
|
263
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
264
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
265
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
266
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
267
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
268
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
269
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
270
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
271
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
272
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
273
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
274
|
+
};
|
|
275
|
+
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
276
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
277
|
+
in?: string[] | null;
|
|
278
|
+
notIn?: string[] | null;
|
|
279
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
280
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
281
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
282
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
283
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
284
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
285
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
286
|
+
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null;
|
|
287
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
288
|
+
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
289
|
+
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
290
|
+
};
|
|
291
|
+
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
292
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
293
|
+
in?: number[] | null;
|
|
294
|
+
notIn?: number[] | null;
|
|
295
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
296
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
297
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
298
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
299
|
+
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
|
300
|
+
};
|
|
301
|
+
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
302
|
+
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>;
|
|
303
|
+
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean;
|
|
304
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
305
|
+
_min?: Prisma.NestedBoolFilter<$PrismaModel>;
|
|
306
|
+
_max?: Prisma.NestedBoolFilter<$PrismaModel>;
|
|
307
|
+
};
|
|
308
|
+
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
309
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
310
|
+
in?: Date[] | string[] | null;
|
|
311
|
+
notIn?: Date[] | string[] | null;
|
|
312
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
313
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
314
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
315
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
316
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
317
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
318
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
319
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
320
|
+
};
|
|
321
|
+
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
322
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
323
|
+
in?: Date[] | string[];
|
|
324
|
+
notIn?: Date[] | string[];
|
|
325
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
326
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
327
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
328
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
329
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
330
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
331
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
332
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
333
|
+
};
|
|
334
|
+
export type NestedJsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>;
|
|
335
|
+
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
|
336
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
337
|
+
path?: string;
|
|
338
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
339
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
340
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
341
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
342
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
343
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
344
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
345
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports various common sort, input & filter types that are not directly linked to a particular model.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports all enum related types from the schema.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./prismaNamespace";
|
|
3
|
+
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
|
|
4
|
+
export interface PrismaClientConstructor {
|
|
5
|
+
/**
|
|
6
|
+
* ## Prisma Client
|
|
7
|
+
*
|
|
8
|
+
* Type-safe database client for TypeScript
|
|
9
|
+
* @example
|
|
10
|
+
* ```
|
|
11
|
+
* const prisma = new PrismaClient({
|
|
12
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
13
|
+
* })
|
|
14
|
+
* // Fetch zero or more ApiKeys
|
|
15
|
+
* const apiKeys = await prisma.apiKey.findMany()
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
19
|
+
*/
|
|
20
|
+
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
21
|
+
omit: infer U;
|
|
22
|
+
} ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.PrismaClientConstructorArgs<Options>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* ## Prisma Client
|
|
26
|
+
*
|
|
27
|
+
* Type-safe database client for TypeScript
|
|
28
|
+
* @example
|
|
29
|
+
* ```
|
|
30
|
+
* const prisma = new PrismaClient({
|
|
31
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
32
|
+
* })
|
|
33
|
+
* // Fetch zero or more ApiKeys
|
|
34
|
+
* const apiKeys = await prisma.apiKey.findMany()
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
38
|
+
*/
|
|
39
|
+
export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
40
|
+
[K: symbol]: {
|
|
41
|
+
types: Prisma.TypeMap<ExtArgs>['other'];
|
|
42
|
+
};
|
|
43
|
+
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
44
|
+
/**
|
|
45
|
+
* Connect with the database
|
|
46
|
+
*/
|
|
47
|
+
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Disconnect from the database
|
|
50
|
+
*/
|
|
51
|
+
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Executes a prepared raw query and returns the number of affected rows.
|
|
54
|
+
* @example
|
|
55
|
+
* ```
|
|
56
|
+
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
60
|
+
*/
|
|
61
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Executes a raw query and returns the number of affected rows.
|
|
64
|
+
* Susceptible to SQL injections, see documentation.
|
|
65
|
+
* @example
|
|
66
|
+
* ```
|
|
67
|
+
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
71
|
+
*/
|
|
72
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Performs a prepared raw query and returns the `SELECT` data.
|
|
75
|
+
* @example
|
|
76
|
+
* ```
|
|
77
|
+
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
81
|
+
*/
|
|
82
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
83
|
+
/**
|
|
84
|
+
* Performs a raw query and returns the `SELECT` data.
|
|
85
|
+
* Susceptible to SQL injections, see documentation.
|
|
86
|
+
* @example
|
|
87
|
+
* ```
|
|
88
|
+
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
92
|
+
*/
|
|
93
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
94
|
+
/**
|
|
95
|
+
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
96
|
+
* @example
|
|
97
|
+
* ```
|
|
98
|
+
* const [george, bob, alice] = await prisma.$transaction([
|
|
99
|
+
* prisma.user.create({ data: { name: 'George' } }),
|
|
100
|
+
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
101
|
+
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
102
|
+
* ])
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
|
|
106
|
+
*/
|
|
107
|
+
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
108
|
+
maxWait?: number;
|
|
109
|
+
timeout?: number;
|
|
110
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
111
|
+
}): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
|
112
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
|
|
113
|
+
maxWait?: number;
|
|
114
|
+
timeout?: number;
|
|
115
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
116
|
+
}): runtime.Types.Utils.JsPromise<R>;
|
|
117
|
+
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
118
|
+
extArgs: ExtArgs;
|
|
119
|
+
}>>;
|
|
120
|
+
/**
|
|
121
|
+
* `prisma.apiKey`: Exposes CRUD operations for the **ApiKey** model.
|
|
122
|
+
* Example usage:
|
|
123
|
+
* ```ts
|
|
124
|
+
* // Fetch zero or more ApiKeys
|
|
125
|
+
* const apiKeys = await prisma.apiKey.findMany()
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
get apiKey(): Prisma.ApiKeyDelegate<ExtArgs, {
|
|
129
|
+
omit: OmitOpts;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* `prisma.connectedAccount`: Exposes CRUD operations for the **ConnectedAccount** model.
|
|
133
|
+
* Example usage:
|
|
134
|
+
* ```ts
|
|
135
|
+
* // Fetch zero or more ConnectedAccounts
|
|
136
|
+
* const connectedAccounts = await prisma.connectedAccount.findMany()
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
get connectedAccount(): Prisma.ConnectedAccountDelegate<ExtArgs, {
|
|
140
|
+
omit: OmitOpts;
|
|
141
|
+
}>;
|
|
142
|
+
/**
|
|
143
|
+
* `prisma.oneTimeToken`: Exposes CRUD operations for the **OneTimeToken** model.
|
|
144
|
+
* Example usage:
|
|
145
|
+
* ```ts
|
|
146
|
+
* // Fetch zero or more OneTimeTokens
|
|
147
|
+
* const oneTimeTokens = await prisma.oneTimeToken.findMany()
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
get oneTimeToken(): Prisma.OneTimeTokenDelegate<ExtArgs, {
|
|
151
|
+
omit: OmitOpts;
|
|
152
|
+
}>;
|
|
153
|
+
/**
|
|
154
|
+
* `prisma.permission`: Exposes CRUD operations for the **Permission** model.
|
|
155
|
+
* Example usage:
|
|
156
|
+
* ```ts
|
|
157
|
+
* // Fetch zero or more Permissions
|
|
158
|
+
* const permissions = await prisma.permission.findMany()
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
get permission(): Prisma.PermissionDelegate<ExtArgs, {
|
|
162
|
+
omit: OmitOpts;
|
|
163
|
+
}>;
|
|
164
|
+
/**
|
|
165
|
+
* `prisma.role`: Exposes CRUD operations for the **Role** model.
|
|
166
|
+
* Example usage:
|
|
167
|
+
* ```ts
|
|
168
|
+
* // Fetch zero or more Roles
|
|
169
|
+
* const roles = await prisma.role.findMany()
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
get role(): Prisma.RoleDelegate<ExtArgs, {
|
|
173
|
+
omit: OmitOpts;
|
|
174
|
+
}>;
|
|
175
|
+
/**
|
|
176
|
+
* `prisma.seeder`: Exposes CRUD operations for the **Seeder** model.
|
|
177
|
+
* Example usage:
|
|
178
|
+
* ```ts
|
|
179
|
+
* // Fetch zero or more Seeders
|
|
180
|
+
* const seeders = await prisma.seeder.findMany()
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
get seeder(): Prisma.SeederDelegate<ExtArgs, {
|
|
184
|
+
omit: OmitOpts;
|
|
185
|
+
}>;
|
|
186
|
+
/**
|
|
187
|
+
* `prisma.file`: Exposes CRUD operations for the **File** model.
|
|
188
|
+
* Example usage:
|
|
189
|
+
* ```ts
|
|
190
|
+
* // Fetch zero or more Files
|
|
191
|
+
* const files = await prisma.file.findMany()
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
get file(): Prisma.FileDelegate<ExtArgs, {
|
|
195
|
+
omit: OmitOpts;
|
|
196
|
+
}>;
|
|
197
|
+
}
|
|
198
|
+
export declare function getPrismaClientClass(): PrismaClientConstructor;
|