ecotransac-shared-js 1.2.2 → 1.2.4

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 CHANGED
@@ -76,7 +76,20 @@ type Advert = {
76
76
  title: Scalars['String']['output'];
77
77
  updatedAt: Scalars['DateTime']['output'];
78
78
  };
79
- type AirConditioningType = 'CLASSIC' | 'INTEGRATED_HEAT_PUMP' | 'NONE';
79
+ type Article = {
80
+ __typename?: 'Article';
81
+ createdAt: Scalars['DateTime']['output'];
82
+ description: Scalars['String']['output'];
83
+ id: Scalars['ID']['output'];
84
+ isAccessible: Scalars['Boolean']['output'];
85
+ isFrontPage: Scalars['Boolean']['output'];
86
+ markdownContent?: Maybe<Scalars['String']['output']>;
87
+ pictureUrl: Scalars['String']['output'];
88
+ title: Scalars['String']['output'];
89
+ videoUrl?: Maybe<Scalars['String']['output']>;
90
+ viewedByUser: Scalars['Boolean']['output'];
91
+ views: Array<UserView>;
92
+ };
80
93
  type Attachment = {
81
94
  __typename?: 'Attachment';
82
95
  author: User;
@@ -356,7 +369,6 @@ type Lesson = {
356
369
  userProgress: Scalars['Int']['output'];
357
370
  };
358
371
  type LessonType = 'ALUR' | 'ENERGY_RENOVATION' | 'TUTORIAL';
359
- type LightingType = 'CLASSIC' | 'LOW_CONSUMPTION' | 'MIXED';
360
372
  type Mandate = {
361
373
  __typename?: 'Mandate';
362
374
  agencyFeePercentage?: Maybe<Scalars['Float']['output']>;
@@ -381,6 +393,8 @@ type Mandate = {
381
393
  isLowPrice: Scalars['Boolean']['output'];
382
394
  leaseRightsPrice?: Maybe<Scalars['Float']['output']>;
383
395
  netOwnerPrice?: Maybe<Scalars['Float']['output']>;
396
+ nonWithdrawalEndDate?: Maybe<Scalars['DateTime']['output']>;
397
+ nonWithdrawalStartDate?: Maybe<Scalars['DateTime']['output']>;
384
398
  /** entity ID */
385
399
  number: Scalars['Int']['output'];
386
400
  property: Property;
@@ -390,20 +404,10 @@ type Mandate = {
390
404
  /** Duration in months */
391
405
  status: MandateStatus;
392
406
  withdrawalDate?: Maybe<Scalars['DateTime']['output']>;
393
- withdrawalStartDate?: Maybe<Scalars['DateTime']['output']>;
394
407
  };
395
408
  type MandateExclusivity = 'EXCLUSIVE' | 'SEMI_EXCLUSIVE' | 'SIMPLE';
396
409
  type MandateStatus = 'AWAITING_AGENT_SIGNATURE' | 'AWAITING_OWNER_SIGNATURE' | 'AWAITING_STAFF_VALIDATION' | 'CANCELED' | 'EXPIRED' | 'PROCESSING' | 'REJECTED' | 'WITHDRAWN';
397
410
  type MaritalStatus = 'CIVIL_PARTNERSHIP' | 'DIVORCED' | 'MARRIED_WITHOUT_PRENUP' | 'MARRIED_WITH_PRENUP' | 'SINGLE' | 'WIDOWED';
398
- type MultimediaUsage = 'INTENSE' | 'LOW' | 'MODERATE';
399
- type Partner = {
400
- __typename?: 'Partner';
401
- id: Scalars['ID']['output'];
402
- isDeleted: Scalars['Boolean']['output'];
403
- name: Scalars['String']['output'];
404
- representative: User;
405
- userId: Scalars['String']['output'];
406
- };
407
411
  type Photo = {
408
412
  __typename?: 'Photo';
409
413
  deletedAt?: Maybe<Scalars['DateTime']['output']>;
@@ -416,9 +420,7 @@ type Photo = {
416
420
  propertyId?: Maybe<Scalars['String']['output']>;
417
421
  url: Scalars['String']['output'];
418
422
  };
419
- type PoolType = 'ABOVE_GROUND' | 'IN_GROUND' | 'NONE' | 'OTHER';
420
423
  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';
421
- type PresenceProfile = 'ALL_DAY' | 'MORNING_EVENING' | 'MORNING_NOON_EVENING';
422
424
  type Product = {
423
425
  __typename?: 'Product';
424
426
  category: Scalars['String']['output'];
@@ -609,44 +611,30 @@ type Renovation = {
609
611
  __typename?: 'Renovation';
610
612
  address: Address;
611
613
  agent: User;
612
- airConditioning?: Maybe<AirConditioningType>;
613
614
  annualElectricityBill?: Maybe<Scalars['Int']['output']>;
614
615
  annualElectricityConsumption?: Maybe<Scalars['Int']['output']>;
615
616
  attachments: Array<Attachment>;
617
+ budget?: Maybe<Scalars['Float']['output']>;
616
618
  comments: Array<Comment>;
619
+ constraints?: Maybe<Scalars['String']['output']>;
620
+ constructionYear?: Maybe<Scalars['DateTime']['output']>;
617
621
  coverPhotoUrl?: Maybe<Scalars['String']['output']>;
618
- exposures?: Maybe<Array<CardinalPoints>>;
619
- hasAmericanFridge?: Maybe<Scalars['Boolean']['output']>;
620
- hasDishwasher?: Maybe<Scalars['Boolean']['output']>;
621
- hasDryer?: Maybe<Scalars['Boolean']['output']>;
622
- hasElectricOven?: Maybe<Scalars['Boolean']['output']>;
623
- hasElectricVehicleCharging?: Maybe<Scalars['Boolean']['output']>;
624
- hasFreezer?: Maybe<Scalars['Boolean']['output']>;
625
- hasFridge?: Maybe<Scalars['Boolean']['output']>;
626
- hasFridgeFreezer?: Maybe<Scalars['Boolean']['output']>;
627
- hasHotPlate?: Maybe<Scalars['Boolean']['output']>;
628
- hasWashingMachine?: Maybe<Scalars['Boolean']['output']>;
622
+ currentDPEScore?: Maybe<EnergyScore>;
623
+ floorCount?: Maybe<Scalars['Int']['output']>;
624
+ hasDPE?: Maybe<Scalars['Boolean']['output']>;
629
625
  heatingEnergy?: Maybe<HeatingEnergy>;
630
- hotWaterEnergy?: Maybe<Scalars['String']['output']>;
631
626
  id: Scalars['ID']['output'];
632
- inhabitantCount?: Maybe<Scalars['Int']['output']>;
633
627
  insulationLevel?: Maybe<InsulationLevel>;
634
- isFullService: Scalars['Boolean']['output'];
635
- isUpgrade: Scalars['Boolean']['output'];
636
- lighting?: Maybe<LightingType>;
628
+ interestedByServices?: Maybe<Scalars['String']['output']>;
637
629
  livingArea?: Maybe<Scalars['Int']['output']>;
638
- multimediaUsage?: Maybe<MultimediaUsage>;
639
630
  owners: Array<Contact>;
640
631
  photos: Array<Photo>;
641
- pool?: Maybe<PoolType>;
642
- presenceProfile?: Maybe<PresenceProfile>;
643
632
  propertyType: Scalars['String']['output'];
644
- roofType?: Maybe<RoofType>;
645
- step: RenovationStep;
633
+ renovationType: RenovationType;
634
+ roomCount?: Maybe<Scalars['Int']['output']>;
646
635
  };
647
- type RenovationStep = 'IN_PREPARATION' | 'PROJECT_SENT_TO_PARTNER' | 'QUOTE_SENT_TO_CLIENT' | 'WORK_COMPLETED_INVOICE_SENT' | 'WORK_IN_PROGRESS' | 'WORK_PAID';
636
+ type RenovationType = 'RENOVATION' | 'UPGRADE';
648
637
  type RequiredFor = 'DIFFUSION' | 'MANDATE_CREATION' | 'PROFILE';
649
- type RoofType = 'FOUR_SLOPES' | 'L_SHAPE' | 'ONE_SLOPE' | 'TWO_SLOPES' | 'T_SHAPE';
650
638
  type SearchFilters = {
651
639
  __typename?: 'SearchFilters';
652
640
  area: Array<Coordinate>;
@@ -707,15 +695,30 @@ type User = {
707
695
  isSubscribed: Scalars['Boolean']['output'];
708
696
  lastLogin: Scalars['DateTime']['output'];
709
697
  lastName: Scalars['String']['output'];
710
- partner?: Maybe<Partner>;
711
698
  profile?: Maybe<Profile>;
712
699
  properties: Array<Property>;
700
+ recentViews: Array<UserView>;
713
701
  renovations: Array<Renovation>;
714
702
  role: UserRole;
715
703
  slug: Scalars['String']['output'];
716
704
  stripePortalUrl?: Maybe<Scalars['String']['output']>;
717
705
  };
718
706
  type UserRole = 'ADMIN' | 'LIFETIME_FREE_MEMBER' | 'MEMBER' | 'PARTNER';
707
+ type UserView = {
708
+ __typename?: 'UserView';
709
+ article?: Maybe<Article>;
710
+ articleId?: Maybe<Scalars['String']['output']>;
711
+ contact?: Maybe<Contact>;
712
+ contactId?: Maybe<Scalars['String']['output']>;
713
+ id: Scalars['ID']['output'];
714
+ lesson?: Maybe<Lesson>;
715
+ lessonId?: Maybe<Scalars['String']['output']>;
716
+ property?: Maybe<Property>;
717
+ propertyId?: Maybe<Scalars['String']['output']>;
718
+ user: User;
719
+ userId: Scalars['String']['output'];
720
+ viewedAt: Scalars['DateTime']['output'];
721
+ };
719
722
 
720
723
  type Field = {
721
724
  name: string;
package/dist/index.d.ts CHANGED
@@ -76,7 +76,20 @@ type Advert = {
76
76
  title: Scalars['String']['output'];
77
77
  updatedAt: Scalars['DateTime']['output'];
78
78
  };
79
- type AirConditioningType = 'CLASSIC' | 'INTEGRATED_HEAT_PUMP' | 'NONE';
79
+ type Article = {
80
+ __typename?: 'Article';
81
+ createdAt: Scalars['DateTime']['output'];
82
+ description: Scalars['String']['output'];
83
+ id: Scalars['ID']['output'];
84
+ isAccessible: Scalars['Boolean']['output'];
85
+ isFrontPage: Scalars['Boolean']['output'];
86
+ markdownContent?: Maybe<Scalars['String']['output']>;
87
+ pictureUrl: Scalars['String']['output'];
88
+ title: Scalars['String']['output'];
89
+ videoUrl?: Maybe<Scalars['String']['output']>;
90
+ viewedByUser: Scalars['Boolean']['output'];
91
+ views: Array<UserView>;
92
+ };
80
93
  type Attachment = {
81
94
  __typename?: 'Attachment';
82
95
  author: User;
@@ -356,7 +369,6 @@ type Lesson = {
356
369
  userProgress: Scalars['Int']['output'];
357
370
  };
358
371
  type LessonType = 'ALUR' | 'ENERGY_RENOVATION' | 'TUTORIAL';
359
- type LightingType = 'CLASSIC' | 'LOW_CONSUMPTION' | 'MIXED';
360
372
  type Mandate = {
361
373
  __typename?: 'Mandate';
362
374
  agencyFeePercentage?: Maybe<Scalars['Float']['output']>;
@@ -381,6 +393,8 @@ type Mandate = {
381
393
  isLowPrice: Scalars['Boolean']['output'];
382
394
  leaseRightsPrice?: Maybe<Scalars['Float']['output']>;
383
395
  netOwnerPrice?: Maybe<Scalars['Float']['output']>;
396
+ nonWithdrawalEndDate?: Maybe<Scalars['DateTime']['output']>;
397
+ nonWithdrawalStartDate?: Maybe<Scalars['DateTime']['output']>;
384
398
  /** entity ID */
385
399
  number: Scalars['Int']['output'];
386
400
  property: Property;
@@ -390,20 +404,10 @@ type Mandate = {
390
404
  /** Duration in months */
391
405
  status: MandateStatus;
392
406
  withdrawalDate?: Maybe<Scalars['DateTime']['output']>;
393
- withdrawalStartDate?: Maybe<Scalars['DateTime']['output']>;
394
407
  };
395
408
  type MandateExclusivity = 'EXCLUSIVE' | 'SEMI_EXCLUSIVE' | 'SIMPLE';
396
409
  type MandateStatus = 'AWAITING_AGENT_SIGNATURE' | 'AWAITING_OWNER_SIGNATURE' | 'AWAITING_STAFF_VALIDATION' | 'CANCELED' | 'EXPIRED' | 'PROCESSING' | 'REJECTED' | 'WITHDRAWN';
397
410
  type MaritalStatus = 'CIVIL_PARTNERSHIP' | 'DIVORCED' | 'MARRIED_WITHOUT_PRENUP' | 'MARRIED_WITH_PRENUP' | 'SINGLE' | 'WIDOWED';
398
- type MultimediaUsage = 'INTENSE' | 'LOW' | 'MODERATE';
399
- type Partner = {
400
- __typename?: 'Partner';
401
- id: Scalars['ID']['output'];
402
- isDeleted: Scalars['Boolean']['output'];
403
- name: Scalars['String']['output'];
404
- representative: User;
405
- userId: Scalars['String']['output'];
406
- };
407
411
  type Photo = {
408
412
  __typename?: 'Photo';
409
413
  deletedAt?: Maybe<Scalars['DateTime']['output']>;
@@ -416,9 +420,7 @@ type Photo = {
416
420
  propertyId?: Maybe<Scalars['String']['output']>;
417
421
  url: Scalars['String']['output'];
418
422
  };
419
- type PoolType = 'ABOVE_GROUND' | 'IN_GROUND' | 'NONE' | 'OTHER';
420
423
  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';
421
- type PresenceProfile = 'ALL_DAY' | 'MORNING_EVENING' | 'MORNING_NOON_EVENING';
422
424
  type Product = {
423
425
  __typename?: 'Product';
424
426
  category: Scalars['String']['output'];
@@ -609,44 +611,30 @@ type Renovation = {
609
611
  __typename?: 'Renovation';
610
612
  address: Address;
611
613
  agent: User;
612
- airConditioning?: Maybe<AirConditioningType>;
613
614
  annualElectricityBill?: Maybe<Scalars['Int']['output']>;
614
615
  annualElectricityConsumption?: Maybe<Scalars['Int']['output']>;
615
616
  attachments: Array<Attachment>;
617
+ budget?: Maybe<Scalars['Float']['output']>;
616
618
  comments: Array<Comment>;
619
+ constraints?: Maybe<Scalars['String']['output']>;
620
+ constructionYear?: Maybe<Scalars['DateTime']['output']>;
617
621
  coverPhotoUrl?: Maybe<Scalars['String']['output']>;
618
- exposures?: Maybe<Array<CardinalPoints>>;
619
- hasAmericanFridge?: Maybe<Scalars['Boolean']['output']>;
620
- hasDishwasher?: Maybe<Scalars['Boolean']['output']>;
621
- hasDryer?: Maybe<Scalars['Boolean']['output']>;
622
- hasElectricOven?: Maybe<Scalars['Boolean']['output']>;
623
- hasElectricVehicleCharging?: Maybe<Scalars['Boolean']['output']>;
624
- hasFreezer?: Maybe<Scalars['Boolean']['output']>;
625
- hasFridge?: Maybe<Scalars['Boolean']['output']>;
626
- hasFridgeFreezer?: Maybe<Scalars['Boolean']['output']>;
627
- hasHotPlate?: Maybe<Scalars['Boolean']['output']>;
628
- hasWashingMachine?: Maybe<Scalars['Boolean']['output']>;
622
+ currentDPEScore?: Maybe<EnergyScore>;
623
+ floorCount?: Maybe<Scalars['Int']['output']>;
624
+ hasDPE?: Maybe<Scalars['Boolean']['output']>;
629
625
  heatingEnergy?: Maybe<HeatingEnergy>;
630
- hotWaterEnergy?: Maybe<Scalars['String']['output']>;
631
626
  id: Scalars['ID']['output'];
632
- inhabitantCount?: Maybe<Scalars['Int']['output']>;
633
627
  insulationLevel?: Maybe<InsulationLevel>;
634
- isFullService: Scalars['Boolean']['output'];
635
- isUpgrade: Scalars['Boolean']['output'];
636
- lighting?: Maybe<LightingType>;
628
+ interestedByServices?: Maybe<Scalars['String']['output']>;
637
629
  livingArea?: Maybe<Scalars['Int']['output']>;
638
- multimediaUsage?: Maybe<MultimediaUsage>;
639
630
  owners: Array<Contact>;
640
631
  photos: Array<Photo>;
641
- pool?: Maybe<PoolType>;
642
- presenceProfile?: Maybe<PresenceProfile>;
643
632
  propertyType: Scalars['String']['output'];
644
- roofType?: Maybe<RoofType>;
645
- step: RenovationStep;
633
+ renovationType: RenovationType;
634
+ roomCount?: Maybe<Scalars['Int']['output']>;
646
635
  };
647
- type RenovationStep = 'IN_PREPARATION' | 'PROJECT_SENT_TO_PARTNER' | 'QUOTE_SENT_TO_CLIENT' | 'WORK_COMPLETED_INVOICE_SENT' | 'WORK_IN_PROGRESS' | 'WORK_PAID';
636
+ type RenovationType = 'RENOVATION' | 'UPGRADE';
648
637
  type RequiredFor = 'DIFFUSION' | 'MANDATE_CREATION' | 'PROFILE';
649
- type RoofType = 'FOUR_SLOPES' | 'L_SHAPE' | 'ONE_SLOPE' | 'TWO_SLOPES' | 'T_SHAPE';
650
638
  type SearchFilters = {
651
639
  __typename?: 'SearchFilters';
652
640
  area: Array<Coordinate>;
@@ -707,15 +695,30 @@ type User = {
707
695
  isSubscribed: Scalars['Boolean']['output'];
708
696
  lastLogin: Scalars['DateTime']['output'];
709
697
  lastName: Scalars['String']['output'];
710
- partner?: Maybe<Partner>;
711
698
  profile?: Maybe<Profile>;
712
699
  properties: Array<Property>;
700
+ recentViews: Array<UserView>;
713
701
  renovations: Array<Renovation>;
714
702
  role: UserRole;
715
703
  slug: Scalars['String']['output'];
716
704
  stripePortalUrl?: Maybe<Scalars['String']['output']>;
717
705
  };
718
706
  type UserRole = 'ADMIN' | 'LIFETIME_FREE_MEMBER' | 'MEMBER' | 'PARTNER';
707
+ type UserView = {
708
+ __typename?: 'UserView';
709
+ article?: Maybe<Article>;
710
+ articleId?: Maybe<Scalars['String']['output']>;
711
+ contact?: Maybe<Contact>;
712
+ contactId?: Maybe<Scalars['String']['output']>;
713
+ id: Scalars['ID']['output'];
714
+ lesson?: Maybe<Lesson>;
715
+ lessonId?: Maybe<Scalars['String']['output']>;
716
+ property?: Maybe<Property>;
717
+ propertyId?: Maybe<Scalars['String']['output']>;
718
+ user: User;
719
+ userId: Scalars['String']['output'];
720
+ viewedAt: Scalars['DateTime']['output'];
721
+ };
719
722
 
720
723
  type Field = {
721
724
  name: string;
package/dist/index.js CHANGED
@@ -859,7 +859,7 @@ var featuresFormFields = [
859
859
  },
860
860
  {
861
861
  name: "leaseTransfertPermission",
862
- fieldType: "text",
862
+ fieldType: "select",
863
863
  label: "Autorisation de cession par le bailleur",
864
864
  condition: and(only("isForProfessionalUse"), only("isLeaseRightsTransfer")),
865
865
  props: { options: LEASE_TRANSFERT_PERMISSIONS },
@@ -1315,9 +1315,12 @@ var mandateFormFields = [
1315
1315
  {
1316
1316
  name: "netOwnerPrice",
1317
1317
  fieldType: "number",
1318
- label: "Prix de vente",
1318
+ label: "Prix de vente net vendeur",
1319
1319
  requiredFor: ["MANDATE_CREATION"],
1320
- props: { suffix: "\u20AC net vendeur" }
1320
+ props: {
1321
+ suffix: "\u20AC net vendeur",
1322
+ tooltip: "Si vous connaissez le prix FAI que vous souhaitez obtenir, divisez ce prix par 1,05 (pour 5%) pour obtenir le prix net vendeur. Exemple : 100 000\u20AC FAI = 95 238\u20AC net vendeur (100 000 / 1,05)"
1323
+ }
1321
1324
  },
1322
1325
  {
1323
1326
  name: "agencyFeePercentage",
package/dist/index.mjs CHANGED
@@ -774,7 +774,7 @@ var featuresFormFields = [
774
774
  },
775
775
  {
776
776
  name: "leaseTransfertPermission",
777
- fieldType: "text",
777
+ fieldType: "select",
778
778
  label: "Autorisation de cession par le bailleur",
779
779
  condition: and(only("isForProfessionalUse"), only("isLeaseRightsTransfer")),
780
780
  props: { options: LEASE_TRANSFERT_PERMISSIONS },
@@ -1230,9 +1230,12 @@ var mandateFormFields = [
1230
1230
  {
1231
1231
  name: "netOwnerPrice",
1232
1232
  fieldType: "number",
1233
- label: "Prix de vente",
1233
+ label: "Prix de vente net vendeur",
1234
1234
  requiredFor: ["MANDATE_CREATION"],
1235
- props: { suffix: "\u20AC net vendeur" }
1235
+ props: {
1236
+ suffix: "\u20AC net vendeur",
1237
+ tooltip: "Si vous connaissez le prix FAI que vous souhaitez obtenir, divisez ce prix par 1,05 (pour 5%) pour obtenir le prix net vendeur. Exemple : 100 000\u20AC FAI = 95 238\u20AC net vendeur (100 000 / 1,05)"
1238
+ }
1236
1239
  },
1237
1240
  {
1238
1241
  name: "agencyFeePercentage",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecotransac-shared-js",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "modules": "dist/index.mjs",