zele 0.3.0 → 0.3.5

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 +26 -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 +112 -126
  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 +30 -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 +102 -147
  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 labels
5
- *
6
- */
7
- export type labelsModel = runtime.Types.Result.DefaultSelection<Prisma.$labelsPayload>;
8
- export type AggregateLabels = {
9
- _count: LabelsCountAggregateOutputType | null;
10
- _avg: LabelsAvgAggregateOutputType | null;
11
- _sum: LabelsSumAggregateOutputType | null;
12
- _min: LabelsMinAggregateOutputType | null;
13
- _max: LabelsMaxAggregateOutputType | null;
14
- };
15
- export type LabelsAvgAggregateOutputType = {
16
- ttl_ms: number | null;
17
- };
18
- export type LabelsSumAggregateOutputType = {
19
- ttl_ms: number | null;
20
- };
21
- export type LabelsMinAggregateOutputType = {
22
- email: string | null;
23
- data: string | null;
24
- ttl_ms: number | null;
25
- created_at: Date | null;
26
- };
27
- export type LabelsMaxAggregateOutputType = {
28
- email: string | null;
29
- data: string | null;
30
- ttl_ms: number | null;
31
- created_at: Date | null;
32
- };
33
- export type LabelsCountAggregateOutputType = {
34
- email: number;
35
- data: number;
36
- ttl_ms: number;
37
- created_at: number;
38
- _all: number;
39
- };
40
- export type LabelsAvgAggregateInputType = {
41
- ttl_ms?: true;
42
- };
43
- export type LabelsSumAggregateInputType = {
44
- ttl_ms?: true;
45
- };
46
- export type LabelsMinAggregateInputType = {
47
- email?: true;
48
- data?: true;
49
- ttl_ms?: true;
50
- created_at?: true;
51
- };
52
- export type LabelsMaxAggregateInputType = {
53
- email?: true;
54
- data?: true;
55
- ttl_ms?: true;
56
- created_at?: true;
57
- };
58
- export type LabelsCountAggregateInputType = {
59
- email?: true;
60
- data?: true;
61
- ttl_ms?: true;
62
- created_at?: true;
63
- _all?: true;
64
- };
65
- export type LabelsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
66
- /**
67
- * Filter which labels to aggregate.
68
- */
69
- where?: Prisma.labelsWhereInput;
70
- /**
71
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
72
- *
73
- * Determine the order of labels to fetch.
74
- */
75
- orderBy?: Prisma.labelsOrderByWithRelationInput | Prisma.labelsOrderByWithRelationInput[];
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.labelsWhereUniqueInput;
82
- /**
83
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
84
- *
85
- * Take `±n` labels 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` labels.
92
- */
93
- skip?: number;
94
- /**
95
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
96
- *
97
- * Count returned labels
98
- **/
99
- _count?: true | LabelsCountAggregateInputType;
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?: LabelsAvgAggregateInputType;
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?: LabelsSumAggregateInputType;
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?: LabelsMinAggregateInputType;
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?: LabelsMaxAggregateInputType;
124
- };
125
- export type GetLabelsAggregateType<T extends LabelsAggregateArgs> = {
126
- [P in keyof T & keyof AggregateLabels]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateLabels[P]> : Prisma.GetScalarType<T[P], AggregateLabels[P]>;
127
- };
128
- export type labelsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
129
- where?: Prisma.labelsWhereInput;
130
- orderBy?: Prisma.labelsOrderByWithAggregationInput | Prisma.labelsOrderByWithAggregationInput[];
131
- by: Prisma.LabelsScalarFieldEnum[] | Prisma.LabelsScalarFieldEnum;
132
- having?: Prisma.labelsScalarWhereWithAggregatesInput;
133
- take?: number;
134
- skip?: number;
135
- _count?: LabelsCountAggregateInputType | true;
136
- _avg?: LabelsAvgAggregateInputType;
137
- _sum?: LabelsSumAggregateInputType;
138
- _min?: LabelsMinAggregateInputType;
139
- _max?: LabelsMaxAggregateInputType;
140
- };
141
- export type LabelsGroupByOutputType = {
142
- email: string;
143
- data: string;
144
- ttl_ms: number;
145
- created_at: Date;
146
- _count: LabelsCountAggregateOutputType | null;
147
- _avg: LabelsAvgAggregateOutputType | null;
148
- _sum: LabelsSumAggregateOutputType | null;
149
- _min: LabelsMinAggregateOutputType | null;
150
- _max: LabelsMaxAggregateOutputType | null;
151
- };
152
- type GetLabelsGroupByPayload<T extends labelsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<LabelsGroupByOutputType, T['by']> & {
153
- [P in ((keyof T) & (keyof LabelsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], LabelsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], LabelsGroupByOutputType[P]>;
154
- }>>;
155
- export type labelsWhereInput = {
156
- AND?: Prisma.labelsWhereInput | Prisma.labelsWhereInput[];
157
- OR?: Prisma.labelsWhereInput[];
158
- NOT?: Prisma.labelsWhereInput | Prisma.labelsWhereInput[];
159
- email?: Prisma.StringFilter<"labels"> | string;
160
- data?: Prisma.StringFilter<"labels"> | string;
161
- ttl_ms?: Prisma.IntFilter<"labels"> | number;
162
- created_at?: Prisma.DateTimeFilter<"labels"> | Date | string;
163
- account?: Prisma.XOR<Prisma.AccountsScalarRelationFilter, Prisma.accountsWhereInput>;
164
- };
165
- export type labelsOrderByWithRelationInput = {
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 labelsWhereUniqueInput = Prisma.AtLeast<{
173
- email?: string;
174
- AND?: Prisma.labelsWhereInput | Prisma.labelsWhereInput[];
175
- OR?: Prisma.labelsWhereInput[];
176
- NOT?: Prisma.labelsWhereInput | Prisma.labelsWhereInput[];
177
- data?: Prisma.StringFilter<"labels"> | string;
178
- ttl_ms?: Prisma.IntFilter<"labels"> | number;
179
- created_at?: Prisma.DateTimeFilter<"labels"> | Date | string;
180
- account?: Prisma.XOR<Prisma.AccountsScalarRelationFilter, Prisma.accountsWhereInput>;
181
- }, "email">;
182
- export type labelsOrderByWithAggregationInput = {
183
- email?: Prisma.SortOrder;
184
- data?: Prisma.SortOrder;
185
- ttl_ms?: Prisma.SortOrder;
186
- created_at?: Prisma.SortOrder;
187
- _count?: Prisma.labelsCountOrderByAggregateInput;
188
- _avg?: Prisma.labelsAvgOrderByAggregateInput;
189
- _max?: Prisma.labelsMaxOrderByAggregateInput;
190
- _min?: Prisma.labelsMinOrderByAggregateInput;
191
- _sum?: Prisma.labelsSumOrderByAggregateInput;
192
- };
193
- export type labelsScalarWhereWithAggregatesInput = {
194
- AND?: Prisma.labelsScalarWhereWithAggregatesInput | Prisma.labelsScalarWhereWithAggregatesInput[];
195
- OR?: Prisma.labelsScalarWhereWithAggregatesInput[];
196
- NOT?: Prisma.labelsScalarWhereWithAggregatesInput | Prisma.labelsScalarWhereWithAggregatesInput[];
197
- email?: Prisma.StringWithAggregatesFilter<"labels"> | string;
198
- data?: Prisma.StringWithAggregatesFilter<"labels"> | string;
199
- ttl_ms?: Prisma.IntWithAggregatesFilter<"labels"> | number;
200
- created_at?: Prisma.DateTimeWithAggregatesFilter<"labels"> | Date | string;
201
- };
202
- export type labelsCreateInput = {
203
- data: string;
204
- ttl_ms: number;
205
- created_at?: Date | string;
206
- account: Prisma.accountsCreateNestedOneWithoutLabelsInput;
207
- };
208
- export type labelsUncheckedCreateInput = {
209
- email: string;
210
- data: string;
211
- ttl_ms: number;
212
- created_at?: Date | string;
213
- };
214
- export type labelsUpdateInput = {
215
- data?: Prisma.StringFieldUpdateOperationsInput | string;
216
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
217
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
218
- account?: Prisma.accountsUpdateOneRequiredWithoutLabelsNestedInput;
219
- };
220
- export type labelsUncheckedUpdateInput = {
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 labelsCreateManyInput = {
227
- email: string;
228
- data: string;
229
- ttl_ms: number;
230
- created_at?: Date | string;
231
- };
232
- export type labelsUpdateManyMutationInput = {
233
- data?: Prisma.StringFieldUpdateOperationsInput | string;
234
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
235
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
236
- };
237
- export type labelsUncheckedUpdateManyInput = {
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 LabelsNullableScalarRelationFilter = {
244
- is?: Prisma.labelsWhereInput | null;
245
- isNot?: Prisma.labelsWhereInput | null;
246
- };
247
- export type labelsCountOrderByAggregateInput = {
248
- email?: Prisma.SortOrder;
249
- data?: Prisma.SortOrder;
250
- ttl_ms?: Prisma.SortOrder;
251
- created_at?: Prisma.SortOrder;
252
- };
253
- export type labelsAvgOrderByAggregateInput = {
254
- ttl_ms?: Prisma.SortOrder;
255
- };
256
- export type labelsMaxOrderByAggregateInput = {
257
- email?: Prisma.SortOrder;
258
- data?: Prisma.SortOrder;
259
- ttl_ms?: Prisma.SortOrder;
260
- created_at?: Prisma.SortOrder;
261
- };
262
- export type labelsMinOrderByAggregateInput = {
263
- email?: Prisma.SortOrder;
264
- data?: Prisma.SortOrder;
265
- ttl_ms?: Prisma.SortOrder;
266
- created_at?: Prisma.SortOrder;
267
- };
268
- export type labelsSumOrderByAggregateInput = {
269
- ttl_ms?: Prisma.SortOrder;
270
- };
271
- export type labelsCreateNestedOneWithoutAccountInput = {
272
- create?: Prisma.XOR<Prisma.labelsCreateWithoutAccountInput, Prisma.labelsUncheckedCreateWithoutAccountInput>;
273
- connectOrCreate?: Prisma.labelsCreateOrConnectWithoutAccountInput;
274
- connect?: Prisma.labelsWhereUniqueInput;
275
- };
276
- export type labelsUncheckedCreateNestedOneWithoutAccountInput = {
277
- create?: Prisma.XOR<Prisma.labelsCreateWithoutAccountInput, Prisma.labelsUncheckedCreateWithoutAccountInput>;
278
- connectOrCreate?: Prisma.labelsCreateOrConnectWithoutAccountInput;
279
- connect?: Prisma.labelsWhereUniqueInput;
280
- };
281
- export type labelsUpdateOneWithoutAccountNestedInput = {
282
- create?: Prisma.XOR<Prisma.labelsCreateWithoutAccountInput, Prisma.labelsUncheckedCreateWithoutAccountInput>;
283
- connectOrCreate?: Prisma.labelsCreateOrConnectWithoutAccountInput;
284
- upsert?: Prisma.labelsUpsertWithoutAccountInput;
285
- disconnect?: Prisma.labelsWhereInput | boolean;
286
- delete?: Prisma.labelsWhereInput | boolean;
287
- connect?: Prisma.labelsWhereUniqueInput;
288
- update?: Prisma.XOR<Prisma.XOR<Prisma.labelsUpdateToOneWithWhereWithoutAccountInput, Prisma.labelsUpdateWithoutAccountInput>, Prisma.labelsUncheckedUpdateWithoutAccountInput>;
289
- };
290
- export type labelsUncheckedUpdateOneWithoutAccountNestedInput = {
291
- create?: Prisma.XOR<Prisma.labelsCreateWithoutAccountInput, Prisma.labelsUncheckedCreateWithoutAccountInput>;
292
- connectOrCreate?: Prisma.labelsCreateOrConnectWithoutAccountInput;
293
- upsert?: Prisma.labelsUpsertWithoutAccountInput;
294
- disconnect?: Prisma.labelsWhereInput | boolean;
295
- delete?: Prisma.labelsWhereInput | boolean;
296
- connect?: Prisma.labelsWhereUniqueInput;
297
- update?: Prisma.XOR<Prisma.XOR<Prisma.labelsUpdateToOneWithWhereWithoutAccountInput, Prisma.labelsUpdateWithoutAccountInput>, Prisma.labelsUncheckedUpdateWithoutAccountInput>;
298
- };
299
- export type labelsCreateWithoutAccountInput = {
300
- data: string;
301
- ttl_ms: number;
302
- created_at?: Date | string;
303
- };
304
- export type labelsUncheckedCreateWithoutAccountInput = {
305
- data: string;
306
- ttl_ms: number;
307
- created_at?: Date | string;
308
- };
309
- export type labelsCreateOrConnectWithoutAccountInput = {
310
- where: Prisma.labelsWhereUniqueInput;
311
- create: Prisma.XOR<Prisma.labelsCreateWithoutAccountInput, Prisma.labelsUncheckedCreateWithoutAccountInput>;
312
- };
313
- export type labelsUpsertWithoutAccountInput = {
314
- update: Prisma.XOR<Prisma.labelsUpdateWithoutAccountInput, Prisma.labelsUncheckedUpdateWithoutAccountInput>;
315
- create: Prisma.XOR<Prisma.labelsCreateWithoutAccountInput, Prisma.labelsUncheckedCreateWithoutAccountInput>;
316
- where?: Prisma.labelsWhereInput;
317
- };
318
- export type labelsUpdateToOneWithWhereWithoutAccountInput = {
319
- where?: Prisma.labelsWhereInput;
320
- data: Prisma.XOR<Prisma.labelsUpdateWithoutAccountInput, Prisma.labelsUncheckedUpdateWithoutAccountInput>;
321
- };
322
- export type labelsUpdateWithoutAccountInput = {
323
- data?: Prisma.StringFieldUpdateOperationsInput | string;
324
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
325
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
326
- };
327
- export type labelsUncheckedUpdateWithoutAccountInput = {
328
- data?: Prisma.StringFieldUpdateOperationsInput | string;
329
- ttl_ms?: Prisma.IntFieldUpdateOperationsInput | number;
330
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
331
- };
332
- export type labelsSelect<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"]["labels"]>;
339
- export type labelsSelectCreateManyAndReturn<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"]["labels"]>;
346
- export type labelsSelectUpdateManyAndReturn<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"]["labels"]>;
353
- export type labelsSelectScalar = {
354
- email?: boolean;
355
- data?: boolean;
356
- ttl_ms?: boolean;
357
- created_at?: boolean;
358
- };
359
- export type labelsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"email" | "data" | "ttl_ms" | "created_at", ExtArgs["result"]["labels"]>;
360
- export type labelsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
361
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
362
- };
363
- export type labelsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
364
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
365
- };
366
- export type labelsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
367
- account?: boolean | Prisma.accountsDefaultArgs<ExtArgs>;
368
- };
369
- export type $labelsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
370
- name: "labels";
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"]["labels"]>;
380
- composites: {};
381
- };
382
- export type labelsGetPayload<S extends boolean | null | undefined | labelsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$labelsPayload, S>;
383
- export type labelsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<labelsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
384
- select?: LabelsCountAggregateInputType | true;
385
- };
386
- export interface labelsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
387
- [K: symbol]: {
388
- types: Prisma.TypeMap<ExtArgs>['model']['labels'];
389
- meta: {
390
- name: 'labels';
391
- };
392
- };
393
- /**
394
- * Find zero or one Labels that matches the filter.
395
- * @param {labelsFindUniqueArgs} args - Arguments to find a Labels
396
- * @example
397
- * // Get one Labels
398
- * const labels = await prisma.labels.findUnique({
399
- * where: {
400
- * // ... provide filter here
401
- * }
402
- * })
403
- */
404
- findUnique<T extends labelsFindUniqueArgs>(args: Prisma.SelectSubset<T, labelsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__labelsClient<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
405
- /**
406
- * Find one Labels that matches the filter or throw an error with `error.code='P2025'`
407
- * if no matches were found.
408
- * @param {labelsFindUniqueOrThrowArgs} args - Arguments to find a Labels
409
- * @example
410
- * // Get one Labels
411
- * const labels = await prisma.labels.findUniqueOrThrow({
412
- * where: {
413
- * // ... provide filter here
414
- * }
415
- * })
416
- */
417
- findUniqueOrThrow<T extends labelsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, labelsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__labelsClient<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
418
- /**
419
- * Find the first Labels 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 {labelsFindFirstArgs} args - Arguments to find a Labels
423
- * @example
424
- * // Get one Labels
425
- * const labels = await prisma.labels.findFirst({
426
- * where: {
427
- * // ... provide filter here
428
- * }
429
- * })
430
- */
431
- findFirst<T extends labelsFindFirstArgs>(args?: Prisma.SelectSubset<T, labelsFindFirstArgs<ExtArgs>>): Prisma.Prisma__labelsClient<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
432
- /**
433
- * Find the first Labels 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 {labelsFindFirstOrThrowArgs} args - Arguments to find a Labels
438
- * @example
439
- * // Get one Labels
440
- * const labels = await prisma.labels.findFirstOrThrow({
441
- * where: {
442
- * // ... provide filter here
443
- * }
444
- * })
445
- */
446
- findFirstOrThrow<T extends labelsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, labelsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__labelsClient<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
447
- /**
448
- * Find zero or more Labels 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 {labelsFindManyArgs} args - Arguments to filter and select certain fields only.
452
- * @example
453
- * // Get all Labels
454
- * const labels = await prisma.labels.findMany()
455
- *
456
- * // Get first 10 Labels
457
- * const labels = await prisma.labels.findMany({ take: 10 })
458
- *
459
- * // Only select the `email`
460
- * const labelsWithEmailOnly = await prisma.labels.findMany({ select: { email: true } })
461
- *
462
- */
463
- findMany<T extends labelsFindManyArgs>(args?: Prisma.SelectSubset<T, labelsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
464
- /**
465
- * Create a Labels.
466
- * @param {labelsCreateArgs} args - Arguments to create a Labels.
467
- * @example
468
- * // Create one Labels
469
- * const Labels = await prisma.labels.create({
470
- * data: {
471
- * // ... data to create a Labels
472
- * }
473
- * })
474
- *
475
- */
476
- create<T extends labelsCreateArgs>(args: Prisma.SelectSubset<T, labelsCreateArgs<ExtArgs>>): Prisma.Prisma__labelsClient<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
477
- /**
478
- * Create many Labels.
479
- * @param {labelsCreateManyArgs} args - Arguments to create many Labels.
480
- * @example
481
- * // Create many Labels
482
- * const labels = await prisma.labels.createMany({
483
- * data: [
484
- * // ... provide data here
485
- * ]
486
- * })
487
- *
488
- */
489
- createMany<T extends labelsCreateManyArgs>(args?: Prisma.SelectSubset<T, labelsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
490
- /**
491
- * Create many Labels and returns the data saved in the database.
492
- * @param {labelsCreateManyAndReturnArgs} args - Arguments to create many Labels.
493
- * @example
494
- * // Create many Labels
495
- * const labels = await prisma.labels.createManyAndReturn({
496
- * data: [
497
- * // ... provide data here
498
- * ]
499
- * })
500
- *
501
- * // Create many Labels and only return the `email`
502
- * const labelsWithEmailOnly = await prisma.labels.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 labelsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, labelsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
513
- /**
514
- * Delete a Labels.
515
- * @param {labelsDeleteArgs} args - Arguments to delete one Labels.
516
- * @example
517
- * // Delete one Labels
518
- * const Labels = await prisma.labels.delete({
519
- * where: {
520
- * // ... filter to delete one Labels
521
- * }
522
- * })
523
- *
524
- */
525
- delete<T extends labelsDeleteArgs>(args: Prisma.SelectSubset<T, labelsDeleteArgs<ExtArgs>>): Prisma.Prisma__labelsClient<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
526
- /**
527
- * Update one Labels.
528
- * @param {labelsUpdateArgs} args - Arguments to update one Labels.
529
- * @example
530
- * // Update one Labels
531
- * const labels = await prisma.labels.update({
532
- * where: {
533
- * // ... provide filter here
534
- * },
535
- * data: {
536
- * // ... provide data here
537
- * }
538
- * })
539
- *
540
- */
541
- update<T extends labelsUpdateArgs>(args: Prisma.SelectSubset<T, labelsUpdateArgs<ExtArgs>>): Prisma.Prisma__labelsClient<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
542
- /**
543
- * Delete zero or more Labels.
544
- * @param {labelsDeleteManyArgs} args - Arguments to filter Labels to delete.
545
- * @example
546
- * // Delete a few Labels
547
- * const { count } = await prisma.labels.deleteMany({
548
- * where: {
549
- * // ... provide filter here
550
- * }
551
- * })
552
- *
553
- */
554
- deleteMany<T extends labelsDeleteManyArgs>(args?: Prisma.SelectSubset<T, labelsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
555
- /**
556
- * Update zero or more Labels.
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 {labelsUpdateManyArgs} args - Arguments to update one or more rows.
560
- * @example
561
- * // Update many Labels
562
- * const labels = await prisma.labels.updateMany({
563
- * where: {
564
- * // ... provide filter here
565
- * },
566
- * data: {
567
- * // ... provide data here
568
- * }
569
- * })
570
- *
571
- */
572
- updateMany<T extends labelsUpdateManyArgs>(args: Prisma.SelectSubset<T, labelsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
573
- /**
574
- * Update zero or more Labels and returns the data updated in the database.
575
- * @param {labelsUpdateManyAndReturnArgs} args - Arguments to update many Labels.
576
- * @example
577
- * // Update many Labels
578
- * const labels = await prisma.labels.updateManyAndReturn({
579
- * where: {
580
- * // ... provide filter here
581
- * },
582
- * data: [
583
- * // ... provide data here
584
- * ]
585
- * })
586
- *
587
- * // Update zero or more Labels and only return the `email`
588
- * const labelsWithEmailOnly = await prisma.labels.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 labelsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, labelsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
602
- /**
603
- * Create or update one Labels.
604
- * @param {labelsUpsertArgs} args - Arguments to update or create a Labels.
605
- * @example
606
- * // Update or create a Labels
607
- * const labels = await prisma.labels.upsert({
608
- * create: {
609
- * // ... data to create a Labels
610
- * },
611
- * update: {
612
- * // ... in case it already exists, update
613
- * },
614
- * where: {
615
- * // ... the filter for the Labels we want to update
616
- * }
617
- * })
618
- */
619
- upsert<T extends labelsUpsertArgs>(args: Prisma.SelectSubset<T, labelsUpsertArgs<ExtArgs>>): Prisma.Prisma__labelsClient<runtime.Types.Result.GetResult<Prisma.$labelsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
620
- /**
621
- * Count the number of Labels.
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 {labelsCountArgs} args - Arguments to filter Labels to count.
625
- * @example
626
- * // Count the number of Labels
627
- * const count = await prisma.labels.count({
628
- * where: {
629
- * // ... the filter for the Labels we want to count
630
- * }
631
- * })
632
- **/
633
- count<T extends labelsCountArgs>(args?: Prisma.Subset<T, labelsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], LabelsCountAggregateOutputType> : number>;
634
- /**
635
- * Allows you to perform aggregations operations on a Labels.
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 {LabelsAggregateArgs} 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 LabelsAggregateArgs>(args: Prisma.Subset<T, LabelsAggregateArgs>): Prisma.PrismaPromise<GetLabelsAggregateType<T>>;
659
- /**
660
- * Group by Labels.
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 {labelsGroupByArgs} 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 labelsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
678
- orderBy: labelsGroupByArgs['orderBy'];
679
- } : {
680
- orderBy?: labelsGroupByArgs['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, labelsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLabelsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
695
- /**
696
- * Fields of the labels model
697
- */
698
- readonly fields: labelsFieldRefs;
699
- }
700
- /**
701
- * The delegate class that acts as a "Promise-like" for labels.
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__labelsClient<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 labels model
732
- */
733
- export interface labelsFieldRefs {
734
- readonly email: Prisma.FieldRef<"labels", 'String'>;
735
- readonly data: Prisma.FieldRef<"labels", 'String'>;
736
- readonly ttl_ms: Prisma.FieldRef<"labels", 'Int'>;
737
- readonly created_at: Prisma.FieldRef<"labels", 'DateTime'>;
738
- }
739
- /**
740
- * labels findUnique
741
- */
742
- export type labelsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
743
- /**
744
- * Select specific fields to fetch from the labels
745
- */
746
- select?: Prisma.labelsSelect<ExtArgs> | null;
747
- /**
748
- * Omit specific fields from the labels
749
- */
750
- omit?: Prisma.labelsOmit<ExtArgs> | null;
751
- /**
752
- * Choose, which related nodes to fetch as well
753
- */
754
- include?: Prisma.labelsInclude<ExtArgs> | null;
755
- /**
756
- * Filter, which labels to fetch.
757
- */
758
- where: Prisma.labelsWhereUniqueInput;
759
- };
760
- /**
761
- * labels findUniqueOrThrow
762
- */
763
- export type labelsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
764
- /**
765
- * Select specific fields to fetch from the labels
766
- */
767
- select?: Prisma.labelsSelect<ExtArgs> | null;
768
- /**
769
- * Omit specific fields from the labels
770
- */
771
- omit?: Prisma.labelsOmit<ExtArgs> | null;
772
- /**
773
- * Choose, which related nodes to fetch as well
774
- */
775
- include?: Prisma.labelsInclude<ExtArgs> | null;
776
- /**
777
- * Filter, which labels to fetch.
778
- */
779
- where: Prisma.labelsWhereUniqueInput;
780
- };
781
- /**
782
- * labels findFirst
783
- */
784
- export type labelsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
785
- /**
786
- * Select specific fields to fetch from the labels
787
- */
788
- select?: Prisma.labelsSelect<ExtArgs> | null;
789
- /**
790
- * Omit specific fields from the labels
791
- */
792
- omit?: Prisma.labelsOmit<ExtArgs> | null;
793
- /**
794
- * Choose, which related nodes to fetch as well
795
- */
796
- include?: Prisma.labelsInclude<ExtArgs> | null;
797
- /**
798
- * Filter, which labels to fetch.
799
- */
800
- where?: Prisma.labelsWhereInput;
801
- /**
802
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
803
- *
804
- * Determine the order of labels to fetch.
805
- */
806
- orderBy?: Prisma.labelsOrderByWithRelationInput | Prisma.labelsOrderByWithRelationInput[];
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 labels.
811
- */
812
- cursor?: Prisma.labelsWhereUniqueInput;
813
- /**
814
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
815
- *
816
- * Take `±n` labels 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` labels.
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 labels.
829
- */
830
- distinct?: Prisma.LabelsScalarFieldEnum | Prisma.LabelsScalarFieldEnum[];
831
- };
832
- /**
833
- * labels findFirstOrThrow
834
- */
835
- export type labelsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
836
- /**
837
- * Select specific fields to fetch from the labels
838
- */
839
- select?: Prisma.labelsSelect<ExtArgs> | null;
840
- /**
841
- * Omit specific fields from the labels
842
- */
843
- omit?: Prisma.labelsOmit<ExtArgs> | null;
844
- /**
845
- * Choose, which related nodes to fetch as well
846
- */
847
- include?: Prisma.labelsInclude<ExtArgs> | null;
848
- /**
849
- * Filter, which labels to fetch.
850
- */
851
- where?: Prisma.labelsWhereInput;
852
- /**
853
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
854
- *
855
- * Determine the order of labels to fetch.
856
- */
857
- orderBy?: Prisma.labelsOrderByWithRelationInput | Prisma.labelsOrderByWithRelationInput[];
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 labels.
862
- */
863
- cursor?: Prisma.labelsWhereUniqueInput;
864
- /**
865
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
866
- *
867
- * Take `±n` labels 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` labels.
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 labels.
880
- */
881
- distinct?: Prisma.LabelsScalarFieldEnum | Prisma.LabelsScalarFieldEnum[];
882
- };
883
- /**
884
- * labels findMany
885
- */
886
- export type labelsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
887
- /**
888
- * Select specific fields to fetch from the labels
889
- */
890
- select?: Prisma.labelsSelect<ExtArgs> | null;
891
- /**
892
- * Omit specific fields from the labels
893
- */
894
- omit?: Prisma.labelsOmit<ExtArgs> | null;
895
- /**
896
- * Choose, which related nodes to fetch as well
897
- */
898
- include?: Prisma.labelsInclude<ExtArgs> | null;
899
- /**
900
- * Filter, which labels to fetch.
901
- */
902
- where?: Prisma.labelsWhereInput;
903
- /**
904
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
905
- *
906
- * Determine the order of labels to fetch.
907
- */
908
- orderBy?: Prisma.labelsOrderByWithRelationInput | Prisma.labelsOrderByWithRelationInput[];
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 labels.
913
- */
914
- cursor?: Prisma.labelsWhereUniqueInput;
915
- /**
916
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
917
- *
918
- * Take `±n` labels 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` labels.
925
- */
926
- skip?: number;
927
- distinct?: Prisma.LabelsScalarFieldEnum | Prisma.LabelsScalarFieldEnum[];
928
- };
929
- /**
930
- * labels create
931
- */
932
- export type labelsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
933
- /**
934
- * Select specific fields to fetch from the labels
935
- */
936
- select?: Prisma.labelsSelect<ExtArgs> | null;
937
- /**
938
- * Omit specific fields from the labels
939
- */
940
- omit?: Prisma.labelsOmit<ExtArgs> | null;
941
- /**
942
- * Choose, which related nodes to fetch as well
943
- */
944
- include?: Prisma.labelsInclude<ExtArgs> | null;
945
- /**
946
- * The data needed to create a labels.
947
- */
948
- data: Prisma.XOR<Prisma.labelsCreateInput, Prisma.labelsUncheckedCreateInput>;
949
- };
950
- /**
951
- * labels createMany
952
- */
953
- export type labelsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
954
- /**
955
- * The data used to create many labels.
956
- */
957
- data: Prisma.labelsCreateManyInput | Prisma.labelsCreateManyInput[];
958
- };
959
- /**
960
- * labels createManyAndReturn
961
- */
962
- export type labelsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
963
- /**
964
- * Select specific fields to fetch from the labels
965
- */
966
- select?: Prisma.labelsSelectCreateManyAndReturn<ExtArgs> | null;
967
- /**
968
- * Omit specific fields from the labels
969
- */
970
- omit?: Prisma.labelsOmit<ExtArgs> | null;
971
- /**
972
- * The data used to create many labels.
973
- */
974
- data: Prisma.labelsCreateManyInput | Prisma.labelsCreateManyInput[];
975
- /**
976
- * Choose, which related nodes to fetch as well
977
- */
978
- include?: Prisma.labelsIncludeCreateManyAndReturn<ExtArgs> | null;
979
- };
980
- /**
981
- * labels update
982
- */
983
- export type labelsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
984
- /**
985
- * Select specific fields to fetch from the labels
986
- */
987
- select?: Prisma.labelsSelect<ExtArgs> | null;
988
- /**
989
- * Omit specific fields from the labels
990
- */
991
- omit?: Prisma.labelsOmit<ExtArgs> | null;
992
- /**
993
- * Choose, which related nodes to fetch as well
994
- */
995
- include?: Prisma.labelsInclude<ExtArgs> | null;
996
- /**
997
- * The data needed to update a labels.
998
- */
999
- data: Prisma.XOR<Prisma.labelsUpdateInput, Prisma.labelsUncheckedUpdateInput>;
1000
- /**
1001
- * Choose, which labels to update.
1002
- */
1003
- where: Prisma.labelsWhereUniqueInput;
1004
- };
1005
- /**
1006
- * labels updateMany
1007
- */
1008
- export type labelsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1009
- /**
1010
- * The data used to update labels.
1011
- */
1012
- data: Prisma.XOR<Prisma.labelsUpdateManyMutationInput, Prisma.labelsUncheckedUpdateManyInput>;
1013
- /**
1014
- * Filter which labels to update
1015
- */
1016
- where?: Prisma.labelsWhereInput;
1017
- /**
1018
- * Limit how many labels to update.
1019
- */
1020
- limit?: number;
1021
- };
1022
- /**
1023
- * labels updateManyAndReturn
1024
- */
1025
- export type labelsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1026
- /**
1027
- * Select specific fields to fetch from the labels
1028
- */
1029
- select?: Prisma.labelsSelectUpdateManyAndReturn<ExtArgs> | null;
1030
- /**
1031
- * Omit specific fields from the labels
1032
- */
1033
- omit?: Prisma.labelsOmit<ExtArgs> | null;
1034
- /**
1035
- * The data used to update labels.
1036
- */
1037
- data: Prisma.XOR<Prisma.labelsUpdateManyMutationInput, Prisma.labelsUncheckedUpdateManyInput>;
1038
- /**
1039
- * Filter which labels to update
1040
- */
1041
- where?: Prisma.labelsWhereInput;
1042
- /**
1043
- * Limit how many labels to update.
1044
- */
1045
- limit?: number;
1046
- /**
1047
- * Choose, which related nodes to fetch as well
1048
- */
1049
- include?: Prisma.labelsIncludeUpdateManyAndReturn<ExtArgs> | null;
1050
- };
1051
- /**
1052
- * labels upsert
1053
- */
1054
- export type labelsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1055
- /**
1056
- * Select specific fields to fetch from the labels
1057
- */
1058
- select?: Prisma.labelsSelect<ExtArgs> | null;
1059
- /**
1060
- * Omit specific fields from the labels
1061
- */
1062
- omit?: Prisma.labelsOmit<ExtArgs> | null;
1063
- /**
1064
- * Choose, which related nodes to fetch as well
1065
- */
1066
- include?: Prisma.labelsInclude<ExtArgs> | null;
1067
- /**
1068
- * The filter to search for the labels to update in case it exists.
1069
- */
1070
- where: Prisma.labelsWhereUniqueInput;
1071
- /**
1072
- * In case the labels found by the `where` argument doesn't exist, create a new labels with this data.
1073
- */
1074
- create: Prisma.XOR<Prisma.labelsCreateInput, Prisma.labelsUncheckedCreateInput>;
1075
- /**
1076
- * In case the labels was found with the provided `where` argument, update it with this data.
1077
- */
1078
- update: Prisma.XOR<Prisma.labelsUpdateInput, Prisma.labelsUncheckedUpdateInput>;
1079
- };
1080
- /**
1081
- * labels delete
1082
- */
1083
- export type labelsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1084
- /**
1085
- * Select specific fields to fetch from the labels
1086
- */
1087
- select?: Prisma.labelsSelect<ExtArgs> | null;
1088
- /**
1089
- * Omit specific fields from the labels
1090
- */
1091
- omit?: Prisma.labelsOmit<ExtArgs> | null;
1092
- /**
1093
- * Choose, which related nodes to fetch as well
1094
- */
1095
- include?: Prisma.labelsInclude<ExtArgs> | null;
1096
- /**
1097
- * Filter which labels to delete.
1098
- */
1099
- where: Prisma.labelsWhereUniqueInput;
1100
- };
1101
- /**
1102
- * labels deleteMany
1103
- */
1104
- export type labelsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1105
- /**
1106
- * Filter which labels to delete
1107
- */
1108
- where?: Prisma.labelsWhereInput;
1109
- /**
1110
- * Limit how many labels to delete.
1111
- */
1112
- limit?: number;
1113
- };
1114
- /**
1115
- * labels without action
1116
- */
1117
- export type labelsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
- /**
1119
- * Select specific fields to fetch from the labels
1120
- */
1121
- select?: Prisma.labelsSelect<ExtArgs> | null;
1122
- /**
1123
- * Omit specific fields from the labels
1124
- */
1125
- omit?: Prisma.labelsOmit<ExtArgs> | null;
1126
- /**
1127
- * Choose, which related nodes to fetch as well
1128
- */
1129
- include?: Prisma.labelsInclude<ExtArgs> | null;
1130
- };
1131
- export {};