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