@bpd-library/utilities 1.2.2 → 1.2.3-beta.0

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.
@@ -1,5 +1,5 @@
1
1
  import { TEST_GEOMETRY } from '../geometry/geometry.test';
2
- import { composeExcludeString } from './compose-exclude-string';
2
+ import { composeIncludeString } from './compose-include-string';
3
3
  import { mergeDecimalRange } from './decimal-range/merge-decimal-range';
4
4
  import { mergeConstructionNumberSpecification, mergePropertySpecification, } from './decimal-range/merge-specification-range';
5
5
  import { getApiObjectCenter, getApiObjectCoordinates } from './get/coordinates';
@@ -114,8 +114,8 @@ describe('Api utilities', function () {
114
114
  it('Get center when no location is set, but geometry is', function () {
115
115
  expect(getApiObjectCenter(propertyTypes[0])).toEqual([[TEST_GEOMETRY.center]]);
116
116
  });
117
- it('Compose api exclude string', function () {
118
- expect(composeExcludeString(['geometry', 'cityName', 'areaProjectId'])).toBe('geometry,cityName,areaProjectId');
117
+ it('Compose api include string', function () {
118
+ expect(composeIncludeString(['geometry', 'mainImage', 'areaProjectId'])).toBe('geometry,mainImage,areaProjectId');
119
119
  });
120
120
  it('Returns if price should be shown or not', function () {
121
121
  expect(showPrice({ constructionNumber: constructionNumbers[0] })).toBe(true);
@@ -1 +1 @@
1
- {"version":3,"file":"api-utilities.test.js","sourceRoot":"","sources":["../../src/api-utilities/api-utilities.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EACH,oCAAoC,EACpC,0BAA0B,GAC7B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,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ProjectPhaseModel, PropertyTypeModel } from '@/generated';\n\nimport { TEST_GEOMETRY } from '../geometry/geometry.test';\nimport { ExtendedConstructionNumber } from './api-utilities.types';\nimport { composeExcludeString } from './compose-exclude-string';\nimport { mergeDecimalRange } from './decimal-range/merge-decimal-range';\nimport {\n mergeConstructionNumberSpecification,\n mergePropertySpecification,\n} from './decimal-range/merge-specification-range';\nimport { getApiObjectCenter, getApiObjectCoordinates } from './get/coordinates';\nimport { showPrice } from './show-price';\n\nconst propertyTypes: PropertyTypeModel[] = [\n {\n id: '1',\n geometry: TEST_GEOMETRY.apiGeometry,\n specifications: {\n bedrooms: {\n from: 5,\n to: 10,\n },\n },\n },\n {\n id: '2',\n specifications: {\n bedrooms: {\n from: 1,\n },\n },\n },\n {\n id: '3',\n specifications: {\n bedrooms: {\n from: 6,\n to: 11,\n },\n },\n },\n];\n\nconst projectPhases: ProjectPhaseModel[] = [\n {\n id: '1',\n location: TEST_GEOMETRY.center,\n propertySpecifications: {\n plotArea: {\n from: 5,\n },\n },\n },\n {\n id: '2',\n propertySpecifications: {\n plotArea: {\n from: 20,\n },\n },\n },\n];\n\nconst constructionNumbers: ExtendedConstructionNumber[] = [\n {\n id: '1',\n specifications: {\n rooms: {\n from: 5,\n to: 11,\n },\n },\n geometry: TEST_GEOMETRY.apiGeometry,\n status: 'InOption',\n objectType: 'constructionNumber',\n },\n {\n id: '2',\n specifications: {\n rooms: {\n from: 20,\n to: 30,\n },\n },\n status: 'Sold',\n objectType: 'constructionNumber',\n },\n];\n\ndescribe('Api utilities', function () {\n it('Expect propertyType specification to be merged', function () {\n expect(mergePropertySpecification({ propertyTypes }, 'bedrooms')).toEqual({\n from: 1,\n to: 11,\n });\n });\n\n it('Expect projectPhase specification to be merged', function () {\n expect(mergePropertySpecification({ projectPhases }, 'plotArea')).toEqual({\n from: 5,\n to: 20,\n });\n });\n\n it('Expect construction number specification to be merged', function () {\n expect(mergeConstructionNumberSpecification(constructionNumbers, 'rooms')).toEqual({\n from: 5,\n to: 30,\n });\n });\n\n it('Expect decimal range to be merged', function () {\n expect(mergeDecimalRange({ from: 0 }, { to: 5 })).toEqual({ from: 0, to: 5 });\n expect(mergeDecimalRange({}, {})).toEqual({});\n });\n\n it('Get coordinates from apiObject', function () {\n expect(getApiObjectCoordinates(constructionNumbers[0])).toEqual(TEST_GEOMETRY.coordinates);\n\n expect(getApiObjectCoordinates(constructionNumbers[1])).toBe(undefined);\n });\n\n it('Get center when location is set', function () {\n expect(getApiObjectCenter(projectPhases[0])).toEqual([[TEST_GEOMETRY.center]]);\n expect(getApiObjectCenter(projectPhases[1])).toBe(false);\n });\n\n it('Get center as Coordinate when location is set', function () {\n expect(getApiObjectCenter(projectPhases[0], { as: 'coordinate' })).toEqual(\n TEST_GEOMETRY.center,\n );\n });\n\n it('Get center when no location is set, but geometry is', function () {\n expect(getApiObjectCenter(propertyTypes[0])).toEqual([[TEST_GEOMETRY.center]]);\n });\n\n it('Compose api exclude string', function () {\n expect(composeExcludeString(['geometry', 'cityName', 'areaProjectId'])).toBe(\n 'geometry,cityName,areaProjectId',\n );\n });\n\n it('Returns if price should be shown or not', function () {\n expect(showPrice({ constructionNumber: constructionNumbers[0] })).toBe(true);\n expect(showPrice({ constructionNumber: constructionNumbers[1] })).toBe(false);\n });\n});\n"]}
1
+ {"version":3,"file":"api-utilities.test.js","sourceRoot":"","sources":["../../src/api-utilities/api-utilities.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EACH,oCAAoC,EACpC,0BAA0B,GAC7B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA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":["import { ProjectPhaseModel, PropertyTypeModel } from '@/generated';\n\nimport { TEST_GEOMETRY } from '../geometry/geometry.test';\nimport { ExtendedConstructionNumber } from './api-utilities.types';\nimport { composeIncludeString } from './compose-include-string';\nimport { mergeDecimalRange } from './decimal-range/merge-decimal-range';\nimport {\n mergeConstructionNumberSpecification,\n mergePropertySpecification,\n} from './decimal-range/merge-specification-range';\nimport { getApiObjectCenter, getApiObjectCoordinates } from './get/coordinates';\nimport { showPrice } from './show-price';\n\nconst propertyTypes: PropertyTypeModel[] = [\n {\n id: '1',\n geometry: TEST_GEOMETRY.apiGeometry,\n specifications: {\n bedrooms: {\n from: 5,\n to: 10,\n },\n },\n },\n {\n id: '2',\n specifications: {\n bedrooms: {\n from: 1,\n },\n },\n },\n {\n id: '3',\n specifications: {\n bedrooms: {\n from: 6,\n to: 11,\n },\n },\n },\n];\n\nconst projectPhases: ProjectPhaseModel[] = [\n {\n id: '1',\n location: TEST_GEOMETRY.center,\n propertySpecifications: {\n plotArea: {\n from: 5,\n },\n },\n },\n {\n id: '2',\n propertySpecifications: {\n plotArea: {\n from: 20,\n },\n },\n },\n];\n\nconst constructionNumbers: ExtendedConstructionNumber[] = [\n {\n id: '1',\n specifications: {\n rooms: {\n from: 5,\n to: 11,\n },\n },\n geometry: TEST_GEOMETRY.apiGeometry,\n status: 'InOption',\n objectType: 'constructionNumber',\n },\n {\n id: '2',\n specifications: {\n rooms: {\n from: 20,\n to: 30,\n },\n },\n status: 'Sold',\n objectType: 'constructionNumber',\n },\n];\n\ndescribe('Api utilities', function () {\n it('Expect propertyType specification to be merged', function () {\n expect(mergePropertySpecification({ propertyTypes }, 'bedrooms')).toEqual({\n from: 1,\n to: 11,\n });\n });\n\n it('Expect projectPhase specification to be merged', function () {\n expect(mergePropertySpecification({ projectPhases }, 'plotArea')).toEqual({\n from: 5,\n to: 20,\n });\n });\n\n it('Expect construction number specification to be merged', function () {\n expect(mergeConstructionNumberSpecification(constructionNumbers, 'rooms')).toEqual({\n from: 5,\n to: 30,\n });\n });\n\n it('Expect decimal range to be merged', function () {\n expect(mergeDecimalRange({ from: 0 }, { to: 5 })).toEqual({ from: 0, to: 5 });\n expect(mergeDecimalRange({}, {})).toEqual({});\n });\n\n it('Get coordinates from apiObject', function () {\n expect(getApiObjectCoordinates(constructionNumbers[0])).toEqual(TEST_GEOMETRY.coordinates);\n\n expect(getApiObjectCoordinates(constructionNumbers[1])).toBe(undefined);\n });\n\n it('Get center when location is set', function () {\n expect(getApiObjectCenter(projectPhases[0])).toEqual([[TEST_GEOMETRY.center]]);\n expect(getApiObjectCenter(projectPhases[1])).toBe(false);\n });\n\n it('Get center as Coordinate when location is set', function () {\n expect(getApiObjectCenter(projectPhases[0], { as: 'coordinate' })).toEqual(\n TEST_GEOMETRY.center,\n );\n });\n\n it('Get center when no location is set, but geometry is', function () {\n expect(getApiObjectCenter(propertyTypes[0])).toEqual([[TEST_GEOMETRY.center]]);\n });\n\n it('Compose api include string', function () {\n expect(composeIncludeString(['geometry', 'mainImage', 'areaProjectId'])).toBe(\n 'geometry,mainImage,areaProjectId',\n );\n });\n\n it('Returns if price should be shown or not', function () {\n expect(showPrice({ constructionNumber: constructionNumbers[0] })).toBe(true);\n expect(showPrice({ constructionNumber: constructionNumbers[1] })).toBe(false);\n });\n});\n"]}
@@ -1,9 +1,10 @@
1
1
  import { MapDataItem } from '@bpd-library/types';
2
+ import { INCLUDED_PROPERTIES } from '@/extended-api-models/included-properties';
2
3
  import { ApartmentBuildingModel, AreaProjectModel, ConstructionNumberModel, DistrictModel, ProjectPhaseModel, ProjectPhaseStatus, PropertyTypeModel } from '../generated';
3
4
  declare type PropertyTypeStatus = 'InPreparation' | 'SaleSoon' | 'SaleStarted' | 'AssigningOn' | 'AmountAvailable' | 'InOption' | 'Sold' | 'UnderConstruction' | 'ForRent' | 'Rented';
4
5
  declare type ApartmentBuildingStatus = 'InPreparation' | 'SaleSoon' | 'SaleStarted' | 'AssigningOn' | 'AmountAvailable' | 'Available' | 'ForRent' | 'InOption' | 'Sold' | 'Rented' | 'UnderConstruction';
5
6
  declare type GeneratedConstructionNumberStatus = 'InPreparation' | 'InOption' | 'Available' | 'Sold' | 'Rented' | 'UnderConstruction';
6
- interface ExtendedConstructionNumber extends Omit<ConstructionNumberModel, 'shortDescription' | 'longDescription' | 'resources' | 'gardens' | 'outbuildings' | 'groundLease' | 'floors' | 'outsideSpace' | 'extraSpecifications' | 'landRegistration'> {
7
+ interface ExtendedConstructionNumber extends Pick<ConstructionNumberModel, 'id' | typeof INCLUDED_PROPERTIES.constructionNumber[number]> {
7
8
  areaProject?: AreaProjectModel;
8
9
  propertyType?: ExtendedPropertyType;
9
10
  projectPhase?: ExtendedProjectPhase;
@@ -12,7 +13,7 @@ interface ExtendedConstructionNumber extends Omit<ConstructionNumberModel, 'shor
12
13
  status?: GeneratedConstructionNumberStatus;
13
14
  objectType: 'constructionNumber';
14
15
  }
15
- interface ExtendedPropertyType extends Omit<PropertyTypeModel, 'shortDescription' | 'longDescription' | 'environmentTypes' | 'groundLease' | 'resources' | 'constructionStartDate' | 'indicationServiceCosts' | 'indicationSecurity' | 'floors' | 'gardens' | 'outbuildings' | 'usp1Title' | 'usp1Text' | 'usp2Title' | 'usp2Text'> {
16
+ interface ExtendedPropertyType extends Pick<PropertyTypeModel, 'id' | typeof INCLUDED_PROPERTIES.propertyType[number]> {
16
17
  constructionNumbers?: ExtendedConstructionNumber[];
17
18
  projectPhase?: ExtendedProjectPhase;
18
19
  mapDataItems?: MapDataItem[];
@@ -20,13 +21,13 @@ interface ExtendedPropertyType extends Omit<PropertyTypeModel, 'shortDescription
20
21
  apartmentBuildings?: ExtendedApartmentBuilding[];
21
22
  objectType: 'propertyType';
22
23
  }
23
- interface ExtendedProjectPhase extends Omit<ProjectPhaseModel, 'longDescription' | 'resources'> {
24
+ interface ExtendedProjectPhase extends Pick<ProjectPhaseModel, 'id' | typeof INCLUDED_PROPERTIES.projectPhase[number]> {
24
25
  constructionNumbers?: ExtendedConstructionNumber[];
25
26
  propertyTypes?: ExtendedPropertyType[];
26
27
  mapDataItems?: MapDataItem[];
27
28
  objectType: 'projectPhase';
28
29
  }
29
- interface ExtendedApartmentBuilding extends ApartmentBuildingModel {
30
+ interface ExtendedApartmentBuilding extends Pick<ApartmentBuildingModel, 'id' | typeof INCLUDED_PROPERTIES.apartmentBuilding[number]> {
30
31
  constructionNumbers?: ExtendedConstructionNumber[];
31
32
  propertyTypes?: ExtendedPropertyType[];
32
33
  projectPhase?: ExtendedProjectPhase;
@@ -34,12 +35,12 @@ interface ExtendedApartmentBuilding extends ApartmentBuildingModel {
34
35
  status?: ApartmentBuildingStatus;
35
36
  objectType: 'apartmentBuilding';
36
37
  }
37
- interface ExtendedDistrict extends DistrictModel {
38
+ interface ExtendedDistrict extends Pick<DistrictModel, 'id' | typeof INCLUDED_PROPERTIES.district[number]> {
38
39
  status?: ProjectPhaseStatus;
39
40
  mapDataItems?: MapDataItem[];
40
41
  objectType: 'district';
41
42
  }
42
- interface ExtendedAreaProject extends AreaProjectModel {
43
+ interface ExtendedAreaProject extends Pick<AreaProjectModel, 'id' | typeof INCLUDED_PROPERTIES.areaProject[number]> {
43
44
  mapDataItems?: MapDataItem[];
44
45
  objectType: 'areaProject';
45
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api-utilities.types.js","sourceRoot":"","sources":["../../src/api-utilities/api-utilities.types.ts"],"names":[],"mappings":"","sourcesContent":["import { MapDataItem } from '@bpd-library/types';\n\nimport {\n ApartmentBuildingModel,\n AreaProjectModel,\n ConstructionNumberModel,\n DistrictModel,\n ProjectPhaseModel,\n ProjectPhaseStatus,\n PropertyTypeModel,\n} from '../generated';\n\ntype PropertyTypeStatus =\n | 'InPreparation'\n | 'SaleSoon'\n | 'SaleStarted'\n | 'AssigningOn'\n | 'AmountAvailable'\n | 'InOption'\n | 'Sold'\n | 'UnderConstruction'\n | 'ForRent'\n | 'Rented';\n\ntype ApartmentBuildingStatus =\n | 'InPreparation'\n | 'SaleSoon'\n | 'SaleStarted'\n | 'AssigningOn'\n | 'AmountAvailable'\n | 'Available'\n | 'ForRent'\n | 'InOption'\n | 'Sold'\n | 'Rented'\n | 'UnderConstruction';\n\ntype GeneratedConstructionNumberStatus =\n | 'InPreparation'\n | 'InOption'\n | 'Available'\n | 'Sold'\n | 'Rented'\n | 'UnderConstruction';\n\ninterface ExtendedConstructionNumber\n extends Omit<\n ConstructionNumberModel,\n /*\n THE OMITTED VALUES ALSO NEED TO BE CHANGED IN excluded-properties.ts\n */\n | 'shortDescription'\n | 'longDescription'\n | 'resources'\n | 'gardens'\n | 'outbuildings'\n | 'groundLease'\n | 'floors'\n | 'outsideSpace'\n | 'extraSpecifications'\n | 'landRegistration'\n > {\n areaProject?: AreaProjectModel;\n propertyType?: ExtendedPropertyType;\n projectPhase?: ExtendedProjectPhase;\n mapDataItems?: MapDataItem[];\n apartmentBuilding?: ExtendedApartmentBuilding;\n status?: GeneratedConstructionNumberStatus;\n objectType: 'constructionNumber';\n}\n\ninterface ExtendedPropertyType\n extends Omit<\n PropertyTypeModel,\n /*\n THE OMITTED VALUES ALSO NEED TO BE CHANGED IN excluded-properties.ts\n */\n | 'shortDescription'\n | 'longDescription'\n | 'environmentTypes'\n | 'groundLease'\n | 'resources'\n | 'constructionStartDate'\n | 'indicationServiceCosts'\n | 'indicationSecurity'\n | 'floors'\n | 'gardens'\n | 'outbuildings'\n | 'usp1Title'\n | 'usp1Text'\n | 'usp2Title'\n | 'usp2Text'\n > {\n constructionNumbers?: ExtendedConstructionNumber[];\n projectPhase?: ExtendedProjectPhase;\n mapDataItems?: MapDataItem[];\n status?: PropertyTypeStatus;\n apartmentBuildings?: ExtendedApartmentBuilding[];\n objectType: 'propertyType';\n}\n\ninterface ExtendedProjectPhase\n extends Omit<\n ProjectPhaseModel,\n /*\n THE OMITTED VALUES ALSO NEED TO BE CHANGED IN excluded-properties.ts\n */\n 'longDescription' | 'resources'\n > {\n constructionNumbers?: ExtendedConstructionNumber[];\n propertyTypes?: ExtendedPropertyType[];\n mapDataItems?: MapDataItem[];\n objectType: 'projectPhase';\n}\n\ninterface ExtendedApartmentBuilding extends ApartmentBuildingModel {\n constructionNumbers?: ExtendedConstructionNumber[];\n propertyTypes?: ExtendedPropertyType[];\n projectPhase?: ExtendedProjectPhase;\n mapDataItems?: MapDataItem[];\n status?: ApartmentBuildingStatus;\n objectType: 'apartmentBuilding';\n}\n\ninterface ExtendedDistrict extends DistrictModel {\n status?: ProjectPhaseStatus;\n mapDataItems?: MapDataItem[];\n objectType: 'district';\n}\n\ninterface ExtendedAreaProject extends AreaProjectModel {\n mapDataItems?: MapDataItem[];\n objectType: 'areaProject';\n}\n\nexport {\n ExtendedConstructionNumber,\n ExtendedPropertyType,\n ExtendedApartmentBuilding,\n ExtendedProjectPhase,\n ExtendedDistrict,\n ExtendedAreaProject,\n PropertyTypeStatus,\n ApartmentBuildingStatus,\n GeneratedConstructionNumberStatus,\n};\n"]}
1
+ {"version":3,"file":"api-utilities.types.js","sourceRoot":"","sources":["../../src/api-utilities/api-utilities.types.ts"],"names":[],"mappings":"","sourcesContent":["import { MapDataItem } from '@bpd-library/types';\n\nimport { INCLUDED_PROPERTIES } from '@/extended-api-models/included-properties';\n\nimport {\n ApartmentBuildingModel,\n AreaProjectModel,\n ConstructionNumberModel,\n DistrictModel,\n ProjectPhaseModel,\n ProjectPhaseStatus,\n PropertyTypeModel,\n} from '../generated';\n\ntype PropertyTypeStatus =\n | 'InPreparation'\n | 'SaleSoon'\n | 'SaleStarted'\n | 'AssigningOn'\n | 'AmountAvailable'\n | 'InOption'\n | 'Sold'\n | 'UnderConstruction'\n | 'ForRent'\n | 'Rented';\n\ntype ApartmentBuildingStatus =\n | 'InPreparation'\n | 'SaleSoon'\n | 'SaleStarted'\n | 'AssigningOn'\n | 'AmountAvailable'\n | 'Available'\n | 'ForRent'\n | 'InOption'\n | 'Sold'\n | 'Rented'\n | 'UnderConstruction';\n\ntype GeneratedConstructionNumberStatus =\n | 'InPreparation'\n | 'InOption'\n | 'Available'\n | 'Sold'\n | 'Rented'\n | 'UnderConstruction';\n\ninterface ExtendedConstructionNumber\n extends Pick<\n ConstructionNumberModel,\n 'id' | typeof INCLUDED_PROPERTIES.constructionNumber[number]\n > {\n areaProject?: AreaProjectModel;\n propertyType?: ExtendedPropertyType;\n projectPhase?: ExtendedProjectPhase;\n mapDataItems?: MapDataItem[];\n apartmentBuilding?: ExtendedApartmentBuilding;\n status?: GeneratedConstructionNumberStatus;\n objectType: 'constructionNumber';\n}\n\ninterface ExtendedPropertyType\n extends Pick<PropertyTypeModel, 'id' | typeof INCLUDED_PROPERTIES.propertyType[number]> {\n constructionNumbers?: ExtendedConstructionNumber[];\n projectPhase?: ExtendedProjectPhase;\n mapDataItems?: MapDataItem[];\n status?: PropertyTypeStatus;\n apartmentBuildings?: ExtendedApartmentBuilding[];\n objectType: 'propertyType';\n}\n\ninterface ExtendedProjectPhase\n extends Pick<ProjectPhaseModel, 'id' | typeof INCLUDED_PROPERTIES.projectPhase[number]> {\n constructionNumbers?: ExtendedConstructionNumber[];\n propertyTypes?: ExtendedPropertyType[];\n mapDataItems?: MapDataItem[];\n objectType: 'projectPhase';\n}\n\ninterface ExtendedApartmentBuilding\n extends Pick<\n ApartmentBuildingModel,\n 'id' | typeof INCLUDED_PROPERTIES.apartmentBuilding[number]\n > {\n constructionNumbers?: ExtendedConstructionNumber[];\n propertyTypes?: ExtendedPropertyType[];\n projectPhase?: ExtendedProjectPhase;\n mapDataItems?: MapDataItem[];\n status?: ApartmentBuildingStatus;\n objectType: 'apartmentBuilding';\n}\n\ninterface ExtendedDistrict\n extends Pick<DistrictModel, 'id' | typeof INCLUDED_PROPERTIES.district[number]> {\n status?: ProjectPhaseStatus;\n mapDataItems?: MapDataItem[];\n objectType: 'district';\n}\n\ninterface ExtendedAreaProject\n extends Pick<AreaProjectModel, 'id' | typeof INCLUDED_PROPERTIES.areaProject[number]> {\n mapDataItems?: MapDataItem[];\n objectType: 'areaProject';\n}\n\nexport {\n ExtendedConstructionNumber,\n ExtendedPropertyType,\n ExtendedApartmentBuilding,\n ExtendedProjectPhase,\n ExtendedDistrict,\n ExtendedAreaProject,\n PropertyTypeStatus,\n ApartmentBuildingStatus,\n GeneratedConstructionNumberStatus,\n};\n"]}
@@ -0,0 +1,3 @@
1
+ import { ApartmentBuildingModel, AreaProjectModel, ConstructionNumberModel, DistrictModel, ProjectPhaseModel, PropertyTypeModel } from '../generated';
2
+ declare const composeIncludeString: (keys: (keyof ConstructionNumberModel | keyof PropertyTypeModel | keyof ApartmentBuildingModel | keyof ProjectPhaseModel | keyof DistrictModel | keyof AreaProjectModel)[]) => string;
3
+ export { composeIncludeString };
@@ -0,0 +1,5 @@
1
+ const composeIncludeString = (keys) => {
2
+ return keys.join(',');
3
+ };
4
+ export { composeIncludeString };
5
+ //# sourceMappingURL=compose-include-string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compose-include-string.js","sourceRoot":"","sources":["../../src/api-utilities/compose-include-string.ts"],"names":[],"mappings":"AASA,MAAM,oBAAoB,GAAG,CACzB,IAOG,EACL,EAAE;IACA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC1B,CAAC,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import {\n ApartmentBuildingModel,\n AreaProjectModel,\n ConstructionNumberModel,\n DistrictModel,\n ProjectPhaseModel,\n PropertyTypeModel,\n} from '../generated';\n\nconst composeIncludeString = (\n keys: (\n | keyof ConstructionNumberModel\n | keyof PropertyTypeModel\n | keyof ApartmentBuildingModel\n | keyof ProjectPhaseModel\n | keyof DistrictModel\n | keyof AreaProjectModel\n )[],\n) => {\n return keys.join(',');\n};\n\nexport { composeIncludeString };\n"]}
@@ -1,6 +1,9 @@
1
1
  import { areaProjectQuery } from '../generated';
2
+ import { COMPOSED_INCLUDE_STRINGS } from './included-properties';
2
3
  const getExtendedAreaProjects = async () => {
3
- const areaProjects = (await areaProjectQuery());
4
+ const areaProjects = (await areaProjectQuery({
5
+ include: COMPOSED_INCLUDE_STRINGS.areaProject,
6
+ }));
4
7
  areaProjects.forEach((areaProject) => {
5
8
  areaProject.objectType = 'areaProject';
6
9
  });
@@ -1 +1 @@
1
- {"version":3,"file":"extended-area-projects.js","sourceRoot":"","sources":["../../src/extended-api-models/extended-area-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMhD,MAAM,uBAAuB,GAAG,KAAK,IAAoC,EAAE;IACvE,MAAM,YAAY,GAAG,CAAC,MAAM,gBAAgB,EAAE,CAA0B,CAAC;IAEzE,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;QACjC,WAAW,CAAC,UAAU,GAAG,aAAa,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,YAAY,CAAC;AACxB,CAAC,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC","sourcesContent":["import { ExtendedAreaProject } from '../api-utilities';\nimport { areaProjectQuery } from '../generated';\n\n/**\n * @description Returns an array of all areaProjects extended.\n * @return {*} {Promise<ExtendedAreaProject[]>}\n */\nconst getExtendedAreaProjects = async (): Promise<ExtendedAreaProject[]> => {\n const areaProjects = (await areaProjectQuery()) as ExtendedAreaProject[];\n\n areaProjects.forEach((areaProject) => {\n areaProject.objectType = 'areaProject';\n });\n\n return areaProjects;\n};\n\nexport { getExtendedAreaProjects };\n"]}
1
+ {"version":3,"file":"extended-area-projects.js","sourceRoot":"","sources":["../../src/extended-api-models/extended-area-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAMjE,MAAM,uBAAuB,GAAG,KAAK,IAAoC,EAAE;IACvE,MAAM,YAAY,GAAG,CAAC,MAAM,gBAAgB,CAAC;QACzC,OAAO,EAAE,wBAAwB,CAAC,WAAW;KAChD,CAAC,CAA0B,CAAC;IAE7B,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;QACjC,WAAW,CAAC,UAAU,GAAG,aAAa,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,YAAY,CAAC;AACxB,CAAC,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC","sourcesContent":["import { ExtendedAreaProject } from '../api-utilities';\nimport { areaProjectQuery } from '../generated';\nimport { COMPOSED_INCLUDE_STRINGS } from './included-properties';\n\n/**\n * @description Returns an array of all areaProjects extended.\n * @return {*} {Promise<ExtendedAreaProject[]>}\n */\nconst getExtendedAreaProjects = async (): Promise<ExtendedAreaProject[]> => {\n const areaProjects = (await areaProjectQuery({\n include: COMPOSED_INCLUDE_STRINGS.areaProject,\n })) as ExtendedAreaProject[];\n\n areaProjects.forEach((areaProject) => {\n areaProject.objectType = 'areaProject';\n });\n\n return areaProjects;\n};\n\nexport { getExtendedAreaProjects };\n"]}
@@ -1,7 +1,6 @@
1
1
  import { filterConstructionNumbers, filterPropertyTypes, findProjectPhase, findPropertyType, getDistrictStatus, } from '../api-utilities';
2
- import { composeExcludeString } from '../api-utilities/compose-exclude-string';
3
2
  import { apartmentBuildingQuery, areaProjectGetById, constructionNumberQuery, districtQuery, projectPhaseQuery, propertyTypeQuery, } from '../generated';
4
- import { EXCLUDED_CONSTRUCTION_NUMBER_PROPERTIES, EXCLUDED_PROJECT_PHASE_PROPERTIES, EXCLUDED_PROPERTY_TYPE_PROPERTIES, } from './excluded-properties';
3
+ import { COMPOSED_INCLUDE_STRINGS } from './included-properties';
5
4
  import { getApartmentBuildingStatus } from './status/apartment-building-status';
6
5
  import { constructionNumberStatus } from './status/construction-number-status';
7
6
  import { getPropertyTypeStatus } from './status/property-type-status';
@@ -68,23 +67,27 @@ const ExtendedAreaModelsUtility = () => {
68
67
  async function fetchData(areaId) {
69
68
  const propertyTypes = propertyTypeQuery({
70
69
  AreaProjectId: areaId,
71
- exclude: composeExcludeString(EXCLUDED_PROPERTY_TYPE_PROPERTIES),
70
+ include: COMPOSED_INCLUDE_STRINGS.propertyType,
72
71
  });
73
72
  const constructionNumbers = constructionNumberQuery({
74
73
  AreaProjectId: areaId,
75
- exclude: composeExcludeString(EXCLUDED_CONSTRUCTION_NUMBER_PROPERTIES),
74
+ include: COMPOSED_INCLUDE_STRINGS.constructionNumber,
76
75
  });
77
76
  const projectPhases = projectPhaseQuery({
78
77
  AreaProjectId: areaId,
79
- exclude: composeExcludeString(EXCLUDED_PROJECT_PHASE_PROPERTIES),
78
+ include: COMPOSED_INCLUDE_STRINGS.projectPhase,
80
79
  });
81
80
  const apartmentBuildings = apartmentBuildingQuery({
82
81
  AreaProjectId: areaId,
82
+ include: COMPOSED_INCLUDE_STRINGS.apartmentBuilding,
83
83
  });
84
84
  const districts = districtQuery({
85
85
  AreaProjectId: areaId,
86
+ include: COMPOSED_INCLUDE_STRINGS.district,
87
+ });
88
+ const areaProject = areaProjectGetById(areaId, {
89
+ include: COMPOSED_INCLUDE_STRINGS.areaProject,
86
90
  });
87
- const areaProject = areaProjectGetById(areaId);
88
91
  return {
89
92
  propertyTypes: await propertyTypes,
90
93
  constructionNumbers: await constructionNumbers,
@@ -1 +1 @@
1
- {"version":3,"file":"extended-area.js","sourceRoot":"","sources":["../../src/extended-api-models/extended-area.ts"],"names":[],"mappings":"AAAA,OAAO,EAOH,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAEH,sBAAsB,EACtB,kBAAkB,EAGlB,uBAAuB,EAEvB,aAAa,EAEb,iBAAiB,EAEjB,iBAAiB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACH,uCAAuC,EACvC,iCAAiC,EACjC,iCAAiC,GACpC,MAAM,uBAAuB,CAAC;A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E,cAAc;iBACrB,CAAC,CAAC;aACN;YAED,IAAI,iBAAiB,CAAC,YAAY,EAAE;gBAChC,iBAAiB,CAAC,MAAM,GAAG,0BAA0B,CACjD,iBAAiB,CAAC,YAAY,EAC9B,iBAAiB,CAAC,mBAAmB,CACxC,CAAC;aACL;YAED,iBAAiB,CAAC,UAAU,GAAG,mBAAmB,CAAC;QACvD,CAAC,CAAC,CAAC;QAKH,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC3B,QAAQ,CAAC,MAAM,GAAG,iBAAiB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;YAC7D,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,OAAO;YACH,mBAAmB;YACnB,aAAa;YACb,kBAAkB;YAClB,aAAa;YACb,SAAS;YACT,WAAW;SACd,CAAC;IACN,CAAC;IAED,OAAO;QACH,OAAO;KACV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,yBAAyB,EAAE,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAsB,CAAC","sourcesContent":["import {\n ExtendedApartmentBuilding,\n ExtendedAreaProject,\n ExtendedConstructionNumber,\n ExtendedDistrict,\n ExtendedProjectPhase,\n ExtendedPropertyType,\n filterConstructionNumbers,\n filterPropertyTypes,\n findProjectPhase,\n findPropertyType,\n getDistrictStatus,\n} from '../api-utilities';\nimport { composeExcludeString } from '../api-utilities/compose-exclude-string';\nimport {\n ApartmentBuildingModel,\n apartmentBuildingQuery,\n areaProjectGetById,\n AreaProjectModel,\n ConstructionNumberModel,\n constructionNumberQuery,\n DistrictModel,\n districtQuery,\n ProjectPhaseModel,\n projectPhaseQuery,\n PropertyTypeModel,\n propertyTypeQuery,\n} from '../generated';\nimport {\n EXCLUDED_CONSTRUCTION_NUMBER_PROPERTIES,\n EXCLUDED_PROJECT_PHASE_PROPERTIES,\n EXCLUDED_PROPERTY_TYPE_PROPERTIES,\n} from './excluded-properties';\nimport { getApartmentBuildingStatus } from './status/apartment-building-status';\nimport { constructionNumberStatus } from './status/construction-number-status';\nimport { getPropertyTypeStatus } from './status/property-type-status';\n\ninterface OriginalAreaModels {\n constructionNumbers: ConstructionNumberModel[];\n propertyTypes: PropertyTypeModel[];\n apartmentBuildings: ApartmentBuildingModel[];\n projectPhases: ProjectPhaseModel[];\n districts: DistrictModel[];\n areaProject: AreaProjectModel;\n}\n\ninterface ExtendedAreaModels {\n constructionNumbers: ExtendedConstructionNumber[];\n propertyTypes: ExtendedPropertyType[];\n apartmentBuildings: ExtendedApartmentBuilding[];\n projectPhases: ExtendedProjectPhase[];\n districts: ExtendedDistrict[];\n areaProject: ExtendedAreaProject;\n}\ninterface FilterFunctions {\n constructionNumber?: (constructionNumber: ConstructionNumberModel) => boolean;\n propertyType?: (propertyType: PropertyTypeModel) => boolean;\n apartmentBuilding?: (apartmentBuilding: ApartmentBuildingModel) => boolean;\n projectPhase?: (projectPhase: ProjectPhaseModel) => boolean;\n district?: (district: DistrictModel) => boolean;\n}\n\nconst ExtendedAreaModelsUtility = () => {\n const areaState: {\n [areaId: string]: {\n extendedData?: ExtendedAreaModels;\n resolveArray: Function[];\n filterFunctions?: FilterFunctions;\n };\n } = {};\n\n async function controller(areaId: string) {\n let originalData: OriginalAreaModels;\n\n if (hasSessionStorageData(areaId)) {\n originalData = fetchSessionStorageData(areaId)!;\n } else {\n originalData = await fetchData(areaId);\n setSessionStorageData(areaId, originalData);\n }\n\n // Objects without images, should not be shown on the website\n originalData = filterObjectsWithImages(originalData);\n\n areaState[areaId].extendedData = extendModels(originalData);\n\n setLoaded(areaId);\n }\n\n async function getData(areaId: string): Promise<ExtendedAreaModels> {\n if (!areaState[areaId]) {\n areaState[areaId] = {\n resolveArray: [],\n };\n\n // Controller handles fetching + extending of data\n controller(areaId);\n }\n\n const state = areaState[areaId];\n\n if (!state.extendedData) {\n /*\n if no extendedData is found, it means it's being fetched.\n Promises will be resolved after data is loaded\n */\n return new Promise((res) => {\n state.resolveArray.push(res);\n });\n } else {\n // if no extendedData is found, it comes from sessionStorage\n return state.extendedData;\n }\n }\n\n function setLoaded(areaId: string) {\n areaState[areaId].resolveArray.forEach((res) => {\n res(areaState[areaId].extendedData);\n });\n }\n\n function filterObjectsWithImages(data: OriginalAreaModels): OriginalAreaModels {\n return {\n ...data,\n constructionNumbers: data.constructionNumbers.filter(\n ({ mainImage }) => !!mainImage?.url,\n ),\n propertyTypes: data.propertyTypes.filter(({ mainImage }) => !!mainImage?.url),\n apartmentBuildings: data.apartmentBuildings.filter(({ image }) => !!image?.url),\n };\n }\n\n function sessionStorageId(areaId: string) {\n return `AreaObjects::${areaId}`;\n }\n\n function sessionStorageData(areaId: string) {\n return sessionStorage.getItem(sessionStorageId(areaId));\n }\n\n function hasSessionStorageData(areaId: string) {\n return !!sessionStorageData(areaId);\n }\n\n function fetchSessionStorageData(areaId: string) {\n if (hasSessionStorageData(areaId)) {\n return JSON.parse(sessionStorageData(areaId)!) as OriginalAreaModels;\n } else {\n return;\n }\n }\n\n function setSessionStorageData(areaId: string, originalData: OriginalAreaModels) {\n sessionStorage.setItem(sessionStorageId(areaId), JSON.stringify(originalData));\n }\n\n async function fetchData(areaId: string) {\n const propertyTypes = propertyTypeQuery({\n AreaProjectId: areaId,\n exclude: composeExcludeString(EXCLUDED_PROPERTY_TYPE_PROPERTIES),\n });\n const constructionNumbers = constructionNumberQuery({\n AreaProjectId: areaId,\n exclude: composeExcludeString(EXCLUDED_CONSTRUCTION_NUMBER_PROPERTIES),\n });\n const projectPhases = projectPhaseQuery({\n AreaProjectId: areaId,\n exclude: composeExcludeString(EXCLUDED_PROJECT_PHASE_PROPERTIES),\n });\n const apartmentBuildings = apartmentBuildingQuery({\n AreaProjectId: areaId,\n });\n const districts = districtQuery({\n AreaProjectId: areaId,\n });\n const areaProject = areaProjectGetById(areaId);\n\n return {\n propertyTypes: await propertyTypes,\n constructionNumbers: await constructionNumbers,\n projectPhases: await projectPhases,\n apartmentBuildings: await apartmentBuildings,\n districts: await districts,\n areaProject: await areaProject,\n };\n }\n\n function extendModels(data: OriginalAreaModels): ExtendedAreaModels {\n const {\n constructionNumbers,\n propertyTypes,\n apartmentBuildings,\n projectPhases,\n districts,\n areaProject,\n } = data as ExtendedAreaModels;\n\n /*\n Extend constructionNumbers object\n */\n constructionNumbers.forEach((constructionNumber) => {\n const { propertyTypeId, projectPhaseId } = constructionNumber;\n\n constructionNumber.areaProject = areaProject;\n\n if (propertyTypeId) {\n constructionNumber.propertyType = findPropertyType(propertyTypes, {\n id: propertyTypeId,\n });\n }\n\n if (projectPhaseId) {\n constructionNumber.projectPhase = findProjectPhase(projectPhases, {\n id: projectPhaseId,\n });\n }\n\n constructionNumber.apartmentBuilding = apartmentBuildings.find((s) =>\n s.constructionNumberIds?.includes(constructionNumber.id),\n );\n\n constructionNumber.status = constructionNumberStatus(constructionNumber);\n\n constructionNumber.objectType = 'constructionNumber';\n });\n\n /*\n Extend propertTypes object\n */\n propertyTypes.forEach((propertyType) => {\n const { projectPhaseId, id } = propertyType;\n\n if (projectPhaseId) {\n propertyType.projectPhase = findProjectPhase(projectPhases, {\n id: projectPhaseId,\n });\n }\n\n propertyType.constructionNumbers = filterConstructionNumbers(constructionNumbers, {\n propertyTypeId: id,\n });\n\n if (propertyType.projectPhase) {\n propertyType.status = getPropertyTypeStatus(\n propertyType.projectPhase,\n propertyType.constructionNumbers,\n );\n }\n\n propertyType.apartmentBuildings = apartmentBuildings.filter((s) =>\n s.propertyTypeIds?.includes(propertyType.id),\n );\n\n propertyType.objectType = 'propertyType';\n });\n\n /*\n Extend projectPhase object\n */\n projectPhases.forEach((projectPhase) => {\n const { id } = projectPhase;\n\n projectPhase.propertyTypes = filterPropertyTypes(propertyTypes, {\n projectPhaseId: id,\n });\n projectPhase.constructionNumbers = filterConstructionNumbers(constructionNumbers, {\n projectPhaseId: id,\n });\n\n projectPhase.objectType = 'projectPhase';\n });\n\n /*\n Extend apartmentBuilding object\n */\n apartmentBuildings.forEach((apartmentBuilding) => {\n const { propertyTypeIds, constructionNumberIds, projectPhaseId } = apartmentBuilding;\n\n if (propertyTypeIds) {\n apartmentBuilding.propertyTypes = propertyTypes.filter(({ id }) =>\n propertyTypeIds?.includes(id),\n );\n }\n\n if (constructionNumberIds) {\n apartmentBuilding.constructionNumbers = constructionNumbers.filter(({ id }) =>\n constructionNumberIds?.includes(id),\n );\n }\n\n if (projectPhaseId) {\n apartmentBuilding.projectPhase = findProjectPhase(projectPhases, {\n id: projectPhaseId,\n });\n }\n\n if (apartmentBuilding.projectPhase) {\n apartmentBuilding.status = getApartmentBuildingStatus(\n apartmentBuilding.projectPhase,\n apartmentBuilding.constructionNumbers,\n );\n }\n\n apartmentBuilding.objectType = 'apartmentBuilding';\n });\n\n /*\n Extend district object\n */\n districts.forEach((district) => {\n district.status = getDistrictStatus(district, projectPhases);\n district.objectType = 'district';\n });\n\n return {\n constructionNumbers,\n propertyTypes,\n apartmentBuildings,\n projectPhases,\n districts,\n areaProject,\n };\n }\n\n return {\n getData,\n };\n};\n\nconst extendedArea = ExtendedAreaModelsUtility();\n\nexport { extendedArea, ExtendedAreaModels };\n"]}
1
+ {"version":3,"file":"extended-area.js","sourceRoot":"","sources":["../../src/extended-api-models/extended-area.ts"],"names":[],"mappings":"AAAA,OAAO,EAOH,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEH,sBAAsB,EACtB,kBAAkB,EAGlB,uBAAuB,EAEvB,aAAa,EAEb,iBAAiB,EAEjB,iBAAiB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EA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;aACN;YAED,IAAI,iBAAiB,CAAC,YAAY,EAAE;gBAChC,iBAAiB,CAAC,MAAM,GAAG,0BAA0B,CACjD,iBAAiB,CAAC,YAAY,EAC9B,iBAAiB,CAAC,mBAAmB,CACxC,CAAC;aACL;YAED,iBAAiB,CAAC,UAAU,GAAG,mBAAmB,CAAC;QACvD,CAAC,CAAC,CAAC;QAKH,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC3B,QAAQ,CAAC,MAAM,GAAG,iBAAiB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;YAC7D,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,OAAO;YACH,mBAAmB;YACnB,aAAa;YACb,kBAAkB;YAClB,aAAa;YACb,SAAS;YACT,WAAW;SACd,CAAC;IACN,CAAC;IAED,OAAO;QACH,OAAO;KACV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,yBAAyB,EAAE,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAsB,CAAC","sourcesContent":["import {\n ExtendedApartmentBuilding,\n ExtendedAreaProject,\n ExtendedConstructionNumber,\n ExtendedDistrict,\n ExtendedProjectPhase,\n ExtendedPropertyType,\n filterConstructionNumbers,\n filterPropertyTypes,\n findProjectPhase,\n findPropertyType,\n getDistrictStatus,\n} from '../api-utilities';\nimport {\n ApartmentBuildingModel,\n apartmentBuildingQuery,\n areaProjectGetById,\n AreaProjectModel,\n ConstructionNumberModel,\n constructionNumberQuery,\n DistrictModel,\n districtQuery,\n ProjectPhaseModel,\n projectPhaseQuery,\n PropertyTypeModel,\n propertyTypeQuery,\n} from '../generated';\nimport { COMPOSED_INCLUDE_STRINGS } from './included-properties';\nimport { getApartmentBuildingStatus } from './status/apartment-building-status';\nimport { constructionNumberStatus } from './status/construction-number-status';\nimport { getPropertyTypeStatus } from './status/property-type-status';\n\ninterface OriginalAreaModels {\n constructionNumbers: ConstructionNumberModel[];\n propertyTypes: PropertyTypeModel[];\n apartmentBuildings: ApartmentBuildingModel[];\n projectPhases: ProjectPhaseModel[];\n districts: DistrictModel[];\n areaProject: AreaProjectModel;\n}\n\ninterface ExtendedAreaModels {\n constructionNumbers: ExtendedConstructionNumber[];\n propertyTypes: ExtendedPropertyType[];\n apartmentBuildings: ExtendedApartmentBuilding[];\n projectPhases: ExtendedProjectPhase[];\n districts: ExtendedDistrict[];\n areaProject: ExtendedAreaProject;\n}\ninterface FilterFunctions {\n constructionNumber?: (constructionNumber: ConstructionNumberModel) => boolean;\n propertyType?: (propertyType: PropertyTypeModel) => boolean;\n apartmentBuilding?: (apartmentBuilding: ApartmentBuildingModel) => boolean;\n projectPhase?: (projectPhase: ProjectPhaseModel) => boolean;\n district?: (district: DistrictModel) => boolean;\n}\n\nconst ExtendedAreaModelsUtility = () => {\n const areaState: {\n [areaId: string]: {\n extendedData?: ExtendedAreaModels;\n resolveArray: Function[];\n filterFunctions?: FilterFunctions;\n };\n } = {};\n\n async function controller(areaId: string) {\n let originalData: OriginalAreaModels;\n\n if (hasSessionStorageData(areaId)) {\n originalData = fetchSessionStorageData(areaId)!;\n } else {\n originalData = await fetchData(areaId);\n setSessionStorageData(areaId, originalData);\n }\n\n // Objects without images, should not be shown on the website\n originalData = filterObjectsWithImages(originalData);\n\n areaState[areaId].extendedData = extendModels(originalData);\n\n setLoaded(areaId);\n }\n\n async function getData(areaId: string): Promise<ExtendedAreaModels> {\n if (!areaState[areaId]) {\n areaState[areaId] = {\n resolveArray: [],\n };\n\n // Controller handles fetching + extending of data\n controller(areaId);\n }\n\n const state = areaState[areaId];\n\n if (!state.extendedData) {\n /*\n if no extendedData is found, it means it's being fetched.\n Promises will be resolved after data is loaded\n */\n return new Promise((res) => {\n state.resolveArray.push(res);\n });\n } else {\n // if no extendedData is found, it comes from sessionStorage\n return state.extendedData;\n }\n }\n\n function setLoaded(areaId: string) {\n areaState[areaId].resolveArray.forEach((res) => {\n res(areaState[areaId].extendedData);\n });\n }\n\n function filterObjectsWithImages(data: OriginalAreaModels): OriginalAreaModels {\n return {\n ...data,\n constructionNumbers: data.constructionNumbers.filter(\n ({ mainImage }) => !!mainImage?.url,\n ),\n propertyTypes: data.propertyTypes.filter(({ mainImage }) => !!mainImage?.url),\n apartmentBuildings: data.apartmentBuildings.filter(({ image }) => !!image?.url),\n };\n }\n\n function sessionStorageId(areaId: string) {\n return `AreaObjects::${areaId}`;\n }\n\n function sessionStorageData(areaId: string) {\n return sessionStorage.getItem(sessionStorageId(areaId));\n }\n\n function hasSessionStorageData(areaId: string) {\n return !!sessionStorageData(areaId);\n }\n\n function fetchSessionStorageData(areaId: string) {\n if (hasSessionStorageData(areaId)) {\n return JSON.parse(sessionStorageData(areaId)!) as OriginalAreaModels;\n } else {\n return;\n }\n }\n\n function setSessionStorageData(areaId: string, originalData: OriginalAreaModels) {\n sessionStorage.setItem(sessionStorageId(areaId), JSON.stringify(originalData));\n }\n\n async function fetchData(areaId: string) {\n const propertyTypes = propertyTypeQuery({\n AreaProjectId: areaId,\n include: COMPOSED_INCLUDE_STRINGS.propertyType,\n });\n const constructionNumbers = constructionNumberQuery({\n AreaProjectId: areaId,\n include: COMPOSED_INCLUDE_STRINGS.constructionNumber,\n });\n const projectPhases = projectPhaseQuery({\n AreaProjectId: areaId,\n include: COMPOSED_INCLUDE_STRINGS.projectPhase,\n });\n const apartmentBuildings = apartmentBuildingQuery({\n AreaProjectId: areaId,\n include: COMPOSED_INCLUDE_STRINGS.apartmentBuilding,\n });\n const districts = districtQuery({\n AreaProjectId: areaId,\n include: COMPOSED_INCLUDE_STRINGS.district,\n });\n const areaProject = areaProjectGetById(areaId, {\n include: COMPOSED_INCLUDE_STRINGS.areaProject,\n });\n\n return {\n propertyTypes: await propertyTypes,\n constructionNumbers: await constructionNumbers,\n projectPhases: await projectPhases,\n apartmentBuildings: await apartmentBuildings,\n districts: await districts,\n areaProject: await areaProject,\n };\n }\n\n function extendModels(data: OriginalAreaModels): ExtendedAreaModels {\n const {\n constructionNumbers,\n propertyTypes,\n apartmentBuildings,\n projectPhases,\n districts,\n areaProject,\n } = data as ExtendedAreaModels;\n\n /*\n Extend constructionNumbers object\n */\n constructionNumbers.forEach((constructionNumber) => {\n const { propertyTypeId, projectPhaseId } = constructionNumber;\n\n constructionNumber.areaProject = areaProject;\n\n if (propertyTypeId) {\n constructionNumber.propertyType = findPropertyType(propertyTypes, {\n id: propertyTypeId,\n });\n }\n\n if (projectPhaseId) {\n constructionNumber.projectPhase = findProjectPhase(projectPhases, {\n id: projectPhaseId,\n });\n }\n\n constructionNumber.apartmentBuilding = apartmentBuildings.find((s) =>\n s.constructionNumberIds?.includes(constructionNumber.id),\n );\n\n constructionNumber.status = constructionNumberStatus(constructionNumber);\n\n constructionNumber.objectType = 'constructionNumber';\n });\n\n /*\n Extend propertTypes object\n */\n propertyTypes.forEach((propertyType) => {\n const { projectPhaseId, id } = propertyType;\n\n if (projectPhaseId) {\n propertyType.projectPhase = findProjectPhase(projectPhases, {\n id: projectPhaseId,\n });\n }\n\n propertyType.constructionNumbers = filterConstructionNumbers(constructionNumbers, {\n propertyTypeId: id,\n });\n\n if (propertyType.projectPhase) {\n propertyType.status = getPropertyTypeStatus(\n propertyType.projectPhase,\n propertyType.constructionNumbers,\n );\n }\n\n propertyType.apartmentBuildings = apartmentBuildings.filter((s) =>\n s.propertyTypeIds?.includes(propertyType.id),\n );\n\n propertyType.objectType = 'propertyType';\n });\n\n /*\n Extend projectPhase object\n */\n projectPhases.forEach((projectPhase) => {\n const { id } = projectPhase;\n\n projectPhase.propertyTypes = filterPropertyTypes(propertyTypes, {\n projectPhaseId: id,\n });\n projectPhase.constructionNumbers = filterConstructionNumbers(constructionNumbers, {\n projectPhaseId: id,\n });\n\n projectPhase.objectType = 'projectPhase';\n });\n\n /*\n Extend apartmentBuilding object\n */\n apartmentBuildings.forEach((apartmentBuilding) => {\n const { propertyTypeIds, constructionNumberIds, projectPhaseId } = apartmentBuilding;\n\n if (propertyTypeIds) {\n apartmentBuilding.propertyTypes = propertyTypes.filter(({ id }) =>\n propertyTypeIds?.includes(id),\n );\n }\n\n if (constructionNumberIds) {\n apartmentBuilding.constructionNumbers = constructionNumbers.filter(({ id }) =>\n constructionNumberIds?.includes(id),\n );\n }\n\n if (projectPhaseId) {\n apartmentBuilding.projectPhase = findProjectPhase(projectPhases, {\n id: projectPhaseId,\n });\n }\n\n if (apartmentBuilding.projectPhase) {\n apartmentBuilding.status = getApartmentBuildingStatus(\n apartmentBuilding.projectPhase,\n apartmentBuilding.constructionNumbers,\n );\n }\n\n apartmentBuilding.objectType = 'apartmentBuilding';\n });\n\n /*\n Extend district object\n */\n districts.forEach((district) => {\n district.status = getDistrictStatus(district, projectPhases);\n district.objectType = 'district';\n });\n\n return {\n constructionNumbers,\n propertyTypes,\n apartmentBuildings,\n projectPhases,\n districts,\n areaProject,\n };\n }\n\n return {\n getData,\n };\n};\n\nconst extendedArea = ExtendedAreaModelsUtility();\n\nexport { extendedArea, ExtendedAreaModels };\n"]}
@@ -0,0 +1,17 @@
1
+ declare const INCLUDED_PROPERTIES: {
2
+ constructionNumber: readonly ["areaProjectId", "districtId", "projectPhaseId", "projectPhaseName", "propertyTypeId", "propertyTypeName", "apartmentBuildingId", "identifier", "wishlistItemCount", "availabilityStatus", "geometry", "mainImage", "specifications", "salesPrice", "rentalPrice"];
3
+ propertyType: readonly ["areaProjectId", "districtId", "projectPhaseId", "projectPhaseName", "name", "houseType", "isRental", "geometry", "mainImage", "specifications", "salesPrice", "rentalPrice", "canShowPrice"];
4
+ projectPhase: readonly ["areaProjectId", "areaProjectName", "districtId", "name", "url", "districtUrl", "shortDescription", "status", "saleStartDate", "saleEndDate", "allocationDate", "isRental", "location", "geometry", "mainImage", "propertySpecifications", "propertyPurchasePrice", "propertyRentalPrice", "houseTypes"];
5
+ apartmentBuilding: readonly ["areaProjectId", "projectPhaseId", "projectPhaseName", "displayName", "nodeId", "propertyTypeIds", "constructionNumberIds", "image", "geometry", "views"];
6
+ areaProject: readonly ["name", "shortDescription", "regionId", "url", "isCompleted", "image", "location", "geometry", "website"];
7
+ district: readonly ["areaProjectId", "name", "url", "location", "geometry", "descriptionTitle", "description", "image"];
8
+ };
9
+ declare const COMPOSED_INCLUDE_STRINGS: {
10
+ constructionNumber: string;
11
+ propertyType: string;
12
+ projectPhase: string;
13
+ apartmentBuilding: string;
14
+ areaProject: string;
15
+ district: string;
16
+ };
17
+ export { COMPOSED_INCLUDE_STRINGS, INCLUDED_PROPERTIES };
@@ -0,0 +1,105 @@
1
+ import { composeIncludeString } from '@/api-utilities/compose-include-string';
2
+ const INCLUDED_CONSTRUCTION_NUMBER_PROPERTIES = [
3
+ 'areaProjectId',
4
+ 'districtId',
5
+ 'projectPhaseId',
6
+ 'projectPhaseName',
7
+ 'propertyTypeId',
8
+ 'propertyTypeName',
9
+ 'apartmentBuildingId',
10
+ 'identifier',
11
+ 'wishlistItemCount',
12
+ 'availabilityStatus',
13
+ 'geometry',
14
+ 'mainImage',
15
+ 'specifications',
16
+ 'salesPrice',
17
+ 'rentalPrice',
18
+ ];
19
+ const INCLUDED_PROPERTY_TYPE_PROPERTIES = [
20
+ 'areaProjectId',
21
+ 'districtId',
22
+ 'projectPhaseId',
23
+ 'projectPhaseName',
24
+ 'name',
25
+ 'houseType',
26
+ 'isRental',
27
+ 'geometry',
28
+ 'mainImage',
29
+ 'specifications',
30
+ 'salesPrice',
31
+ 'rentalPrice',
32
+ 'canShowPrice',
33
+ ];
34
+ const INCLUDED_PROJECT_PHASE_PROPERTIES = [
35
+ 'areaProjectId',
36
+ 'areaProjectName',
37
+ 'districtId',
38
+ 'name',
39
+ 'url',
40
+ 'districtUrl',
41
+ 'shortDescription',
42
+ 'status',
43
+ 'saleStartDate',
44
+ 'saleEndDate',
45
+ 'allocationDate',
46
+ 'isRental',
47
+ 'location',
48
+ 'geometry',
49
+ 'mainImage',
50
+ 'propertySpecifications',
51
+ 'propertyPurchasePrice',
52
+ 'propertyRentalPrice',
53
+ 'houseTypes',
54
+ ];
55
+ const INCLUDED_APARTMENT_BUILDING_PROPERTIES = [
56
+ 'areaProjectId',
57
+ 'projectPhaseId',
58
+ 'projectPhaseName',
59
+ 'displayName',
60
+ 'nodeId',
61
+ 'propertyTypeIds',
62
+ 'constructionNumberIds',
63
+ 'image',
64
+ 'geometry',
65
+ 'views',
66
+ ];
67
+ const INCLUDED_AREA_PROJECT_PROPERTIES = [
68
+ 'name',
69
+ 'shortDescription',
70
+ 'regionId',
71
+ 'url',
72
+ 'isCompleted',
73
+ 'image',
74
+ 'location',
75
+ 'geometry',
76
+ 'website',
77
+ ];
78
+ const INCLUDED_DISTRICT_PROPERTIES = [
79
+ 'areaProjectId',
80
+ 'name',
81
+ 'url',
82
+ 'location',
83
+ 'geometry',
84
+ 'descriptionTitle',
85
+ 'description',
86
+ 'image',
87
+ ];
88
+ const INCLUDED_PROPERTIES = {
89
+ constructionNumber: INCLUDED_CONSTRUCTION_NUMBER_PROPERTIES,
90
+ propertyType: INCLUDED_PROPERTY_TYPE_PROPERTIES,
91
+ projectPhase: INCLUDED_PROJECT_PHASE_PROPERTIES,
92
+ apartmentBuilding: INCLUDED_APARTMENT_BUILDING_PROPERTIES,
93
+ areaProject: INCLUDED_AREA_PROJECT_PROPERTIES,
94
+ district: INCLUDED_DISTRICT_PROPERTIES,
95
+ };
96
+ const COMPOSED_INCLUDE_STRINGS = {
97
+ constructionNumber: composeIncludeString([...INCLUDED_CONSTRUCTION_NUMBER_PROPERTIES]),
98
+ propertyType: composeIncludeString([...INCLUDED_PROPERTY_TYPE_PROPERTIES]),
99
+ projectPhase: composeIncludeString([...INCLUDED_PROJECT_PHASE_PROPERTIES]),
100
+ apartmentBuilding: composeIncludeString([...INCLUDED_APARTMENT_BUILDING_PROPERTIES]),
101
+ areaProject: composeIncludeString([...INCLUDED_AREA_PROJECT_PROPERTIES]),
102
+ district: composeIncludeString([...INCLUDED_DISTRICT_PROPERTIES]),
103
+ };
104
+ export { COMPOSED_INCLUDE_STRINGS, INCLUDED_PROPERTIES };
105
+ //# sourceMappingURL=included-properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"included-properties.js","sourceRoot":"","sources":["../../src/extended-api-models/included-properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,uCAAuC,GAAU;IACnD,eAAe;IACf,YAAY;IACZ,gBAAgB;IAChB,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;IAClB,qBAAqB;IACrB,YAAY;IACZ,mBAAmB;IACnB,oBAAoB;IACpB,UAAU;IACV,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,aAAa;CAChB,CAAC;AAEF,MAAM,iCAAiC,GAAU;IAC7C,eAAe;IACf,YAAY;IACZ,gBAAgB;IAChB,kBAAkB;IAClB,MAAM;IACN,WAAW;IACX,UAAU;IACV,UAAU;IACV,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,cAAc;CACjB,CAAC;AAEF,MAAM,iCAAiC,GAAU;IAC7C,eAAe;IACf,iBAAiB;IACjB,YAAY;IACZ,MAAM;IACN,KAAK;IACL,aAAa;IACb,kBAAkB;IAClB,QAAQ;IACR,eAAe;IACf,aAAa;IACb,gBAAgB;IAChB,UAAU;IACV,UAAU;IACV,UAAU;IACV,WAAW;IACX,wBAAwB;IACxB,uBAAuB;IACvB,qBAAqB;IACrB,YAAY;CACf,CAAC;AAEF,MAAM,sCAAsC,GAAU;IAClD,eAAe;IACf,gBAAgB;IAChB,kBAAkB;IAClB,aAAa;IACb,QAAQ;IACR,iBAAiB;IACjB,uBAAuB;IACvB,OAAO;IACP,UAAU;IACV,OAAO;CACV,CAAC;AAEF,MAAM,gCAAgC,GAAU;IAC5C,MAAM;IACN,kBAAkB;IAClB,UAAU;IACV,KAAK;IACL,aAAa;IACb,OAAO;IACP,UAAU;IACV,UAAU;IACV,SAAS;CACZ,CAAC;AAEF,MAAM,4BAA4B,GAAU;IACxC,eAAe;IACf,MAAM;IACN,KAAK;IACL,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,aAAa;IACb,OAAO;CACV,CAAC;AAEF,MAAM,mBAAmB,GAAG;IACxB,kBAAkB,EAAE,uCAAuC;IAC3D,YAAY,EAAE,iCAAiC;IAC/C,YAAY,EAAE,iCAAiC;IAC/C,iBAAiB,EAAE,sCAAsC;IACzD,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,4BAA4B;CACzC,CAAC;AAEF,MAAM,wBAAwB,GAAG;IAC7B,kBAAkB,EAAE,oBAAoB,CAAC,CAAC,GAAG,uCAAuC,CAAC,CAAC;IACtF,YAAY,EAAE,oBAAoB,CAAC,CAAC,GAAG,iCAAiC,CAAC,CAAC;IAC1E,YAAY,EAAE,oBAAoB,CAAC,CAAC,GAAG,iCAAiC,CAAC,CAAC;IAC1E,iBAAiB,EAAE,oBAAoB,CAAC,CAAC,GAAG,sCAAsC,CAAC,CAAC;IACpF,WAAW,EAAE,oBAAoB,CAAC,CAAC,GAAG,gCAAgC,CAAC,CAAC;IACxE,QAAQ,EAAE,oBAAoB,CAAC,CAAC,GAAG,4BAA4B,CAAC,CAAC;CACpE,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,CAAC","sourcesContent":["import { composeIncludeString } from '@/api-utilities/compose-include-string';\n\nconst INCLUDED_CONSTRUCTION_NUMBER_PROPERTIES = <const>[\n 'areaProjectId',\n 'districtId',\n 'projectPhaseId',\n 'projectPhaseName',\n 'propertyTypeId',\n 'propertyTypeName',\n 'apartmentBuildingId',\n 'identifier',\n 'wishlistItemCount',\n 'availabilityStatus',\n 'geometry',\n 'mainImage',\n 'specifications',\n 'salesPrice',\n 'rentalPrice',\n];\n\nconst INCLUDED_PROPERTY_TYPE_PROPERTIES = <const>[\n 'areaProjectId',\n 'districtId',\n 'projectPhaseId',\n 'projectPhaseName',\n 'name',\n 'houseType',\n 'isRental',\n 'geometry',\n 'mainImage',\n 'specifications',\n 'salesPrice',\n 'rentalPrice',\n 'canShowPrice',\n];\n\nconst INCLUDED_PROJECT_PHASE_PROPERTIES = <const>[\n 'areaProjectId',\n 'areaProjectName',\n 'districtId',\n 'name',\n 'url',\n 'districtUrl',\n 'shortDescription',\n 'status',\n 'saleStartDate',\n 'saleEndDate',\n 'allocationDate',\n 'isRental',\n 'location',\n 'geometry',\n 'mainImage',\n 'propertySpecifications',\n 'propertyPurchasePrice',\n 'propertyRentalPrice',\n 'houseTypes',\n];\n\nconst INCLUDED_APARTMENT_BUILDING_PROPERTIES = <const>[\n 'areaProjectId',\n 'projectPhaseId',\n 'projectPhaseName',\n 'displayName',\n 'nodeId',\n 'propertyTypeIds',\n 'constructionNumberIds',\n 'image',\n 'geometry',\n 'views',\n];\n\nconst INCLUDED_AREA_PROJECT_PROPERTIES = <const>[\n 'name',\n 'shortDescription',\n 'regionId',\n 'url',\n 'isCompleted',\n 'image',\n 'location',\n 'geometry',\n 'website',\n];\n\nconst INCLUDED_DISTRICT_PROPERTIES = <const>[\n 'areaProjectId',\n 'name',\n 'url',\n 'location',\n 'geometry',\n 'descriptionTitle',\n 'description',\n 'image',\n];\n\nconst INCLUDED_PROPERTIES = {\n constructionNumber: INCLUDED_CONSTRUCTION_NUMBER_PROPERTIES,\n propertyType: INCLUDED_PROPERTY_TYPE_PROPERTIES,\n projectPhase: INCLUDED_PROJECT_PHASE_PROPERTIES,\n apartmentBuilding: INCLUDED_APARTMENT_BUILDING_PROPERTIES,\n areaProject: INCLUDED_AREA_PROJECT_PROPERTIES,\n district: INCLUDED_DISTRICT_PROPERTIES,\n};\n\nconst COMPOSED_INCLUDE_STRINGS = {\n constructionNumber: composeIncludeString([...INCLUDED_CONSTRUCTION_NUMBER_PROPERTIES]),\n propertyType: composeIncludeString([...INCLUDED_PROPERTY_TYPE_PROPERTIES]),\n projectPhase: composeIncludeString([...INCLUDED_PROJECT_PHASE_PROPERTIES]),\n apartmentBuilding: composeIncludeString([...INCLUDED_APARTMENT_BUILDING_PROPERTIES]),\n areaProject: composeIncludeString([...INCLUDED_AREA_PROJECT_PROPERTIES]),\n district: composeIncludeString([...INCLUDED_DISTRICT_PROPERTIES]),\n};\n\nexport { COMPOSED_INCLUDE_STRINGS, INCLUDED_PROPERTIES };\n"]}
@@ -4,6 +4,7 @@ export interface ResourceModel {
4
4
  url?: string | null;
5
5
  resourceType?: string | null;
6
6
  contentType?: string | null;
7
+ mediaNodeId?: string | null;
7
8
  lastUpdatedUtc?: string;
8
9
  metadata?: {
9
10
  [key: string]: string;
@@ -79,7 +80,6 @@ export interface ProblemDetails {
79
80
  detail?: string | null;
80
81
  instance?: string | null;
81
82
  }
82
- export declare type ProvisioningStatus = 'ProvisionedUmbraco7' | 'NotProvisioned' | 'ProvisioningPending' | 'Provisioning' | 'ProvisionedUmbraco8';
83
83
  export interface Time {
84
84
  hour?: number;
85
85
  minute?: number;
@@ -103,13 +103,10 @@ export interface WebsiteContact {
103
103
  openingHoursSunday?: TimeRange;
104
104
  isClosedToday?: boolean;
105
105
  }
106
- export interface Website {
107
- isActive?: boolean;
108
- provisioningStatus?: ProvisioningStatus;
106
+ export interface WebsiteModel {
109
107
  mapboxTilesetId?: string | null;
110
108
  mapboxDatasetId?: string | null;
111
109
  url?: string | null;
112
- isActiveDomain?: boolean;
113
110
  enableCustomerCommunity?: boolean;
114
111
  enableFavourites?: boolean;
115
112
  enableMortgageCalculator?: boolean;
@@ -119,6 +116,8 @@ export interface Website {
119
116
  secondLevelNavigationButtonLabelPlural?: {
120
117
  [key: string]: string;
121
118
  } | null;
119
+ secondLevelNavigationLabelSingular?: string | null;
120
+ secondLevelNavigationLabelPlural?: string | null;
122
121
  skinName?: string | null;
123
122
  contactDetails?: WebsiteContact;
124
123
  showOnCorporateSite?: boolean;
@@ -140,7 +139,7 @@ export interface AreaProjectModel {
140
139
  mapboxDatasetId?: string | null;
141
140
  mapboxTilesetId?: string | null;
142
141
  caseViaEmail?: boolean;
143
- website?: Website;
142
+ website?: WebsiteModel;
144
143
  id: string;
145
144
  }
146
145
  export interface SeoText {
@@ -588,7 +587,7 @@ export interface RegionModel {
588
587
  export interface ApartmentBuildingQueryQueryParams {
589
588
  AreaProjectId?: string | null;
590
589
  ProjectPhaseId?: string | null;
591
- exclude?: string | null;
590
+ include?: string | null;
592
591
  lang?: string | null;
593
592
  }
594
593
  export interface ApartmentBuildingUpdateApartmentBuildingQueryParams {
@@ -598,66 +597,67 @@ export interface ApartmentBuildingDeleteApartmentBuildingQueryParams {
598
597
  origin?: string | null;
599
598
  }
600
599
  export interface ApartmentBuildingGetByExternalIdQueryParams {
601
- exclude?: string | null;
600
+ include?: string | null;
602
601
  lang?: string | null;
603
602
  }
604
603
  export interface AreaProjectGetByIdQueryParams {
605
- exclude?: string | null;
604
+ include?: string | null;
606
605
  lang?: string | null;
607
606
  }
608
607
  export interface AreaProjectQueryQueryParams {
609
608
  CountryIsoCode?: string | null;
610
609
  HasLocationData?: boolean | null;
611
610
  CorporateSite?: boolean | null;
612
- exclude?: string | null;
611
+ include?: string | null;
613
612
  lang?: string | null;
614
613
  }
615
614
  export interface CityGetByNameQueryParams {
616
- exclude?: string | null;
615
+ include?: string | null;
617
616
  lang?: string | null;
618
617
  }
619
618
  export interface CityGetByIdQueryParams {
620
- exclude?: string | null;
619
+ include?: string | null;
621
620
  lang?: string | null;
622
621
  }
623
622
  export interface CityQueryQueryParams {
624
623
  CountryIsoCode?: string | null;
625
- exclude?: string | null;
624
+ include?: string | null;
626
625
  lang?: string | null;
627
626
  }
628
627
  export interface ConstructionNumberGetByIdQueryParams {
629
- exclude?: string | null;
628
+ include?: string | null;
630
629
  lang?: string | null;
631
630
  }
632
631
  export interface ConstructionNumberQueryQueryParams {
633
632
  AreaProjectId?: string | null;
633
+ DistrictId?: string | null;
634
634
  ProjectPhaseId?: string | null;
635
635
  PropertyTypeId?: string | null;
636
636
  MinPrice?: number | null;
637
637
  MaxPrice?: number | null;
638
- exclude?: string | null;
638
+ include?: string | null;
639
639
  lang?: string | null;
640
640
  }
641
641
  export interface CountryGetByIsoCodeQueryParams {
642
- exclude?: string | null;
642
+ include?: string | null;
643
643
  lang?: string | null;
644
644
  }
645
645
  export interface CountryGetByIdQueryParams {
646
- exclude?: string | null;
646
+ include?: string | null;
647
647
  lang?: string | null;
648
648
  }
649
649
  export interface CountryQueryQueryParams {
650
650
  query?: CountryQuery;
651
- exclude?: string | null;
651
+ include?: string | null;
652
652
  lang?: string | null;
653
653
  }
654
654
  export interface DistrictGetByIdQueryParams {
655
- exclude?: string | null;
655
+ include?: string | null;
656
656
  lang?: string | null;
657
657
  }
658
658
  export interface DistrictQueryQueryParams {
659
659
  AreaProjectId?: string | null;
660
- exclude?: string | null;
660
+ include?: string | null;
661
661
  lang?: string | null;
662
662
  }
663
663
  export interface FundaQueryQueryParams {
@@ -702,54 +702,55 @@ export interface FundaRemoveVersionFromGwnQueryParams {
702
702
  nvmId?: string | null;
703
703
  }
704
704
  export interface GrantGetByIdQueryParams {
705
- exclude?: string | null;
705
+ include?: string | null;
706
706
  lang?: string | null;
707
707
  }
708
708
  export interface GrantQueryQueryParams {
709
709
  ProjectName?: string | null;
710
- exclude?: string | null;
710
+ include?: string | null;
711
711
  lang?: string | null;
712
712
  }
713
713
  export interface ProjectPhaseGetByIdQueryParams {
714
- exclude?: string | null;
714
+ include?: string | null;
715
715
  lang?: string | null;
716
716
  }
717
717
  export interface ProjectPhaseQueryQueryParams {
718
718
  CountryIsoCode?: string | null;
719
719
  AreaProjectId?: string | null;
720
- exclude?: string | null;
720
+ include?: string | null;
721
721
  lang?: string | null;
722
722
  }
723
723
  export interface PropertyTypeGetByIdQueryParams {
724
- exclude?: string | null;
724
+ include?: string | null;
725
725
  lang?: string | null;
726
726
  }
727
727
  export interface PropertyTypeQueryQueryParams {
728
728
  AreaProjectId?: string | null;
729
+ DistrictId?: string | null;
729
730
  ProjectPhaseId?: string | null;
730
- exclude?: string | null;
731
+ include?: string | null;
731
732
  lang?: string | null;
732
733
  }
733
734
  export interface ProvinceGetByNameQueryParams {
734
- exclude?: string | null;
735
+ include?: string | null;
735
736
  lang?: string | null;
736
737
  }
737
738
  export interface ProvinceGetByIdQueryParams {
738
- exclude?: string | null;
739
+ include?: string | null;
739
740
  lang?: string | null;
740
741
  }
741
742
  export interface ProvinceQueryQueryParams {
742
743
  CountryIsoCode?: string | null;
743
- exclude?: string | null;
744
+ include?: string | null;
744
745
  lang?: string | null;
745
746
  }
746
747
  export interface RegionGetByIdQueryParams {
747
- exclude?: string | null;
748
+ include?: string | null;
748
749
  lang?: string | null;
749
750
  }
750
751
  export interface RegionQueryQueryParams {
751
752
  AllowedRegionIds?: string | null;
752
- exclude?: string | null;
753
+ include?: string | null;
753
754
  lang?: string | null;
754
755
  }
755
756
  export interface ResourceUpdateResourceQueryParams {
@@ -1 +1 @@
1
- {"version":3,"file":"bpd-client.js","sourceRoot":"","sources":["../../src/generated/bpd-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAq3BnC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAClC,MAA0C,EAC1C,MAAsB,EACxB,EAAE,CACA,SAAS,CAAC,GAAG,CAA2B,yBAAyB,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CACnF,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAChB,CAAC;AAEN,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACpD,MAAqB,EACrB,IAAkC,EAClC,MAAsB,EACxB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAO,2BAA2B,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC;AAEhG,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACpD,MAAqB,EACrB,IAAS,EACT,MAAsB,EACxB,EAAE,CAAC,SAAS,CAAC,MAAM,CAAO,2BAA2B,MA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xB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAO,kBAAkB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC;AAExF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAsB,EAAE,IAAS,EAAE,MAAsB,EAAE,EAAE,CAChG,SAAS,CAAC,MAAM,CAAO,kBAAkB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/interface-name-prefix */\n/* Generated by oats-generator */\n\nimport { APIClient } from '../api';\nimport { RequestConfig } from '../api/http';\n\nexport interface ResourceModel {\n title?: string | null;\n url?: string | null;\n resourceType?: string | null;\n contentType?: string | null;\n lastUpdatedUtc?: string;\n metadata?: {\n [key: string]: string;\n } | null;\n}\n\nexport interface PolygonModel {\n coordinates?: number[][] | null;\n}\n\nexport interface ApartmentBuildingViewPointer {\n type?: string | null;\n coordinates?: number[] | null;\n constructionNumberId?: string | null;\n linkToViewId?: string | null;\n label?: string | null;\n alignment?: string | null;\n compassDirection?: string | null;\n}\n\nexport interface ApartmentBuildingView {\n id?: string | null;\n imageUrl?: string | null;\n type?: string | null;\n sourceUrl?: string | null;\n label?: string | null;\n buttonLabel?: string | null;\n rotateLeftViewId?: string | null;\n rotateRightViewId?: string | null;\n pointers?: ApartmentBuildingViewPointer[] | null;\n}\n\nexport interface ApartmentBuildingModel {\n areaProjectId?: string | null;\n projectPhaseId?: string | null;\n projectPhaseName?: string | null;\n displayName?: string | null;\n alias?: string | null;\n nodeId?: string | null;\n propertyTypeIds?: string[] | null;\n constructionNumberIds?: string[] | null;\n image?: ResourceModel;\n geometry?: PolygonModel[] | null;\n views?: ApartmentBuildingView[] | null;\n id: string;\n}\n\nexport interface ResourceReference {\n ownerId?: string | null;\n ownerType?: string | null;\n isMainResource?: boolean | null;\n}\n\nexport interface UpdateResourceModel {\n title?: string | null;\n url?: string | null;\n resourceType?: string | null;\n contentType?: string | null;\n sortIndex?: number;\n references?: ResourceReference[] | null;\n metadata?: {\n [key: string]: string;\n } | null;\n}\n\nexport interface UpdateApartmentBuildingModel {\n districtId?: string | null;\n alias?: string | null;\n displayName?: string | null;\n description?: string | null;\n propertyTypeIds?: string[] | null;\n sortIndex?: number;\n views?: ApartmentBuildingView[] | null;\n image?: UpdateResourceModel;\n}\n\nexport interface ProblemDetails {\n type?: string | null;\n title?: string | null;\n status?: number | null;\n detail?: string | null;\n instance?: string | null;\n}\n\nexport type ProvisioningStatus =\n | 'ProvisionedUmbraco7'\n | 'NotProvisioned'\n | 'ProvisioningPending'\n | 'Provisioning'\n | 'ProvisionedUmbraco8';\n\nexport interface Time {\n hour?: number;\n minute?: number;\n}\n\nexport interface TimeRange {\n from?: Time;\n to?: Time;\n}\n\nexport interface WebsiteContact {\n enableWebchat?: boolean;\n webchatServer?: string | null;\n webchatUcc?: string | null;\n phoneNumber?: string | null;\n emailAddress?: string | null;\n facebookUrl?: string | null;\n pinterestUrl?: string | null;\n twitterUrl?: string | null;\n caseViaEmail?: boolean;\n openingHoursWeekdays?: TimeRange;\n openingHoursSaturday?: TimeRange;\n openingHoursSunday?: TimeRange;\n isClosedToday?: boolean;\n}\n\nexport interface Website {\n isActive?: boolean;\n provisioningStatus?: ProvisioningStatus;\n mapboxTilesetId?: string | null;\n mapboxDatasetId?: string | null;\n url?: string | null;\n isActiveDomain?: boolean;\n enableCustomerCommunity?: boolean;\n enableFavourites?: boolean;\n enableMortgageCalculator?: boolean;\n secondLevelNavigationButtonLabelSingular?: {\n [key: string]: string;\n } | null;\n secondLevelNavigationButtonLabelPlural?: {\n [key: string]: string;\n } | null;\n skinName?: string | null;\n contactDetails?: WebsiteContact;\n showOnCorporateSite?: boolean;\n}\n\nexport interface AreaProjectModel {\n name?: string | null;\n shortDescription?: string | null;\n regionId?: string | null;\n countryName?: string | null;\n municipalityName?: string | null;\n url?: string | null;\n isSingleProject?: boolean;\n isCompleted?: boolean;\n image?: ResourceModel;\n location?: number[] | null;\n geometry?: PolygonModel[] | null;\n sustainabilitySubjects?: string[] | null;\n sustainabilityInfoText?: string | null;\n mapboxDatasetId?: string | null;\n mapboxTilesetId?: string | null;\n caseViaEmail?: boolean;\n website?: Website;\n id: string;\n}\n\nexport interface SeoText {\n saleTitle?: string | null;\n saleText?: string | null;\n rentalTitle?: string | null;\n rentalText?: string | null;\n}\n\nexport interface CityModel {\n countryId?: string | null;\n countryIsoCode?: string | null;\n provinceId?: string | null;\n name?: string | null;\n municipalityName?: string | null;\n seoText?: SeoText;\n id: string;\n}\n\nexport type ConstructionNumberStatus = 'Available' | 'InOption' | 'Sold';\n\nexport interface GroundLease {\n priceWithCanonDecimal?: number | null;\n canonPercentageYearly?: number | null;\n canonAmountYearlyDecimal?: number | null;\n canonPercentage10Year?: number | null;\n canonAmount10YearDecimal?: number | null;\n canonPercentage25Year?: number | null;\n canonAmount25YearDecimal?: number | null;\n buyOffAmountDecimal?: number | null;\n priceWithBuyOffDecimal?: number | null;\n}\n\nexport interface DecimalRange {\n from?: number;\n to?: number | null;\n}\n\nexport interface ConstructionNumberSpecifications {\n nonLivingArea?: DecimalRange;\n buildingRelatedExternalSpace?: DecimalRange;\n externalStorage?: DecimalRange;\n characteristic?: string | null;\n sunDirection?: string | null;\n rooms?: DecimalRange;\n bedrooms?: DecimalRange;\n livingArea?: DecimalRange;\n livingRoomArea?: DecimalRange;\n plotArea?: DecimalRange;\n volume?: DecimalRange;\n}\n\nexport type PriceCondition = 'VrijOpNaam' | 'KostenKoper';\n\nexport type SaleSpecification = 'ExclusiefBouwrente' | 'BtwBelast' | 'InclusiefBtw';\n\nexport type PriceType =\n | 'ExactSum'\n | 'AskingPrice'\n | 'StartsFrom'\n | 'Indication'\n | 'Circa'\n | 'PriceOnRequest';\n\nexport interface PropertySalesPrice {\n condition?: PriceCondition;\n saleSpecification?: SaleSpecification;\n amount?: DecimalRange;\n priceType?: PriceType;\n priceTypeFunda?: string | null;\n monthlyServiceCosts?: number | null;\n}\n\nexport interface PropertyRentalPrice {\n deposit?: number | null;\n amount?: DecimalRange;\n priceType?: PriceType;\n priceTypeFunda?: string | null;\n monthlyServiceCosts?: number | null;\n}\n\nexport interface LandRegistrationDetails {\n name?: string | null;\n proportion?: string | null;\n purchaseOption?: boolean | null;\n dateOfRequest?: string | null;\n durationOfLeaseHold?: string | null;\n isPermanentlyBought?: boolean | null;\n leaseHoldProvider?: string | null;\n leaseHoldPerYear?: number | null;\n cityHall?: string | null;\n municipalityId?: string | null;\n municipalityCode?: string | null;\n number?: string | null;\n scope?: string | null;\n area?: number | null;\n section?: string | null;\n type?: string | null;\n fixedVariable?: string | null;\n propertyTypeType?: string | null;\n propertyType?: string | null;\n plot?: string | null;\n constructionNumberId?: string | null;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport interface Vve {\n vveContribution?: number | null;\n hasMaintenanceForecast?: boolean | null;\n hasPeriodicContribution?: boolean | null;\n isRegisteredInKvK?: boolean | null;\n hasHomeInsurance?: boolean | null;\n hasReserveFunds?: boolean | null;\n hasMeetings?: boolean | null;\n}\n\nexport interface ExtraSpecifications {\n quality?: string | null;\n isPermanentResidence?: boolean | null;\n isRecreationalResidence?: boolean | null;\n isInPark?: boolean | null;\n isPractice?: boolean | null;\n hasExternalStorage?: boolean | null;\n hasVveChecklist?: boolean | null;\n hasOpenPorch?: boolean | null;\n location?: string[] | null;\n certifications?: string[] | null;\n hotWater?: string[] | null;\n facilities?: string[] | null;\n isolation?: string[] | null;\n heating?: string[] | null;\n cooling?: string[] | null;\n energyPerformance?: string[] | null;\n remarks?: string[] | null;\n roofMaterial?: string | null;\n roofType?: string | null;\n roofRemarks?: string | null;\n energyLabel?: string | null;\n maintenanceInside?: string | null;\n maintenanceOutside?: string | null;\n vve?: Vve;\n}\n\nexport interface Room {\n name?: string | null;\n type?: string | null;\n hasStairs?: boolean | null;\n length?: number | null;\n width?: number | null;\n height?: number | null;\n area?: number | null;\n volume?: number | null;\n renewedIn?: string | null;\n facilities?: string[] | null;\n}\n\nexport interface Floor {\n name?: string | null;\n type?: string | null;\n floorNumber?: string | null;\n totalNumberOfRooms?: number | null;\n totalNumberOfBedrooms?: number | null;\n rooms?: Room[] | null;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport interface Garden {\n type?: string | null;\n position?: string | null;\n length?: number | null;\n width?: number | null;\n area?: number | null;\n hasBackEntrance?: boolean | null;\n isMain?: boolean;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport interface OutsideSpace {\n type?: string | null;\n position?: string | null;\n length?: number | null;\n width?: number | null;\n area?: number | null;\n hasBackEntrance?: boolean | null;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport type GeoJSONObjectType =\n | 'Point'\n | 'MultiPoint'\n | 'LineString'\n | 'MultiLineString'\n | 'Polygon'\n | 'MultiPolygon'\n | 'GeometryCollection'\n | 'Feature'\n | 'FeatureCollection';\n\nexport interface IGeometryObject {\n type?: GeoJSONObjectType;\n}\n\nexport type CRSType = 'unspecified' | 'name' | 'link';\n\nexport interface ICRSObject {\n type?: CRSType;\n}\n\nexport interface Feature {\n type?: GeoJSONObjectType;\n id?: string | null;\n geometry: IGeometryObject;\n properties: { [key: string]: any } | null;\n bbox?: number[] | null;\n crs?: ICRSObject;\n}\n\nexport interface FeatureCollection {\n type?: GeoJSONObjectType;\n features: Feature[];\n bbox?: number[] | null;\n crs?: ICRSObject;\n}\n\nexport interface Outbuilding {\n typeCode?: string | null;\n name?: string | null;\n geometry?: FeatureCollection;\n type?: string | null;\n outbuildingType?: string | null;\n length?: number | null;\n width?: number | null;\n area?: number | null;\n isolation?: string[] | null;\n facilities?: string[] | null;\n facilitiesRemarks?: string | null;\n situation?: string | null;\n capacity?: number | null;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport interface ConstructionNumberModel {\n areaProjectId?: string | null;\n districtId?: string | null;\n projectPhaseId?: string | null;\n projectPhaseName?: string | null;\n propertyTypeId?: string | null;\n propertyTypeName?: string | null;\n apartmentBuildingId?: string | null;\n identifier?: string | null;\n serviceCostsPerMonth?: number;\n security?: number | null;\n wishlistItemCount?: number;\n numberOfReserveCandidates?: number;\n availabilityStatus?: ConstructionNumberStatus;\n shortDescription?: string | null;\n longDescription?: string | null;\n houseSubType?: string | null;\n deliveryDate?: string | null;\n geometry?: PolygonModel[] | null;\n resources?: ResourceModel[] | null;\n groundLease?: GroundLease;\n mainImage?: ResourceModel;\n specifications?: ConstructionNumberSpecifications;\n salesPrice?: PropertySalesPrice;\n rentalPrice?: PropertyRentalPrice;\n landRegistration?: LandRegistrationDetails;\n extraSpecifications?: ExtraSpecifications;\n floors?: Floor[] | null;\n gardens?: Garden[] | null;\n outsideSpace?: OutsideSpace[] | null;\n outbuildings?: Outbuilding[] | null;\n id: string;\n}\n\nexport interface CountryModel {\n isoCode?: string | null;\n name?: string | null;\n englishName?: string | null;\n seoText?: SeoText;\n id: string;\n}\n\nexport interface CountryQuery {\n [key: string]: any;\n}\n\nexport interface DistrictModel {\n areaProjectId?: string | null;\n name?: string | null;\n url?: string | null;\n location?: number[] | null;\n geometry?: PolygonModel[] | null;\n isSold?: boolean;\n enableWishlist?: boolean;\n descriptionTitle?: string | null;\n description?: string | null;\n image?: ResourceModel;\n id: string;\n}\n\nexport type Salutation = 'Undefined' | 'Mr' | 'Mrs' | 'Ms';\n\nexport interface LeadFormModel {\n city?: string | null;\n phone?: string | null;\n mobilePhone?: string | null;\n email?: string | null;\n countryId?: string | null;\n brochureId?: string | null;\n comment?: string | null;\n projectId?: string | null;\n propertyTypeId?: string | null;\n constructionNumberId?: string | null;\n areaProjectId?: string | null;\n districtId?: string | null;\n leadSource?: string | null;\n referringUrl?: string | null;\n salutation?: Salutation;\n initials?: string | null;\n firstName?: string | null;\n lastName?: string | null;\n lastNamePrefix?: string | null;\n street?: string | null;\n houseNumber?: string | null;\n houseNumberAddition?: string | null;\n postalCode?: string | null;\n}\n\nexport interface CaseFormModel {\n areaProjectId?: string | null;\n districtId?: string | null;\n projectId?: string | null;\n propertyTypeId?: string | null;\n regionId?: string | null;\n firstName?: string | null;\n lastName?: string | null;\n lastNamePrefix?: string | null;\n email: string;\n message: string;\n contactReason?: string | null;\n phoneNumber?: string | null;\n webcareSubject?: string | null;\n chatUrl?: string | null;\n mailTo?: string | null;\n referringUrl?: string | null;\n}\n\nexport interface DynamicFormModel {\n objectName?: string | null;\n mailTo?: string | null;\n fields?: {\n [key: string]: string;\n } | null;\n}\n\nexport interface APIProject {\n id?: string | null;\n name?: string | null;\n cityName?: string | null;\n fundaStatus?: string | null;\n fundaLastSyncDate?: string | null;\n fundaGatewayTransactionId?: number | null;\n fundaId?: number | null;\n connectionVersion?: string | null;\n userType?: string | null;\n gwnProjectVersion?: string | null;\n isAdmin?: boolean;\n}\n\nexport interface SerializedFeature {\n featureId?: string | null;\n featureJson?: string | null;\n}\n\nexport interface SerializedObjectFeatures {\n objectId?: string | null;\n features?: SerializedFeature[] | null;\n}\n\nexport interface SerializedFeatures {\n objectFeatures?: SerializedObjectFeatures[] | null;\n}\n\nexport type GrantStatus = 'NotActive' | 'ApplicationGranted';\n\nexport interface GrantModel {\n displayOnMap?: boolean;\n projectName?: string | null;\n cityName?: string | null;\n location?: number[] | null;\n status?: GrantStatus;\n id: string;\n}\n\nexport type ProjectPhaseStatus =\n | 'InPreparation'\n | 'OnSale'\n | 'Sold'\n | 'ForRent'\n | 'Rented'\n | 'NotActive';\n\nexport interface PropertySpecifications {\n rooms?: DecimalRange;\n bedrooms?: DecimalRange;\n livingArea?: DecimalRange;\n livingRoomArea?: DecimalRange;\n plotArea?: DecimalRange;\n volume?: DecimalRange;\n}\n\nexport interface ProjectPhaseModel {\n areaProjectId?: string | null;\n areaProjectName?: string | null;\n districtId?: string | null;\n name?: string | null;\n url?: string | null;\n districtUrl?: string | null;\n shortDescription?: string | null;\n longDescription?: string | null;\n status?: ProjectPhaseStatus;\n saleStartDate?: string | null;\n saleEndDate?: string | null;\n allocationDate?: string | null;\n cityName?: string | null;\n municipalityName?: string | null;\n provinceName?: string | null;\n sortIndex?: number | null;\n environmentTypes?: string[] | null;\n deliveryStartDate?: string | null;\n constructionStartDate?: string | null;\n isRental?: boolean;\n isDigitalBrochureEnabled?: boolean;\n indicationServiceCosts?: number | null;\n indicationSecurity?: number | null;\n location?: number[] | null;\n geometry?: PolygonModel[] | null;\n resources?: ResourceModel[] | null;\n mainImage?: ResourceModel;\n propertySpecifications?: PropertySpecifications;\n propertyPurchasePrice?: PropertySalesPrice;\n propertyRentalPrice?: PropertyRentalPrice;\n houseTypes?: string[] | null;\n id: string;\n}\n\nexport interface PropertyTypeModel {\n areaProjectId?: string | null;\n districtId?: string | null;\n projectPhaseId?: string | null;\n projectPhaseName?: string | null;\n name?: string | null;\n shortDescription?: string | null;\n longDescription?: string | null;\n houseType?: string | null;\n houseSubType?: string | null;\n sortIndex?: number | null;\n environmentTypes?: string[] | null;\n hasBalcony?: boolean;\n isRental?: boolean;\n groundLease?: GroundLease;\n geometry?: PolygonModel[] | null;\n resources?: ResourceModel[] | null;\n mainImage?: ResourceModel;\n deliveryStartDate?: string | null;\n constructionStartDate?: string | null;\n indicationServiceCosts?: number | null;\n indicationSecurity?: number | null;\n specifications?: PropertySpecifications;\n salesPrice?: PropertySalesPrice;\n rentalPrice?: PropertyRentalPrice;\n canShowPrice?: boolean;\n extraSpecifications?: ExtraSpecifications;\n floors?: Floor[] | null;\n gardens?: Garden[] | null;\n outsideSpace?: OutsideSpace[] | null;\n outbuildings?: Outbuilding[] | null;\n usp1Title?: string | null;\n usp1Text?: string | null;\n usp2Title?: string | null;\n usp2Text?: string | null;\n id: string;\n}\n\nexport interface ProvinceModel {\n countryId?: string | null;\n countryIsoCode?: string | null;\n name?: string | null;\n seoText?: SeoText;\n id: string;\n}\n\nexport interface RegionModel {\n name?: string | null;\n id: string;\n}\n\nexport interface ApartmentBuildingQueryQueryParams {\n AreaProjectId?: string | null;\n ProjectPhaseId?: string | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ApartmentBuildingUpdateApartmentBuildingQueryParams {\n origin?: string | null;\n}\n\nexport interface ApartmentBuildingDeleteApartmentBuildingQueryParams {\n origin?: string | null;\n}\n\nexport interface ApartmentBuildingGetByExternalIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface AreaProjectGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface AreaProjectQueryQueryParams {\n CountryIsoCode?: string | null;\n HasLocationData?: boolean | null;\n CorporateSite?: boolean | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface CityGetByNameQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface CityGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface CityQueryQueryParams {\n CountryIsoCode?: string | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ConstructionNumberGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ConstructionNumberQueryQueryParams {\n AreaProjectId?: string | null;\n ProjectPhaseId?: string | null;\n PropertyTypeId?: string | null;\n MinPrice?: number | null;\n MaxPrice?: number | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface CountryGetByIsoCodeQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface CountryGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface CountryQueryQueryParams {\n query?: CountryQuery;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface DistrictGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface DistrictQueryQueryParams {\n AreaProjectId?: string | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface FundaQueryQueryParams {\n regionId?: string | null;\n query?: string | null;\n userType?: string | null;\n isAdmin?: boolean;\n allowedRegionIds?: string | null;\n}\n\nexport interface FundaGetQueryParams {\n id?: string | null;\n isAdmin?: boolean;\n userType?: string | null;\n}\n\nexport interface FundaSubmitQueryParams {\n id?: string | null;\n incrementVersion?: boolean;\n}\n\nexport interface FundaValidateQueryParams {\n id?: string | null;\n}\n\nexport interface FundaShowLastSubmittedProjectQueryParams {\n projectCrmId?: string | null;\n}\n\nexport interface FundaShowConvertedFundaObjectQueryParams {\n projectCrmId?: string | null;\n}\n\nexport interface FundaCompareFundaObjectRevisionChangesQueryParams {\n projectCrmId?: string | null;\n gwnId?: number;\n}\n\nexport interface FundaShowFundaProjectLogsQueryParams {\n projectCrmId?: string | null;\n}\n\nexport interface FundaGetAllGwnVersionsByProjectIdQueryParams {\n projectCrmId?: string | null;\n}\n\nexport interface FundaRemoveVersionFromGwnQueryParams {\n projectId?: string | null;\n projectFundaId?: number;\n projectCode?: string | null;\n nvmId?: string | null;\n}\n\nexport interface GrantGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface GrantQueryQueryParams {\n ProjectName?: string | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ProjectPhaseGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ProjectPhaseQueryQueryParams {\n CountryIsoCode?: string | null;\n AreaProjectId?: string | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface PropertyTypeGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface PropertyTypeQueryQueryParams {\n AreaProjectId?: string | null;\n ProjectPhaseId?: string | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ProvinceGetByNameQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ProvinceGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ProvinceQueryQueryParams {\n CountryIsoCode?: string | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface RegionGetByIdQueryParams {\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface RegionQueryQueryParams {\n AllowedRegionIds?: string | null;\n exclude?: string | null;\n lang?: string | null;\n}\n\nexport interface ResourceUpdateResourceQueryParams {\n projectId?: string | null;\n}\n\nexport interface ResourceDeleteResourceQueryParams {\n projectId?: string | null;\n}\n\nexport const apartmentBuildingQuery = (\n params?: ApartmentBuildingQueryQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ApartmentBuildingModel[]>(`/api/apartmentbuildings`, params, config).then(\n (res) => res!,\n );\n\nexport const apartmentBuildingUpdateApartmentBuilding = (\n nodeId: string | null,\n body: UpdateApartmentBuildingModel,\n config?: RequestConfig,\n) => APIClient.put<void>(`/api/apartmentbuildings/${nodeId}`, body, config).then((res) => res!);\n\nexport const apartmentBuildingDeleteApartmentBuilding = (\n nodeId: string | null,\n body: any,\n config?: RequestConfig,\n) => APIClient.delete<void>(`/api/apartmentbuildings/${nodeId}`, body, config).then((res) => res!);\n\nexport const apartmentBuildingGetByExternalId = (\n nodeId: string | null,\n params?: ApartmentBuildingGetByExternalIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ApartmentBuildingModel>(`/api/apartmentbuildings/${nodeId}`, params, config).then(\n (res) => res!,\n );\n\nexport const areaProjectGetById = (\n id: string | null,\n params?: AreaProjectGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<AreaProjectModel>(`/api/areaprojects/${id}`, params, config).then((res) => res!);\n\nexport const areaProjectQuery = (params?: AreaProjectQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<AreaProjectModel[]>(`/api/areaprojects`, params, config).then((res) => res!);\n\nexport const cityGetByName = (\n name: string | null,\n params?: CityGetByNameQueryParams,\n config?: RequestConfig,\n) => APIClient.get<CityModel>(`/api/cities/name/${name}`, params, config).then((res) => res!);\n\nexport const cityGetById = (\n id: string | null,\n params?: CityGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<CityModel>(`/api/cities/${id}`, params, config).then((res) => res!);\n\nexport const cityQuery = (params?: CityQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<CityModel[]>(`/api/cities`, params, config).then((res) => res!);\n\nexport const communityRedirectAsset = (\n objectType: string | null,\n id: string | null,\n params?: any,\n config?: RequestConfig,\n) =>\n APIClient.get<void>(`/api/community/asset/${objectType}/${id}`, params, config).then(\n (res) => res!,\n );\n\nexport const constructionNumberGetById = (\n id: string | null,\n params?: ConstructionNumberGetByIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ConstructionNumberModel>(`/api/constructionnumbers/${id}`, params, config).then(\n (res) => res!,\n );\n\nexport const constructionNumberQuery = (\n params?: ConstructionNumberQueryQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ConstructionNumberModel[]>(`/api/constructionnumbers`, params, config).then(\n (res) => res!,\n );\n\nexport const countryGetByIsoCode = (\n isoCode: string | null,\n params?: CountryGetByIsoCodeQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<CountryModel>(`/api/countries/isoCode/${isoCode}`, params, config).then(\n (res) => res!,\n );\n\nexport const countryGetById = (\n id: string | null,\n params?: CountryGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<CountryModel>(`/api/countries/${id}`, params, config).then((res) => res!);\n\nexport const countryQuery = (params?: CountryQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<CountryModel[]>(`/api/countries`, params, config).then((res) => res!);\n\nexport const districtGetById = (\n id: string | null,\n params?: DistrictGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<DistrictModel>(`/api/districts/${id}`, params, config).then((res) => res!);\n\nexport const districtQuery = (params?: DistrictQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<DistrictModel[]>(`/api/districts`, params, config).then((res) => res!);\n\nexport const formLead = (body: LeadFormModel, config?: RequestConfig) =>\n APIClient.post<void>(`/api/forms/lead`, body, config).then((res) => res!);\n\nexport const formCase = (body: CaseFormModel, config?: RequestConfig) =>\n APIClient.post<void>(`/api/forms/case`, body, config).then((res) => res!);\n\nexport const formDynamic = (body: DynamicFormModel, config?: RequestConfig) =>\n APIClient.post<void>(`/api/forms/dynamic`, body, config).then((res) => res!);\n\nexport const fundaQuery = (params?: FundaQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<APIProject[]>(`/api/Funda/query`, params, config).then((res) => res!);\n\nexport const fundaGet = (params?: FundaGetQueryParams, config?: RequestConfig) =>\n APIClient.get<void>(`/api/Funda`, params, config).then((res) => res!);\n\nexport const fundaSubmit = (body: any, config?: RequestConfig) =>\n APIClient.post<void>(`/api/Funda/submit`, body, config).then((res) => res!);\n\nexport const fundaValidate = (body: any, config?: RequestConfig) =>\n APIClient.post<void>(`/api/Funda/validate`, body, config).then((res) => res!);\n\nexport const fundaShowLastSubmittedProject = (\n params?: FundaShowLastSubmittedProjectQueryParams,\n config?: RequestConfig,\n) => APIClient.get<void>(`/api/Funda/ShowLastSubmittedProject`, params, config).then((res) => res!);\n\nexport const fundaShowConvertedFundaObject = (\n params?: FundaShowConvertedFundaObjectQueryParams,\n config?: RequestConfig,\n) => APIClient.get<void>(`/api/Funda/ShowConvertedFundaObject`, params, config).then((res) => res!);\n\nexport const fundaCompareFundaObjectRevisionChanges = (\n params?: FundaCompareFundaObjectRevisionChangesQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<void>(`/api/Funda/CompareFundaObjectRevisionChanges`, params, config).then(\n (res) => res!,\n );\n\nexport const fundaShowFundaProjectLogs = (\n params?: FundaShowFundaProjectLogsQueryParams,\n config?: RequestConfig,\n) => APIClient.get<void>(`/api/Funda/ShowFundaProjectLogs`, params, config).then((res) => res!);\n\nexport const fundaExecuteFundaPublisher = (params?: any, config?: RequestConfig) =>\n APIClient.get<void>(`/api/Funda/ExecuteFundaPublisher`, params, config).then((res) => res!);\n\nexport const fundaGetAllGwnVersionsByProjectId = (\n params?: FundaGetAllGwnVersionsByProjectIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<void>(`/api/Funda/GetAllGwnVersionsByProjectId`, params, config).then(\n (res) => res!,\n );\n\nexport const fundaRemoveVersionFromGwn = (\n params?: FundaRemoveVersionFromGwnQueryParams,\n config?: RequestConfig,\n) => APIClient.get<void>(`/api/Funda/RemoveVersionFromGwn`, params, config).then((res) => res!);\n\nexport const fundaGetActiveBrokersInGateway = (params?: any, config?: RequestConfig) =>\n APIClient.get<void>(`/api/Funda/GetActiveBrokersInGateway`, params, config).then((res) => res!);\n\nexport const geoFeatureUpsertGeoFeature = (\n areaId: string | null,\n objectId: string | null,\n body: SerializedFeature,\n config?: RequestConfig,\n) => APIClient.put<void>(`/api/geofeature/${areaId}/${objectId}`, body, config).then((res) => res!);\n\nexport const geoFeatureUpsertAreaFeatures = (\n areaId: string | null,\n body: SerializedFeatures,\n config?: RequestConfig,\n) => APIClient.put<void>(`/api/geofeature/${areaId}`, body, config).then((res) => res!);\n\nexport const geoFeatureDeleteGeoFeature = (\n areaId: string | null,\n objectId: string | null,\n featureId: string | null,\n body: any,\n config?: RequestConfig,\n) =>\n APIClient.delete<void>(`/api/geofeature/${areaId}/${objectId}/${featureId}`, body, config).then(\n (res) => res!,\n );\n\nexport const grantGetById = (\n id: string | null,\n params?: GrantGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<GrantModel>(`/api/grants/${id}`, params, config).then((res) => res!);\n\nexport const grantQuery = (params?: GrantQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<GrantModel[]>(`/api/grants`, params, config).then((res) => res!);\n\nexport const projectPhaseGetById = (\n id: string | null,\n params?: ProjectPhaseGetByIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ProjectPhaseModel>(`/api/projectphases/${id}`, params, config).then(\n (res) => res!,\n );\n\nexport const projectPhaseQuery = (params?: ProjectPhaseQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<ProjectPhaseModel[]>(`/api/projectphases`, params, config).then((res) => res!);\n\nexport const propertyTypeGetById = (\n id: string | null,\n params?: PropertyTypeGetByIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<PropertyTypeModel>(`/api/propertytypes/${id}`, params, config).then(\n (res) => res!,\n );\n\nexport const propertyTypeQuery = (params?: PropertyTypeQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<PropertyTypeModel[]>(`/api/propertytypes`, params, config).then((res) => res!);\n\nexport const provinceGetByName = (\n name: string | null,\n params?: ProvinceGetByNameQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ProvinceModel>(`/api/provinces/name/${name}`, params, config).then((res) => res!);\n\nexport const provinceGetById = (\n id: string | null,\n params?: ProvinceGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<ProvinceModel>(`/api/provinces/${id}`, params, config).then((res) => res!);\n\nexport const provinceQuery = (params?: ProvinceQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<ProvinceModel[]>(`/api/provinces`, params, config).then((res) => res!);\n\nexport const regionGetById = (\n id: string | null,\n params?: RegionGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<RegionModel>(`/api/region/${id}`, params, config).then((res) => res!);\n\nexport const regionQuery = (params?: RegionQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<RegionModel[]>(`/api/region`, params, config).then((res) => res!);\n\nexport const resourceUpdateResource = (\n mediaId: string | null,\n body: UpdateResourceModel,\n config?: RequestConfig,\n) => APIClient.put<void>(`/api/resources/${mediaId}`, body, config).then((res) => res!);\n\nexport const resourceDeleteResource = (mediaId: string | null, body: any, config?: RequestConfig) =>\n APIClient.delete<void>(`/api/resources/${mediaId}`, body, config).then((res) => res!);\n"]}
1
+ {"version":3,"file":"bpd-client.js","sourceRoot":"","sources":["../../src/generated/bpd-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,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AAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC;AAEzF,MAAM,CAAC,MAAM,aAAa,GAAG,CACzB,EAAiB,EACjB,MAAiC,EACjC,MAAsB,EACxB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAc,eAAe,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC;AAEzF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAA+B,EAAE,MAAsB,EAAE,EAAE,CACnF,SAAS,CAAC,GAAG,CAAgB,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC;AAEpF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAClC,OAAsB,EACtB,IAAyB,EACzB,MAAsB,EACxB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAO,kBAAkB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC;AAExF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAsB,EAAE,IAAS,EAAE,MAAsB,EAAE,EAAE,CAChG,SAAS,CAAC,MAAM,CAAO,kBAAkB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/interface-name-prefix */\n/* Generated by oats-generator */\n\nimport { APIClient } from '../api';\nimport { RequestConfig } from '../api/http';\n\nexport interface ResourceModel {\n title?: string | null;\n url?: string | null;\n resourceType?: string | null;\n contentType?: string | null;\n mediaNodeId?: string | null;\n lastUpdatedUtc?: string;\n metadata?: {\n [key: string]: string;\n } | null;\n}\n\nexport interface PolygonModel {\n coordinates?: number[][] | null;\n}\n\nexport interface ApartmentBuildingViewPointer {\n type?: string | null;\n coordinates?: number[] | null;\n constructionNumberId?: string | null;\n linkToViewId?: string | null;\n label?: string | null;\n alignment?: string | null;\n compassDirection?: string | null;\n}\n\nexport interface ApartmentBuildingView {\n id?: string | null;\n imageUrl?: string | null;\n type?: string | null;\n sourceUrl?: string | null;\n label?: string | null;\n buttonLabel?: string | null;\n rotateLeftViewId?: string | null;\n rotateRightViewId?: string | null;\n pointers?: ApartmentBuildingViewPointer[] | null;\n}\n\nexport interface ApartmentBuildingModel {\n areaProjectId?: string | null;\n projectPhaseId?: string | null;\n projectPhaseName?: string | null;\n displayName?: string | null;\n alias?: string | null;\n nodeId?: string | null;\n propertyTypeIds?: string[] | null;\n constructionNumberIds?: string[] | null;\n image?: ResourceModel;\n geometry?: PolygonModel[] | null;\n views?: ApartmentBuildingView[] | null;\n id: string;\n}\n\nexport interface ResourceReference {\n ownerId?: string | null;\n ownerType?: string | null;\n isMainResource?: boolean | null;\n}\n\nexport interface UpdateResourceModel {\n title?: string | null;\n url?: string | null;\n resourceType?: string | null;\n contentType?: string | null;\n sortIndex?: number;\n references?: ResourceReference[] | null;\n metadata?: {\n [key: string]: string;\n } | null;\n}\n\nexport interface UpdateApartmentBuildingModel {\n districtId?: string | null;\n alias?: string | null;\n displayName?: string | null;\n description?: string | null;\n propertyTypeIds?: string[] | null;\n sortIndex?: number;\n views?: ApartmentBuildingView[] | null;\n image?: UpdateResourceModel;\n}\n\nexport interface ProblemDetails {\n type?: string | null;\n title?: string | null;\n status?: number | null;\n detail?: string | null;\n instance?: string | null;\n}\n\nexport interface Time {\n hour?: number;\n minute?: number;\n}\n\nexport interface TimeRange {\n from?: Time;\n to?: Time;\n}\n\nexport interface WebsiteContact {\n enableWebchat?: boolean;\n webchatServer?: string | null;\n webchatUcc?: string | null;\n phoneNumber?: string | null;\n emailAddress?: string | null;\n facebookUrl?: string | null;\n pinterestUrl?: string | null;\n twitterUrl?: string | null;\n caseViaEmail?: boolean;\n openingHoursWeekdays?: TimeRange;\n openingHoursSaturday?: TimeRange;\n openingHoursSunday?: TimeRange;\n isClosedToday?: boolean;\n}\n\nexport interface WebsiteModel {\n mapboxTilesetId?: string | null;\n mapboxDatasetId?: string | null;\n url?: string | null;\n enableCustomerCommunity?: boolean;\n enableFavourites?: boolean;\n enableMortgageCalculator?: boolean;\n secondLevelNavigationButtonLabelSingular?: {\n [key: string]: string;\n } | null;\n secondLevelNavigationButtonLabelPlural?: {\n [key: string]: string;\n } | null;\n secondLevelNavigationLabelSingular?: string | null;\n secondLevelNavigationLabelPlural?: string | null;\n skinName?: string | null;\n contactDetails?: WebsiteContact;\n showOnCorporateSite?: boolean;\n}\n\nexport interface AreaProjectModel {\n name?: string | null;\n shortDescription?: string | null;\n regionId?: string | null;\n countryName?: string | null;\n municipalityName?: string | null;\n url?: string | null;\n isSingleProject?: boolean;\n isCompleted?: boolean;\n image?: ResourceModel;\n location?: number[] | null;\n geometry?: PolygonModel[] | null;\n sustainabilitySubjects?: string[] | null;\n sustainabilityInfoText?: string | null;\n mapboxDatasetId?: string | null;\n mapboxTilesetId?: string | null;\n caseViaEmail?: boolean;\n website?: WebsiteModel;\n id: string;\n}\n\nexport interface SeoText {\n saleTitle?: string | null;\n saleText?: string | null;\n rentalTitle?: string | null;\n rentalText?: string | null;\n}\n\nexport interface CityModel {\n countryId?: string | null;\n countryIsoCode?: string | null;\n provinceId?: string | null;\n name?: string | null;\n municipalityName?: string | null;\n seoText?: SeoText;\n id: string;\n}\n\nexport type ConstructionNumberStatus = 'Available' | 'InOption' | 'Sold';\n\nexport interface GroundLease {\n priceWithCanonDecimal?: number | null;\n canonPercentageYearly?: number | null;\n canonAmountYearlyDecimal?: number | null;\n canonPercentage10Year?: number | null;\n canonAmount10YearDecimal?: number | null;\n canonPercentage25Year?: number | null;\n canonAmount25YearDecimal?: number | null;\n buyOffAmountDecimal?: number | null;\n priceWithBuyOffDecimal?: number | null;\n}\n\nexport interface DecimalRange {\n from?: number;\n to?: number | null;\n}\n\nexport interface ConstructionNumberSpecifications {\n nonLivingArea?: DecimalRange;\n buildingRelatedExternalSpace?: DecimalRange;\n externalStorage?: DecimalRange;\n characteristic?: string | null;\n sunDirection?: string | null;\n rooms?: DecimalRange;\n bedrooms?: DecimalRange;\n livingArea?: DecimalRange;\n livingRoomArea?: DecimalRange;\n plotArea?: DecimalRange;\n volume?: DecimalRange;\n}\n\nexport type PriceCondition = 'VrijOpNaam' | 'KostenKoper';\n\nexport type SaleSpecification = 'ExclusiefBouwrente' | 'BtwBelast' | 'InclusiefBtw';\n\nexport type PriceType =\n | 'ExactSum'\n | 'AskingPrice'\n | 'StartsFrom'\n | 'Indication'\n | 'Circa'\n | 'PriceOnRequest';\n\nexport interface PropertySalesPrice {\n condition?: PriceCondition;\n saleSpecification?: SaleSpecification;\n amount?: DecimalRange;\n priceType?: PriceType;\n priceTypeFunda?: string | null;\n monthlyServiceCosts?: number | null;\n}\n\nexport interface PropertyRentalPrice {\n deposit?: number | null;\n amount?: DecimalRange;\n priceType?: PriceType;\n priceTypeFunda?: string | null;\n monthlyServiceCosts?: number | null;\n}\n\nexport interface LandRegistrationDetails {\n name?: string | null;\n proportion?: string | null;\n purchaseOption?: boolean | null;\n dateOfRequest?: string | null;\n durationOfLeaseHold?: string | null;\n isPermanentlyBought?: boolean | null;\n leaseHoldProvider?: string | null;\n leaseHoldPerYear?: number | null;\n cityHall?: string | null;\n municipalityId?: string | null;\n municipalityCode?: string | null;\n number?: string | null;\n scope?: string | null;\n area?: number | null;\n section?: string | null;\n type?: string | null;\n fixedVariable?: string | null;\n propertyTypeType?: string | null;\n propertyType?: string | null;\n plot?: string | null;\n constructionNumberId?: string | null;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport interface Vve {\n vveContribution?: number | null;\n hasMaintenanceForecast?: boolean | null;\n hasPeriodicContribution?: boolean | null;\n isRegisteredInKvK?: boolean | null;\n hasHomeInsurance?: boolean | null;\n hasReserveFunds?: boolean | null;\n hasMeetings?: boolean | null;\n}\n\nexport interface ExtraSpecifications {\n quality?: string | null;\n isPermanentResidence?: boolean | null;\n isRecreationalResidence?: boolean | null;\n isInPark?: boolean | null;\n isPractice?: boolean | null;\n hasExternalStorage?: boolean | null;\n hasVveChecklist?: boolean | null;\n hasOpenPorch?: boolean | null;\n location?: string[] | null;\n certifications?: string[] | null;\n hotWater?: string[] | null;\n facilities?: string[] | null;\n isolation?: string[] | null;\n heating?: string[] | null;\n cooling?: string[] | null;\n energyPerformance?: string[] | null;\n remarks?: string[] | null;\n roofMaterial?: string | null;\n roofType?: string | null;\n roofRemarks?: string | null;\n energyLabel?: string | null;\n maintenanceInside?: string | null;\n maintenanceOutside?: string | null;\n vve?: Vve;\n}\n\nexport interface Room {\n name?: string | null;\n type?: string | null;\n hasStairs?: boolean | null;\n length?: number | null;\n width?: number | null;\n height?: number | null;\n area?: number | null;\n volume?: number | null;\n renewedIn?: string | null;\n facilities?: string[] | null;\n}\n\nexport interface Floor {\n name?: string | null;\n type?: string | null;\n floorNumber?: string | null;\n totalNumberOfRooms?: number | null;\n totalNumberOfBedrooms?: number | null;\n rooms?: Room[] | null;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport interface Garden {\n type?: string | null;\n position?: string | null;\n length?: number | null;\n width?: number | null;\n area?: number | null;\n hasBackEntrance?: boolean | null;\n isMain?: boolean;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport interface OutsideSpace {\n type?: string | null;\n position?: string | null;\n length?: number | null;\n width?: number | null;\n area?: number | null;\n hasBackEntrance?: boolean | null;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport type GeoJSONObjectType =\n | 'Point'\n | 'MultiPoint'\n | 'LineString'\n | 'MultiLineString'\n | 'Polygon'\n | 'MultiPolygon'\n | 'GeometryCollection'\n | 'Feature'\n | 'FeatureCollection';\n\nexport interface IGeometryObject {\n type?: GeoJSONObjectType;\n}\n\nexport type CRSType = 'unspecified' | 'name' | 'link';\n\nexport interface ICRSObject {\n type?: CRSType;\n}\n\nexport interface Feature {\n type?: GeoJSONObjectType;\n id?: string | null;\n geometry: IGeometryObject;\n properties: { [key: string]: any } | null;\n bbox?: number[] | null;\n crs?: ICRSObject;\n}\n\nexport interface FeatureCollection {\n type?: GeoJSONObjectType;\n features: Feature[];\n bbox?: number[] | null;\n crs?: ICRSObject;\n}\n\nexport interface Outbuilding {\n typeCode?: string | null;\n name?: string | null;\n geometry?: FeatureCollection;\n type?: string | null;\n outbuildingType?: string | null;\n length?: number | null;\n width?: number | null;\n area?: number | null;\n isolation?: string[] | null;\n facilities?: string[] | null;\n facilitiesRemarks?: string | null;\n situation?: string | null;\n capacity?: number | null;\n id?: string | null;\n dbCreateTimestamp?: number | null;\n dbUpdateTimestamp?: number | null;\n}\n\nexport interface ConstructionNumberModel {\n areaProjectId?: string | null;\n districtId?: string | null;\n projectPhaseId?: string | null;\n projectPhaseName?: string | null;\n propertyTypeId?: string | null;\n propertyTypeName?: string | null;\n apartmentBuildingId?: string | null;\n identifier?: string | null;\n serviceCostsPerMonth?: number;\n security?: number | null;\n wishlistItemCount?: number;\n numberOfReserveCandidates?: number;\n availabilityStatus?: ConstructionNumberStatus;\n shortDescription?: string | null;\n longDescription?: string | null;\n houseSubType?: string | null;\n deliveryDate?: string | null;\n geometry?: PolygonModel[] | null;\n resources?: ResourceModel[] | null;\n groundLease?: GroundLease;\n mainImage?: ResourceModel;\n specifications?: ConstructionNumberSpecifications;\n salesPrice?: PropertySalesPrice;\n rentalPrice?: PropertyRentalPrice;\n landRegistration?: LandRegistrationDetails;\n extraSpecifications?: ExtraSpecifications;\n floors?: Floor[] | null;\n gardens?: Garden[] | null;\n outsideSpace?: OutsideSpace[] | null;\n outbuildings?: Outbuilding[] | null;\n id: string;\n}\n\nexport interface CountryModel {\n isoCode?: string | null;\n name?: string | null;\n englishName?: string | null;\n seoText?: SeoText;\n id: string;\n}\n\nexport interface CountryQuery {\n [key: string]: any;\n}\n\nexport interface DistrictModel {\n areaProjectId?: string | null;\n name?: string | null;\n url?: string | null;\n location?: number[] | null;\n geometry?: PolygonModel[] | null;\n isSold?: boolean;\n enableWishlist?: boolean;\n descriptionTitle?: string | null;\n description?: string | null;\n image?: ResourceModel;\n id: string;\n}\n\nexport type Salutation = 'Undefined' | 'Mr' | 'Mrs' | 'Ms';\n\nexport interface LeadFormModel {\n city?: string | null;\n phone?: string | null;\n mobilePhone?: string | null;\n email?: string | null;\n countryId?: string | null;\n brochureId?: string | null;\n comment?: string | null;\n projectId?: string | null;\n propertyTypeId?: string | null;\n constructionNumberId?: string | null;\n areaProjectId?: string | null;\n districtId?: string | null;\n leadSource?: string | null;\n referringUrl?: string | null;\n salutation?: Salutation;\n initials?: string | null;\n firstName?: string | null;\n lastName?: string | null;\n lastNamePrefix?: string | null;\n street?: string | null;\n houseNumber?: string | null;\n houseNumberAddition?: string | null;\n postalCode?: string | null;\n}\n\nexport interface CaseFormModel {\n areaProjectId?: string | null;\n districtId?: string | null;\n projectId?: string | null;\n propertyTypeId?: string | null;\n regionId?: string | null;\n firstName?: string | null;\n lastName?: string | null;\n lastNamePrefix?: string | null;\n email: string;\n message: string;\n contactReason?: string | null;\n phoneNumber?: string | null;\n webcareSubject?: string | null;\n chatUrl?: string | null;\n mailTo?: string | null;\n referringUrl?: string | null;\n}\n\nexport interface DynamicFormModel {\n objectName?: string | null;\n mailTo?: string | null;\n fields?: {\n [key: string]: string;\n } | null;\n}\n\nexport interface APIProject {\n id?: string | null;\n name?: string | null;\n cityName?: string | null;\n fundaStatus?: string | null;\n fundaLastSyncDate?: string | null;\n fundaGatewayTransactionId?: number | null;\n fundaId?: number | null;\n connectionVersion?: string | null;\n userType?: string | null;\n gwnProjectVersion?: string | null;\n isAdmin?: boolean;\n}\n\nexport interface SerializedFeature {\n featureId?: string | null;\n featureJson?: string | null;\n}\n\nexport interface SerializedObjectFeatures {\n objectId?: string | null;\n features?: SerializedFeature[] | null;\n}\n\nexport interface SerializedFeatures {\n objectFeatures?: SerializedObjectFeatures[] | null;\n}\n\nexport type GrantStatus = 'NotActive' | 'ApplicationGranted';\n\nexport interface GrantModel {\n displayOnMap?: boolean;\n projectName?: string | null;\n cityName?: string | null;\n location?: number[] | null;\n status?: GrantStatus;\n id: string;\n}\n\nexport type ProjectPhaseStatus =\n | 'InPreparation'\n | 'OnSale'\n | 'Sold'\n | 'ForRent'\n | 'Rented'\n | 'NotActive';\n\nexport interface PropertySpecifications {\n rooms?: DecimalRange;\n bedrooms?: DecimalRange;\n livingArea?: DecimalRange;\n livingRoomArea?: DecimalRange;\n plotArea?: DecimalRange;\n volume?: DecimalRange;\n}\n\nexport interface ProjectPhaseModel {\n areaProjectId?: string | null;\n areaProjectName?: string | null;\n districtId?: string | null;\n name?: string | null;\n url?: string | null;\n districtUrl?: string | null;\n shortDescription?: string | null;\n longDescription?: string | null;\n status?: ProjectPhaseStatus;\n saleStartDate?: string | null;\n saleEndDate?: string | null;\n allocationDate?: string | null;\n cityName?: string | null;\n municipalityName?: string | null;\n provinceName?: string | null;\n sortIndex?: number | null;\n environmentTypes?: string[] | null;\n deliveryStartDate?: string | null;\n constructionStartDate?: string | null;\n isRental?: boolean;\n isDigitalBrochureEnabled?: boolean;\n indicationServiceCosts?: number | null;\n indicationSecurity?: number | null;\n location?: number[] | null;\n geometry?: PolygonModel[] | null;\n resources?: ResourceModel[] | null;\n mainImage?: ResourceModel;\n propertySpecifications?: PropertySpecifications;\n propertyPurchasePrice?: PropertySalesPrice;\n propertyRentalPrice?: PropertyRentalPrice;\n houseTypes?: string[] | null;\n id: string;\n}\n\nexport interface PropertyTypeModel {\n areaProjectId?: string | null;\n districtId?: string | null;\n projectPhaseId?: string | null;\n projectPhaseName?: string | null;\n name?: string | null;\n shortDescription?: string | null;\n longDescription?: string | null;\n houseType?: string | null;\n houseSubType?: string | null;\n sortIndex?: number | null;\n environmentTypes?: string[] | null;\n hasBalcony?: boolean;\n isRental?: boolean;\n groundLease?: GroundLease;\n geometry?: PolygonModel[] | null;\n resources?: ResourceModel[] | null;\n mainImage?: ResourceModel;\n deliveryStartDate?: string | null;\n constructionStartDate?: string | null;\n indicationServiceCosts?: number | null;\n indicationSecurity?: number | null;\n specifications?: PropertySpecifications;\n salesPrice?: PropertySalesPrice;\n rentalPrice?: PropertyRentalPrice;\n canShowPrice?: boolean;\n extraSpecifications?: ExtraSpecifications;\n floors?: Floor[] | null;\n gardens?: Garden[] | null;\n outsideSpace?: OutsideSpace[] | null;\n outbuildings?: Outbuilding[] | null;\n usp1Title?: string | null;\n usp1Text?: string | null;\n usp2Title?: string | null;\n usp2Text?: string | null;\n id: string;\n}\n\nexport interface ProvinceModel {\n countryId?: string | null;\n countryIsoCode?: string | null;\n name?: string | null;\n seoText?: SeoText;\n id: string;\n}\n\nexport interface RegionModel {\n name?: string | null;\n id: string;\n}\n\nexport interface ApartmentBuildingQueryQueryParams {\n AreaProjectId?: string | null;\n ProjectPhaseId?: string | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ApartmentBuildingUpdateApartmentBuildingQueryParams {\n origin?: string | null;\n}\n\nexport interface ApartmentBuildingDeleteApartmentBuildingQueryParams {\n origin?: string | null;\n}\n\nexport interface ApartmentBuildingGetByExternalIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface AreaProjectGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface AreaProjectQueryQueryParams {\n CountryIsoCode?: string | null;\n HasLocationData?: boolean | null;\n CorporateSite?: boolean | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface CityGetByNameQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface CityGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface CityQueryQueryParams {\n CountryIsoCode?: string | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ConstructionNumberGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ConstructionNumberQueryQueryParams {\n AreaProjectId?: string | null;\n DistrictId?: string | null;\n ProjectPhaseId?: string | null;\n PropertyTypeId?: string | null;\n MinPrice?: number | null;\n MaxPrice?: number | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface CountryGetByIsoCodeQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface CountryGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface CountryQueryQueryParams {\n query?: CountryQuery;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface DistrictGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface DistrictQueryQueryParams {\n AreaProjectId?: string | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface FundaQueryQueryParams {\n regionId?: string | null;\n query?: string | null;\n userType?: string | null;\n isAdmin?: boolean;\n allowedRegionIds?: string | null;\n}\n\nexport interface FundaGetQueryParams {\n id?: string | null;\n isAdmin?: boolean;\n userType?: string | null;\n}\n\nexport interface FundaSubmitQueryParams {\n id?: string | null;\n incrementVersion?: boolean;\n}\n\nexport interface FundaValidateQueryParams {\n id?: string | null;\n}\n\nexport interface FundaShowLastSubmittedProjectQueryParams {\n projectCrmId?: string | null;\n}\n\nexport interface FundaShowConvertedFundaObjectQueryParams {\n projectCrmId?: string | null;\n}\n\nexport interface FundaCompareFundaObjectRevisionChangesQueryParams {\n projectCrmId?: string | null;\n gwnId?: number;\n}\n\nexport interface FundaShowFundaProjectLogsQueryParams {\n projectCrmId?: string | null;\n}\n\nexport interface FundaGetAllGwnVersionsByProjectIdQueryParams {\n projectCrmId?: string | null;\n}\n\nexport interface FundaRemoveVersionFromGwnQueryParams {\n projectId?: string | null;\n projectFundaId?: number;\n projectCode?: string | null;\n nvmId?: string | null;\n}\n\nexport interface GrantGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface GrantQueryQueryParams {\n ProjectName?: string | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ProjectPhaseGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ProjectPhaseQueryQueryParams {\n CountryIsoCode?: string | null;\n AreaProjectId?: string | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface PropertyTypeGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface PropertyTypeQueryQueryParams {\n AreaProjectId?: string | null;\n DistrictId?: string | null;\n ProjectPhaseId?: string | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ProvinceGetByNameQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ProvinceGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ProvinceQueryQueryParams {\n CountryIsoCode?: string | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface RegionGetByIdQueryParams {\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface RegionQueryQueryParams {\n AllowedRegionIds?: string | null;\n include?: string | null;\n lang?: string | null;\n}\n\nexport interface ResourceUpdateResourceQueryParams {\n projectId?: string | null;\n}\n\nexport interface ResourceDeleteResourceQueryParams {\n projectId?: string | null;\n}\n\nexport const apartmentBuildingQuery = (\n params?: ApartmentBuildingQueryQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ApartmentBuildingModel[]>(`/api/apartmentbuildings`, params, config).then(\n (res) => res!,\n );\n\nexport const apartmentBuildingUpdateApartmentBuilding = (\n nodeId: string | null,\n body: UpdateApartmentBuildingModel,\n config?: RequestConfig,\n) => APIClient.put<void>(`/api/apartmentbuildings/${nodeId}`, body, config).then((res) => res!);\n\nexport const apartmentBuildingDeleteApartmentBuilding = (\n nodeId: string | null,\n body: any,\n config?: RequestConfig,\n) => APIClient.delete<void>(`/api/apartmentbuildings/${nodeId}`, body, config).then((res) => res!);\n\nexport const apartmentBuildingGetByExternalId = (\n nodeId: string | null,\n params?: ApartmentBuildingGetByExternalIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ApartmentBuildingModel>(`/api/apartmentbuildings/${nodeId}`, params, config).then(\n (res) => res!,\n );\n\nexport const areaProjectGetById = (\n id: string | null,\n params?: AreaProjectGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<AreaProjectModel>(`/api/areaprojects/${id}`, params, config).then((res) => res!);\n\nexport const areaProjectQuery = (params?: AreaProjectQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<AreaProjectModel[]>(`/api/areaprojects`, params, config).then((res) => res!);\n\nexport const cityGetByName = (\n name: string | null,\n params?: CityGetByNameQueryParams,\n config?: RequestConfig,\n) => APIClient.get<CityModel>(`/api/cities/name/${name}`, params, config).then((res) => res!);\n\nexport const cityGetById = (\n id: string | null,\n params?: CityGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<CityModel>(`/api/cities/${id}`, params, config).then((res) => res!);\n\nexport const cityQuery = (params?: CityQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<CityModel[]>(`/api/cities`, params, config).then((res) => res!);\n\nexport const communityRedirectAsset = (\n objectType: string | null,\n id: string | null,\n params?: any,\n config?: RequestConfig,\n) =>\n APIClient.get<void>(`/api/community/asset/${objectType}/${id}`, params, config).then(\n (res) => res!,\n );\n\nexport const constructionNumberGetById = (\n id: string | null,\n params?: ConstructionNumberGetByIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ConstructionNumberModel>(`/api/constructionnumbers/${id}`, params, config).then(\n (res) => res!,\n );\n\nexport const constructionNumberQuery = (\n params?: ConstructionNumberQueryQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ConstructionNumberModel[]>(`/api/constructionnumbers`, params, config).then(\n (res) => res!,\n );\n\nexport const countryGetByIsoCode = (\n isoCode: string | null,\n params?: CountryGetByIsoCodeQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<CountryModel>(`/api/countries/isoCode/${isoCode}`, params, config).then(\n (res) => res!,\n );\n\nexport const countryGetById = (\n id: string | null,\n params?: CountryGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<CountryModel>(`/api/countries/${id}`, params, config).then((res) => res!);\n\nexport const countryQuery = (params?: CountryQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<CountryModel[]>(`/api/countries`, params, config).then((res) => res!);\n\nexport const districtGetById = (\n id: string | null,\n params?: DistrictGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<DistrictModel>(`/api/districts/${id}`, params, config).then((res) => res!);\n\nexport const districtQuery = (params?: DistrictQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<DistrictModel[]>(`/api/districts`, params, config).then((res) => res!);\n\nexport const formLead = (body: LeadFormModel, config?: RequestConfig) =>\n APIClient.post<void>(`/api/forms/lead`, body, config).then((res) => res!);\n\nexport const formCase = (body: CaseFormModel, config?: RequestConfig) =>\n APIClient.post<void>(`/api/forms/case`, body, config).then((res) => res!);\n\nexport const formDynamic = (body: DynamicFormModel, config?: RequestConfig) =>\n APIClient.post<void>(`/api/forms/dynamic`, body, config).then((res) => res!);\n\nexport const fundaQuery = (params?: FundaQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<APIProject[]>(`/api/Funda/query`, params, config).then((res) => res!);\n\nexport const fundaGet = (params?: FundaGetQueryParams, config?: RequestConfig) =>\n APIClient.get<void>(`/api/Funda`, params, config).then((res) => res!);\n\nexport const fundaSubmit = (body: any, config?: RequestConfig) =>\n APIClient.post<void>(`/api/Funda/submit`, body, config).then((res) => res!);\n\nexport const fundaValidate = (body: any, config?: RequestConfig) =>\n APIClient.post<void>(`/api/Funda/validate`, body, config).then((res) => res!);\n\nexport const fundaShowLastSubmittedProject = (\n params?: FundaShowLastSubmittedProjectQueryParams,\n config?: RequestConfig,\n) => APIClient.get<void>(`/api/Funda/ShowLastSubmittedProject`, params, config).then((res) => res!);\n\nexport const fundaShowConvertedFundaObject = (\n params?: FundaShowConvertedFundaObjectQueryParams,\n config?: RequestConfig,\n) => APIClient.get<void>(`/api/Funda/ShowConvertedFundaObject`, params, config).then((res) => res!);\n\nexport const fundaCompareFundaObjectRevisionChanges = (\n params?: FundaCompareFundaObjectRevisionChangesQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<void>(`/api/Funda/CompareFundaObjectRevisionChanges`, params, config).then(\n (res) => res!,\n );\n\nexport const fundaShowFundaProjectLogs = (\n params?: FundaShowFundaProjectLogsQueryParams,\n config?: RequestConfig,\n) => APIClient.get<void>(`/api/Funda/ShowFundaProjectLogs`, params, config).then((res) => res!);\n\nexport const fundaExecuteFundaPublisher = (params?: any, config?: RequestConfig) =>\n APIClient.get<void>(`/api/Funda/ExecuteFundaPublisher`, params, config).then((res) => res!);\n\nexport const fundaGetAllGwnVersionsByProjectId = (\n params?: FundaGetAllGwnVersionsByProjectIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<void>(`/api/Funda/GetAllGwnVersionsByProjectId`, params, config).then(\n (res) => res!,\n );\n\nexport const fundaRemoveVersionFromGwn = (\n params?: FundaRemoveVersionFromGwnQueryParams,\n config?: RequestConfig,\n) => APIClient.get<void>(`/api/Funda/RemoveVersionFromGwn`, params, config).then((res) => res!);\n\nexport const fundaGetActiveBrokersInGateway = (params?: any, config?: RequestConfig) =>\n APIClient.get<void>(`/api/Funda/GetActiveBrokersInGateway`, params, config).then((res) => res!);\n\nexport const geoFeatureUpsertGeoFeature = (\n areaId: string | null,\n objectId: string | null,\n body: SerializedFeature,\n config?: RequestConfig,\n) => APIClient.put<void>(`/api/geofeature/${areaId}/${objectId}`, body, config).then((res) => res!);\n\nexport const geoFeatureUpsertAreaFeatures = (\n areaId: string | null,\n body: SerializedFeatures,\n config?: RequestConfig,\n) => APIClient.put<void>(`/api/geofeature/${areaId}`, body, config).then((res) => res!);\n\nexport const geoFeatureDeleteGeoFeature = (\n areaId: string | null,\n objectId: string | null,\n featureId: string | null,\n body: any,\n config?: RequestConfig,\n) =>\n APIClient.delete<void>(`/api/geofeature/${areaId}/${objectId}/${featureId}`, body, config).then(\n (res) => res!,\n );\n\nexport const grantGetById = (\n id: string | null,\n params?: GrantGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<GrantModel>(`/api/grants/${id}`, params, config).then((res) => res!);\n\nexport const grantQuery = (params?: GrantQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<GrantModel[]>(`/api/grants`, params, config).then((res) => res!);\n\nexport const projectPhaseGetById = (\n id: string | null,\n params?: ProjectPhaseGetByIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ProjectPhaseModel>(`/api/projectphases/${id}`, params, config).then(\n (res) => res!,\n );\n\nexport const projectPhaseQuery = (params?: ProjectPhaseQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<ProjectPhaseModel[]>(`/api/projectphases`, params, config).then((res) => res!);\n\nexport const propertyTypeGetById = (\n id: string | null,\n params?: PropertyTypeGetByIdQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<PropertyTypeModel>(`/api/propertytypes/${id}`, params, config).then(\n (res) => res!,\n );\n\nexport const propertyTypeQuery = (params?: PropertyTypeQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<PropertyTypeModel[]>(`/api/propertytypes`, params, config).then((res) => res!);\n\nexport const provinceGetByName = (\n name: string | null,\n params?: ProvinceGetByNameQueryParams,\n config?: RequestConfig,\n) =>\n APIClient.get<ProvinceModel>(`/api/provinces/name/${name}`, params, config).then((res) => res!);\n\nexport const provinceGetById = (\n id: string | null,\n params?: ProvinceGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<ProvinceModel>(`/api/provinces/${id}`, params, config).then((res) => res!);\n\nexport const provinceQuery = (params?: ProvinceQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<ProvinceModel[]>(`/api/provinces`, params, config).then((res) => res!);\n\nexport const regionGetById = (\n id: string | null,\n params?: RegionGetByIdQueryParams,\n config?: RequestConfig,\n) => APIClient.get<RegionModel>(`/api/region/${id}`, params, config).then((res) => res!);\n\nexport const regionQuery = (params?: RegionQueryQueryParams, config?: RequestConfig) =>\n APIClient.get<RegionModel[]>(`/api/region`, params, config).then((res) => res!);\n\nexport const resourceUpdateResource = (\n mediaId: string | null,\n body: UpdateResourceModel,\n config?: RequestConfig,\n) => APIClient.put<void>(`/api/resources/${mediaId}`, body, config).then((res) => res!);\n\nexport const resourceDeleteResource = (mediaId: string | null, body: any, config?: RequestConfig) =>\n APIClient.delete<void>(`/api/resources/${mediaId}`, body, config).then((res) => res!);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpd-library/utilities",
3
- "version": "1.2.2",
3
+ "version": "1.2.3-beta.0",
4
4
  "description": "Description",
5
5
  "url": "https://github.com/{repo name}",
6
6
  "license": "MIT",
@@ -45,13 +45,13 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "409c0ad03fbf1338c34a7df5d65fed736e29fa7e",
48
+ "gitHead": "d90b230112da128cc890a6e97c04ee1a687347ce",
49
49
  "dependencies": {
50
50
  "@atomify/core": "2.4.1",
51
51
  "@atomify/hooks": "1.1.11",
52
52
  "@atomify/jsx": "1.7.1",
53
53
  "@atomify/kit": "1.1.11",
54
- "@bpd-library/types": "^1.2.2",
54
+ "@bpd-library/types": "^1.2.3-beta.0",
55
55
  "qs": "^6.9.4",
56
56
  "query-string": "5"
57
57
  }