ecotransac-shared-js 1.1.31 → 1.1.33
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.
- package/dist/index.d.mts +25 -891
- package/dist/index.d.ts +25 -891
- package/dist/index.js +6 -5
- package/dist/index.mjs +6 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import * as _prisma_client from '@prisma/client';
|
|
2
|
-
import {
|
|
2
|
+
import { Mandate, Address, Profile, Property, Contact } from '@prisma/client';
|
|
3
|
+
|
|
4
|
+
declare const getLowThreshold: (isForPro: boolean) => {
|
|
5
|
+
limit: number;
|
|
6
|
+
fees: number;
|
|
7
|
+
};
|
|
8
|
+
declare const getFeesPercentage: (price: number, isForProfessionalUse: boolean) => 0 | 10 | 9 | 8 | 7 | 8.5 | 7.5 | 6.5 | 6 | 5;
|
|
9
|
+
type GetNetPriceMandate = Pick<Mandate, "isForProfessionalUse" | "isCommercialWallsSale" | "isBusinessAssetsTransfer" | "isLeaseRightsTransfer" | "netOwnerPrice" | "leaseRightsPrice" | "businessAssetsPrice">;
|
|
10
|
+
declare const getNetPrice: (mandate: GetNetPriceMandate) => number;
|
|
11
|
+
declare const getAgencyFees: (mandate: GetNetPriceMandate & {
|
|
12
|
+
agencyFeePercentage: number;
|
|
13
|
+
}) => number;
|
|
3
14
|
|
|
4
15
|
type Maybe<T> = T | null;
|
|
5
16
|
type InputMaybe<T> = Maybe<T>;
|
|
@@ -34,462 +45,6 @@ type Scalars = {
|
|
|
34
45
|
output: any;
|
|
35
46
|
};
|
|
36
47
|
};
|
|
37
|
-
type Address = {
|
|
38
|
-
__typename?: 'Address';
|
|
39
|
-
address: Scalars['String']['output'];
|
|
40
|
-
country: Scalars['String']['output'];
|
|
41
|
-
department: Scalars['String']['output'];
|
|
42
|
-
id: Scalars['ID']['output'];
|
|
43
|
-
lat?: Maybe<Scalars['Float']['output']>;
|
|
44
|
-
lng?: Maybe<Scalars['Float']['output']>;
|
|
45
|
-
locality: Scalars['String']['output'];
|
|
46
|
-
postalCode: Scalars['String']['output'];
|
|
47
|
-
url?: Maybe<Scalars['String']['output']>;
|
|
48
|
-
};
|
|
49
|
-
type AddressInput = {
|
|
50
|
-
address: Scalars['String']['input'];
|
|
51
|
-
country: Scalars['String']['input'];
|
|
52
|
-
department: Scalars['String']['input'];
|
|
53
|
-
lat?: InputMaybe<Scalars['Float']['input']>;
|
|
54
|
-
lng?: InputMaybe<Scalars['Float']['input']>;
|
|
55
|
-
locality: Scalars['String']['input'];
|
|
56
|
-
postalCode: Scalars['String']['input'];
|
|
57
|
-
url?: InputMaybe<Scalars['String']['input']>;
|
|
58
|
-
};
|
|
59
|
-
type Advert = {
|
|
60
|
-
__typename?: 'Advert';
|
|
61
|
-
adUrl: Scalars['String']['output'];
|
|
62
|
-
createdAt: Scalars['DateTime']['output'];
|
|
63
|
-
description: Scalars['String']['output'];
|
|
64
|
-
id: Scalars['String']['output'];
|
|
65
|
-
property: Property;
|
|
66
|
-
propertyId: Scalars['String']['output'];
|
|
67
|
-
title: Scalars['String']['output'];
|
|
68
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
69
|
-
};
|
|
70
|
-
declare enum AirConditioningType {
|
|
71
|
-
Classic = "CLASSIC",
|
|
72
|
-
IntegratedHeatpump = "INTEGRATED_HEATPUMP",
|
|
73
|
-
None = "NONE"
|
|
74
|
-
}
|
|
75
|
-
type Attachment = {
|
|
76
|
-
__typename?: 'Attachment';
|
|
77
|
-
author: User;
|
|
78
|
-
authorId: Scalars['String']['output'];
|
|
79
|
-
contact?: Maybe<Contact>;
|
|
80
|
-
contactId?: Maybe<Scalars['String']['output']>;
|
|
81
|
-
createdAt: Scalars['DateTime']['output'];
|
|
82
|
-
/** (minio object name) */
|
|
83
|
-
id: Scalars['ID']['output'];
|
|
84
|
-
isSigned: Scalars['Boolean']['output'];
|
|
85
|
-
markedAsSigned: Scalars['Boolean']['output'];
|
|
86
|
-
name: Scalars['String']['output'];
|
|
87
|
-
profileId?: Maybe<Scalars['String']['output']>;
|
|
88
|
-
property?: Maybe<Property>;
|
|
89
|
-
propertyId?: Maybe<Scalars['String']['output']>;
|
|
90
|
-
signature?: Maybe<AttachmentSignature>;
|
|
91
|
-
submissionId?: Maybe<Scalars['Int']['output']>;
|
|
92
|
-
tags: Array<AttachmentTag>;
|
|
93
|
-
url: Scalars['String']['output'];
|
|
94
|
-
};
|
|
95
|
-
type AttachmentSignature = {
|
|
96
|
-
__typename?: 'AttachmentSignature';
|
|
97
|
-
attachment: Attachment;
|
|
98
|
-
attachmentId: Scalars['ID']['output'];
|
|
99
|
-
completed_at?: Maybe<Scalars['DateTime']['output']>;
|
|
100
|
-
created_at: Scalars['DateTime']['output'];
|
|
101
|
-
id: Scalars['Int']['output'];
|
|
102
|
-
isSigned: Scalars['Boolean']['output'];
|
|
103
|
-
signatoriesCount: Scalars['Int']['output'];
|
|
104
|
-
signedCount: Scalars['Int']['output'];
|
|
105
|
-
status: Scalars['String']['output'];
|
|
106
|
-
submitters: Array<Submitter>;
|
|
107
|
-
updated_at: Scalars['DateTime']['output'];
|
|
108
|
-
};
|
|
109
|
-
type AttachmentSignatureDocument = {
|
|
110
|
-
__typename?: 'AttachmentSignatureDocument';
|
|
111
|
-
name: Scalars['String']['output'];
|
|
112
|
-
url: Scalars['String']['output'];
|
|
113
|
-
};
|
|
114
|
-
type AttachmentSignaturePreferences = {
|
|
115
|
-
__typename?: 'AttachmentSignaturePreferences';
|
|
116
|
-
send_email: Scalars['Boolean']['output'];
|
|
117
|
-
send_sms: Scalars['Boolean']['output'];
|
|
118
|
-
};
|
|
119
|
-
declare enum AttachmentTag {
|
|
120
|
-
/** Attestation de recherche d'amiante */
|
|
121
|
-
AsbestosSurveyCertificate = "ASBESTOS_SURVEY_CERTIFICATE",
|
|
122
|
-
/** Contrat d’entretien chaudière */
|
|
123
|
-
BoilerMaintenanceContract = "BOILER_MAINTENANCE_CONTRACT",
|
|
124
|
-
/** Permis de construire */
|
|
125
|
-
BuildingPermit = "BUILDING_PERMIT",
|
|
126
|
-
/** Une attestation mentionnant la superficie de la partie privative (loi Carrez) */
|
|
127
|
-
CarrezLawCertificate = "CARREZ_LAW_CERTIFICATE",
|
|
128
|
-
/** Certificat de ramonage */
|
|
129
|
-
ChimneySweepingCertificate = "CHIMNEY_SWEEPING_CERTIFICATE",
|
|
130
|
-
/** Déclaration d’achèvement des travaux */
|
|
131
|
-
CompletionDeclaration = "COMPLETION_DECLARATION",
|
|
132
|
-
/** Certificat de conformité (avant 2007) ou certificat de non-conformité */
|
|
133
|
-
ComplianceCertificate = "COMPLIANCE_CERTIFICATE",
|
|
134
|
-
/** La notice d’information relative aux droits et obligations des copropriétaires */
|
|
135
|
-
CoownershipInformationNotice = "COOWNERSHIP_INFORMATION_NOTICE",
|
|
136
|
-
/** Le règlement de copropriété et l’état descriptif de division */
|
|
137
|
-
CoownershipRegulation = "COOWNERSHIP_REGULATION",
|
|
138
|
-
/** La fiche synthétique de la copropriété */
|
|
139
|
-
CoownershipSyntheticSheet = "COOWNERSHIP_SYNTHETIC_SHEET",
|
|
140
|
-
/** Attestation d’assurance dommage – ouvrage */
|
|
141
|
-
DamageInsuranceCertificate = "DAMAGE_INSURANCE_CERTIFICATE",
|
|
142
|
-
/** Diagnostic électrique */
|
|
143
|
-
ElectricalDiagnostic = "ELECTRICAL_DIAGNOSTIC",
|
|
144
|
-
/** Factures justificatives pour la consommation annuelle d'énergie */
|
|
145
|
-
EnergyConsumptionInvoices = "ENERGY_CONSUMPTION_INVOICES",
|
|
146
|
-
/** Diagnostics de Performance Énergétique (DPE) */
|
|
147
|
-
EnergyPerformanceDiagnostic = "ENERGY_PERFORMANCE_DIAGNOSTIC",
|
|
148
|
-
/** Diagnostic gaz */
|
|
149
|
-
GasDiagnostic = "GAS_DIAGNOSTIC",
|
|
150
|
-
/** Les procès-verbaux des assemblées générales des trois dernières années */
|
|
151
|
-
GeneralAssemblyMinutes = "GENERAL_ASSEMBLY_MINUTES",
|
|
152
|
-
/** Taxe d’habitation */
|
|
153
|
-
HousingTax = "HOUSING_TAX",
|
|
154
|
-
/** Document d'identité */
|
|
155
|
-
Id = "ID",
|
|
156
|
-
/** Kbis de société et certificat Insee */
|
|
157
|
-
Kbis = "KBIS",
|
|
158
|
-
/** Procès-verbal de remise des clés */
|
|
159
|
-
KeysHandoverMinutes = "KEYS_HANDOVER_MINUTES",
|
|
160
|
-
/** Attestation de recherche de plomb */
|
|
161
|
-
LeadSurveyCertificate = "LEAD_SURVEY_CERTIFICATE",
|
|
162
|
-
/** Le carnet d’entretien de l’immeuble */
|
|
163
|
-
MaintenanceLogbook = "MAINTENANCE_LOGBOOK",
|
|
164
|
-
/** Attestation sur la présence d’un risque de mérule */
|
|
165
|
-
MeruleRiskCertificate = "MERULE_RISK_CERTIFICATE",
|
|
166
|
-
/** Le plan pluriannuel de travaux */
|
|
167
|
-
MultiyearWorkPlan = "MULTIYEAR_WORK_PLAN",
|
|
168
|
-
/** Diagnostic Assainissement Non Collectif (ANC) */
|
|
169
|
-
NonCollectiveSanitationDiagnostic = "NON_COLLECTIVE_SANITATION_DIAGNOSTIC",
|
|
170
|
-
/** Justificatif de domicile */
|
|
171
|
-
ProofOfResidency = "PROOF_OF_RESIDENCY",
|
|
172
|
-
/** Un double des clés */
|
|
173
|
-
PropertyKeys = "PROPERTY_KEYS",
|
|
174
|
-
/** Taxe foncière */
|
|
175
|
-
PropertyTax = "PROPERTY_TAX",
|
|
176
|
-
/** Titre de propriété */
|
|
177
|
-
PropertyTitle = "PROPERTY_TITLE",
|
|
178
|
-
/** offre d'achat */
|
|
179
|
-
PurchaseOffer = "PURCHASE_OFFER",
|
|
180
|
-
/** Attestation assurance Responsabilité Civile Professionnelle (RCP) */
|
|
181
|
-
RcpAssurance = "RCP_ASSURANCE",
|
|
182
|
-
/** État des Risques et Pollutions (ERP) */
|
|
183
|
-
RisksAndPollutionStatement = "RISKS_AND_POLLUTION_STATEMENT",
|
|
184
|
-
/** Mandat de vente */
|
|
185
|
-
SaleMandate = "SALE_MANDATE",
|
|
186
|
-
/** Plan des lieux et des constructions */
|
|
187
|
-
SitePlan = "SITE_PLAN",
|
|
188
|
-
/** Le questionnaire Syndic de Copropriété */
|
|
189
|
-
SyndicQuestionnaire = "SYNDIC_QUESTIONNAIRE",
|
|
190
|
-
/** Attestation de régularité fiscale et vigilance */
|
|
191
|
-
TaxRegularity = "TAX_REGULARITY",
|
|
192
|
-
/** Le diagnostic technique global */
|
|
193
|
-
TechnicalDiagnosticGlobal = "TECHNICAL_DIAGNOSTIC_GLOBAL",
|
|
194
|
-
/** Attestation de recherche de termites */
|
|
195
|
-
TermiteCertificate = "TERMITE_CERTIFICATE",
|
|
196
|
-
/** Bon de visite */
|
|
197
|
-
VisitSlip = "VISIT_SLIP",
|
|
198
|
-
/** Attestation de conformité des réseaux d’eaux pluviales et usées */
|
|
199
|
-
WaterNetworkCompliance = "WATER_NETWORK_COMPLIANCE",
|
|
200
|
-
/** Historique des travaux */
|
|
201
|
-
WorkHistory = "WORK_HISTORY"
|
|
202
|
-
}
|
|
203
|
-
declare enum CardinalPoints {
|
|
204
|
-
E = "E",
|
|
205
|
-
N = "N",
|
|
206
|
-
NE = "N_E",
|
|
207
|
-
NW = "N_W",
|
|
208
|
-
S = "S",
|
|
209
|
-
SE = "S_E",
|
|
210
|
-
SW = "S_W",
|
|
211
|
-
W = "W"
|
|
212
|
-
}
|
|
213
|
-
type Chapter = {
|
|
214
|
-
__typename?: 'Chapter';
|
|
215
|
-
comments: Array<Comment>;
|
|
216
|
-
hasQuestions: Scalars['Boolean']['output'];
|
|
217
|
-
id: Scalars['ID']['output'];
|
|
218
|
-
isQuizCompletedByUser: Scalars['Boolean']['output'];
|
|
219
|
-
isVideoWatchedByUser: Scalars['Boolean']['output'];
|
|
220
|
-
lesson: Lesson;
|
|
221
|
-
lessonId: Scalars['String']['output'];
|
|
222
|
-
markdownContent?: Maybe<Scalars['String']['output']>;
|
|
223
|
-
order: Scalars['Int']['output'];
|
|
224
|
-
questions: Array<Question>;
|
|
225
|
-
title: Scalars['String']['output'];
|
|
226
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
227
|
-
/** Percentage of video watched by user */
|
|
228
|
-
userVideoWatchProgress: Scalars['Int']['output'];
|
|
229
|
-
videoDuration: Scalars['Int']['output'];
|
|
230
|
-
videoUrl?: Maybe<Scalars['String']['output']>;
|
|
231
|
-
youtubeVideoUrl?: Maybe<Scalars['String']['output']>;
|
|
232
|
-
};
|
|
233
|
-
type Comment = {
|
|
234
|
-
__typename?: 'Comment';
|
|
235
|
-
author: User;
|
|
236
|
-
authorId: Scalars['String']['output'];
|
|
237
|
-
chapter?: Maybe<Chapter>;
|
|
238
|
-
commentHistory: Array<Comment>;
|
|
239
|
-
contact?: Maybe<Contact>;
|
|
240
|
-
contactId?: Maybe<Scalars['String']['output']>;
|
|
241
|
-
content: Scalars['String']['output'];
|
|
242
|
-
createdAt: Scalars['DateTime']['output'];
|
|
243
|
-
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
244
|
-
id: Scalars['ID']['output'];
|
|
245
|
-
property?: Maybe<Property>;
|
|
246
|
-
};
|
|
247
|
-
type Compromise = {
|
|
248
|
-
__typename?: 'Compromise';
|
|
249
|
-
agencyFeeAmount: Scalars['Float']['output'];
|
|
250
|
-
agent: User;
|
|
251
|
-
agentId: Scalars['String']['output'];
|
|
252
|
-
agentRemuneration: Scalars['Float']['output'];
|
|
253
|
-
attachment: Attachment;
|
|
254
|
-
buyers: Array<Contact>;
|
|
255
|
-
canceledAt?: Maybe<Scalars['DateTime']['output']>;
|
|
256
|
-
compromiseSignatureDate: Scalars['DateTime']['output'];
|
|
257
|
-
compromiseValidityDuration?: Maybe<Scalars['Int']['output']>;
|
|
258
|
-
createdAt: Scalars['DateTime']['output'];
|
|
259
|
-
finalActSignatureDate: Scalars['DateTime']['output'];
|
|
260
|
-
id: Scalars['ID']['output'];
|
|
261
|
-
netSalePrice: Scalars['Float']['output'];
|
|
262
|
-
priceFeesIncluded: Scalars['Float']['output'];
|
|
263
|
-
property: Property;
|
|
264
|
-
propertyId: Scalars['String']['output'];
|
|
265
|
-
succeededAt?: Maybe<Scalars['DateTime']['output']>;
|
|
266
|
-
};
|
|
267
|
-
type Contact = {
|
|
268
|
-
__typename?: 'Contact';
|
|
269
|
-
address?: Maybe<Address>;
|
|
270
|
-
addressId?: Maybe<Scalars['String']['output']>;
|
|
271
|
-
attachments: Array<Attachment>;
|
|
272
|
-
authorizationRepresentationDate?: Maybe<Scalars['DateTime']['output']>;
|
|
273
|
-
comments: Array<Comment>;
|
|
274
|
-
companyCapitalStock?: Maybe<Scalars['Int']['output']>;
|
|
275
|
-
companyLegalStatus?: Maybe<LegalStatus>;
|
|
276
|
-
companyName?: Maybe<Scalars['String']['output']>;
|
|
277
|
-
companyRegistrationNumber?: Maybe<Scalars['String']['output']>;
|
|
278
|
-
countryOfBirth?: Maybe<Scalars['String']['output']>;
|
|
279
|
-
createdAt: Scalars['DateTime']['output'];
|
|
280
|
-
dateOfBirth?: Maybe<Scalars['DateTime']['output']>;
|
|
281
|
-
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
282
|
-
email?: Maybe<Scalars['String']['output']>;
|
|
283
|
-
firstName: Scalars['String']['output'];
|
|
284
|
-
fullName: Scalars['String']['output'];
|
|
285
|
-
gender?: Maybe<Gender>;
|
|
286
|
-
guardian?: Maybe<Contact>;
|
|
287
|
-
guardianId?: Maybe<Scalars['String']['output']>;
|
|
288
|
-
hasPropertiesForSale: Scalars['Boolean']['output'];
|
|
289
|
-
id: Scalars['ID']['output'];
|
|
290
|
-
interestedByProperties: Array<Property>;
|
|
291
|
-
isGuardian: Scalars['Boolean']['output'];
|
|
292
|
-
isInterestedBuyer: Scalars['Boolean']['output'];
|
|
293
|
-
isLegalEntity: Scalars['Boolean']['output'];
|
|
294
|
-
kycDocumentNumber?: Maybe<Scalars['String']['output']>;
|
|
295
|
-
kycDocumentType?: Maybe<IdentificationDocument>;
|
|
296
|
-
kycExpiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
297
|
-
kycIssuedBy?: Maybe<Scalars['String']['output']>;
|
|
298
|
-
lastName: Scalars['String']['output'];
|
|
299
|
-
maritalStatus?: Maybe<MaritalStatus>;
|
|
300
|
-
nationality?: Maybe<Scalars['String']['output']>;
|
|
301
|
-
ownedProperties: Array<PropertyOwner>;
|
|
302
|
-
owner: User;
|
|
303
|
-
ownerId: Scalars['String']['output'];
|
|
304
|
-
phone: Scalars['String']['output'];
|
|
305
|
-
placeOfBirth?: Maybe<Scalars['String']['output']>;
|
|
306
|
-
prenupType?: Maybe<PrenupType>;
|
|
307
|
-
profession?: Maybe<Scalars['String']['output']>;
|
|
308
|
-
searchFilters?: Maybe<SearchFilters>;
|
|
309
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
310
|
-
wards: Array<Contact>;
|
|
311
|
-
};
|
|
312
|
-
type ContactInput = {
|
|
313
|
-
address?: InputMaybe<AddressInput>;
|
|
314
|
-
attachmentsId?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
315
|
-
authorizationRepresentationDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
316
|
-
companyCapitalStock?: InputMaybe<Scalars['Int']['input']>;
|
|
317
|
-
companyLegalStatus?: InputMaybe<LegalStatus>;
|
|
318
|
-
companyName?: InputMaybe<Scalars['String']['input']>;
|
|
319
|
-
companyRegistrationNumber?: InputMaybe<Scalars['String']['input']>;
|
|
320
|
-
countryOfBirth?: InputMaybe<Scalars['String']['input']>;
|
|
321
|
-
dateOfBirth?: InputMaybe<Scalars['DateTime']['input']>;
|
|
322
|
-
email?: InputMaybe<Scalars['String']['input']>;
|
|
323
|
-
firstName: Scalars['String']['input'];
|
|
324
|
-
gender?: InputMaybe<Gender>;
|
|
325
|
-
/** A contact id */
|
|
326
|
-
guardianId?: InputMaybe<Scalars['String']['input']>;
|
|
327
|
-
interestedByPropertyId?: InputMaybe<Scalars['String']['input']>;
|
|
328
|
-
isLegalEntity?: InputMaybe<Scalars['Boolean']['input']>;
|
|
329
|
-
kycDocumentNumber?: InputMaybe<Scalars['String']['input']>;
|
|
330
|
-
kycDocumentType?: InputMaybe<IdentificationDocument>;
|
|
331
|
-
kycExpiresAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
332
|
-
kycIssuedBy?: InputMaybe<Scalars['String']['input']>;
|
|
333
|
-
lastName: Scalars['String']['input'];
|
|
334
|
-
maritalStatus?: InputMaybe<MaritalStatus>;
|
|
335
|
-
nationality?: InputMaybe<Scalars['String']['input']>;
|
|
336
|
-
ownedPropertyId?: InputMaybe<Scalars['String']['input']>;
|
|
337
|
-
phone: Scalars['String']['input'];
|
|
338
|
-
placeOfBirth?: InputMaybe<Scalars['String']['input']>;
|
|
339
|
-
prenupType?: InputMaybe<PrenupType>;
|
|
340
|
-
profession?: InputMaybe<Scalars['String']['input']>;
|
|
341
|
-
};
|
|
342
|
-
type Coordinate = {
|
|
343
|
-
__typename?: 'Coordinate';
|
|
344
|
-
lat: Scalars['Float']['output'];
|
|
345
|
-
lng: Scalars['Float']['output'];
|
|
346
|
-
};
|
|
347
|
-
type CustomerFeedback = {
|
|
348
|
-
__typename?: 'CustomerFeedback';
|
|
349
|
-
comment: Scalars['String']['output'];
|
|
350
|
-
createdAt: Scalars['DateTime']['output'];
|
|
351
|
-
customerEmail: Scalars['String']['output'];
|
|
352
|
-
customerFirstName: Scalars['String']['output'];
|
|
353
|
-
id: Scalars['ID']['output'];
|
|
354
|
-
isHidden: Scalars['Boolean']['output'];
|
|
355
|
-
userSlug: Scalars['String']['output'];
|
|
356
|
-
};
|
|
357
|
-
declare enum EnergyScore {
|
|
358
|
-
A = "A",
|
|
359
|
-
B = "B",
|
|
360
|
-
C = "C",
|
|
361
|
-
D = "D",
|
|
362
|
-
E = "E",
|
|
363
|
-
F = "F",
|
|
364
|
-
G = "G"
|
|
365
|
-
}
|
|
366
|
-
declare enum EstateCondition {
|
|
367
|
-
NewProperty = "NEW_PROPERTY",
|
|
368
|
-
OldProperty = "OLD_PROPERTY"
|
|
369
|
-
}
|
|
370
|
-
declare enum Gender {
|
|
371
|
-
Female = "FEMALE",
|
|
372
|
-
Male = "MALE"
|
|
373
|
-
}
|
|
374
|
-
declare enum HeatingEnergy {
|
|
375
|
-
Electricity = "ELECTRICITY",
|
|
376
|
-
Fuel = "FUEL",
|
|
377
|
-
Gas = "GAS",
|
|
378
|
-
Geothermie = "GEOTHERMIE",
|
|
379
|
-
Other = "OTHER",
|
|
380
|
-
Wood = "WOOD"
|
|
381
|
-
}
|
|
382
|
-
declare enum IdentificationDocument {
|
|
383
|
-
DriverLicense = "DRIVER_LICENSE",
|
|
384
|
-
NationalIdCard = "NATIONAL_ID_CARD",
|
|
385
|
-
Passport = "PASSPORT",
|
|
386
|
-
ResidenceCardCertificate = "RESIDENCE_CARD_CERTIFICATE",
|
|
387
|
-
ResidencePermit = "RESIDENCE_PERMIT"
|
|
388
|
-
}
|
|
389
|
-
declare enum InsulationLevel {
|
|
390
|
-
Average = "AVERAGE",
|
|
391
|
-
Good = "GOOD",
|
|
392
|
-
Poor = "POOR"
|
|
393
|
-
}
|
|
394
|
-
declare enum KitchenType {
|
|
395
|
-
AmericanEquipped = "AMERICAN_EQUIPPED",
|
|
396
|
-
Equipped = "EQUIPPED",
|
|
397
|
-
Industrial = "INDUSTRIAL",
|
|
398
|
-
Kitchenette = "KITCHENETTE",
|
|
399
|
-
None = "NONE",
|
|
400
|
-
Separated = "SEPARATED",
|
|
401
|
-
SeparateEquipped = "SEPARATE_EQUIPPED"
|
|
402
|
-
}
|
|
403
|
-
declare enum LeaseEstablishment {
|
|
404
|
-
NotaryDeed = "NOTARY_DEED",
|
|
405
|
-
PrivateDeed = "PRIVATE_DEED"
|
|
406
|
-
}
|
|
407
|
-
declare enum LeaseTransfertPermission {
|
|
408
|
-
AtLeaseEnd = "AT_LEASE_END",
|
|
409
|
-
ByMail = "BY_MAIL"
|
|
410
|
-
}
|
|
411
|
-
declare enum LegalNatureOfProperty {
|
|
412
|
-
/** Nu-propriétaire */
|
|
413
|
-
BareOwner = "BARE_OWNER",
|
|
414
|
-
/** Indivisaire */
|
|
415
|
-
CoOwnerInUndividedProperty = "CO_OWNER_IN_UNDIVIDED_PROPERTY",
|
|
416
|
-
/** Pleine propriété */
|
|
417
|
-
FullOwnership = "FULL_OWNERSHIP",
|
|
418
|
-
/** Usufruitier */
|
|
419
|
-
Usufructuary = "USUFRUCTUARY"
|
|
420
|
-
}
|
|
421
|
-
declare enum LegalStatus {
|
|
422
|
-
Ei = "EI",
|
|
423
|
-
Eurl = "EURL",
|
|
424
|
-
Sa = "SA",
|
|
425
|
-
Sarl = "SARL",
|
|
426
|
-
Sas = "SAS",
|
|
427
|
-
Sasu = "SASU",
|
|
428
|
-
Sca = "SCA",
|
|
429
|
-
Scs = "SCS",
|
|
430
|
-
Snc = "SNC"
|
|
431
|
-
}
|
|
432
|
-
type Lesson = {
|
|
433
|
-
__typename?: 'Lesson';
|
|
434
|
-
chapters: Array<Chapter>;
|
|
435
|
-
description: Scalars['String']['output'];
|
|
436
|
-
id: Scalars['ID']['output'];
|
|
437
|
-
isAccessible: Scalars['Boolean']['output'];
|
|
438
|
-
markdownContent?: Maybe<Scalars['String']['output']>;
|
|
439
|
-
picturePath: Scalars['String']['output'];
|
|
440
|
-
pictureUrl: Scalars['String']['output'];
|
|
441
|
-
similarLessons: Array<Lesson>;
|
|
442
|
-
teacher: User;
|
|
443
|
-
teacherId: Scalars['String']['output'];
|
|
444
|
-
title: Scalars['String']['output'];
|
|
445
|
-
totalDuration: Scalars['Int']['output'];
|
|
446
|
-
type: LessonType;
|
|
447
|
-
updatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
448
|
-
/** Completion percentage of lessons watch & quiz */
|
|
449
|
-
userProgress: Scalars['Int']['output'];
|
|
450
|
-
};
|
|
451
|
-
declare enum LessonType {
|
|
452
|
-
Alur = "ALUR",
|
|
453
|
-
EnergyRenovation = "ENERGY_RENOVATION",
|
|
454
|
-
Tutorial = "TUTORIAL"
|
|
455
|
-
}
|
|
456
|
-
declare enum LightingType {
|
|
457
|
-
Classic = "CLASSIC",
|
|
458
|
-
LowConsumption = "LOW_CONSUMPTION",
|
|
459
|
-
Mixed = "MIXED"
|
|
460
|
-
}
|
|
461
|
-
type Mandate = {
|
|
462
|
-
__typename?: 'Mandate';
|
|
463
|
-
agencyFeePercentage?: Maybe<Scalars['Float']['output']>;
|
|
464
|
-
agencyFees?: Maybe<Scalars['Float']['output']>;
|
|
465
|
-
agent: User;
|
|
466
|
-
agentId: Scalars['String']['output'];
|
|
467
|
-
agentRemuneration?: Maybe<Scalars['Float']['output']>;
|
|
468
|
-
attachment: Attachment;
|
|
469
|
-
attachmentId: Scalars['String']['output'];
|
|
470
|
-
businessAssetsPrice?: Maybe<Scalars['Float']['output']>;
|
|
471
|
-
createdAt: Scalars['DateTime']['output'];
|
|
472
|
-
displayedPrice?: Maybe<Scalars['Float']['output']>;
|
|
473
|
-
exclusivity: MandateExclusivity;
|
|
474
|
-
expirationDate: Scalars['DateTime']['output'];
|
|
475
|
-
id: Scalars['ID']['output'];
|
|
476
|
-
isActive: Scalars['Boolean']['output'];
|
|
477
|
-
isBusinessAssetsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
478
|
-
isCommercialWallsSale?: Maybe<Scalars['Boolean']['output']>;
|
|
479
|
-
isExclusive?: Maybe<Scalars['Boolean']['output']>;
|
|
480
|
-
isForProfessionalUse: Scalars['Boolean']['output'];
|
|
481
|
-
isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
482
|
-
isLowPrice?: Maybe<Scalars['Boolean']['output']>;
|
|
483
|
-
leaseRightsPrice?: Maybe<Scalars['Float']['output']>;
|
|
484
|
-
netOwnerPrice?: Maybe<Scalars['Float']['output']>;
|
|
485
|
-
number: Scalars['Int']['output'];
|
|
486
|
-
property: Property;
|
|
487
|
-
propertyId: Scalars['String']['output'];
|
|
488
|
-
/** Duration in months */
|
|
489
|
-
status: MandateStatus;
|
|
490
|
-
transactionPrice?: Maybe<Scalars['Float']['output']>;
|
|
491
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
492
|
-
};
|
|
493
48
|
declare enum MandateExclusivity {
|
|
494
49
|
Exclusive = "EXCLUSIVE",
|
|
495
50
|
SemiExclusive = "SEMI_EXCLUSIVE",
|
|
@@ -517,432 +72,11 @@ type MandateInput = {
|
|
|
517
72
|
securityDeposit?: InputMaybe<Scalars['Float']['input']>;
|
|
518
73
|
specialConditions?: InputMaybe<Scalars['String']['input']>;
|
|
519
74
|
};
|
|
520
|
-
declare enum MandateStatus {
|
|
521
|
-
AwaitingSignatures = "AWAITING_SIGNATURES",
|
|
522
|
-
AwaitingValidation = "AWAITING_VALIDATION",
|
|
523
|
-
Expired = "EXPIRED",
|
|
524
|
-
Processing = "PROCESSING",
|
|
525
|
-
Rejected = "REJECTED",
|
|
526
|
-
Withdrawn = "WITHDRAWN"
|
|
527
|
-
}
|
|
528
|
-
declare enum MaritalStatus {
|
|
529
|
-
CivilPartnership = "CIVIL_PARTNERSHIP",
|
|
530
|
-
Divorced = "DIVORCED",
|
|
531
|
-
MarriedWithoutPrenup = "MARRIED_WITHOUT_PRENUP",
|
|
532
|
-
MarriedWithPrenup = "MARRIED_WITH_PRENUP",
|
|
533
|
-
Single = "SINGLE",
|
|
534
|
-
Widowed = "WIDOWED"
|
|
535
|
-
}
|
|
536
|
-
declare enum MultimediaUsage {
|
|
537
|
-
Intense = "INTENSE",
|
|
538
|
-
Low = "LOW",
|
|
539
|
-
Moderate = "MODERATE"
|
|
540
|
-
}
|
|
541
|
-
type Partner = {
|
|
542
|
-
__typename?: 'Partner';
|
|
543
|
-
id: Scalars['ID']['output'];
|
|
544
|
-
isDeleted: Scalars['Boolean']['output'];
|
|
545
|
-
name: Scalars['String']['output'];
|
|
546
|
-
representative: User;
|
|
547
|
-
userId: Scalars['String']['output'];
|
|
548
|
-
};
|
|
549
|
-
type Photo = {
|
|
550
|
-
__typename?: 'Photo';
|
|
551
|
-
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
552
|
-
id: Scalars['String']['output'];
|
|
553
|
-
isHidden: Scalars['Boolean']['output'];
|
|
554
|
-
order: Scalars['Int']['output'];
|
|
555
|
-
product?: Maybe<Product>;
|
|
556
|
-
productId?: Maybe<Scalars['String']['output']>;
|
|
557
|
-
property?: Maybe<Property>;
|
|
558
|
-
propertyId?: Maybe<Scalars['String']['output']>;
|
|
559
|
-
url: Scalars['String']['output'];
|
|
560
|
-
};
|
|
561
|
-
declare enum PoolType {
|
|
562
|
-
AboveGround = "ABOVE_GROUND",
|
|
563
|
-
Inground = "INGROUND",
|
|
564
|
-
None = "NONE",
|
|
565
|
-
Other = "OTHER"
|
|
566
|
-
}
|
|
567
|
-
declare enum PrenupType {
|
|
568
|
-
CommunityOfPropertyWithoutGains = "COMMUNITY_OF_PROPERTY_WITHOUT_GAINS",
|
|
569
|
-
NotarizedMarriageContract = "NOTARIZED_MARRIAGE_CONTRACT",
|
|
570
|
-
ParticipationInAcquisitions = "PARTICIPATION_IN_ACQUISITIONS",
|
|
571
|
-
ParticipationInAcquisitionsWithFullAttributionToSurvivor = "PARTICIPATION_IN_ACQUISITIONS_WITH_FULL_ATTRIBUTION_TO_SURVIVOR",
|
|
572
|
-
SeparationOfProperty = "SEPARATION_OF_PROPERTY",
|
|
573
|
-
UniversalCommunity = "UNIVERSAL_COMMUNITY"
|
|
574
|
-
}
|
|
575
|
-
declare enum PresenceProfile {
|
|
576
|
-
AllDay = "ALL_DAY",
|
|
577
|
-
MorningEvening = "MORNING_EVENING",
|
|
578
|
-
MorningNoonEvening = "MORNING_NOON_EVENING"
|
|
579
|
-
}
|
|
580
|
-
type Product = {
|
|
581
|
-
__typename?: 'Product';
|
|
582
|
-
category: Scalars['String']['output'];
|
|
583
|
-
coverPhotoUrl?: Maybe<Scalars['String']['output']>;
|
|
584
|
-
id: Scalars['String']['output'];
|
|
585
|
-
isAccessible: Scalars['Boolean']['output'];
|
|
586
|
-
isCustomizable: Scalars['Boolean']['output'];
|
|
587
|
-
markdownDescription: Scalars['String']['output'];
|
|
588
|
-
markdownFeatures: Scalars['String']['output'];
|
|
589
|
-
options: Array<ProductOption>;
|
|
590
|
-
photos: Array<Photo>;
|
|
591
|
-
price: Scalars['Float']['output'];
|
|
592
|
-
similarProducts: Array<Product>;
|
|
593
|
-
/** empty string if user is not an admin */
|
|
594
|
-
stripePriceId: Scalars['String']['output'];
|
|
595
|
-
title: Scalars['String']['output'];
|
|
596
|
-
};
|
|
597
|
-
type ProductOption = {
|
|
598
|
-
__typename?: 'ProductOption';
|
|
599
|
-
/** name and productId make a unique identifier for the ProductOption */
|
|
600
|
-
name: Scalars['String']['output'];
|
|
601
|
-
options: Array<Scalars['String']['output']>;
|
|
602
|
-
productId: Scalars['String']['output'];
|
|
603
|
-
};
|
|
604
|
-
type Profile = {
|
|
605
|
-
__typename?: 'Profile';
|
|
606
|
-
address?: Maybe<Address>;
|
|
607
|
-
addressId?: Maybe<Scalars['String']['output']>;
|
|
608
|
-
area?: Maybe<Scalars['String']['output']>;
|
|
609
|
-
attachments: Array<Attachment>;
|
|
610
|
-
birthName?: Maybe<Scalars['String']['output']>;
|
|
611
|
-
countryOfBirth?: Maybe<Scalars['String']['output']>;
|
|
612
|
-
dateOfBirth?: Maybe<Scalars['DateTime']['output']>;
|
|
613
|
-
gender?: Maybe<Gender>;
|
|
614
|
-
kycDocumentNumber?: Maybe<Scalars['String']['output']>;
|
|
615
|
-
kycDocumentType?: Maybe<IdentificationDocument>;
|
|
616
|
-
kycExpiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
617
|
-
kycIssuedBy?: Maybe<Scalars['String']['output']>;
|
|
618
|
-
legalStatus?: Maybe<LegalStatus>;
|
|
619
|
-
missingData: Array<Maybe<AttachmentTag>>;
|
|
620
|
-
nationality?: Maybe<Scalars['String']['output']>;
|
|
621
|
-
personalEmail?: Maybe<Scalars['String']['output']>;
|
|
622
|
-
phone?: Maybe<Scalars['String']['output']>;
|
|
623
|
-
pictureUrl?: Maybe<Scalars['String']['output']>;
|
|
624
|
-
placeOfBirth?: Maybe<Scalars['String']['output']>;
|
|
625
|
-
presentation?: Maybe<Scalars['String']['output']>;
|
|
626
|
-
punchline?: Maybe<Scalars['String']['output']>;
|
|
627
|
-
registrationDate?: Maybe<Scalars['DateTime']['output']>;
|
|
628
|
-
registrationNumber?: Maybe<Scalars['String']['output']>;
|
|
629
|
-
registrationPlace?: Maybe<Scalars['String']['output']>;
|
|
630
|
-
reviewedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
631
|
-
status: ProfileStatus;
|
|
632
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
633
|
-
user: User;
|
|
634
|
-
userId: Scalars['ID']['output'];
|
|
635
|
-
};
|
|
636
|
-
declare enum ProfileStatus {
|
|
637
|
-
AwaitingValidation = "AWAITING_VALIDATION",
|
|
638
|
-
Incomplete = "INCOMPLETE",
|
|
639
|
-
Rejected = "REJECTED",
|
|
640
|
-
Validated = "VALIDATED"
|
|
641
|
-
}
|
|
642
|
-
type Property = {
|
|
643
|
-
__typename?: 'Property';
|
|
644
|
-
address: Address;
|
|
645
|
-
addressId: Scalars['String']['output'];
|
|
646
|
-
advert?: Maybe<Advert>;
|
|
647
|
-
agent: User;
|
|
648
|
-
agentId: Scalars['String']['output'];
|
|
649
|
-
apartmentsCount?: Maybe<Scalars['Int']['output']>;
|
|
650
|
-
attachments: Array<Attachment>;
|
|
651
|
-
authorizedActivities?: Maybe<Scalars['String']['output']>;
|
|
652
|
-
balconiesCount?: Maybe<Scalars['Int']['output']>;
|
|
653
|
-
bathroomsCount?: Maybe<Scalars['Int']['output']>;
|
|
654
|
-
boxesCount?: Maybe<Scalars['Int']['output']>;
|
|
655
|
-
brandName?: Maybe<Scalars['String']['output']>;
|
|
656
|
-
buildingServices?: Maybe<Scalars['String']['output']>;
|
|
657
|
-
buildingfloorCount?: Maybe<Scalars['Int']['output']>;
|
|
658
|
-
cadastreReference?: Maybe<Scalars['String']['output']>;
|
|
659
|
-
carrezLawArea?: Maybe<Scalars['Int']['output']>;
|
|
660
|
-
cellarsCount?: Maybe<Scalars['Int']['output']>;
|
|
661
|
-
coOwnershipLots?: Maybe<Scalars['Int']['output']>;
|
|
662
|
-
comments: Array<Comment>;
|
|
663
|
-
compromises: Array<Compromise>;
|
|
664
|
-
condoFees?: Maybe<Scalars['Float']['output']>;
|
|
665
|
-
constructionYear?: Maybe<Scalars['DateTime']['output']>;
|
|
666
|
-
coverPhotoUrl?: Maybe<Scalars['String']['output']>;
|
|
667
|
-
currentCompromise?: Maybe<Compromise>;
|
|
668
|
-
currentLeaseDuration?: Maybe<Scalars['Int']['output']>;
|
|
669
|
-
currentLeaseStartDate?: Maybe<Scalars['DateTime']['output']>;
|
|
670
|
-
currentMandate?: Maybe<Mandate>;
|
|
671
|
-
currentYearRevenue?: Maybe<Scalars['Float']['output']>;
|
|
672
|
-
dpeDate?: Maybe<Scalars['DateTime']['output']>;
|
|
673
|
-
dpeScore?: Maybe<EnergyScore>;
|
|
674
|
-
educationsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
675
|
-
employeesToHireCount?: Maybe<Scalars['Int']['output']>;
|
|
676
|
-
equipmentServices?: Maybe<Scalars['String']['output']>;
|
|
677
|
-
estateCondition: EstateCondition;
|
|
678
|
-
exposure?: Maybe<CardinalPoints>;
|
|
679
|
-
exteriorCondition?: Maybe<PropertyCondition>;
|
|
680
|
-
floorCount?: Maybe<Scalars['Int']['output']>;
|
|
681
|
-
floorLevel?: Maybe<Scalars['Int']['output']>;
|
|
682
|
-
gesScore?: Maybe<EnergyScore>;
|
|
683
|
-
hasElevator?: Maybe<Scalars['Boolean']['output']>;
|
|
684
|
-
hasGarden?: Maybe<Scalars['Boolean']['output']>;
|
|
685
|
-
hasHotWater?: Maybe<Scalars['Boolean']['output']>;
|
|
686
|
-
hasIndependantToilet?: Maybe<Scalars['Boolean']['output']>;
|
|
687
|
-
hasRoofing?: Maybe<Scalars['Boolean']['output']>;
|
|
688
|
-
healthsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
689
|
-
heatingConfiguration?: Maybe<SharingConfiguration>;
|
|
690
|
-
heatingEnergy?: Maybe<HeatingEnergy>;
|
|
691
|
-
hotWaterConfiguration?: Maybe<SharingConfiguration>;
|
|
692
|
-
hotWaterSystem?: Maybe<Scalars['String']['output']>;
|
|
693
|
-
id: Scalars['ID']['output'];
|
|
694
|
-
interiorCondition?: Maybe<PropertyCondition>;
|
|
695
|
-
isArchived: Scalars['Boolean']['output'];
|
|
696
|
-
isBuildable?: Maybe<Scalars['Boolean']['output']>;
|
|
697
|
-
isBusinessAssetsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
698
|
-
isCoOwnership?: Maybe<Scalars['Boolean']['output']>;
|
|
699
|
-
isCommercialWallsSale?: Maybe<Scalars['Boolean']['output']>;
|
|
700
|
-
isDemarcated?: Maybe<Scalars['Boolean']['output']>;
|
|
701
|
-
isDpeCompleted?: Maybe<Scalars['Boolean']['output']>;
|
|
702
|
-
isEnergyAuditCompleted?: Maybe<Scalars['Boolean']['output']>;
|
|
703
|
-
isForProfessionalUse: Scalars['Boolean']['output'];
|
|
704
|
-
isFurnished?: Maybe<Scalars['Boolean']['output']>;
|
|
705
|
-
isHousingScheme?: Maybe<Scalars['Boolean']['output']>;
|
|
706
|
-
isIndividualHouse?: Maybe<Scalars['Boolean']['output']>;
|
|
707
|
-
isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
708
|
-
isOccupied?: Maybe<Scalars['Boolean']['output']>;
|
|
709
|
-
isPreparedLand?: Maybe<Scalars['Boolean']['output']>;
|
|
710
|
-
isServiced?: Maybe<Scalars['Boolean']['output']>;
|
|
711
|
-
kitchenType?: Maybe<KitchenType>;
|
|
712
|
-
landArea?: Maybe<Scalars['Int']['output']>;
|
|
713
|
-
leaseEstablishedUnder?: Maybe<LeaseEstablishment>;
|
|
714
|
-
/** if leaseEstablishedUnder === NOTARY_DEED */
|
|
715
|
-
leaseEstablishmentNotaryName?: Maybe<Scalars['String']['output']>;
|
|
716
|
-
leaseTransfertPermission?: Maybe<LeaseTransfertPermission>;
|
|
717
|
-
leisuresSurroundings?: Maybe<Scalars['String']['output']>;
|
|
718
|
-
livingArea?: Maybe<Scalars['Int']['output']>;
|
|
719
|
-
naturalsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
720
|
-
ongoingProcedures?: Maybe<Scalars['String']['output']>;
|
|
721
|
-
otherServices?: Maybe<Scalars['String']['output']>;
|
|
722
|
-
othersSurroundings?: Maybe<Scalars['String']['output']>;
|
|
723
|
-
outsideServices?: Maybe<Scalars['String']['output']>;
|
|
724
|
-
owners: Array<PropertyOwner>;
|
|
725
|
-
parkingSpacesCount?: Maybe<Scalars['Int']['output']>;
|
|
726
|
-
patiosCount?: Maybe<Scalars['Int']['output']>;
|
|
727
|
-
photos: Array<Photo>;
|
|
728
|
-
potentialBuyers: Array<Contact>;
|
|
729
|
-
previousYear1Revenue?: Maybe<Scalars['Float']['output']>;
|
|
730
|
-
previousYear2Revenue?: Maybe<Scalars['Float']['output']>;
|
|
731
|
-
propertyLotsCount?: Maybe<Scalars['Int']['output']>;
|
|
732
|
-
propertyLotsIdentifiers?: Maybe<Scalars['String']['output']>;
|
|
733
|
-
propertyTaxPrice?: Maybe<Scalars['Float']['output']>;
|
|
734
|
-
propertyType: Scalars['String']['output'];
|
|
735
|
-
recommendedWorkCost?: Maybe<Scalars['Float']['output']>;
|
|
736
|
-
reference: Scalars['String']['output'];
|
|
737
|
-
renovationYear?: Maybe<Scalars['DateTime']['output']>;
|
|
738
|
-
roomCount?: Maybe<Scalars['Int']['output']>;
|
|
739
|
-
securityServices?: Maybe<Scalars['String']['output']>;
|
|
740
|
-
shopsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
741
|
-
showerRoomsCount?: Maybe<Scalars['Int']['output']>;
|
|
742
|
-
sportServices?: Maybe<Scalars['String']['output']>;
|
|
743
|
-
standing?: Maybe<PropertyStanding>;
|
|
744
|
-
step: PropertyStep;
|
|
745
|
-
surfaces: Array<Surface>;
|
|
746
|
-
toiletsCount?: Maybe<Scalars['Int']['output']>;
|
|
747
|
-
tradingName?: Maybe<Scalars['String']['output']>;
|
|
748
|
-
transportsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
749
|
-
view?: Maybe<PropertyView>;
|
|
750
|
-
wastewaterDisposalSystem?: Maybe<Scalars['String']['output']>;
|
|
751
|
-
};
|
|
752
|
-
declare enum PropertyCondition {
|
|
753
|
-
BrandNew = "BRAND_NEW",
|
|
754
|
-
Good = "GOOD",
|
|
755
|
-
Medium = "MEDIUM",
|
|
756
|
-
ReallyGood = "REALLY_GOOD",
|
|
757
|
-
RefreshNeeded = "REFRESH_NEEDED",
|
|
758
|
-
RehabilitaionNeeded = "REHABILITAION_NEEDED"
|
|
759
|
-
}
|
|
760
|
-
type PropertyOwner = {
|
|
761
|
-
__typename?: 'PropertyOwner';
|
|
762
|
-
legalNature?: Maybe<LegalNatureOfProperty>;
|
|
763
|
-
owner: Contact;
|
|
764
|
-
ownerId: Scalars['String']['output'];
|
|
765
|
-
property: Property;
|
|
766
|
-
propertyId: Scalars['String']['output'];
|
|
767
|
-
};
|
|
768
|
-
declare enum PropertyStanding {
|
|
769
|
-
Basic = "BASIC",
|
|
770
|
-
Good = "GOOD",
|
|
771
|
-
Luxury = "LUXURY",
|
|
772
|
-
Standard = "STANDARD"
|
|
773
|
-
}
|
|
774
|
-
declare enum PropertyStep {
|
|
775
|
-
Archived = "ARCHIVED",
|
|
776
|
-
Draft = "DRAFT",
|
|
777
|
-
Sold = "SOLD",
|
|
778
|
-
UnderCompromise = "UNDER_COMPROMISE",
|
|
779
|
-
UnderMandate = "UNDER_MANDATE"
|
|
780
|
-
}
|
|
781
|
-
declare enum PropertyView {
|
|
782
|
-
Clear = "CLEAR",
|
|
783
|
-
Exceptional = "EXCEPTIONAL",
|
|
784
|
-
Mountains = "MOUNTAINS",
|
|
785
|
-
Overlooked = "OVERLOOKED",
|
|
786
|
-
Sea = "SEA"
|
|
787
|
-
}
|
|
788
|
-
type Question = {
|
|
789
|
-
__typename?: 'Question';
|
|
790
|
-
answers: Array<Scalars['String']['output']>;
|
|
791
|
-
correctAnswer: Scalars['String']['output'];
|
|
792
|
-
id: Scalars['ID']['output'];
|
|
793
|
-
question: Scalars['String']['output'];
|
|
794
|
-
};
|
|
795
|
-
type Renovation = {
|
|
796
|
-
__typename?: 'Renovation';
|
|
797
|
-
address: Address;
|
|
798
|
-
agent: User;
|
|
799
|
-
airConditioning?: Maybe<AirConditioningType>;
|
|
800
|
-
annualElectricityBill?: Maybe<Scalars['Int']['output']>;
|
|
801
|
-
annualElectricityConsumption?: Maybe<Scalars['Int']['output']>;
|
|
802
|
-
attachments: Array<Attachment>;
|
|
803
|
-
comments: Array<Comment>;
|
|
804
|
-
coverPhotoUrl?: Maybe<Scalars['String']['output']>;
|
|
805
|
-
exposures?: Maybe<Array<CardinalPoints>>;
|
|
806
|
-
hasAmericanFridge?: Maybe<Scalars['Boolean']['output']>;
|
|
807
|
-
hasDishwasher?: Maybe<Scalars['Boolean']['output']>;
|
|
808
|
-
hasDryer?: Maybe<Scalars['Boolean']['output']>;
|
|
809
|
-
hasElectricOven?: Maybe<Scalars['Boolean']['output']>;
|
|
810
|
-
hasElectricVehicleCharging?: Maybe<Scalars['Boolean']['output']>;
|
|
811
|
-
hasFreezer?: Maybe<Scalars['Boolean']['output']>;
|
|
812
|
-
hasFridge?: Maybe<Scalars['Boolean']['output']>;
|
|
813
|
-
hasFridgeFreezer?: Maybe<Scalars['Boolean']['output']>;
|
|
814
|
-
hasHotPlate?: Maybe<Scalars['Boolean']['output']>;
|
|
815
|
-
hasWashingMachine?: Maybe<Scalars['Boolean']['output']>;
|
|
816
|
-
heatingEnergy?: Maybe<HeatingEnergy>;
|
|
817
|
-
hotWaterEnergy?: Maybe<Scalars['String']['output']>;
|
|
818
|
-
id: Scalars['ID']['output'];
|
|
819
|
-
inhabitantCount?: Maybe<Scalars['Int']['output']>;
|
|
820
|
-
insulationLevel?: Maybe<InsulationLevel>;
|
|
821
|
-
isFullService: Scalars['Boolean']['output'];
|
|
822
|
-
isUpgrade: Scalars['Boolean']['output'];
|
|
823
|
-
lighting?: Maybe<LightingType>;
|
|
824
|
-
livingArea?: Maybe<Scalars['Int']['output']>;
|
|
825
|
-
multimediaUsage?: Maybe<MultimediaUsage>;
|
|
826
|
-
owners: Array<Contact>;
|
|
827
|
-
photos: Array<Photo>;
|
|
828
|
-
pool?: Maybe<PoolType>;
|
|
829
|
-
presenceProfile?: Maybe<PresenceProfile>;
|
|
830
|
-
propertyType: Scalars['String']['output'];
|
|
831
|
-
roofType?: Maybe<RoofType>;
|
|
832
|
-
step: RenovationStep;
|
|
833
|
-
};
|
|
834
|
-
declare enum RenovationStep {
|
|
835
|
-
InPreparation = "IN_PREPARATION",
|
|
836
|
-
ProjectSentToPartner = "PROJECT_SENT_TO_PARTNER",
|
|
837
|
-
QuoteSentToClient = "QUOTE_SENT_TO_CLIENT",
|
|
838
|
-
WorkCompletedInvoiceSent = "WORK_COMPLETED_INVOICE_SENT",
|
|
839
|
-
WorkInProgress = "WORK_IN_PROGRESS",
|
|
840
|
-
WorkPaid = "WORK_PAID"
|
|
841
|
-
}
|
|
842
75
|
declare enum RequiredFor {
|
|
843
76
|
Diffusion = "DIFFUSION",
|
|
844
77
|
MandateCreation = "MANDATE_CREATION",
|
|
845
78
|
Profile = "PROFILE"
|
|
846
79
|
}
|
|
847
|
-
declare enum Role {
|
|
848
|
-
Admin = "ADMIN",
|
|
849
|
-
Member = "MEMBER",
|
|
850
|
-
Partner = "PARTNER"
|
|
851
|
-
}
|
|
852
|
-
declare enum RoofType {
|
|
853
|
-
FourSlopes = "FOUR_SLOPES",
|
|
854
|
-
LShape = "L_SHAPE",
|
|
855
|
-
OneSlope = "ONE_SLOPE",
|
|
856
|
-
TwoSlopes = "TWO_SLOPES",
|
|
857
|
-
TShape = "T_SHAPE"
|
|
858
|
-
}
|
|
859
|
-
type SearchFilters = {
|
|
860
|
-
__typename?: 'SearchFilters';
|
|
861
|
-
area: Array<Coordinate>;
|
|
862
|
-
contact?: Maybe<Contact>;
|
|
863
|
-
contactId?: Maybe<Scalars['String']['output']>;
|
|
864
|
-
id: Scalars['ID']['output'];
|
|
865
|
-
maxLandArea?: Maybe<Scalars['Int']['output']>;
|
|
866
|
-
maxLivingArea?: Maybe<Scalars['Int']['output']>;
|
|
867
|
-
maxRoomCount?: Maybe<Scalars['Int']['output']>;
|
|
868
|
-
minLandArea?: Maybe<Scalars['Int']['output']>;
|
|
869
|
-
minLivingArea?: Maybe<Scalars['Int']['output']>;
|
|
870
|
-
minRoomCount?: Maybe<Scalars['Int']['output']>;
|
|
871
|
-
propertyTypes: Array<Scalars['String']['output']>;
|
|
872
|
-
services: Array<Scalars['String']['output']>;
|
|
873
|
-
surroundings: Array<Scalars['String']['output']>;
|
|
874
|
-
};
|
|
875
|
-
declare enum SharingConfiguration {
|
|
876
|
-
Collective = "COLLECTIVE",
|
|
877
|
-
Individual = "INDIVIDUAL"
|
|
878
|
-
}
|
|
879
|
-
type Submitter = {
|
|
880
|
-
__typename?: 'Submitter';
|
|
881
|
-
completed_at?: Maybe<Scalars['DateTime']['output']>;
|
|
882
|
-
documents: Array<AttachmentSignatureDocument>;
|
|
883
|
-
email?: Maybe<Scalars['String']['output']>;
|
|
884
|
-
external_id?: Maybe<Scalars['String']['output']>;
|
|
885
|
-
id: Scalars['Int']['output'];
|
|
886
|
-
name?: Maybe<Scalars['String']['output']>;
|
|
887
|
-
opened_at?: Maybe<Scalars['DateTime']['output']>;
|
|
888
|
-
phone?: Maybe<Scalars['String']['output']>;
|
|
889
|
-
preferences: AttachmentSignaturePreferences;
|
|
890
|
-
role: Scalars['String']['output'];
|
|
891
|
-
sent_at?: Maybe<Scalars['DateTime']['output']>;
|
|
892
|
-
slug: Scalars['String']['output'];
|
|
893
|
-
status: SubmitterStatus;
|
|
894
|
-
submission_id: Scalars['Int']['output'];
|
|
895
|
-
};
|
|
896
|
-
declare enum SubmitterStatus {
|
|
897
|
-
Awaiting = "awaiting",
|
|
898
|
-
Completed = "completed",
|
|
899
|
-
Opened = "opened",
|
|
900
|
-
Sent = "sent"
|
|
901
|
-
}
|
|
902
|
-
type Surface = {
|
|
903
|
-
__typename?: 'Surface';
|
|
904
|
-
area?: Maybe<Scalars['Int']['output']>;
|
|
905
|
-
floor?: Maybe<Scalars['Int']['output']>;
|
|
906
|
-
id: Scalars['ID']['output'];
|
|
907
|
-
property: Property;
|
|
908
|
-
propertyId: Scalars['String']['output'];
|
|
909
|
-
roomType: Scalars['String']['output'];
|
|
910
|
-
};
|
|
911
|
-
type User = {
|
|
912
|
-
__typename?: 'User';
|
|
913
|
-
commissionRate: Scalars['Float']['output'];
|
|
914
|
-
contacts: Array<Contact>;
|
|
915
|
-
customerFeedbacks: Array<CustomerFeedback>;
|
|
916
|
-
email: Scalars['String']['output'];
|
|
917
|
-
firstLogin: Scalars['DateTime']['output'];
|
|
918
|
-
firstName: Scalars['String']['output'];
|
|
919
|
-
fullName: Scalars['String']['output'];
|
|
920
|
-
/** The user has a valid profile or is an admin */
|
|
921
|
-
hasValidProfile: Scalars['Boolean']['output'];
|
|
922
|
-
id: Scalars['ID']['output'];
|
|
923
|
-
/** The user has a valid subscription or is an admin */
|
|
924
|
-
isSubscribed: Scalars['Boolean']['output'];
|
|
925
|
-
lastLogin: Scalars['DateTime']['output'];
|
|
926
|
-
lastName: Scalars['String']['output'];
|
|
927
|
-
partner?: Maybe<Partner>;
|
|
928
|
-
profile?: Maybe<Profile>;
|
|
929
|
-
properties: Array<Property>;
|
|
930
|
-
renovations: Array<Renovation>;
|
|
931
|
-
role: Role;
|
|
932
|
-
slug: Scalars['String']['output'];
|
|
933
|
-
stripePortalUrl?: Maybe<Scalars['String']['output']>;
|
|
934
|
-
};
|
|
935
|
-
|
|
936
|
-
declare const getLowThreshold: (isForPro: boolean) => {
|
|
937
|
-
limit: number;
|
|
938
|
-
fees: number;
|
|
939
|
-
};
|
|
940
|
-
declare const getFeesPercentage: (price: number, isForProfessionalUse: boolean) => 0 | 10 | 9 | 8 | 7 | 8.5 | 7.5 | 6.5 | 6 | 5;
|
|
941
|
-
type GetNetPriceMandate = Pick<Mandate, "isForProfessionalUse" | "isCommercialWallsSale" | "isBusinessAssetsTransfer" | "isLeaseRightsTransfer" | "netOwnerPrice" | "leaseRightsPrice" | "businessAssetsPrice">;
|
|
942
|
-
declare const getNetPrice: (mandate: GetNetPriceMandate) => number;
|
|
943
|
-
declare const getAgencyFees: (mandate: GetNetPriceMandate & {
|
|
944
|
-
agencyFeePercentage: number;
|
|
945
|
-
}) => number;
|
|
946
80
|
|
|
947
81
|
type Field<T> = {
|
|
948
82
|
name: keyof T;
|
|
@@ -980,15 +114,15 @@ declare const getLabel: <T>(list: {
|
|
|
980
114
|
value: T;
|
|
981
115
|
label: string;
|
|
982
116
|
}[], value: T) => string | null;
|
|
983
|
-
declare const formatAddress: (address: Pick<Address
|
|
117
|
+
declare const formatAddress: (address: Pick<Address, "address" | "postalCode" | "locality">) => string;
|
|
984
118
|
declare const formatSeconds: (seconds: number) => string;
|
|
985
119
|
declare const formatDate: (date?: Date | null, withTime?: boolean) => string | null;
|
|
986
120
|
declare const formatPrice: (price: number) => string;
|
|
987
121
|
declare const formatPhone: (phone?: string | null) => string | null;
|
|
988
122
|
declare const formatMandateNumber: (number: number) => string;
|
|
989
123
|
declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
|
|
990
|
-
declare const formatAgentLegalData: (profile?: Pick<Profile
|
|
991
|
-
declare const getPropertyTitle: (property: Pick<Property
|
|
124
|
+
declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
125
|
+
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomCount" | "livingArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
992
126
|
declare const formatNumber: (number?: number | null) => string;
|
|
993
127
|
|
|
994
128
|
declare const only: (condition: string | Condition) => Condition;
|
|
@@ -996,20 +130,20 @@ declare const not: (condition: string | Condition) => Condition;
|
|
|
996
130
|
declare const or: (...conditions: (string | Condition)[]) => Condition;
|
|
997
131
|
declare const and: (...conditions: (string | Condition)[]) => Condition;
|
|
998
132
|
|
|
999
|
-
declare const featuresFormFields: Field<Property
|
|
1000
|
-
declare const technicalFormFields: Field<Property
|
|
1001
|
-
declare const surfacesFormFields: Field<Property
|
|
133
|
+
declare const featuresFormFields: Field<Property>[];
|
|
134
|
+
declare const technicalFormFields: Field<Property>[];
|
|
135
|
+
declare const surfacesFormFields: Field<Property>[];
|
|
1002
136
|
declare const propertyFields: Field<{
|
|
137
|
+
id: string;
|
|
138
|
+
createdAt: Date;
|
|
1003
139
|
isForProfessionalUse: boolean;
|
|
1004
|
-
isCommercialWallsSale: boolean | null;
|
|
1005
|
-
isBusinessAssetsTransfer: boolean | null;
|
|
1006
140
|
isLeaseRightsTransfer: boolean | null;
|
|
141
|
+
isBusinessAssetsTransfer: boolean | null;
|
|
142
|
+
isCommercialWallsSale: boolean | null;
|
|
1007
143
|
agentId: string;
|
|
1008
|
-
createdAt: Date;
|
|
1009
|
-
id: string;
|
|
1010
|
-
updatedAt: Date | null;
|
|
1011
144
|
propertyType: string;
|
|
1012
145
|
addressId: string;
|
|
146
|
+
updatedAt: Date | null;
|
|
1013
147
|
reference: number;
|
|
1014
148
|
estateCondition: _prisma_client.$Enums.EstateCondition;
|
|
1015
149
|
isArchived: boolean;
|
|
@@ -1107,7 +241,7 @@ declare const LEASE_TRANSFERT_PERMISSIONS: SelectOption[];
|
|
|
1107
241
|
declare const KITCHEN_TYPE: SelectOption[];
|
|
1108
242
|
declare const HEATING_ENERGY: SelectOption[];
|
|
1109
243
|
|
|
1110
|
-
type StateType$1 = Pick<Property
|
|
244
|
+
type StateType$1 = Pick<Property, "isForProfessionalUse" | "propertyType" | "isOccupied" | "isCoOwnership" | "isHousingScheme" | "isBusinessAssetsTransfer" | "isLeaseRightsTransfer" | "isCommercialWallsSale" | "isDpeCompleted" | "isEnergyAuditCompleted" | "leaseEstablishedUnder" | "constructionYear">;
|
|
1111
245
|
declare const getPropertyState: (property: StateType$1) => State;
|
|
1112
246
|
|
|
1113
247
|
declare const mandateFormFields: Field<MandateInput>[];
|
|
@@ -1117,7 +251,7 @@ declare const MANDATE_EXCLUSIVITY: {
|
|
|
1117
251
|
label: string;
|
|
1118
252
|
}[];
|
|
1119
253
|
|
|
1120
|
-
declare const contactFormFields: Field<
|
|
254
|
+
declare const contactFormFields: Field<Contact>[];
|
|
1121
255
|
|
|
1122
256
|
declare const GENDER: SelectOption[];
|
|
1123
257
|
declare const IDENTIFICATION_DOCUMENTS: SelectOption[];
|