ecotransac-shared-js 1.1.58 → 1.1.59

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
@@ -337,7 +337,7 @@ type LegalNatureOfProperty =
337
337
  | 'FULL_OWNERSHIP'
338
338
  /** Usufruitier */
339
339
  | 'USUFRUCTUARY';
340
- type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | 'SCA' | 'SCS' | 'SNC';
340
+ type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | 'SCI' | 'SCS' | 'SNC';
341
341
  type Lesson = {
342
342
  __typename?: 'Lesson';
343
343
  chapters: Array<Chapter>;
@@ -362,36 +362,37 @@ type LightingType = 'CLASSIC' | 'LOW_CONSUMPTION' | 'MIXED';
362
362
  type Mandate = {
363
363
  __typename?: 'Mandate';
364
364
  agencyFeePercentage?: Maybe<Scalars['Float']['output']>;
365
- agencyFees?: Maybe<Scalars['Float']['output']>;
365
+ agencyFees: Scalars['Float']['output'];
366
366
  agent: User;
367
367
  agentId: Scalars['String']['output'];
368
- agentRemuneration?: Maybe<Scalars['Float']['output']>;
368
+ agentRemuneration: Scalars['Float']['output'];
369
369
  attachment: Attachment;
370
370
  attachmentId: Scalars['String']['output'];
371
371
  businessAssetsPrice?: Maybe<Scalars['Float']['output']>;
372
372
  cancelledAt?: Maybe<Scalars['DateTime']['output']>;
373
373
  createdAt: Scalars['DateTime']['output'];
374
- displayedPrice?: Maybe<Scalars['Float']['output']>;
374
+ displayedPrice: Scalars['Float']['output'];
375
375
  exclusivity: MandateExclusivity;
376
- expirationDate: Scalars['DateTime']['output'];
377
- id: Scalars['ID']['output'];
376
+ expirationDate?: Maybe<Scalars['DateTime']['output']>;
378
377
  isActive: Scalars['Boolean']['output'];
379
378
  isBusinessAssetsTransfer?: Maybe<Scalars['Boolean']['output']>;
380
379
  isCommercialWallsSale?: Maybe<Scalars['Boolean']['output']>;
381
- isExclusive?: Maybe<Scalars['Boolean']['output']>;
380
+ isExclusive: Scalars['Boolean']['output'];
382
381
  isForProfessionalUse: Scalars['Boolean']['output'];
383
382
  isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
384
- isLowPrice?: Maybe<Scalars['Boolean']['output']>;
383
+ isLowPrice: Scalars['Boolean']['output'];
385
384
  leaseRightsPrice?: Maybe<Scalars['Float']['output']>;
386
385
  netOwnerPrice?: Maybe<Scalars['Float']['output']>;
386
+ /** entity ID */
387
387
  number: Scalars['Int']['output'];
388
388
  property: Property;
389
389
  propertyId: Scalars['String']['output'];
390
390
  rejectionReason?: Maybe<Scalars['String']['output']>;
391
+ startDate?: Maybe<Scalars['DateTime']['output']>;
391
392
  /** Duration in months */
392
393
  status: MandateStatus;
393
- transactionPrice?: Maybe<Scalars['Float']['output']>;
394
394
  withdrawalDate?: Maybe<Scalars['DateTime']['output']>;
395
+ withdrawalStartDate?: Maybe<Scalars['DateTime']['output']>;
395
396
  };
396
397
  type MandateExclusivity = 'EXCLUSIVE' | 'SEMI_EXCLUSIVE' | 'SIMPLE';
397
398
  type MandateStatus = 'AWAITING_AGENT_SIGNATURE' | 'AWAITING_OWNER_SIGNATURE' | 'AWAITING_STAFF_VALIDATION' | 'CANCELED' | 'EXPIRED' | 'PROCESSING' | 'REJECTED' | 'WITHDRAWN';
@@ -544,7 +545,6 @@ type Property = {
544
545
  isIndividualHouse?: Maybe<Scalars['Boolean']['output']>;
545
546
  isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
546
547
  isOccupied?: Maybe<Scalars['Boolean']['output']>;
547
- isPreparedLand?: Maybe<Scalars['Boolean']['output']>;
548
548
  isServiced?: Maybe<Scalars['Boolean']['output']>;
549
549
  kitchenType?: Maybe<KitchenType>;
550
550
  landArea?: Maybe<Scalars['Int']['output']>;
@@ -554,6 +554,7 @@ type Property = {
554
554
  leaseTransfertPermission?: Maybe<LeaseTransfertPermission>;
555
555
  leisuresSurroundings?: Maybe<Scalars['String']['output']>;
556
556
  livingArea?: Maybe<Scalars['Int']['output']>;
557
+ mandates: Array<Mandate>;
557
558
  naturalsSurroundings?: Maybe<Scalars['String']['output']>;
558
559
  ongoingProcedures?: Maybe<Scalars['String']['output']>;
559
560
  otherServices?: Maybe<Scalars['String']['output']>;
@@ -569,11 +570,12 @@ type Property = {
569
570
  propertyLotsCount?: Maybe<Scalars['Int']['output']>;
570
571
  propertyLotsIdentifiers?: Maybe<Scalars['String']['output']>;
571
572
  propertyTaxPrice?: Maybe<Scalars['Float']['output']>;
573
+ propertyTitleNotaryInfo?: Maybe<Scalars['String']['output']>;
572
574
  propertyType: Scalars['String']['output'];
573
575
  recommendedWorkCost?: Maybe<Scalars['Float']['output']>;
574
576
  reference: Scalars['Int']['output'];
575
577
  renovationYear?: Maybe<Scalars['DateTime']['output']>;
576
- roomCount?: Maybe<Scalars['Int']['output']>;
578
+ roomOrApartmentsCount?: Maybe<Scalars['Int']['output']>;
577
579
  securityServices?: Maybe<Scalars['String']['output']>;
578
580
  shopsSurroundings?: Maybe<Scalars['String']['output']>;
579
581
  showerRoomsCount?: Maybe<Scalars['Int']['output']>;
@@ -763,7 +765,7 @@ declare const formatPhone: (phone?: string | null) => string | null;
763
765
  declare const formatMandateNumber: (number: number) => string;
764
766
  declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
765
767
  declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
766
- declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomCount" | "carrezLawArea" | "isForProfessionalUse" | "floorLevel">) => string;
768
+ declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomOrApartmentsCount" | "carrezLawArea" | "isForProfessionalUse" | "floorLevel">) => string;
767
769
  declare const formatNumber: (number?: number | null) => string;
768
770
 
769
771
  declare const only: (condition: string | Condition) => Condition;
package/dist/index.d.ts CHANGED
@@ -337,7 +337,7 @@ type LegalNatureOfProperty =
337
337
  | 'FULL_OWNERSHIP'
338
338
  /** Usufruitier */
339
339
  | 'USUFRUCTUARY';
340
- type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | 'SCA' | 'SCS' | 'SNC';
340
+ type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | 'SCI' | 'SCS' | 'SNC';
341
341
  type Lesson = {
342
342
  __typename?: 'Lesson';
343
343
  chapters: Array<Chapter>;
@@ -362,36 +362,37 @@ type LightingType = 'CLASSIC' | 'LOW_CONSUMPTION' | 'MIXED';
362
362
  type Mandate = {
363
363
  __typename?: 'Mandate';
364
364
  agencyFeePercentage?: Maybe<Scalars['Float']['output']>;
365
- agencyFees?: Maybe<Scalars['Float']['output']>;
365
+ agencyFees: Scalars['Float']['output'];
366
366
  agent: User;
367
367
  agentId: Scalars['String']['output'];
368
- agentRemuneration?: Maybe<Scalars['Float']['output']>;
368
+ agentRemuneration: Scalars['Float']['output'];
369
369
  attachment: Attachment;
370
370
  attachmentId: Scalars['String']['output'];
371
371
  businessAssetsPrice?: Maybe<Scalars['Float']['output']>;
372
372
  cancelledAt?: Maybe<Scalars['DateTime']['output']>;
373
373
  createdAt: Scalars['DateTime']['output'];
374
- displayedPrice?: Maybe<Scalars['Float']['output']>;
374
+ displayedPrice: Scalars['Float']['output'];
375
375
  exclusivity: MandateExclusivity;
376
- expirationDate: Scalars['DateTime']['output'];
377
- id: Scalars['ID']['output'];
376
+ expirationDate?: Maybe<Scalars['DateTime']['output']>;
378
377
  isActive: Scalars['Boolean']['output'];
379
378
  isBusinessAssetsTransfer?: Maybe<Scalars['Boolean']['output']>;
380
379
  isCommercialWallsSale?: Maybe<Scalars['Boolean']['output']>;
381
- isExclusive?: Maybe<Scalars['Boolean']['output']>;
380
+ isExclusive: Scalars['Boolean']['output'];
382
381
  isForProfessionalUse: Scalars['Boolean']['output'];
383
382
  isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
384
- isLowPrice?: Maybe<Scalars['Boolean']['output']>;
383
+ isLowPrice: Scalars['Boolean']['output'];
385
384
  leaseRightsPrice?: Maybe<Scalars['Float']['output']>;
386
385
  netOwnerPrice?: Maybe<Scalars['Float']['output']>;
386
+ /** entity ID */
387
387
  number: Scalars['Int']['output'];
388
388
  property: Property;
389
389
  propertyId: Scalars['String']['output'];
390
390
  rejectionReason?: Maybe<Scalars['String']['output']>;
391
+ startDate?: Maybe<Scalars['DateTime']['output']>;
391
392
  /** Duration in months */
392
393
  status: MandateStatus;
393
- transactionPrice?: Maybe<Scalars['Float']['output']>;
394
394
  withdrawalDate?: Maybe<Scalars['DateTime']['output']>;
395
+ withdrawalStartDate?: Maybe<Scalars['DateTime']['output']>;
395
396
  };
396
397
  type MandateExclusivity = 'EXCLUSIVE' | 'SEMI_EXCLUSIVE' | 'SIMPLE';
397
398
  type MandateStatus = 'AWAITING_AGENT_SIGNATURE' | 'AWAITING_OWNER_SIGNATURE' | 'AWAITING_STAFF_VALIDATION' | 'CANCELED' | 'EXPIRED' | 'PROCESSING' | 'REJECTED' | 'WITHDRAWN';
@@ -544,7 +545,6 @@ type Property = {
544
545
  isIndividualHouse?: Maybe<Scalars['Boolean']['output']>;
545
546
  isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
546
547
  isOccupied?: Maybe<Scalars['Boolean']['output']>;
547
- isPreparedLand?: Maybe<Scalars['Boolean']['output']>;
548
548
  isServiced?: Maybe<Scalars['Boolean']['output']>;
549
549
  kitchenType?: Maybe<KitchenType>;
550
550
  landArea?: Maybe<Scalars['Int']['output']>;
@@ -554,6 +554,7 @@ type Property = {
554
554
  leaseTransfertPermission?: Maybe<LeaseTransfertPermission>;
555
555
  leisuresSurroundings?: Maybe<Scalars['String']['output']>;
556
556
  livingArea?: Maybe<Scalars['Int']['output']>;
557
+ mandates: Array<Mandate>;
557
558
  naturalsSurroundings?: Maybe<Scalars['String']['output']>;
558
559
  ongoingProcedures?: Maybe<Scalars['String']['output']>;
559
560
  otherServices?: Maybe<Scalars['String']['output']>;
@@ -569,11 +570,12 @@ type Property = {
569
570
  propertyLotsCount?: Maybe<Scalars['Int']['output']>;
570
571
  propertyLotsIdentifiers?: Maybe<Scalars['String']['output']>;
571
572
  propertyTaxPrice?: Maybe<Scalars['Float']['output']>;
573
+ propertyTitleNotaryInfo?: Maybe<Scalars['String']['output']>;
572
574
  propertyType: Scalars['String']['output'];
573
575
  recommendedWorkCost?: Maybe<Scalars['Float']['output']>;
574
576
  reference: Scalars['Int']['output'];
575
577
  renovationYear?: Maybe<Scalars['DateTime']['output']>;
576
- roomCount?: Maybe<Scalars['Int']['output']>;
578
+ roomOrApartmentsCount?: Maybe<Scalars['Int']['output']>;
577
579
  securityServices?: Maybe<Scalars['String']['output']>;
578
580
  shopsSurroundings?: Maybe<Scalars['String']['output']>;
579
581
  showerRoomsCount?: Maybe<Scalars['Int']['output']>;
@@ -763,7 +765,7 @@ declare const formatPhone: (phone?: string | null) => string | null;
763
765
  declare const formatMandateNumber: (number: number) => string;
764
766
  declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
765
767
  declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
766
- declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomCount" | "carrezLawArea" | "isForProfessionalUse" | "floorLevel">) => string;
768
+ declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomOrApartmentsCount" | "carrezLawArea" | "isForProfessionalUse" | "floorLevel">) => string;
767
769
  declare const formatNumber: (number?: number | null) => string;
768
770
 
769
771
  declare const only: (condition: string | Condition) => Condition;
package/dist/index.js CHANGED
@@ -454,7 +454,10 @@ var getPropertyTitle = (property) => {
454
454
  if (!property) return "";
455
455
  const base = `${property.propertyType}${property.isForProfessionalUse ? " professionnel" : ""} \xE0 vendre`;
456
456
  const infos = [base];
457
- if (property.roomCount) infos.push(`${property.roomCount} pi\xE8ces`);
457
+ if (property.roomOrApartmentsCount)
458
+ infos.push(
459
+ `${property.roomOrApartmentsCount} ${property.propertyType === "Immeuble" ? "appartements" : "pi\xE8ces"}`
460
+ );
458
461
  if (property.floorLevel) {
459
462
  const floorLabel = property.floorLevel === 1 ? "er" : "\xE8me";
460
463
  infos.push(`${property.floorLevel}${floorLabel} \xE9tage`);
@@ -1115,7 +1118,7 @@ var surfacesFormFields = [
1115
1118
  requiredFor: ["MANDATE_CREATION", "DIFFUSION"]
1116
1119
  },
1117
1120
  {
1118
- name: "roomCount",
1121
+ name: "roomOrApartmentsCount",
1119
1122
  fieldType: "number",
1120
1123
  label: "Nombre de pi\xE8ce(s)",
1121
1124
  condition: and(
@@ -1130,7 +1133,7 @@ var surfacesFormFields = [
1130
1133
  }
1131
1134
  },
1132
1135
  {
1133
- name: "roomCount",
1136
+ name: "roomOrApartmentsCount",
1134
1137
  fieldType: "number",
1135
1138
  label: "Nombre de pi\xE8ce(s)",
1136
1139
  condition: only("isForProfessionalUse"),
@@ -1140,7 +1143,7 @@ var surfacesFormFields = [
1140
1143
  }
1141
1144
  },
1142
1145
  {
1143
- name: "roomCount",
1146
+ name: "roomOrApartmentsCount",
1144
1147
  fieldType: "number",
1145
1148
  label: "Nombre de logement(s)",
1146
1149
  condition: only("isBuilding"),
@@ -1446,7 +1449,7 @@ var LEGAL_STATUS = [
1446
1449
  { value: "SA", label: "SA" },
1447
1450
  { value: "SNC", label: "SNC" },
1448
1451
  { value: "SCS", label: "SCS" },
1449
- { value: "SCA", label: "SCA" }
1452
+ { value: "SCI", label: "SCI" }
1450
1453
  ];
1451
1454
 
1452
1455
  // src/static/contact/select-options.ts
package/dist/index.mjs CHANGED
@@ -368,7 +368,10 @@ var getPropertyTitle = (property) => {
368
368
  if (!property) return "";
369
369
  const base = `${property.propertyType}${property.isForProfessionalUse ? " professionnel" : ""} \xE0 vendre`;
370
370
  const infos = [base];
371
- if (property.roomCount) infos.push(`${property.roomCount} pi\xE8ces`);
371
+ if (property.roomOrApartmentsCount)
372
+ infos.push(
373
+ `${property.roomOrApartmentsCount} ${property.propertyType === "Immeuble" ? "appartements" : "pi\xE8ces"}`
374
+ );
372
375
  if (property.floorLevel) {
373
376
  const floorLabel = property.floorLevel === 1 ? "er" : "\xE8me";
374
377
  infos.push(`${property.floorLevel}${floorLabel} \xE9tage`);
@@ -1029,7 +1032,7 @@ var surfacesFormFields = [
1029
1032
  requiredFor: ["MANDATE_CREATION", "DIFFUSION"]
1030
1033
  },
1031
1034
  {
1032
- name: "roomCount",
1035
+ name: "roomOrApartmentsCount",
1033
1036
  fieldType: "number",
1034
1037
  label: "Nombre de pi\xE8ce(s)",
1035
1038
  condition: and(
@@ -1044,7 +1047,7 @@ var surfacesFormFields = [
1044
1047
  }
1045
1048
  },
1046
1049
  {
1047
- name: "roomCount",
1050
+ name: "roomOrApartmentsCount",
1048
1051
  fieldType: "number",
1049
1052
  label: "Nombre de pi\xE8ce(s)",
1050
1053
  condition: only("isForProfessionalUse"),
@@ -1054,7 +1057,7 @@ var surfacesFormFields = [
1054
1057
  }
1055
1058
  },
1056
1059
  {
1057
- name: "roomCount",
1060
+ name: "roomOrApartmentsCount",
1058
1061
  fieldType: "number",
1059
1062
  label: "Nombre de logement(s)",
1060
1063
  condition: only("isBuilding"),
@@ -1360,7 +1363,7 @@ var LEGAL_STATUS = [
1360
1363
  { value: "SA", label: "SA" },
1361
1364
  { value: "SNC", label: "SNC" },
1362
1365
  { value: "SCS", label: "SCS" },
1363
- { value: "SCA", label: "SCA" }
1366
+ { value: "SCI", label: "SCI" }
1364
1367
  ];
1365
1368
 
1366
1369
  // src/static/contact/select-options.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecotransac-shared-js",
3
- "version": "1.1.58",
3
+ "version": "1.1.59",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "modules": "dist/index.mjs",