ecotransac-shared-js 1.1.41 → 1.1.44
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/codegen.ts +1 -0
- package/dist/index.d.mts +150 -327
- package/dist/index.d.ts +150 -327
- package/dist/index.js +148 -199
- package/dist/index.mjs +148 -199
- package/package.json +1 -1
package/codegen.ts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -54,11 +54,7 @@ type Advert = {
|
|
|
54
54
|
title: Scalars['String']['output'];
|
|
55
55
|
updatedAt: Scalars['DateTime']['output'];
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
Classic = "CLASSIC",
|
|
59
|
-
IntegratedHeatpump = "INTEGRATED_HEATPUMP",
|
|
60
|
-
None = "NONE"
|
|
61
|
-
}
|
|
57
|
+
type AirConditioningType = 'CLASSIC' | 'INTEGRATED_HEATPUMP' | 'NONE';
|
|
62
58
|
type Attachment = {
|
|
63
59
|
__typename?: 'Attachment';
|
|
64
60
|
author: User;
|
|
@@ -103,100 +99,90 @@ type AttachmentSignaturePreferences = {
|
|
|
103
99
|
send_email: Scalars['Boolean']['output'];
|
|
104
100
|
send_sms: Scalars['Boolean']['output'];
|
|
105
101
|
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
declare enum CardinalPoints {
|
|
191
|
-
E = "E",
|
|
192
|
-
N = "N",
|
|
193
|
-
NE = "N_E",
|
|
194
|
-
NW = "N_W",
|
|
195
|
-
S = "S",
|
|
196
|
-
SE = "S_E",
|
|
197
|
-
SW = "S_W",
|
|
198
|
-
W = "W"
|
|
199
|
-
}
|
|
102
|
+
type AttachmentTag =
|
|
103
|
+
/** Attestation de recherche d'amiante */
|
|
104
|
+
'ASBESTOS_SURVEY_CERTIFICATE'
|
|
105
|
+
/** Contrat d’entretien chaudière */
|
|
106
|
+
| 'BOILER_MAINTENANCE_CONTRACT'
|
|
107
|
+
/** Permis de construire */
|
|
108
|
+
| 'BUILDING_PERMIT'
|
|
109
|
+
/** Une attestation mentionnant la superficie de la partie privative (loi Carrez) */
|
|
110
|
+
| 'CARREZ_LAW_CERTIFICATE'
|
|
111
|
+
/** Certificat de ramonage */
|
|
112
|
+
| 'CHIMNEY_SWEEPING_CERTIFICATE'
|
|
113
|
+
/** Déclaration d’achèvement des travaux */
|
|
114
|
+
| 'COMPLETION_DECLARATION'
|
|
115
|
+
/** Certificat de conformité (avant 2007) ou certificat de non-conformité */
|
|
116
|
+
| 'COMPLIANCE_CERTIFICATE'
|
|
117
|
+
/** La notice d’information relative aux droits et obligations des copropriétaires */
|
|
118
|
+
| 'COOWNERSHIP_INFORMATION_NOTICE'
|
|
119
|
+
/** Le règlement de copropriété et l’état descriptif de division */
|
|
120
|
+
| 'COOWNERSHIP_REGULATION'
|
|
121
|
+
/** La fiche synthétique de la copropriété */
|
|
122
|
+
| 'COOWNERSHIP_SYNTHETIC_SHEET'
|
|
123
|
+
/** Attestation d’assurance dommage – ouvrage */
|
|
124
|
+
| 'DAMAGE_INSURANCE_CERTIFICATE'
|
|
125
|
+
/** Diagnostic électrique */
|
|
126
|
+
| 'ELECTRICAL_DIAGNOSTIC'
|
|
127
|
+
/** Factures justificatives pour la consommation annuelle d'énergie */
|
|
128
|
+
| 'ENERGY_CONSUMPTION_INVOICES'
|
|
129
|
+
/** Diagnostics de Performance Énergétique (DPE) */
|
|
130
|
+
| 'ENERGY_PERFORMANCE_DIAGNOSTIC'
|
|
131
|
+
/** Diagnostic gaz */
|
|
132
|
+
| 'GAS_DIAGNOSTIC'
|
|
133
|
+
/** Les procès-verbaux des assemblées générales des trois dernières années */
|
|
134
|
+
| 'GENERAL_ASSEMBLY_MINUTES'
|
|
135
|
+
/** Taxe d’habitation */
|
|
136
|
+
| 'HOUSING_TAX'
|
|
137
|
+
/** Document d'identité */
|
|
138
|
+
| 'ID'
|
|
139
|
+
/** Kbis de société et certificat Insee */
|
|
140
|
+
| 'KBIS'
|
|
141
|
+
/** Procès-verbal de remise des clés */
|
|
142
|
+
| 'KEYS_HANDOVER_MINUTES'
|
|
143
|
+
/** Attestation de recherche de plomb */
|
|
144
|
+
| 'LEAD_SURVEY_CERTIFICATE'
|
|
145
|
+
/** Le carnet d’entretien de l’immeuble */
|
|
146
|
+
| 'MAINTENANCE_LOGBOOK'
|
|
147
|
+
/** Attestation sur la présence d’un risque de mérule */
|
|
148
|
+
| 'MERULE_RISK_CERTIFICATE'
|
|
149
|
+
/** Le plan pluriannuel de travaux */
|
|
150
|
+
| 'MULTIYEAR_WORK_PLAN'
|
|
151
|
+
/** Diagnostic Assainissement Non Collectif (ANC) */
|
|
152
|
+
| 'NON_COLLECTIVE_SANITATION_DIAGNOSTIC'
|
|
153
|
+
/** Justificatif de domicile */
|
|
154
|
+
| 'PROOF_OF_RESIDENCY'
|
|
155
|
+
/** Un double des clés */
|
|
156
|
+
| 'PROPERTY_KEYS'
|
|
157
|
+
/** Taxe foncière */
|
|
158
|
+
| 'PROPERTY_TAX'
|
|
159
|
+
/** Titre de propriété */
|
|
160
|
+
| 'PROPERTY_TITLE'
|
|
161
|
+
/** offre d'achat */
|
|
162
|
+
| 'PURCHASE_OFFER'
|
|
163
|
+
/** Attestation assurance Responsabilité Civile Professionnelle (RCP) */
|
|
164
|
+
| 'RCP_ASSURANCE'
|
|
165
|
+
/** État des Risques et Pollutions (ERP) */
|
|
166
|
+
| 'RISKS_AND_POLLUTION_STATEMENT'
|
|
167
|
+
/** Mandat de vente */
|
|
168
|
+
| 'SALE_MANDATE'
|
|
169
|
+
/** Plan des lieux et des constructions */
|
|
170
|
+
| 'SITE_PLAN'
|
|
171
|
+
/** Le questionnaire Syndic de Copropriété */
|
|
172
|
+
| 'SYNDIC_QUESTIONNAIRE'
|
|
173
|
+
/** Attestation de régularité fiscale et vigilance */
|
|
174
|
+
| 'TAX_REGULARITY'
|
|
175
|
+
/** Le diagnostic technique global */
|
|
176
|
+
| 'TECHNICAL_DIAGNOSTIC_GLOBAL'
|
|
177
|
+
/** Attestation de recherche de termites */
|
|
178
|
+
| 'TERMITE_CERTIFICATE'
|
|
179
|
+
/** Bon de visite */
|
|
180
|
+
| 'VISIT_SLIP'
|
|
181
|
+
/** Attestation de conformité des réseaux d’eaux pluviales et usées */
|
|
182
|
+
| 'WATER_NETWORK_COMPLIANCE'
|
|
183
|
+
/** Historique des travaux */
|
|
184
|
+
| 'WORK_HISTORY';
|
|
185
|
+
type CardinalPoints = 'E' | 'N' | 'N_E' | 'N_W' | 'S' | 'S_E' | 'S_W' | 'W';
|
|
200
186
|
type Chapter = {
|
|
201
187
|
__typename?: 'Chapter';
|
|
202
188
|
comments: Array<Comment>;
|
|
@@ -311,81 +297,25 @@ type CustomerFeedback = {
|
|
|
311
297
|
isHidden: Scalars['Boolean']['output'];
|
|
312
298
|
userSlug: Scalars['String']['output'];
|
|
313
299
|
};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
Fuel = "FUEL",
|
|
334
|
-
Gas = "GAS",
|
|
335
|
-
Geothermie = "GEOTHERMIE",
|
|
336
|
-
Other = "OTHER",
|
|
337
|
-
Wood = "WOOD"
|
|
338
|
-
}
|
|
339
|
-
declare enum IdentificationDocument {
|
|
340
|
-
DriverLicense = "DRIVER_LICENSE",
|
|
341
|
-
NationalIdCard = "NATIONAL_ID_CARD",
|
|
342
|
-
Passport = "PASSPORT",
|
|
343
|
-
ResidenceCardCertificate = "RESIDENCE_CARD_CERTIFICATE",
|
|
344
|
-
ResidencePermit = "RESIDENCE_PERMIT"
|
|
345
|
-
}
|
|
346
|
-
declare enum InsulationLevel {
|
|
347
|
-
Average = "AVERAGE",
|
|
348
|
-
Good = "GOOD",
|
|
349
|
-
Poor = "POOR"
|
|
350
|
-
}
|
|
351
|
-
declare enum KitchenType {
|
|
352
|
-
AmericanEquipped = "AMERICAN_EQUIPPED",
|
|
353
|
-
Equipped = "EQUIPPED",
|
|
354
|
-
Industrial = "INDUSTRIAL",
|
|
355
|
-
Kitchenette = "KITCHENETTE",
|
|
356
|
-
None = "NONE",
|
|
357
|
-
Separated = "SEPARATED",
|
|
358
|
-
SeparateEquipped = "SEPARATE_EQUIPPED"
|
|
359
|
-
}
|
|
360
|
-
declare enum LeaseEstablishment {
|
|
361
|
-
NotaryDeed = "NOTARY_DEED",
|
|
362
|
-
PrivateDeed = "PRIVATE_DEED"
|
|
363
|
-
}
|
|
364
|
-
declare enum LeaseTransfertPermission {
|
|
365
|
-
AtLeaseEnd = "AT_LEASE_END",
|
|
366
|
-
ByMail = "BY_MAIL"
|
|
367
|
-
}
|
|
368
|
-
declare enum LegalNatureOfProperty {
|
|
369
|
-
/** Nu-propriétaire */
|
|
370
|
-
BareOwner = "BARE_OWNER",
|
|
371
|
-
/** Indivisaire */
|
|
372
|
-
CoOwnerInUndividedProperty = "CO_OWNER_IN_UNDIVIDED_PROPERTY",
|
|
373
|
-
/** Pleine propriété */
|
|
374
|
-
FullOwnership = "FULL_OWNERSHIP",
|
|
375
|
-
/** Usufruitier */
|
|
376
|
-
Usufructuary = "USUFRUCTUARY"
|
|
377
|
-
}
|
|
378
|
-
declare enum LegalStatus {
|
|
379
|
-
Ei = "EI",
|
|
380
|
-
Eurl = "EURL",
|
|
381
|
-
Sa = "SA",
|
|
382
|
-
Sarl = "SARL",
|
|
383
|
-
Sas = "SAS",
|
|
384
|
-
Sasu = "SASU",
|
|
385
|
-
Sca = "SCA",
|
|
386
|
-
Scs = "SCS",
|
|
387
|
-
Snc = "SNC"
|
|
388
|
-
}
|
|
300
|
+
type EnergyScore = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';
|
|
301
|
+
type EstateCondition = 'NEW_PROPERTY' | 'OLD_PROPERTY';
|
|
302
|
+
type Gender = 'FEMALE' | 'MALE';
|
|
303
|
+
type HeatingEnergy = 'ELECTRICITY' | 'FUEL' | 'GAS' | 'GEOTHERMIE' | 'OTHER' | 'WOOD';
|
|
304
|
+
type IdentificationDocument = 'DRIVER_LICENSE' | 'NATIONAL_ID_CARD' | 'PASSPORT' | 'RESIDENCE_CARD_CERTIFICATE' | 'RESIDENCE_PERMIT';
|
|
305
|
+
type InsulationLevel = 'AVERAGE' | 'GOOD' | 'POOR';
|
|
306
|
+
type KitchenType = 'AMERICAN_EQUIPPED' | 'EQUIPPED' | 'INDUSTRIAL' | 'KITCHENETTE' | 'NONE' | 'SEPARATED' | 'SEPARATE_EQUIPPED';
|
|
307
|
+
type LeaseEstablishment = 'NOTARY_DEED' | 'PRIVATE_DEED';
|
|
308
|
+
type LeaseTransfertPermission = 'AT_LEASE_END' | 'BY_MAIL';
|
|
309
|
+
type LegalNatureOfProperty =
|
|
310
|
+
/** Nu-propriétaire */
|
|
311
|
+
'BARE_OWNER'
|
|
312
|
+
/** Indivisaire */
|
|
313
|
+
| 'CO_OWNER_IN_UNDIVIDED_PROPERTY'
|
|
314
|
+
/** Pleine propriété */
|
|
315
|
+
| 'FULL_OWNERSHIP'
|
|
316
|
+
/** Usufruitier */
|
|
317
|
+
| 'USUFRUCTUARY';
|
|
318
|
+
type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | 'SCA' | 'SCS' | 'SNC';
|
|
389
319
|
type Lesson = {
|
|
390
320
|
__typename?: 'Lesson';
|
|
391
321
|
chapters: Array<Chapter>;
|
|
@@ -405,16 +335,8 @@ type Lesson = {
|
|
|
405
335
|
/** Completion percentage of lessons watch & quiz */
|
|
406
336
|
userProgress: Scalars['Int']['output'];
|
|
407
337
|
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
EnergyRenovation = "ENERGY_RENOVATION",
|
|
411
|
-
Tutorial = "TUTORIAL"
|
|
412
|
-
}
|
|
413
|
-
declare enum LightingType {
|
|
414
|
-
Classic = "CLASSIC",
|
|
415
|
-
LowConsumption = "LOW_CONSUMPTION",
|
|
416
|
-
Mixed = "MIXED"
|
|
417
|
-
}
|
|
338
|
+
type LessonType = 'ALUR' | 'ENERGY_RENOVATION' | 'TUTORIAL';
|
|
339
|
+
type LightingType = 'CLASSIC' | 'LOW_CONSUMPTION' | 'MIXED';
|
|
418
340
|
type Mandate = {
|
|
419
341
|
__typename?: 'Mandate';
|
|
420
342
|
agencyFeePercentage?: Maybe<Scalars['Float']['output']>;
|
|
@@ -447,11 +369,7 @@ type Mandate = {
|
|
|
447
369
|
transactionPrice?: Maybe<Scalars['Float']['output']>;
|
|
448
370
|
updatedAt: Scalars['DateTime']['output'];
|
|
449
371
|
};
|
|
450
|
-
|
|
451
|
-
Exclusive = "EXCLUSIVE",
|
|
452
|
-
SemiExclusive = "SEMI_EXCLUSIVE",
|
|
453
|
-
Simple = "SIMPLE"
|
|
454
|
-
}
|
|
372
|
+
type MandateExclusivity = 'EXCLUSIVE' | 'SEMI_EXCLUSIVE' | 'SIMPLE';
|
|
455
373
|
type MandateInput = {
|
|
456
374
|
/** % d'honoraires agence */
|
|
457
375
|
agencyFeePercentage?: InputMaybe<Scalars['Float']['input']>;
|
|
@@ -474,27 +392,9 @@ type MandateInput = {
|
|
|
474
392
|
securityDeposit?: InputMaybe<Scalars['Float']['input']>;
|
|
475
393
|
specialConditions?: InputMaybe<Scalars['String']['input']>;
|
|
476
394
|
};
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
Expired = "EXPIRED",
|
|
481
|
-
Processing = "PROCESSING",
|
|
482
|
-
Rejected = "REJECTED",
|
|
483
|
-
Withdrawn = "WITHDRAWN"
|
|
484
|
-
}
|
|
485
|
-
declare enum MaritalStatus {
|
|
486
|
-
CivilPartnership = "CIVIL_PARTNERSHIP",
|
|
487
|
-
Divorced = "DIVORCED",
|
|
488
|
-
MarriedWithoutPrenup = "MARRIED_WITHOUT_PRENUP",
|
|
489
|
-
MarriedWithPrenup = "MARRIED_WITH_PRENUP",
|
|
490
|
-
Single = "SINGLE",
|
|
491
|
-
Widowed = "WIDOWED"
|
|
492
|
-
}
|
|
493
|
-
declare enum MultimediaUsage {
|
|
494
|
-
Intense = "INTENSE",
|
|
495
|
-
Low = "LOW",
|
|
496
|
-
Moderate = "MODERATE"
|
|
497
|
-
}
|
|
395
|
+
type MandateStatus = 'AWAITING_SIGNATURES' | 'AWAITING_VALIDATION' | 'EXPIRED' | 'PROCESSING' | 'REJECTED' | 'WITHDRAWN';
|
|
396
|
+
type MaritalStatus = 'CIVIL_PARTNERSHIP' | 'DIVORCED' | 'MARRIED_WITHOUT_PRENUP' | 'MARRIED_WITH_PRENUP' | 'SINGLE' | 'WIDOWED';
|
|
397
|
+
type MultimediaUsage = 'INTENSE' | 'LOW' | 'MODERATE';
|
|
498
398
|
type Partner = {
|
|
499
399
|
__typename?: 'Partner';
|
|
500
400
|
id: Scalars['ID']['output'];
|
|
@@ -515,25 +415,9 @@ type Photo = {
|
|
|
515
415
|
propertyId?: Maybe<Scalars['String']['output']>;
|
|
516
416
|
url: Scalars['String']['output'];
|
|
517
417
|
};
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
None = "NONE",
|
|
522
|
-
Other = "OTHER"
|
|
523
|
-
}
|
|
524
|
-
declare enum PrenupType {
|
|
525
|
-
CommunityOfPropertyWithoutGains = "COMMUNITY_OF_PROPERTY_WITHOUT_GAINS",
|
|
526
|
-
NotarizedMarriageContract = "NOTARIZED_MARRIAGE_CONTRACT",
|
|
527
|
-
ParticipationInAcquisitions = "PARTICIPATION_IN_ACQUISITIONS",
|
|
528
|
-
ParticipationInAcquisitionsWithFullAttributionToSurvivor = "PARTICIPATION_IN_ACQUISITIONS_WITH_FULL_ATTRIBUTION_TO_SURVIVOR",
|
|
529
|
-
SeparationOfProperty = "SEPARATION_OF_PROPERTY",
|
|
530
|
-
UniversalCommunity = "UNIVERSAL_COMMUNITY"
|
|
531
|
-
}
|
|
532
|
-
declare enum PresenceProfile {
|
|
533
|
-
AllDay = "ALL_DAY",
|
|
534
|
-
MorningEvening = "MORNING_EVENING",
|
|
535
|
-
MorningNoonEvening = "MORNING_NOON_EVENING"
|
|
536
|
-
}
|
|
418
|
+
type PoolType = 'ABOVE_GROUND' | 'INGROUND' | 'NONE' | 'OTHER';
|
|
419
|
+
type PrenupType = 'COMMUNITY_OF_PROPERTY_WITHOUT_GAINS' | 'NOTARIZED_MARRIAGE_CONTRACT' | 'PARTICIPATION_IN_ACQUISITIONS' | 'PARTICIPATION_IN_ACQUISITIONS_WITH_FULL_ATTRIBUTION_TO_SURVIVOR' | 'SEPARATION_OF_PROPERTY' | 'UNIVERSAL_COMMUNITY';
|
|
420
|
+
type PresenceProfile = 'ALL_DAY' | 'MORNING_EVENING' | 'MORNING_NOON_EVENING';
|
|
537
421
|
type Product = {
|
|
538
422
|
__typename?: 'Product';
|
|
539
423
|
category: Scalars['String']['output'];
|
|
@@ -590,12 +474,7 @@ type Profile = {
|
|
|
590
474
|
user: User;
|
|
591
475
|
userId: Scalars['ID']['output'];
|
|
592
476
|
};
|
|
593
|
-
|
|
594
|
-
AwaitingValidation = "AWAITING_VALIDATION",
|
|
595
|
-
Incomplete = "INCOMPLETE",
|
|
596
|
-
Rejected = "REJECTED",
|
|
597
|
-
Validated = "VALIDATED"
|
|
598
|
-
}
|
|
477
|
+
type ProfileStatus = 'AWAITING_VALIDATION' | 'INCOMPLETE' | 'REJECTED' | 'VALIDATED';
|
|
599
478
|
type Property = {
|
|
600
479
|
__typename?: 'Property';
|
|
601
480
|
address: Address;
|
|
@@ -706,14 +585,7 @@ type Property = {
|
|
|
706
585
|
view?: Maybe<PropertyView>;
|
|
707
586
|
wastewaterDisposalSystem?: Maybe<Scalars['String']['output']>;
|
|
708
587
|
};
|
|
709
|
-
|
|
710
|
-
BrandNew = "BRAND_NEW",
|
|
711
|
-
Good = "GOOD",
|
|
712
|
-
Medium = "MEDIUM",
|
|
713
|
-
ReallyGood = "REALLY_GOOD",
|
|
714
|
-
RefreshNeeded = "REFRESH_NEEDED",
|
|
715
|
-
RehabilitaionNeeded = "REHABILITAION_NEEDED"
|
|
716
|
-
}
|
|
588
|
+
type PropertyCondition = 'BRAND_NEW' | 'GOOD' | 'MEDIUM' | 'REALLY_GOOD' | 'REFRESH_NEEDED' | 'REHABILITAION_NEEDED';
|
|
717
589
|
type PropertyOwner = {
|
|
718
590
|
__typename?: 'PropertyOwner';
|
|
719
591
|
legalNature?: Maybe<LegalNatureOfProperty>;
|
|
@@ -722,26 +594,9 @@ type PropertyOwner = {
|
|
|
722
594
|
property: Property;
|
|
723
595
|
propertyId: Scalars['String']['output'];
|
|
724
596
|
};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
Luxury = "LUXURY",
|
|
729
|
-
Standard = "STANDARD"
|
|
730
|
-
}
|
|
731
|
-
declare enum PropertyStep {
|
|
732
|
-
Archived = "ARCHIVED",
|
|
733
|
-
Draft = "DRAFT",
|
|
734
|
-
Sold = "SOLD",
|
|
735
|
-
UnderCompromise = "UNDER_COMPROMISE",
|
|
736
|
-
UnderMandate = "UNDER_MANDATE"
|
|
737
|
-
}
|
|
738
|
-
declare enum PropertyView {
|
|
739
|
-
Clear = "CLEAR",
|
|
740
|
-
Exceptional = "EXCEPTIONAL",
|
|
741
|
-
Mountains = "MOUNTAINS",
|
|
742
|
-
Overlooked = "OVERLOOKED",
|
|
743
|
-
Sea = "SEA"
|
|
744
|
-
}
|
|
597
|
+
type PropertyStanding = 'BASIC' | 'GOOD' | 'LUXURY' | 'STANDARD';
|
|
598
|
+
type PropertyStep = 'ARCHIVED' | 'DRAFT' | 'SOLD' | 'UNDER_COMPROMISE' | 'UNDER_MANDATE';
|
|
599
|
+
type PropertyView = 'CLEAR' | 'EXCEPTIONAL' | 'MOUNTAINS' | 'OVERLOOKED' | 'SEA';
|
|
745
600
|
type Question = {
|
|
746
601
|
__typename?: 'Question';
|
|
747
602
|
answers: Array<Scalars['String']['output']>;
|
|
@@ -788,31 +643,10 @@ type Renovation = {
|
|
|
788
643
|
roofType?: Maybe<RoofType>;
|
|
789
644
|
step: RenovationStep;
|
|
790
645
|
};
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
WorkCompletedInvoiceSent = "WORK_COMPLETED_INVOICE_SENT",
|
|
796
|
-
WorkInProgress = "WORK_IN_PROGRESS",
|
|
797
|
-
WorkPaid = "WORK_PAID"
|
|
798
|
-
}
|
|
799
|
-
declare enum RequiredFor {
|
|
800
|
-
Diffusion = "DIFFUSION",
|
|
801
|
-
MandateCreation = "MANDATE_CREATION",
|
|
802
|
-
Profile = "PROFILE"
|
|
803
|
-
}
|
|
804
|
-
declare enum Role {
|
|
805
|
-
Admin = "ADMIN",
|
|
806
|
-
Member = "MEMBER",
|
|
807
|
-
Partner = "PARTNER"
|
|
808
|
-
}
|
|
809
|
-
declare enum RoofType {
|
|
810
|
-
FourSlopes = "FOUR_SLOPES",
|
|
811
|
-
LShape = "L_SHAPE",
|
|
812
|
-
OneSlope = "ONE_SLOPE",
|
|
813
|
-
TwoSlopes = "TWO_SLOPES",
|
|
814
|
-
TShape = "T_SHAPE"
|
|
815
|
-
}
|
|
646
|
+
type RenovationStep = 'IN_PREPARATION' | 'PROJECT_SENT_TO_PARTNER' | 'QUOTE_SENT_TO_CLIENT' | 'WORK_COMPLETED_INVOICE_SENT' | 'WORK_IN_PROGRESS' | 'WORK_PAID';
|
|
647
|
+
type RequiredFor = 'DIFFUSION' | 'MANDATE_CREATION' | 'PROFILE';
|
|
648
|
+
type Role = 'ADMIN' | 'MEMBER' | 'PARTNER';
|
|
649
|
+
type RoofType = 'FOUR_SLOPES' | 'L_SHAPE' | 'ONE_SLOPE' | 'TWO_SLOPES' | 'T_SHAPE';
|
|
816
650
|
type SearchFilters = {
|
|
817
651
|
__typename?: 'SearchFilters';
|
|
818
652
|
area: Array<Coordinate>;
|
|
@@ -829,10 +663,7 @@ type SearchFilters = {
|
|
|
829
663
|
services: Array<Scalars['String']['output']>;
|
|
830
664
|
surroundings: Array<Scalars['String']['output']>;
|
|
831
665
|
};
|
|
832
|
-
|
|
833
|
-
Collective = "COLLECTIVE",
|
|
834
|
-
Individual = "INDIVIDUAL"
|
|
835
|
-
}
|
|
666
|
+
type SharingConfiguration = 'COLLECTIVE' | 'INDIVIDUAL';
|
|
836
667
|
type Submitter = {
|
|
837
668
|
__typename?: 'Submitter';
|
|
838
669
|
completed_at?: Maybe<Scalars['DateTime']['output']>;
|
|
@@ -850,12 +681,7 @@ type Submitter = {
|
|
|
850
681
|
status: SubmitterStatus;
|
|
851
682
|
submission_id: Scalars['Int']['output'];
|
|
852
683
|
};
|
|
853
|
-
|
|
854
|
-
Awaiting = "awaiting",
|
|
855
|
-
Completed = "completed",
|
|
856
|
-
Opened = "opened",
|
|
857
|
-
Sent = "sent"
|
|
858
|
-
}
|
|
684
|
+
type SubmitterStatus = 'awaiting' | 'completed' | 'opened' | 'sent';
|
|
859
685
|
type Surface = {
|
|
860
686
|
__typename?: 'Surface';
|
|
861
687
|
area?: Maybe<Scalars['Int']['output']>;
|
|
@@ -908,7 +734,7 @@ type Field<T> = {
|
|
|
908
734
|
condition?: Condition;
|
|
909
735
|
requiredFor?: RequiredFor[];
|
|
910
736
|
props?: Record<string, unknown> & {
|
|
911
|
-
options?: SelectOption[];
|
|
737
|
+
options?: SelectOption<string>[];
|
|
912
738
|
suffix?: string;
|
|
913
739
|
tooltip?: string;
|
|
914
740
|
placeholder?: string;
|
|
@@ -919,8 +745,8 @@ type State = {
|
|
|
919
745
|
[key: string]: boolean;
|
|
920
746
|
};
|
|
921
747
|
type Condition = (state: State) => boolean;
|
|
922
|
-
type SelectOption = {
|
|
923
|
-
value:
|
|
748
|
+
type SelectOption<T extends string> = {
|
|
749
|
+
value: T;
|
|
924
750
|
label: string;
|
|
925
751
|
};
|
|
926
752
|
|
|
@@ -928,7 +754,7 @@ declare const shouldRender: (state: State, condition?: Condition) => boolean;
|
|
|
928
754
|
type GetValueProps = {
|
|
929
755
|
value: unknown;
|
|
930
756
|
name: string;
|
|
931
|
-
options?: SelectOption[];
|
|
757
|
+
options?: SelectOption<string>[];
|
|
932
758
|
suffix?: string;
|
|
933
759
|
};
|
|
934
760
|
declare const getValue: (params: GetValueProps) => string | null;
|
|
@@ -953,39 +779,36 @@ declare const not: (condition: string | Condition) => Condition;
|
|
|
953
779
|
declare const or: (...conditions: (string | Condition)[]) => Condition;
|
|
954
780
|
declare const and: (...conditions: (string | Condition)[]) => Condition;
|
|
955
781
|
|
|
956
|
-
declare const featuresFormFields: Field<Property
|
|
957
|
-
declare const technicalFormFields: Field<Property
|
|
958
|
-
declare const surfacesFormFields: Field<Property
|
|
959
|
-
declare const propertyFields: Field<Property
|
|
782
|
+
declare const featuresFormFields: Field<Partial<Property>>[];
|
|
783
|
+
declare const technicalFormFields: Field<Partial<Property>>[];
|
|
784
|
+
declare const surfacesFormFields: Field<Partial<Property>>[];
|
|
785
|
+
declare const propertyFields: Field<Partial<Property>>[];
|
|
960
786
|
|
|
961
|
-
declare const CONDITIONS: SelectOption[];
|
|
962
|
-
declare const STANDINGS: SelectOption[];
|
|
963
|
-
declare const VIEWS: SelectOption[];
|
|
964
|
-
declare const EXPOSURES: SelectOption[];
|
|
965
|
-
declare const ESTATE_CONDITION: SelectOption[];
|
|
966
|
-
declare const SHARING_CONFIGURATION: SelectOption[];
|
|
967
|
-
declare const LEASE_ESTABLISHMENT: SelectOption[];
|
|
968
|
-
declare const LEASE_TRANSFERT_PERMISSIONS: SelectOption[];
|
|
969
|
-
declare const KITCHEN_TYPE: SelectOption[];
|
|
970
|
-
declare const HEATING_ENERGY: SelectOption[];
|
|
787
|
+
declare const CONDITIONS: SelectOption<PropertyCondition>[];
|
|
788
|
+
declare const STANDINGS: SelectOption<PropertyStanding>[];
|
|
789
|
+
declare const VIEWS: SelectOption<PropertyView>[];
|
|
790
|
+
declare const EXPOSURES: SelectOption<CardinalPoints>[];
|
|
791
|
+
declare const ESTATE_CONDITION: SelectOption<EstateCondition>[];
|
|
792
|
+
declare const SHARING_CONFIGURATION: SelectOption<SharingConfiguration>[];
|
|
793
|
+
declare const LEASE_ESTABLISHMENT: SelectOption<LeaseEstablishment>[];
|
|
794
|
+
declare const LEASE_TRANSFERT_PERMISSIONS: SelectOption<LeaseTransfertPermission>[];
|
|
795
|
+
declare const KITCHEN_TYPE: SelectOption<KitchenType>[];
|
|
796
|
+
declare const HEATING_ENERGY: SelectOption<HeatingEnergy>[];
|
|
971
797
|
|
|
972
798
|
type StateType$1 = Pick<Property, "isForProfessionalUse" | "propertyType" | "isOccupied" | "isCoOwnership" | "isHousingScheme" | "isBusinessAssetsTransfer" | "isLeaseRightsTransfer" | "isCommercialWallsSale" | "isDpeCompleted" | "isEnergyAuditCompleted" | "leaseEstablishedUnder" | "constructionYear">;
|
|
973
799
|
declare const getPropertyState: (property: StateType$1) => State;
|
|
974
800
|
|
|
975
801
|
declare const mandateFormFields: Field<MandateInput>[];
|
|
976
802
|
|
|
977
|
-
declare const MANDATE_EXCLUSIVITY:
|
|
978
|
-
value: MandateExclusivity;
|
|
979
|
-
label: string;
|
|
980
|
-
}[];
|
|
803
|
+
declare const MANDATE_EXCLUSIVITY: SelectOption<MandateExclusivity>[];
|
|
981
804
|
|
|
982
805
|
declare const contactFormFields: Field<Contact>[];
|
|
983
806
|
|
|
984
|
-
declare const GENDER: SelectOption[];
|
|
985
|
-
declare const IDENTIFICATION_DOCUMENTS: SelectOption[];
|
|
986
|
-
declare const LEGAL_NATURE: SelectOption[];
|
|
987
|
-
declare const MARITAL_STATUS: SelectOption[];
|
|
988
|
-
declare const PRENUP_TYPES: SelectOption[];
|
|
807
|
+
declare const GENDER: SelectOption<Gender>[];
|
|
808
|
+
declare const IDENTIFICATION_DOCUMENTS: SelectOption<IdentificationDocument>[];
|
|
809
|
+
declare const LEGAL_NATURE: SelectOption<LegalNatureOfProperty>[];
|
|
810
|
+
declare const MARITAL_STATUS: SelectOption<MaritalStatus>[];
|
|
811
|
+
declare const PRENUP_TYPES: SelectOption<PrenupType>[];
|
|
989
812
|
|
|
990
813
|
type StateType = Pick<Contact, "maritalStatus" | "isLegalEntity">;
|
|
991
814
|
declare const getContactState: (contact: StateType) => State;
|
|
@@ -1025,8 +848,8 @@ declare const COMPANY_INFO: {
|
|
|
1025
848
|
};
|
|
1026
849
|
};
|
|
1027
850
|
|
|
1028
|
-
declare const COUNTRIES: SelectOption[];
|
|
851
|
+
declare const COUNTRIES: SelectOption<string>[];
|
|
1029
852
|
|
|
1030
|
-
declare const LEGAL_STATUS: SelectOption[];
|
|
853
|
+
declare const LEGAL_STATUS: SelectOption<LegalStatus>[];
|
|
1031
854
|
|
|
1032
855
|
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, LEGAL_STATUS, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, contactFormFields, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|