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