zele 0.3.0 → 0.3.6

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