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