@valentine-efagene/qshelter-common 2.0.52 → 2.0.54

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