@allbluecn/database 0.4.0 → 0.4.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.
Files changed (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1181 @@
1
+
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 the `SsoMapping` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model SsoMapping
17
+ *
18
+ */
19
+ export type SsoMappingModel = runtime.Types.Result.DefaultSelection<Prisma.$SsoMappingPayload>
20
+
21
+ export type AggregateSsoMapping = {
22
+ _count: SsoMappingCountAggregateOutputType | null
23
+ _min: SsoMappingMinAggregateOutputType | null
24
+ _max: SsoMappingMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type SsoMappingMinAggregateOutputType = {
28
+ id: string | null
29
+ providerId: string | null
30
+ externalId: string | null
31
+ userId: string | null
32
+ email: string | null
33
+ createdAt: Date | null
34
+ }
35
+
36
+ export type SsoMappingMaxAggregateOutputType = {
37
+ id: string | null
38
+ providerId: string | null
39
+ externalId: string | null
40
+ userId: string | null
41
+ email: string | null
42
+ createdAt: Date | null
43
+ }
44
+
45
+ export type SsoMappingCountAggregateOutputType = {
46
+ id: number
47
+ providerId: number
48
+ externalId: number
49
+ userId: number
50
+ email: number
51
+ createdAt: number
52
+ _all: number
53
+ }
54
+
55
+
56
+ export type SsoMappingMinAggregateInputType = {
57
+ id?: true
58
+ providerId?: true
59
+ externalId?: true
60
+ userId?: true
61
+ email?: true
62
+ createdAt?: true
63
+ }
64
+
65
+ export type SsoMappingMaxAggregateInputType = {
66
+ id?: true
67
+ providerId?: true
68
+ externalId?: true
69
+ userId?: true
70
+ email?: true
71
+ createdAt?: true
72
+ }
73
+
74
+ export type SsoMappingCountAggregateInputType = {
75
+ id?: true
76
+ providerId?: true
77
+ externalId?: true
78
+ userId?: true
79
+ email?: true
80
+ createdAt?: true
81
+ _all?: true
82
+ }
83
+
84
+ export type SsoMappingAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
85
+ /**
86
+ * Filter which SsoMapping to aggregate.
87
+ */
88
+ where?: Prisma.SsoMappingWhereInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
91
+ *
92
+ * Determine the order of SsoMappings to fetch.
93
+ */
94
+ orderBy?: Prisma.SsoMappingOrderByWithRelationInput | Prisma.SsoMappingOrderByWithRelationInput[]
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
97
+ *
98
+ * Sets the start position
99
+ */
100
+ cursor?: Prisma.SsoMappingWhereUniqueInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
103
+ *
104
+ * Take `±n` SsoMappings from the position of the cursor.
105
+ */
106
+ take?: number
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Skip the first `n` SsoMappings.
111
+ */
112
+ skip?: number
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Count returned SsoMappings
117
+ **/
118
+ _count?: true | SsoMappingCountAggregateInputType
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Select which fields to find the minimum value
123
+ **/
124
+ _min?: SsoMappingMinAggregateInputType
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Select which fields to find the maximum value
129
+ **/
130
+ _max?: SsoMappingMaxAggregateInputType
131
+ }
132
+
133
+ export type GetSsoMappingAggregateType<T extends SsoMappingAggregateArgs> = {
134
+ [P in keyof T & keyof AggregateSsoMapping]: P extends '_count' | 'count'
135
+ ? T[P] extends true
136
+ ? number
137
+ : Prisma.GetScalarType<T[P], AggregateSsoMapping[P]>
138
+ : Prisma.GetScalarType<T[P], AggregateSsoMapping[P]>
139
+ }
140
+
141
+
142
+
143
+
144
+ export type SsoMappingGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ where?: Prisma.SsoMappingWhereInput
146
+ orderBy?: Prisma.SsoMappingOrderByWithAggregationInput | Prisma.SsoMappingOrderByWithAggregationInput[]
147
+ by: Prisma.SsoMappingScalarFieldEnum[] | Prisma.SsoMappingScalarFieldEnum
148
+ having?: Prisma.SsoMappingScalarWhereWithAggregatesInput
149
+ take?: number
150
+ skip?: number
151
+ _count?: SsoMappingCountAggregateInputType | true
152
+ _min?: SsoMappingMinAggregateInputType
153
+ _max?: SsoMappingMaxAggregateInputType
154
+ }
155
+
156
+ export type SsoMappingGroupByOutputType = {
157
+ id: string
158
+ providerId: string
159
+ externalId: string
160
+ userId: string
161
+ email: string | null
162
+ createdAt: Date
163
+ _count: SsoMappingCountAggregateOutputType | null
164
+ _min: SsoMappingMinAggregateOutputType | null
165
+ _max: SsoMappingMaxAggregateOutputType | null
166
+ }
167
+
168
+ export type GetSsoMappingGroupByPayload<T extends SsoMappingGroupByArgs> = Prisma.PrismaPromise<
169
+ Array<
170
+ Prisma.PickEnumerable<SsoMappingGroupByOutputType, T['by']> &
171
+ {
172
+ [P in ((keyof T) & (keyof SsoMappingGroupByOutputType))]: P extends '_count'
173
+ ? T[P] extends boolean
174
+ ? number
175
+ : Prisma.GetScalarType<T[P], SsoMappingGroupByOutputType[P]>
176
+ : Prisma.GetScalarType<T[P], SsoMappingGroupByOutputType[P]>
177
+ }
178
+ >
179
+ >
180
+
181
+
182
+
183
+ export type SsoMappingWhereInput = {
184
+ AND?: Prisma.SsoMappingWhereInput | Prisma.SsoMappingWhereInput[]
185
+ OR?: Prisma.SsoMappingWhereInput[]
186
+ NOT?: Prisma.SsoMappingWhereInput | Prisma.SsoMappingWhereInput[]
187
+ id?: Prisma.StringFilter<"SsoMapping"> | string
188
+ providerId?: Prisma.StringFilter<"SsoMapping"> | string
189
+ externalId?: Prisma.StringFilter<"SsoMapping"> | string
190
+ userId?: Prisma.StringFilter<"SsoMapping"> | string
191
+ email?: Prisma.StringNullableFilter<"SsoMapping"> | string | null
192
+ createdAt?: Prisma.DateTimeFilter<"SsoMapping"> | Date | string
193
+ }
194
+
195
+ export type SsoMappingOrderByWithRelationInput = {
196
+ id?: Prisma.SortOrder
197
+ providerId?: Prisma.SortOrder
198
+ externalId?: Prisma.SortOrder
199
+ userId?: Prisma.SortOrder
200
+ email?: Prisma.SortOrderInput | Prisma.SortOrder
201
+ createdAt?: Prisma.SortOrder
202
+ }
203
+
204
+ export type SsoMappingWhereUniqueInput = Prisma.AtLeast<{
205
+ id?: string
206
+ providerId_externalId?: Prisma.SsoMappingProviderIdExternalIdCompoundUniqueInput
207
+ AND?: Prisma.SsoMappingWhereInput | Prisma.SsoMappingWhereInput[]
208
+ OR?: Prisma.SsoMappingWhereInput[]
209
+ NOT?: Prisma.SsoMappingWhereInput | Prisma.SsoMappingWhereInput[]
210
+ providerId?: Prisma.StringFilter<"SsoMapping"> | string
211
+ externalId?: Prisma.StringFilter<"SsoMapping"> | string
212
+ userId?: Prisma.StringFilter<"SsoMapping"> | string
213
+ email?: Prisma.StringNullableFilter<"SsoMapping"> | string | null
214
+ createdAt?: Prisma.DateTimeFilter<"SsoMapping"> | Date | string
215
+ }, "id" | "providerId_externalId">
216
+
217
+ export type SsoMappingOrderByWithAggregationInput = {
218
+ id?: Prisma.SortOrder
219
+ providerId?: Prisma.SortOrder
220
+ externalId?: Prisma.SortOrder
221
+ userId?: Prisma.SortOrder
222
+ email?: Prisma.SortOrderInput | Prisma.SortOrder
223
+ createdAt?: Prisma.SortOrder
224
+ _count?: Prisma.SsoMappingCountOrderByAggregateInput
225
+ _max?: Prisma.SsoMappingMaxOrderByAggregateInput
226
+ _min?: Prisma.SsoMappingMinOrderByAggregateInput
227
+ }
228
+
229
+ export type SsoMappingScalarWhereWithAggregatesInput = {
230
+ AND?: Prisma.SsoMappingScalarWhereWithAggregatesInput | Prisma.SsoMappingScalarWhereWithAggregatesInput[]
231
+ OR?: Prisma.SsoMappingScalarWhereWithAggregatesInput[]
232
+ NOT?: Prisma.SsoMappingScalarWhereWithAggregatesInput | Prisma.SsoMappingScalarWhereWithAggregatesInput[]
233
+ id?: Prisma.StringWithAggregatesFilter<"SsoMapping"> | string
234
+ providerId?: Prisma.StringWithAggregatesFilter<"SsoMapping"> | string
235
+ externalId?: Prisma.StringWithAggregatesFilter<"SsoMapping"> | string
236
+ userId?: Prisma.StringWithAggregatesFilter<"SsoMapping"> | string
237
+ email?: Prisma.StringNullableWithAggregatesFilter<"SsoMapping"> | string | null
238
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"SsoMapping"> | Date | string
239
+ }
240
+
241
+ export type SsoMappingCreateInput = {
242
+ id?: string
243
+ providerId: string
244
+ externalId: string
245
+ userId: string
246
+ email?: string | null
247
+ createdAt?: Date | string
248
+ }
249
+
250
+ export type SsoMappingUncheckedCreateInput = {
251
+ id?: string
252
+ providerId: string
253
+ externalId: string
254
+ userId: string
255
+ email?: string | null
256
+ createdAt?: Date | string
257
+ }
258
+
259
+ export type SsoMappingUpdateInput = {
260
+ id?: Prisma.StringFieldUpdateOperationsInput | string
261
+ providerId?: Prisma.StringFieldUpdateOperationsInput | string
262
+ externalId?: Prisma.StringFieldUpdateOperationsInput | string
263
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
264
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
265
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
266
+ }
267
+
268
+ export type SsoMappingUncheckedUpdateInput = {
269
+ id?: Prisma.StringFieldUpdateOperationsInput | string
270
+ providerId?: Prisma.StringFieldUpdateOperationsInput | string
271
+ externalId?: Prisma.StringFieldUpdateOperationsInput | string
272
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
273
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
274
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
275
+ }
276
+
277
+ export type SsoMappingCreateManyInput = {
278
+ id?: string
279
+ providerId: string
280
+ externalId: string
281
+ userId: string
282
+ email?: string | null
283
+ createdAt?: Date | string
284
+ }
285
+
286
+ export type SsoMappingUpdateManyMutationInput = {
287
+ id?: Prisma.StringFieldUpdateOperationsInput | string
288
+ providerId?: Prisma.StringFieldUpdateOperationsInput | string
289
+ externalId?: Prisma.StringFieldUpdateOperationsInput | string
290
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
291
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
292
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
293
+ }
294
+
295
+ export type SsoMappingUncheckedUpdateManyInput = {
296
+ id?: Prisma.StringFieldUpdateOperationsInput | string
297
+ providerId?: Prisma.StringFieldUpdateOperationsInput | string
298
+ externalId?: Prisma.StringFieldUpdateOperationsInput | string
299
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
300
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
301
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
302
+ }
303
+
304
+ export type SsoMappingProviderIdExternalIdCompoundUniqueInput = {
305
+ providerId: string
306
+ externalId: string
307
+ }
308
+
309
+ export type SsoMappingCountOrderByAggregateInput = {
310
+ id?: Prisma.SortOrder
311
+ providerId?: Prisma.SortOrder
312
+ externalId?: Prisma.SortOrder
313
+ userId?: Prisma.SortOrder
314
+ email?: Prisma.SortOrder
315
+ createdAt?: Prisma.SortOrder
316
+ }
317
+
318
+ export type SsoMappingMaxOrderByAggregateInput = {
319
+ id?: Prisma.SortOrder
320
+ providerId?: Prisma.SortOrder
321
+ externalId?: Prisma.SortOrder
322
+ userId?: Prisma.SortOrder
323
+ email?: Prisma.SortOrder
324
+ createdAt?: Prisma.SortOrder
325
+ }
326
+
327
+ export type SsoMappingMinOrderByAggregateInput = {
328
+ id?: Prisma.SortOrder
329
+ providerId?: Prisma.SortOrder
330
+ externalId?: Prisma.SortOrder
331
+ userId?: Prisma.SortOrder
332
+ email?: Prisma.SortOrder
333
+ createdAt?: Prisma.SortOrder
334
+ }
335
+
336
+
337
+
338
+ export type SsoMappingSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
339
+ id?: boolean
340
+ providerId?: boolean
341
+ externalId?: boolean
342
+ userId?: boolean
343
+ email?: boolean
344
+ createdAt?: boolean
345
+ }, ExtArgs["result"]["ssoMapping"]>
346
+
347
+ export type SsoMappingSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
348
+ id?: boolean
349
+ providerId?: boolean
350
+ externalId?: boolean
351
+ userId?: boolean
352
+ email?: boolean
353
+ createdAt?: boolean
354
+ }, ExtArgs["result"]["ssoMapping"]>
355
+
356
+ export type SsoMappingSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
357
+ id?: boolean
358
+ providerId?: boolean
359
+ externalId?: boolean
360
+ userId?: boolean
361
+ email?: boolean
362
+ createdAt?: boolean
363
+ }, ExtArgs["result"]["ssoMapping"]>
364
+
365
+ export type SsoMappingSelectScalar = {
366
+ id?: boolean
367
+ providerId?: boolean
368
+ externalId?: boolean
369
+ userId?: boolean
370
+ email?: boolean
371
+ createdAt?: boolean
372
+ }
373
+
374
+ export type SsoMappingOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "providerId" | "externalId" | "userId" | "email" | "createdAt", ExtArgs["result"]["ssoMapping"]>
375
+
376
+ export type $SsoMappingPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
377
+ name: "SsoMapping"
378
+ objects: {}
379
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
380
+ id: string
381
+ providerId: string
382
+ externalId: string
383
+ userId: string
384
+ email: string | null
385
+ createdAt: Date
386
+ }, ExtArgs["result"]["ssoMapping"]>
387
+ composites: {}
388
+ }
389
+
390
+ export type SsoMappingGetPayload<S extends boolean | null | undefined | SsoMappingDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload, S>
391
+
392
+ export type SsoMappingCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
393
+ Omit<SsoMappingFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
394
+ select?: SsoMappingCountAggregateInputType | true
395
+ }
396
+
397
+ export interface SsoMappingDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
398
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SsoMapping'], meta: { name: 'SsoMapping' } }
399
+ /**
400
+ * Find zero or one SsoMapping that matches the filter.
401
+ * @param {SsoMappingFindUniqueArgs} args - Arguments to find a SsoMapping
402
+ * @example
403
+ * // Get one SsoMapping
404
+ * const ssoMapping = await prisma.ssoMapping.findUnique({
405
+ * where: {
406
+ * // ... provide filter here
407
+ * }
408
+ * })
409
+ */
410
+ findUnique<T extends SsoMappingFindUniqueArgs>(args: Prisma.SelectSubset<T, SsoMappingFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SsoMappingClient<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
411
+
412
+ /**
413
+ * Find one SsoMapping that matches the filter or throw an error with `error.code='P2025'`
414
+ * if no matches were found.
415
+ * @param {SsoMappingFindUniqueOrThrowArgs} args - Arguments to find a SsoMapping
416
+ * @example
417
+ * // Get one SsoMapping
418
+ * const ssoMapping = await prisma.ssoMapping.findUniqueOrThrow({
419
+ * where: {
420
+ * // ... provide filter here
421
+ * }
422
+ * })
423
+ */
424
+ findUniqueOrThrow<T extends SsoMappingFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SsoMappingFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SsoMappingClient<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
425
+
426
+ /**
427
+ * Find the first SsoMapping that matches the filter.
428
+ * Note, that providing `undefined` is treated as the value not being there.
429
+ * Read more here: https://pris.ly/d/null-undefined
430
+ * @param {SsoMappingFindFirstArgs} args - Arguments to find a SsoMapping
431
+ * @example
432
+ * // Get one SsoMapping
433
+ * const ssoMapping = await prisma.ssoMapping.findFirst({
434
+ * where: {
435
+ * // ... provide filter here
436
+ * }
437
+ * })
438
+ */
439
+ findFirst<T extends SsoMappingFindFirstArgs>(args?: Prisma.SelectSubset<T, SsoMappingFindFirstArgs<ExtArgs>>): Prisma.Prisma__SsoMappingClient<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
440
+
441
+ /**
442
+ * Find the first SsoMapping that matches the filter or
443
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
444
+ * Note, that providing `undefined` is treated as the value not being there.
445
+ * Read more here: https://pris.ly/d/null-undefined
446
+ * @param {SsoMappingFindFirstOrThrowArgs} args - Arguments to find a SsoMapping
447
+ * @example
448
+ * // Get one SsoMapping
449
+ * const ssoMapping = await prisma.ssoMapping.findFirstOrThrow({
450
+ * where: {
451
+ * // ... provide filter here
452
+ * }
453
+ * })
454
+ */
455
+ findFirstOrThrow<T extends SsoMappingFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SsoMappingFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SsoMappingClient<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
456
+
457
+ /**
458
+ * Find zero or more SsoMappings that matches the filter.
459
+ * Note, that providing `undefined` is treated as the value not being there.
460
+ * Read more here: https://pris.ly/d/null-undefined
461
+ * @param {SsoMappingFindManyArgs} args - Arguments to filter and select certain fields only.
462
+ * @example
463
+ * // Get all SsoMappings
464
+ * const ssoMappings = await prisma.ssoMapping.findMany()
465
+ *
466
+ * // Get first 10 SsoMappings
467
+ * const ssoMappings = await prisma.ssoMapping.findMany({ take: 10 })
468
+ *
469
+ * // Only select the `id`
470
+ * const ssoMappingWithIdOnly = await prisma.ssoMapping.findMany({ select: { id: true } })
471
+ *
472
+ */
473
+ findMany<T extends SsoMappingFindManyArgs>(args?: Prisma.SelectSubset<T, SsoMappingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
474
+
475
+ /**
476
+ * Create a SsoMapping.
477
+ * @param {SsoMappingCreateArgs} args - Arguments to create a SsoMapping.
478
+ * @example
479
+ * // Create one SsoMapping
480
+ * const SsoMapping = await prisma.ssoMapping.create({
481
+ * data: {
482
+ * // ... data to create a SsoMapping
483
+ * }
484
+ * })
485
+ *
486
+ */
487
+ create<T extends SsoMappingCreateArgs>(args: Prisma.SelectSubset<T, SsoMappingCreateArgs<ExtArgs>>): Prisma.Prisma__SsoMappingClient<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
488
+
489
+ /**
490
+ * Create many SsoMappings.
491
+ * @param {SsoMappingCreateManyArgs} args - Arguments to create many SsoMappings.
492
+ * @example
493
+ * // Create many SsoMappings
494
+ * const ssoMapping = await prisma.ssoMapping.createMany({
495
+ * data: [
496
+ * // ... provide data here
497
+ * ]
498
+ * })
499
+ *
500
+ */
501
+ createMany<T extends SsoMappingCreateManyArgs>(args?: Prisma.SelectSubset<T, SsoMappingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
502
+
503
+ /**
504
+ * Create many SsoMappings and returns the data saved in the database.
505
+ * @param {SsoMappingCreateManyAndReturnArgs} args - Arguments to create many SsoMappings.
506
+ * @example
507
+ * // Create many SsoMappings
508
+ * const ssoMapping = await prisma.ssoMapping.createManyAndReturn({
509
+ * data: [
510
+ * // ... provide data here
511
+ * ]
512
+ * })
513
+ *
514
+ * // Create many SsoMappings and only return the `id`
515
+ * const ssoMappingWithIdOnly = await prisma.ssoMapping.createManyAndReturn({
516
+ * select: { id: true },
517
+ * data: [
518
+ * // ... provide data here
519
+ * ]
520
+ * })
521
+ * Note, that providing `undefined` is treated as the value not being there.
522
+ * Read more here: https://pris.ly/d/null-undefined
523
+ *
524
+ */
525
+ createManyAndReturn<T extends SsoMappingCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SsoMappingCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
526
+
527
+ /**
528
+ * Delete a SsoMapping.
529
+ * @param {SsoMappingDeleteArgs} args - Arguments to delete one SsoMapping.
530
+ * @example
531
+ * // Delete one SsoMapping
532
+ * const SsoMapping = await prisma.ssoMapping.delete({
533
+ * where: {
534
+ * // ... filter to delete one SsoMapping
535
+ * }
536
+ * })
537
+ *
538
+ */
539
+ delete<T extends SsoMappingDeleteArgs>(args: Prisma.SelectSubset<T, SsoMappingDeleteArgs<ExtArgs>>): Prisma.Prisma__SsoMappingClient<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
540
+
541
+ /**
542
+ * Update one SsoMapping.
543
+ * @param {SsoMappingUpdateArgs} args - Arguments to update one SsoMapping.
544
+ * @example
545
+ * // Update one SsoMapping
546
+ * const ssoMapping = await prisma.ssoMapping.update({
547
+ * where: {
548
+ * // ... provide filter here
549
+ * },
550
+ * data: {
551
+ * // ... provide data here
552
+ * }
553
+ * })
554
+ *
555
+ */
556
+ update<T extends SsoMappingUpdateArgs>(args: Prisma.SelectSubset<T, SsoMappingUpdateArgs<ExtArgs>>): Prisma.Prisma__SsoMappingClient<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
557
+
558
+ /**
559
+ * Delete zero or more SsoMappings.
560
+ * @param {SsoMappingDeleteManyArgs} args - Arguments to filter SsoMappings to delete.
561
+ * @example
562
+ * // Delete a few SsoMappings
563
+ * const { count } = await prisma.ssoMapping.deleteMany({
564
+ * where: {
565
+ * // ... provide filter here
566
+ * }
567
+ * })
568
+ *
569
+ */
570
+ deleteMany<T extends SsoMappingDeleteManyArgs>(args?: Prisma.SelectSubset<T, SsoMappingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
571
+
572
+ /**
573
+ * Update zero or more SsoMappings.
574
+ * Note, that providing `undefined` is treated as the value not being there.
575
+ * Read more here: https://pris.ly/d/null-undefined
576
+ * @param {SsoMappingUpdateManyArgs} args - Arguments to update one or more rows.
577
+ * @example
578
+ * // Update many SsoMappings
579
+ * const ssoMapping = await prisma.ssoMapping.updateMany({
580
+ * where: {
581
+ * // ... provide filter here
582
+ * },
583
+ * data: {
584
+ * // ... provide data here
585
+ * }
586
+ * })
587
+ *
588
+ */
589
+ updateMany<T extends SsoMappingUpdateManyArgs>(args: Prisma.SelectSubset<T, SsoMappingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
590
+
591
+ /**
592
+ * Update zero or more SsoMappings and returns the data updated in the database.
593
+ * @param {SsoMappingUpdateManyAndReturnArgs} args - Arguments to update many SsoMappings.
594
+ * @example
595
+ * // Update many SsoMappings
596
+ * const ssoMapping = await prisma.ssoMapping.updateManyAndReturn({
597
+ * where: {
598
+ * // ... provide filter here
599
+ * },
600
+ * data: [
601
+ * // ... provide data here
602
+ * ]
603
+ * })
604
+ *
605
+ * // Update zero or more SsoMappings and only return the `id`
606
+ * const ssoMappingWithIdOnly = await prisma.ssoMapping.updateManyAndReturn({
607
+ * select: { id: true },
608
+ * where: {
609
+ * // ... provide filter here
610
+ * },
611
+ * data: [
612
+ * // ... provide data here
613
+ * ]
614
+ * })
615
+ * Note, that providing `undefined` is treated as the value not being there.
616
+ * Read more here: https://pris.ly/d/null-undefined
617
+ *
618
+ */
619
+ updateManyAndReturn<T extends SsoMappingUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SsoMappingUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
620
+
621
+ /**
622
+ * Create or update one SsoMapping.
623
+ * @param {SsoMappingUpsertArgs} args - Arguments to update or create a SsoMapping.
624
+ * @example
625
+ * // Update or create a SsoMapping
626
+ * const ssoMapping = await prisma.ssoMapping.upsert({
627
+ * create: {
628
+ * // ... data to create a SsoMapping
629
+ * },
630
+ * update: {
631
+ * // ... in case it already exists, update
632
+ * },
633
+ * where: {
634
+ * // ... the filter for the SsoMapping we want to update
635
+ * }
636
+ * })
637
+ */
638
+ upsert<T extends SsoMappingUpsertArgs>(args: Prisma.SelectSubset<T, SsoMappingUpsertArgs<ExtArgs>>): Prisma.Prisma__SsoMappingClient<runtime.Types.Result.GetResult<Prisma.$SsoMappingPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
639
+
640
+
641
+ /**
642
+ * Count the number of SsoMappings.
643
+ * Note, that providing `undefined` is treated as the value not being there.
644
+ * Read more here: https://pris.ly/d/null-undefined
645
+ * @param {SsoMappingCountArgs} args - Arguments to filter SsoMappings to count.
646
+ * @example
647
+ * // Count the number of SsoMappings
648
+ * const count = await prisma.ssoMapping.count({
649
+ * where: {
650
+ * // ... the filter for the SsoMappings we want to count
651
+ * }
652
+ * })
653
+ **/
654
+ count<T extends SsoMappingCountArgs>(
655
+ args?: Prisma.Subset<T, SsoMappingCountArgs>,
656
+ ): Prisma.PrismaPromise<
657
+ T extends runtime.Types.Utils.Record<'select', any>
658
+ ? T['select'] extends true
659
+ ? number
660
+ : Prisma.GetScalarType<T['select'], SsoMappingCountAggregateOutputType>
661
+ : number
662
+ >
663
+
664
+ /**
665
+ * Allows you to perform aggregations operations on a SsoMapping.
666
+ * Note, that providing `undefined` is treated as the value not being there.
667
+ * Read more here: https://pris.ly/d/null-undefined
668
+ * @param {SsoMappingAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
669
+ * @example
670
+ * // Ordered by age ascending
671
+ * // Where email contains prisma.io
672
+ * // Limited to the 10 users
673
+ * const aggregations = await prisma.user.aggregate({
674
+ * _avg: {
675
+ * age: true,
676
+ * },
677
+ * where: {
678
+ * email: {
679
+ * contains: "prisma.io",
680
+ * },
681
+ * },
682
+ * orderBy: {
683
+ * age: "asc",
684
+ * },
685
+ * take: 10,
686
+ * })
687
+ **/
688
+ aggregate<T extends SsoMappingAggregateArgs>(args: Prisma.Subset<T, SsoMappingAggregateArgs>): Prisma.PrismaPromise<GetSsoMappingAggregateType<T>>
689
+
690
+ /**
691
+ * Group by SsoMapping.
692
+ * Note, that providing `undefined` is treated as the value not being there.
693
+ * Read more here: https://pris.ly/d/null-undefined
694
+ * @param {SsoMappingGroupByArgs} args - Group by arguments.
695
+ * @example
696
+ * // Group by city, order by createdAt, get count
697
+ * const result = await prisma.user.groupBy({
698
+ * by: ['city', 'createdAt'],
699
+ * orderBy: {
700
+ * createdAt: true
701
+ * },
702
+ * _count: {
703
+ * _all: true
704
+ * },
705
+ * })
706
+ *
707
+ **/
708
+ groupBy<
709
+ T extends SsoMappingGroupByArgs,
710
+ HasSelectOrTake extends Prisma.Or<
711
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
712
+ Prisma.Extends<'take', Prisma.Keys<T>>
713
+ >,
714
+ OrderByArg extends Prisma.True extends HasSelectOrTake
715
+ ? { orderBy: SsoMappingGroupByArgs['orderBy'] }
716
+ : { orderBy?: SsoMappingGroupByArgs['orderBy'] },
717
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
718
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
719
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
720
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
721
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
722
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
723
+ InputErrors extends ByEmpty extends Prisma.True
724
+ ? `Error: "by" must not be empty.`
725
+ : HavingValid extends Prisma.False
726
+ ? {
727
+ [P in HavingFields]: P extends ByFields
728
+ ? never
729
+ : P extends string
730
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
731
+ : [
732
+ Error,
733
+ 'Field ',
734
+ P,
735
+ ` in "having" needs to be provided in "by"`,
736
+ ]
737
+ }[HavingFields]
738
+ : 'take' extends Prisma.Keys<T>
739
+ ? 'orderBy' extends Prisma.Keys<T>
740
+ ? ByValid extends Prisma.True
741
+ ? {}
742
+ : {
743
+ [P in OrderFields]: P extends ByFields
744
+ ? never
745
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
746
+ }[OrderFields]
747
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
748
+ : 'skip' extends Prisma.Keys<T>
749
+ ? 'orderBy' extends Prisma.Keys<T>
750
+ ? ByValid extends Prisma.True
751
+ ? {}
752
+ : {
753
+ [P in OrderFields]: P extends ByFields
754
+ ? never
755
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
756
+ }[OrderFields]
757
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
758
+ : ByValid extends Prisma.True
759
+ ? {}
760
+ : {
761
+ [P in OrderFields]: P extends ByFields
762
+ ? never
763
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
764
+ }[OrderFields]
765
+ >(args: Prisma.SubsetIntersection<T, SsoMappingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSsoMappingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
766
+ /**
767
+ * Fields of the SsoMapping model
768
+ */
769
+ readonly fields: SsoMappingFieldRefs;
770
+ }
771
+
772
+ /**
773
+ * The delegate class that acts as a "Promise-like" for SsoMapping.
774
+ * Why is this prefixed with `Prisma__`?
775
+ * Because we want to prevent naming conflicts as mentioned in
776
+ * https://github.com/prisma/prisma-client-js/issues/707
777
+ */
778
+ export interface Prisma__SsoMappingClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
779
+ readonly [Symbol.toStringTag]: "PrismaPromise"
780
+ /**
781
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
782
+ * @param onfulfilled The callback to execute when the Promise is resolved.
783
+ * @param onrejected The callback to execute when the Promise is rejected.
784
+ * @returns A Promise for the completion of which ever callback is executed.
785
+ */
786
+ 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>
787
+ /**
788
+ * Attaches a callback for only the rejection of the Promise.
789
+ * @param onrejected The callback to execute when the Promise is rejected.
790
+ * @returns A Promise for the completion of the callback.
791
+ */
792
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
793
+ /**
794
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
795
+ * resolved value cannot be modified from the callback.
796
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
797
+ * @returns A Promise for the completion of the callback.
798
+ */
799
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
800
+ }
801
+
802
+
803
+
804
+
805
+ /**
806
+ * Fields of the SsoMapping model
807
+ */
808
+ export interface SsoMappingFieldRefs {
809
+ readonly id: Prisma.FieldRef<"SsoMapping", 'String'>
810
+ readonly providerId: Prisma.FieldRef<"SsoMapping", 'String'>
811
+ readonly externalId: Prisma.FieldRef<"SsoMapping", 'String'>
812
+ readonly userId: Prisma.FieldRef<"SsoMapping", 'String'>
813
+ readonly email: Prisma.FieldRef<"SsoMapping", 'String'>
814
+ readonly createdAt: Prisma.FieldRef<"SsoMapping", 'DateTime'>
815
+ }
816
+
817
+
818
+ // Custom InputTypes
819
+ /**
820
+ * SsoMapping findUnique
821
+ */
822
+ export type SsoMappingFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
823
+ /**
824
+ * Select specific fields to fetch from the SsoMapping
825
+ */
826
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
827
+ /**
828
+ * Omit specific fields from the SsoMapping
829
+ */
830
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
831
+ /**
832
+ * Filter, which SsoMapping to fetch.
833
+ */
834
+ where: Prisma.SsoMappingWhereUniqueInput
835
+ }
836
+
837
+ /**
838
+ * SsoMapping findUniqueOrThrow
839
+ */
840
+ export type SsoMappingFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
841
+ /**
842
+ * Select specific fields to fetch from the SsoMapping
843
+ */
844
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
845
+ /**
846
+ * Omit specific fields from the SsoMapping
847
+ */
848
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
849
+ /**
850
+ * Filter, which SsoMapping to fetch.
851
+ */
852
+ where: Prisma.SsoMappingWhereUniqueInput
853
+ }
854
+
855
+ /**
856
+ * SsoMapping findFirst
857
+ */
858
+ export type SsoMappingFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
859
+ /**
860
+ * Select specific fields to fetch from the SsoMapping
861
+ */
862
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
863
+ /**
864
+ * Omit specific fields from the SsoMapping
865
+ */
866
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
867
+ /**
868
+ * Filter, which SsoMapping to fetch.
869
+ */
870
+ where?: Prisma.SsoMappingWhereInput
871
+ /**
872
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
873
+ *
874
+ * Determine the order of SsoMappings to fetch.
875
+ */
876
+ orderBy?: Prisma.SsoMappingOrderByWithRelationInput | Prisma.SsoMappingOrderByWithRelationInput[]
877
+ /**
878
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
879
+ *
880
+ * Sets the position for searching for SsoMappings.
881
+ */
882
+ cursor?: Prisma.SsoMappingWhereUniqueInput
883
+ /**
884
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
885
+ *
886
+ * Take `±n` SsoMappings from the position of the cursor.
887
+ */
888
+ take?: number
889
+ /**
890
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
891
+ *
892
+ * Skip the first `n` SsoMappings.
893
+ */
894
+ skip?: number
895
+ /**
896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
897
+ *
898
+ * Filter by unique combinations of SsoMappings.
899
+ */
900
+ distinct?: Prisma.SsoMappingScalarFieldEnum | Prisma.SsoMappingScalarFieldEnum[]
901
+ }
902
+
903
+ /**
904
+ * SsoMapping findFirstOrThrow
905
+ */
906
+ export type SsoMappingFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
907
+ /**
908
+ * Select specific fields to fetch from the SsoMapping
909
+ */
910
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
911
+ /**
912
+ * Omit specific fields from the SsoMapping
913
+ */
914
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
915
+ /**
916
+ * Filter, which SsoMapping to fetch.
917
+ */
918
+ where?: Prisma.SsoMappingWhereInput
919
+ /**
920
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
921
+ *
922
+ * Determine the order of SsoMappings to fetch.
923
+ */
924
+ orderBy?: Prisma.SsoMappingOrderByWithRelationInput | Prisma.SsoMappingOrderByWithRelationInput[]
925
+ /**
926
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
927
+ *
928
+ * Sets the position for searching for SsoMappings.
929
+ */
930
+ cursor?: Prisma.SsoMappingWhereUniqueInput
931
+ /**
932
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
933
+ *
934
+ * Take `±n` SsoMappings from the position of the cursor.
935
+ */
936
+ take?: number
937
+ /**
938
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
939
+ *
940
+ * Skip the first `n` SsoMappings.
941
+ */
942
+ skip?: number
943
+ /**
944
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
945
+ *
946
+ * Filter by unique combinations of SsoMappings.
947
+ */
948
+ distinct?: Prisma.SsoMappingScalarFieldEnum | Prisma.SsoMappingScalarFieldEnum[]
949
+ }
950
+
951
+ /**
952
+ * SsoMapping findMany
953
+ */
954
+ export type SsoMappingFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
955
+ /**
956
+ * Select specific fields to fetch from the SsoMapping
957
+ */
958
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
959
+ /**
960
+ * Omit specific fields from the SsoMapping
961
+ */
962
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
963
+ /**
964
+ * Filter, which SsoMappings to fetch.
965
+ */
966
+ where?: Prisma.SsoMappingWhereInput
967
+ /**
968
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
969
+ *
970
+ * Determine the order of SsoMappings to fetch.
971
+ */
972
+ orderBy?: Prisma.SsoMappingOrderByWithRelationInput | Prisma.SsoMappingOrderByWithRelationInput[]
973
+ /**
974
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
975
+ *
976
+ * Sets the position for listing SsoMappings.
977
+ */
978
+ cursor?: Prisma.SsoMappingWhereUniqueInput
979
+ /**
980
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
981
+ *
982
+ * Take `±n` SsoMappings from the position of the cursor.
983
+ */
984
+ take?: number
985
+ /**
986
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
987
+ *
988
+ * Skip the first `n` SsoMappings.
989
+ */
990
+ skip?: number
991
+ /**
992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
993
+ *
994
+ * Filter by unique combinations of SsoMappings.
995
+ */
996
+ distinct?: Prisma.SsoMappingScalarFieldEnum | Prisma.SsoMappingScalarFieldEnum[]
997
+ }
998
+
999
+ /**
1000
+ * SsoMapping create
1001
+ */
1002
+ export type SsoMappingCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1003
+ /**
1004
+ * Select specific fields to fetch from the SsoMapping
1005
+ */
1006
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
1007
+ /**
1008
+ * Omit specific fields from the SsoMapping
1009
+ */
1010
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
1011
+ /**
1012
+ * The data needed to create a SsoMapping.
1013
+ */
1014
+ data: Prisma.XOR<Prisma.SsoMappingCreateInput, Prisma.SsoMappingUncheckedCreateInput>
1015
+ }
1016
+
1017
+ /**
1018
+ * SsoMapping createMany
1019
+ */
1020
+ export type SsoMappingCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1021
+ /**
1022
+ * The data used to create many SsoMappings.
1023
+ */
1024
+ data: Prisma.SsoMappingCreateManyInput | Prisma.SsoMappingCreateManyInput[]
1025
+ }
1026
+
1027
+ /**
1028
+ * SsoMapping createManyAndReturn
1029
+ */
1030
+ export type SsoMappingCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1031
+ /**
1032
+ * Select specific fields to fetch from the SsoMapping
1033
+ */
1034
+ select?: Prisma.SsoMappingSelectCreateManyAndReturn<ExtArgs> | null
1035
+ /**
1036
+ * Omit specific fields from the SsoMapping
1037
+ */
1038
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
1039
+ /**
1040
+ * The data used to create many SsoMappings.
1041
+ */
1042
+ data: Prisma.SsoMappingCreateManyInput | Prisma.SsoMappingCreateManyInput[]
1043
+ }
1044
+
1045
+ /**
1046
+ * SsoMapping update
1047
+ */
1048
+ export type SsoMappingUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1049
+ /**
1050
+ * Select specific fields to fetch from the SsoMapping
1051
+ */
1052
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
1053
+ /**
1054
+ * Omit specific fields from the SsoMapping
1055
+ */
1056
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
1057
+ /**
1058
+ * The data needed to update a SsoMapping.
1059
+ */
1060
+ data: Prisma.XOR<Prisma.SsoMappingUpdateInput, Prisma.SsoMappingUncheckedUpdateInput>
1061
+ /**
1062
+ * Choose, which SsoMapping to update.
1063
+ */
1064
+ where: Prisma.SsoMappingWhereUniqueInput
1065
+ }
1066
+
1067
+ /**
1068
+ * SsoMapping updateMany
1069
+ */
1070
+ export type SsoMappingUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * The data used to update SsoMappings.
1073
+ */
1074
+ data: Prisma.XOR<Prisma.SsoMappingUpdateManyMutationInput, Prisma.SsoMappingUncheckedUpdateManyInput>
1075
+ /**
1076
+ * Filter which SsoMappings to update
1077
+ */
1078
+ where?: Prisma.SsoMappingWhereInput
1079
+ /**
1080
+ * Limit how many SsoMappings to update.
1081
+ */
1082
+ limit?: number
1083
+ }
1084
+
1085
+ /**
1086
+ * SsoMapping updateManyAndReturn
1087
+ */
1088
+ export type SsoMappingUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1089
+ /**
1090
+ * Select specific fields to fetch from the SsoMapping
1091
+ */
1092
+ select?: Prisma.SsoMappingSelectUpdateManyAndReturn<ExtArgs> | null
1093
+ /**
1094
+ * Omit specific fields from the SsoMapping
1095
+ */
1096
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
1097
+ /**
1098
+ * The data used to update SsoMappings.
1099
+ */
1100
+ data: Prisma.XOR<Prisma.SsoMappingUpdateManyMutationInput, Prisma.SsoMappingUncheckedUpdateManyInput>
1101
+ /**
1102
+ * Filter which SsoMappings to update
1103
+ */
1104
+ where?: Prisma.SsoMappingWhereInput
1105
+ /**
1106
+ * Limit how many SsoMappings to update.
1107
+ */
1108
+ limit?: number
1109
+ }
1110
+
1111
+ /**
1112
+ * SsoMapping upsert
1113
+ */
1114
+ export type SsoMappingUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
+ /**
1116
+ * Select specific fields to fetch from the SsoMapping
1117
+ */
1118
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
1119
+ /**
1120
+ * Omit specific fields from the SsoMapping
1121
+ */
1122
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
1123
+ /**
1124
+ * The filter to search for the SsoMapping to update in case it exists.
1125
+ */
1126
+ where: Prisma.SsoMappingWhereUniqueInput
1127
+ /**
1128
+ * In case the SsoMapping found by the `where` argument doesn't exist, create a new SsoMapping with this data.
1129
+ */
1130
+ create: Prisma.XOR<Prisma.SsoMappingCreateInput, Prisma.SsoMappingUncheckedCreateInput>
1131
+ /**
1132
+ * In case the SsoMapping was found with the provided `where` argument, update it with this data.
1133
+ */
1134
+ update: Prisma.XOR<Prisma.SsoMappingUpdateInput, Prisma.SsoMappingUncheckedUpdateInput>
1135
+ }
1136
+
1137
+ /**
1138
+ * SsoMapping delete
1139
+ */
1140
+ export type SsoMappingDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1141
+ /**
1142
+ * Select specific fields to fetch from the SsoMapping
1143
+ */
1144
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
1145
+ /**
1146
+ * Omit specific fields from the SsoMapping
1147
+ */
1148
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
1149
+ /**
1150
+ * Filter which SsoMapping to delete.
1151
+ */
1152
+ where: Prisma.SsoMappingWhereUniqueInput
1153
+ }
1154
+
1155
+ /**
1156
+ * SsoMapping deleteMany
1157
+ */
1158
+ export type SsoMappingDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ /**
1160
+ * Filter which SsoMappings to delete
1161
+ */
1162
+ where?: Prisma.SsoMappingWhereInput
1163
+ /**
1164
+ * Limit how many SsoMappings to delete.
1165
+ */
1166
+ limit?: number
1167
+ }
1168
+
1169
+ /**
1170
+ * SsoMapping without action
1171
+ */
1172
+ export type SsoMappingDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1173
+ /**
1174
+ * Select specific fields to fetch from the SsoMapping
1175
+ */
1176
+ select?: Prisma.SsoMappingSelect<ExtArgs> | null
1177
+ /**
1178
+ * Omit specific fields from the SsoMapping
1179
+ */
1180
+ omit?: Prisma.SsoMappingOmit<ExtArgs> | null
1181
+ }