ecotransac-shared-js 1.1.28 → 1.1.31
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/.github/workflows/release-package.yml +1 -1
- package/dist/index.d.mts +104 -8
- package/dist/index.d.ts +104 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _prisma_client from '@prisma/client';
|
|
2
|
+
import { Address as Address$1, Profile as Profile$1, Property as Property$1 } from '@prisma/client';
|
|
2
3
|
|
|
3
4
|
type Maybe<T> = T | null;
|
|
4
5
|
type InputMaybe<T> = Maybe<T>;
|
|
@@ -979,15 +980,15 @@ declare const getLabel: <T>(list: {
|
|
|
979
980
|
value: T;
|
|
980
981
|
label: string;
|
|
981
982
|
}[], value: T) => string | null;
|
|
982
|
-
declare const formatAddress: (address: Pick<Address, "address" | "postalCode" | "locality">) => string;
|
|
983
|
+
declare const formatAddress: (address: Pick<Address$1, "address" | "postalCode" | "locality">) => string;
|
|
983
984
|
declare const formatSeconds: (seconds: number) => string;
|
|
984
985
|
declare const formatDate: (date?: Date | null, withTime?: boolean) => string | null;
|
|
985
986
|
declare const formatPrice: (price: number) => string;
|
|
986
987
|
declare const formatPhone: (phone?: string | null) => string | null;
|
|
987
988
|
declare const formatMandateNumber: (number: number) => string;
|
|
988
989
|
declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
|
|
989
|
-
declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
990
|
-
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomCount" | "livingArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
990
|
+
declare const formatAgentLegalData: (profile?: Pick<Profile$1, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
991
|
+
declare const getPropertyTitle: (property: Pick<Property$1, "propertyType" | "roomCount" | "livingArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
991
992
|
declare const formatNumber: (number?: number | null) => string;
|
|
992
993
|
|
|
993
994
|
declare const only: (condition: string | Condition) => Condition;
|
|
@@ -995,10 +996,105 @@ declare const not: (condition: string | Condition) => Condition;
|
|
|
995
996
|
declare const or: (...conditions: (string | Condition)[]) => Condition;
|
|
996
997
|
declare const and: (...conditions: (string | Condition)[]) => Condition;
|
|
997
998
|
|
|
998
|
-
declare const featuresFormFields: Field<Property>[];
|
|
999
|
-
declare const technicalFormFields: Field<Property>[];
|
|
1000
|
-
declare const surfacesFormFields: Field<Property>[];
|
|
1001
|
-
declare const propertyFields: Field<
|
|
999
|
+
declare const featuresFormFields: Field<Property$1>[];
|
|
1000
|
+
declare const technicalFormFields: Field<Property$1>[];
|
|
1001
|
+
declare const surfacesFormFields: Field<Property$1>[];
|
|
1002
|
+
declare const propertyFields: Field<{
|
|
1003
|
+
isForProfessionalUse: boolean;
|
|
1004
|
+
isCommercialWallsSale: boolean | null;
|
|
1005
|
+
isBusinessAssetsTransfer: boolean | null;
|
|
1006
|
+
isLeaseRightsTransfer: boolean | null;
|
|
1007
|
+
agentId: string;
|
|
1008
|
+
createdAt: Date;
|
|
1009
|
+
id: string;
|
|
1010
|
+
updatedAt: Date | null;
|
|
1011
|
+
propertyType: string;
|
|
1012
|
+
addressId: string;
|
|
1013
|
+
reference: number;
|
|
1014
|
+
estateCondition: _prisma_client.$Enums.EstateCondition;
|
|
1015
|
+
isArchived: boolean;
|
|
1016
|
+
isFurnished: boolean | null;
|
|
1017
|
+
condoFees: number | null;
|
|
1018
|
+
propertyTaxPrice: number | null;
|
|
1019
|
+
interiorCondition: _prisma_client.$Enums.PropertyCondition | null;
|
|
1020
|
+
exteriorCondition: _prisma_client.$Enums.PropertyCondition | null;
|
|
1021
|
+
standing: _prisma_client.$Enums.PropertyStanding | null;
|
|
1022
|
+
hasElevator: boolean | null;
|
|
1023
|
+
isPreparedLand: boolean | null;
|
|
1024
|
+
isServiced: boolean | null;
|
|
1025
|
+
isDemarcated: boolean | null;
|
|
1026
|
+
isBuildable: boolean | null;
|
|
1027
|
+
exposure: _prisma_client.$Enums.CardinalPoints | null;
|
|
1028
|
+
view: _prisma_client.$Enums.PropertyView | null;
|
|
1029
|
+
isIndividualHouse: boolean | null;
|
|
1030
|
+
kitchenType: _prisma_client.$Enums.KitchenType | null;
|
|
1031
|
+
isOccupied: boolean | null;
|
|
1032
|
+
currentLeaseStartDate: Date | null;
|
|
1033
|
+
currentLeaseDuration: number | null;
|
|
1034
|
+
leaseEstablishedUnder: _prisma_client.$Enums.LeaseEstablishment | null;
|
|
1035
|
+
leaseEstablishmentNotaryName: string | null;
|
|
1036
|
+
leaseTransfertPermission: _prisma_client.$Enums.LeaseTransfertPermission | null;
|
|
1037
|
+
brandName: string | null;
|
|
1038
|
+
tradingName: string | null;
|
|
1039
|
+
authorizedActivities: string | null;
|
|
1040
|
+
employeesToHireCount: number | null;
|
|
1041
|
+
currentYearRevenue: number | null;
|
|
1042
|
+
previousYear1Revenue: number | null;
|
|
1043
|
+
previousYear2Revenue: number | null;
|
|
1044
|
+
isCoOwnership: boolean | null;
|
|
1045
|
+
ongoingProcedures: string | null;
|
|
1046
|
+
isHousingScheme: boolean | null;
|
|
1047
|
+
coOwnershipLots: number | null;
|
|
1048
|
+
cadastreReference: string | null;
|
|
1049
|
+
propertyLotsCount: number | null;
|
|
1050
|
+
propertyLotsIdentifiers: string | null;
|
|
1051
|
+
hasRoofing: boolean | null;
|
|
1052
|
+
hasGarden: boolean | null;
|
|
1053
|
+
livingArea: number | null;
|
|
1054
|
+
carrezLawArea: number | null;
|
|
1055
|
+
landArea: number | null;
|
|
1056
|
+
floorLevel: number | null;
|
|
1057
|
+
floorCount: number | null;
|
|
1058
|
+
buildingfloorCount: number | null;
|
|
1059
|
+
roomCount: number | null;
|
|
1060
|
+
parkingSpacesCount: number | null;
|
|
1061
|
+
apartmentsCount: number | null;
|
|
1062
|
+
bathroomsCount: number | null;
|
|
1063
|
+
showerRoomsCount: number | null;
|
|
1064
|
+
toiletsCount: number | null;
|
|
1065
|
+
hasIndependantToilet: boolean | null;
|
|
1066
|
+
balconiesCount: number | null;
|
|
1067
|
+
cellarsCount: number | null;
|
|
1068
|
+
patiosCount: number | null;
|
|
1069
|
+
boxesCount: number | null;
|
|
1070
|
+
transportsSurroundings: string | null;
|
|
1071
|
+
shopsSurroundings: string | null;
|
|
1072
|
+
educationsSurroundings: string | null;
|
|
1073
|
+
healthsSurroundings: string | null;
|
|
1074
|
+
naturalsSurroundings: string | null;
|
|
1075
|
+
leisuresSurroundings: string | null;
|
|
1076
|
+
othersSurroundings: string | null;
|
|
1077
|
+
equipmentServices: string | null;
|
|
1078
|
+
outsideServices: string | null;
|
|
1079
|
+
buildingServices: string | null;
|
|
1080
|
+
securityServices: string | null;
|
|
1081
|
+
sportServices: string | null;
|
|
1082
|
+
otherServices: string | null;
|
|
1083
|
+
isDpeCompleted: boolean | null;
|
|
1084
|
+
isEnergyAuditCompleted: boolean | null;
|
|
1085
|
+
dpeScore: _prisma_client.$Enums.EnergyScore | null;
|
|
1086
|
+
dpeDate: Date | null;
|
|
1087
|
+
gesScore: _prisma_client.$Enums.EnergyScore | null;
|
|
1088
|
+
recommendedWorkCost: number | null;
|
|
1089
|
+
constructionYear: Date | null;
|
|
1090
|
+
renovationYear: Date | null;
|
|
1091
|
+
heatingConfiguration: _prisma_client.$Enums.SharingConfiguration | null;
|
|
1092
|
+
heatingEnergy: _prisma_client.$Enums.HeatingEnergy | null;
|
|
1093
|
+
hasHotWater: boolean | null;
|
|
1094
|
+
hotWaterConfiguration: _prisma_client.$Enums.SharingConfiguration | null;
|
|
1095
|
+
hotWaterSystem: string | null;
|
|
1096
|
+
wastewaterDisposalSystem: string | null;
|
|
1097
|
+
}>[];
|
|
1002
1098
|
|
|
1003
1099
|
declare const CONDITIONS: SelectOption[];
|
|
1004
1100
|
declare const STANDINGS: SelectOption[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _prisma_client from '@prisma/client';
|
|
2
|
+
import { Address as Address$1, Profile as Profile$1, Property as Property$1 } from '@prisma/client';
|
|
2
3
|
|
|
3
4
|
type Maybe<T> = T | null;
|
|
4
5
|
type InputMaybe<T> = Maybe<T>;
|
|
@@ -979,15 +980,15 @@ declare const getLabel: <T>(list: {
|
|
|
979
980
|
value: T;
|
|
980
981
|
label: string;
|
|
981
982
|
}[], value: T) => string | null;
|
|
982
|
-
declare const formatAddress: (address: Pick<Address, "address" | "postalCode" | "locality">) => string;
|
|
983
|
+
declare const formatAddress: (address: Pick<Address$1, "address" | "postalCode" | "locality">) => string;
|
|
983
984
|
declare const formatSeconds: (seconds: number) => string;
|
|
984
985
|
declare const formatDate: (date?: Date | null, withTime?: boolean) => string | null;
|
|
985
986
|
declare const formatPrice: (price: number) => string;
|
|
986
987
|
declare const formatPhone: (phone?: string | null) => string | null;
|
|
987
988
|
declare const formatMandateNumber: (number: number) => string;
|
|
988
989
|
declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
|
|
989
|
-
declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
990
|
-
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomCount" | "livingArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
990
|
+
declare const formatAgentLegalData: (profile?: Pick<Profile$1, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
991
|
+
declare const getPropertyTitle: (property: Pick<Property$1, "propertyType" | "roomCount" | "livingArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
991
992
|
declare const formatNumber: (number?: number | null) => string;
|
|
992
993
|
|
|
993
994
|
declare const only: (condition: string | Condition) => Condition;
|
|
@@ -995,10 +996,105 @@ declare const not: (condition: string | Condition) => Condition;
|
|
|
995
996
|
declare const or: (...conditions: (string | Condition)[]) => Condition;
|
|
996
997
|
declare const and: (...conditions: (string | Condition)[]) => Condition;
|
|
997
998
|
|
|
998
|
-
declare const featuresFormFields: Field<Property>[];
|
|
999
|
-
declare const technicalFormFields: Field<Property>[];
|
|
1000
|
-
declare const surfacesFormFields: Field<Property>[];
|
|
1001
|
-
declare const propertyFields: Field<
|
|
999
|
+
declare const featuresFormFields: Field<Property$1>[];
|
|
1000
|
+
declare const technicalFormFields: Field<Property$1>[];
|
|
1001
|
+
declare const surfacesFormFields: Field<Property$1>[];
|
|
1002
|
+
declare const propertyFields: Field<{
|
|
1003
|
+
isForProfessionalUse: boolean;
|
|
1004
|
+
isCommercialWallsSale: boolean | null;
|
|
1005
|
+
isBusinessAssetsTransfer: boolean | null;
|
|
1006
|
+
isLeaseRightsTransfer: boolean | null;
|
|
1007
|
+
agentId: string;
|
|
1008
|
+
createdAt: Date;
|
|
1009
|
+
id: string;
|
|
1010
|
+
updatedAt: Date | null;
|
|
1011
|
+
propertyType: string;
|
|
1012
|
+
addressId: string;
|
|
1013
|
+
reference: number;
|
|
1014
|
+
estateCondition: _prisma_client.$Enums.EstateCondition;
|
|
1015
|
+
isArchived: boolean;
|
|
1016
|
+
isFurnished: boolean | null;
|
|
1017
|
+
condoFees: number | null;
|
|
1018
|
+
propertyTaxPrice: number | null;
|
|
1019
|
+
interiorCondition: _prisma_client.$Enums.PropertyCondition | null;
|
|
1020
|
+
exteriorCondition: _prisma_client.$Enums.PropertyCondition | null;
|
|
1021
|
+
standing: _prisma_client.$Enums.PropertyStanding | null;
|
|
1022
|
+
hasElevator: boolean | null;
|
|
1023
|
+
isPreparedLand: boolean | null;
|
|
1024
|
+
isServiced: boolean | null;
|
|
1025
|
+
isDemarcated: boolean | null;
|
|
1026
|
+
isBuildable: boolean | null;
|
|
1027
|
+
exposure: _prisma_client.$Enums.CardinalPoints | null;
|
|
1028
|
+
view: _prisma_client.$Enums.PropertyView | null;
|
|
1029
|
+
isIndividualHouse: boolean | null;
|
|
1030
|
+
kitchenType: _prisma_client.$Enums.KitchenType | null;
|
|
1031
|
+
isOccupied: boolean | null;
|
|
1032
|
+
currentLeaseStartDate: Date | null;
|
|
1033
|
+
currentLeaseDuration: number | null;
|
|
1034
|
+
leaseEstablishedUnder: _prisma_client.$Enums.LeaseEstablishment | null;
|
|
1035
|
+
leaseEstablishmentNotaryName: string | null;
|
|
1036
|
+
leaseTransfertPermission: _prisma_client.$Enums.LeaseTransfertPermission | null;
|
|
1037
|
+
brandName: string | null;
|
|
1038
|
+
tradingName: string | null;
|
|
1039
|
+
authorizedActivities: string | null;
|
|
1040
|
+
employeesToHireCount: number | null;
|
|
1041
|
+
currentYearRevenue: number | null;
|
|
1042
|
+
previousYear1Revenue: number | null;
|
|
1043
|
+
previousYear2Revenue: number | null;
|
|
1044
|
+
isCoOwnership: boolean | null;
|
|
1045
|
+
ongoingProcedures: string | null;
|
|
1046
|
+
isHousingScheme: boolean | null;
|
|
1047
|
+
coOwnershipLots: number | null;
|
|
1048
|
+
cadastreReference: string | null;
|
|
1049
|
+
propertyLotsCount: number | null;
|
|
1050
|
+
propertyLotsIdentifiers: string | null;
|
|
1051
|
+
hasRoofing: boolean | null;
|
|
1052
|
+
hasGarden: boolean | null;
|
|
1053
|
+
livingArea: number | null;
|
|
1054
|
+
carrezLawArea: number | null;
|
|
1055
|
+
landArea: number | null;
|
|
1056
|
+
floorLevel: number | null;
|
|
1057
|
+
floorCount: number | null;
|
|
1058
|
+
buildingfloorCount: number | null;
|
|
1059
|
+
roomCount: number | null;
|
|
1060
|
+
parkingSpacesCount: number | null;
|
|
1061
|
+
apartmentsCount: number | null;
|
|
1062
|
+
bathroomsCount: number | null;
|
|
1063
|
+
showerRoomsCount: number | null;
|
|
1064
|
+
toiletsCount: number | null;
|
|
1065
|
+
hasIndependantToilet: boolean | null;
|
|
1066
|
+
balconiesCount: number | null;
|
|
1067
|
+
cellarsCount: number | null;
|
|
1068
|
+
patiosCount: number | null;
|
|
1069
|
+
boxesCount: number | null;
|
|
1070
|
+
transportsSurroundings: string | null;
|
|
1071
|
+
shopsSurroundings: string | null;
|
|
1072
|
+
educationsSurroundings: string | null;
|
|
1073
|
+
healthsSurroundings: string | null;
|
|
1074
|
+
naturalsSurroundings: string | null;
|
|
1075
|
+
leisuresSurroundings: string | null;
|
|
1076
|
+
othersSurroundings: string | null;
|
|
1077
|
+
equipmentServices: string | null;
|
|
1078
|
+
outsideServices: string | null;
|
|
1079
|
+
buildingServices: string | null;
|
|
1080
|
+
securityServices: string | null;
|
|
1081
|
+
sportServices: string | null;
|
|
1082
|
+
otherServices: string | null;
|
|
1083
|
+
isDpeCompleted: boolean | null;
|
|
1084
|
+
isEnergyAuditCompleted: boolean | null;
|
|
1085
|
+
dpeScore: _prisma_client.$Enums.EnergyScore | null;
|
|
1086
|
+
dpeDate: Date | null;
|
|
1087
|
+
gesScore: _prisma_client.$Enums.EnergyScore | null;
|
|
1088
|
+
recommendedWorkCost: number | null;
|
|
1089
|
+
constructionYear: Date | null;
|
|
1090
|
+
renovationYear: Date | null;
|
|
1091
|
+
heatingConfiguration: _prisma_client.$Enums.SharingConfiguration | null;
|
|
1092
|
+
heatingEnergy: _prisma_client.$Enums.HeatingEnergy | null;
|
|
1093
|
+
hasHotWater: boolean | null;
|
|
1094
|
+
hotWaterConfiguration: _prisma_client.$Enums.SharingConfiguration | null;
|
|
1095
|
+
hotWaterSystem: string | null;
|
|
1096
|
+
wastewaterDisposalSystem: string | null;
|
|
1097
|
+
}>[];
|
|
1002
1098
|
|
|
1003
1099
|
declare const CONDITIONS: SelectOption[];
|
|
1004
1100
|
declare const STANDINGS: SelectOption[];
|