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

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.
Files changed (314) hide show
  1. package/.nvmrc +1 -1
  2. package/coverage/base.css +224 -0
  3. package/coverage/block-navigation.js +79 -0
  4. package/coverage/index.html +95 -0
  5. package/coverage/lcov.info +0 -0
  6. package/coverage/prettify.css +1 -0
  7. package/coverage/prettify.js +2 -0
  8. package/coverage/sort-arrow-sprite.png +0 -0
  9. package/coverage/sorter.js +170 -0
  10. package/dist/api-utilities/api-utilities.test.js +3 -3
  11. package/dist/api-utilities/api-utilities.test.js.map +1 -1
  12. package/dist/api-utilities/api-utilities.types.d.ts +7 -6
  13. package/dist/api-utilities/api-utilities.types.js.map +1 -1
  14. package/dist/{types/api-utilities/compose-exclude-string.d.ts → api-utilities/compose-include-string.d.ts} +2 -2
  15. package/dist/api-utilities/compose-include-string.js +5 -0
  16. package/dist/api-utilities/compose-include-string.js.map +1 -0
  17. package/dist/extended-api-models/extended-area-projects.js +4 -1
  18. package/dist/extended-api-models/extended-area-projects.js.map +1 -1
  19. package/dist/extended-api-models/extended-area.js +9 -6
  20. package/dist/extended-api-models/extended-area.js.map +1 -1
  21. package/dist/extended-api-models/included-properties.d.ts +17 -0
  22. package/dist/extended-api-models/included-properties.js +105 -0
  23. package/dist/extended-api-models/included-properties.js.map +1 -0
  24. package/dist/generated/bpd-client.d.ts +32 -31
  25. package/dist/generated/bpd-client.js.map +1 -1
  26. package/dist/hooks/use-stylesheet.d.ts +15 -1
  27. package/dist/hooks/use-stylesheet.js +79 -3
  28. package/dist/hooks/use-stylesheet.js.map +1 -1
  29. package/package.json +4 -4
  30. package/yarn-error.log +8117 -0
  31. package/dist/esm/api/http.js +0 -120
  32. package/dist/esm/api/http.js.map +0 -1
  33. package/dist/esm/api/index.js +0 -11
  34. package/dist/esm/api/index.js.map +0 -1
  35. package/dist/esm/api-utilities/compose-exclude-string.js +0 -6
  36. package/dist/esm/api-utilities/compose-exclude-string.js.map +0 -1
  37. package/dist/esm/api-utilities/decimal-range/merge-decimal-range.js +0 -13
  38. package/dist/esm/api-utilities/decimal-range/merge-decimal-range.js.map +0 -1
  39. package/dist/esm/api-utilities/decimal-range/merge-specification-range.js +0 -29
  40. package/dist/esm/api-utilities/decimal-range/merge-specification-range.js.map +0 -1
  41. package/dist/esm/api-utilities/district-status.js +0 -14
  42. package/dist/esm/api-utilities/district-status.js.map +0 -1
  43. package/dist/esm/api-utilities/find-filter.js +0 -41
  44. package/dist/esm/api-utilities/find-filter.js.map +0 -1
  45. package/dist/esm/api-utilities/get/coordinates.js +0 -31
  46. package/dist/esm/api-utilities/get/coordinates.js.map +0 -1
  47. package/dist/esm/api-utilities/get/layer-raster.js +0 -4
  48. package/dist/esm/api-utilities/get/layer-raster.js.map +0 -1
  49. package/dist/esm/api-utilities/show-mortgage-price.js +0 -11
  50. package/dist/esm/api-utilities/show-mortgage-price.js.map +0 -1
  51. package/dist/esm/api-utilities/show-price.js +0 -13
  52. package/dist/esm/api-utilities/show-price.js.map +0 -1
  53. package/dist/esm/constants/index.js +0 -7
  54. package/dist/esm/constants/index.js.map +0 -1
  55. package/dist/esm/date.js +0 -11
  56. package/dist/esm/date.js.map +0 -1
  57. package/dist/esm/debounce.js +0 -25
  58. package/dist/esm/debounce.js.map +0 -1
  59. package/dist/esm/dom/dom.js +0 -9
  60. package/dist/esm/dom/dom.js.map +0 -1
  61. package/dist/esm/environment.js +0 -27
  62. package/dist/esm/environment.js.map +0 -1
  63. package/dist/esm/extended-api-models/excluded-properties.js +0 -36
  64. package/dist/esm/extended-api-models/excluded-properties.js.map +0 -1
  65. package/dist/esm/extended-api-models/extended-area-projects.js +0 -12
  66. package/dist/esm/extended-api-models/extended-area-projects.js.map +0 -1
  67. package/dist/esm/extended-api-models/extended-area.js +0 -182
  68. package/dist/esm/extended-api-models/extended-area.js.map +0 -1
  69. package/dist/esm/extended-api-models/status/apartment-building-status.js +0 -60
  70. package/dist/esm/extended-api-models/status/apartment-building-status.js.map +0 -1
  71. package/dist/esm/extended-api-models/status/construction-number-status.js +0 -20
  72. package/dist/esm/extended-api-models/status/construction-number-status.js.map +0 -1
  73. package/dist/esm/extended-api-models/status/property-type-status.js +0 -60
  74. package/dist/esm/extended-api-models/status/property-type-status.js.map +0 -1
  75. package/dist/esm/extended-api-models/utilities/apartment-building-view.js +0 -5
  76. package/dist/esm/extended-api-models/utilities/apartment-building-view.js.map +0 -1
  77. package/dist/esm/extended-api-models/utilities/extended-model-price-range.js +0 -37
  78. package/dist/esm/extended-api-models/utilities/extended-model-price-range.js.map +0 -1
  79. package/dist/esm/extended-api-models/utilities/find-extended-object.js +0 -23
  80. package/dist/esm/extended-api-models/utilities/find-extended-object.js.map +0 -1
  81. package/dist/esm/extended-api-models/utilities/is-apartment.js +0 -14
  82. package/dist/esm/extended-api-models/utilities/is-apartment.js.map +0 -1
  83. package/dist/esm/function-is-true.js +0 -13
  84. package/dist/esm/function-is-true.js.map +0 -1
  85. package/dist/esm/generated/bpd-client.js +0 -53
  86. package/dist/esm/generated/bpd-client.js.map +0 -1
  87. package/dist/esm/geometry/country-bounding-box.js +0 -14
  88. package/dist/esm/geometry/country-bounding-box.js.map +0 -1
  89. package/dist/esm/geometry/geometry.js +0 -65
  90. package/dist/esm/geometry/geometry.js.map +0 -1
  91. package/dist/esm/hooks/use-click-outside.js +0 -34
  92. package/dist/esm/hooks/use-click-outside.js.map +0 -1
  93. package/dist/esm/hooks/use-form-changes.js +0 -30
  94. package/dist/esm/hooks/use-form-changes.js.map +0 -1
  95. package/dist/esm/hooks/use-history.js +0 -15
  96. package/dist/esm/hooks/use-history.js.map +0 -1
  97. package/dist/esm/hooks/use-keyboard-focus.js +0 -14
  98. package/dist/esm/hooks/use-keyboard-focus.js.map +0 -1
  99. package/dist/esm/hooks/use-lazy.js +0 -47
  100. package/dist/esm/hooks/use-lazy.js.map +0 -1
  101. package/dist/esm/hooks/use-map-storage.js +0 -16
  102. package/dist/esm/hooks/use-map-storage.js.map +0 -1
  103. package/dist/esm/hooks/use-scroll-position.js +0 -23
  104. package/dist/esm/hooks/use-scroll-position.js.map +0 -1
  105. package/dist/esm/hooks/use-scroll-to.js +0 -66
  106. package/dist/esm/hooks/use-scroll-to.js.map +0 -1
  107. package/dist/esm/hooks/use-stylesheet.js +0 -8
  108. package/dist/esm/hooks/use-stylesheet.js.map +0 -1
  109. package/dist/esm/hooks/use-url-params.js +0 -31
  110. package/dist/esm/hooks/use-url-params.js.map +0 -1
  111. package/dist/esm/index.js +0 -40
  112. package/dist/esm/index.js.map +0 -1
  113. package/dist/esm/is-touch.js +0 -32
  114. package/dist/esm/is-touch.js.map +0 -1
  115. package/dist/esm/media-query/breakpoints.js +0 -29
  116. package/dist/esm/media-query/breakpoints.js.map +0 -1
  117. package/dist/esm/media-query/media-query.js +0 -39
  118. package/dist/esm/media-query/media-query.js.map +0 -1
  119. package/dist/esm/media-query/utils/index.js +0 -35
  120. package/dist/esm/media-query/utils/index.js.map +0 -1
  121. package/dist/esm/raf-throttle.js +0 -24
  122. package/dist/esm/raf-throttle.js.map +0 -1
  123. package/dist/esm/throttle.js +0 -23
  124. package/dist/esm/throttle.js.map +0 -1
  125. package/dist/esm/to-currency.js +0 -26
  126. package/dist/esm/to-currency.js.map +0 -1
  127. package/dist/lib/api/http.js +0 -117
  128. package/dist/lib/api/http.js.map +0 -1
  129. package/dist/lib/api/index.js +0 -8
  130. package/dist/lib/api/index.js.map +0 -1
  131. package/dist/lib/api-utilities/api-utilities.js +0 -9
  132. package/dist/lib/api-utilities/api-utilities.js.map +0 -1
  133. package/dist/lib/api-utilities/api-utilities.test.js +0 -122
  134. package/dist/lib/api-utilities/api-utilities.test.js.map +0 -1
  135. package/dist/lib/api-utilities/api-utilities.types.js +0 -1
  136. package/dist/lib/api-utilities/api-utilities.types.js.map +0 -1
  137. package/dist/lib/api-utilities/compose-exclude-string.js +0 -5
  138. package/dist/lib/api-utilities/compose-exclude-string.js.map +0 -1
  139. package/dist/lib/api-utilities/decimal-range/merge-decimal-range.js +0 -12
  140. package/dist/lib/api-utilities/decimal-range/merge-decimal-range.js.map +0 -1
  141. package/dist/lib/api-utilities/decimal-range/merge-specification-range.js +0 -27
  142. package/dist/lib/api-utilities/decimal-range/merge-specification-range.js.map +0 -1
  143. package/dist/lib/api-utilities/district-status.js +0 -13
  144. package/dist/lib/api-utilities/district-status.js.map +0 -1
  145. package/dist/lib/api-utilities/find-filter.js +0 -40
  146. package/dist/lib/api-utilities/find-filter.js.map +0 -1
  147. package/dist/lib/api-utilities/get/coordinates.js +0 -29
  148. package/dist/lib/api-utilities/get/coordinates.js.map +0 -1
  149. package/dist/lib/api-utilities/get/layer-raster.js +0 -3
  150. package/dist/lib/api-utilities/get/layer-raster.js.map +0 -1
  151. package/dist/lib/api-utilities/index.js +0 -2
  152. package/dist/lib/api-utilities/index.js.map +0 -1
  153. package/dist/lib/api-utilities/show-mortgage-price.js +0 -10
  154. package/dist/lib/api-utilities/show-mortgage-price.js.map +0 -1
  155. package/dist/lib/api-utilities/show-price.js +0 -12
  156. package/dist/lib/api-utilities/show-price.js.map +0 -1
  157. package/dist/lib/constants/index.js +0 -5
  158. package/dist/lib/constants/index.js.map +0 -1
  159. package/dist/lib/date.js +0 -10
  160. package/dist/lib/date.js.map +0 -1
  161. package/dist/lib/debounce.js +0 -23
  162. package/dist/lib/debounce.js.map +0 -1
  163. package/dist/lib/dom/dom.js +0 -7
  164. package/dist/lib/dom/dom.js.map +0 -1
  165. package/dist/lib/dom/index.js +0 -2
  166. package/dist/lib/dom/index.js.map +0 -1
  167. package/dist/lib/environment.js +0 -25
  168. package/dist/lib/environment.js.map +0 -1
  169. package/dist/lib/extended-api-models/excluded-properties.js +0 -35
  170. package/dist/lib/extended-api-models/excluded-properties.js.map +0 -1
  171. package/dist/lib/extended-api-models/extended-area-projects.js +0 -10
  172. package/dist/lib/extended-api-models/extended-area-projects.js.map +0 -1
  173. package/dist/lib/extended-api-models/extended-area.js +0 -179
  174. package/dist/lib/extended-api-models/extended-area.js.map +0 -1
  175. package/dist/lib/extended-api-models/index.js +0 -7
  176. package/dist/lib/extended-api-models/index.js.map +0 -1
  177. package/dist/lib/extended-api-models/status/apartment-building-status.js +0 -58
  178. package/dist/lib/extended-api-models/status/apartment-building-status.js.map +0 -1
  179. package/dist/lib/extended-api-models/status/construction-number-status.js +0 -19
  180. package/dist/lib/extended-api-models/status/construction-number-status.js.map +0 -1
  181. package/dist/lib/extended-api-models/status/property-type-status.js +0 -58
  182. package/dist/lib/extended-api-models/status/property-type-status.js.map +0 -1
  183. package/dist/lib/extended-api-models/utilities/apartment-building-view.js +0 -4
  184. package/dist/lib/extended-api-models/utilities/apartment-building-view.js.map +0 -1
  185. package/dist/lib/extended-api-models/utilities/extended-model-price-range.js +0 -35
  186. package/dist/lib/extended-api-models/utilities/extended-model-price-range.js.map +0 -1
  187. package/dist/lib/extended-api-models/utilities/find-extended-object.js +0 -21
  188. package/dist/lib/extended-api-models/utilities/find-extended-object.js.map +0 -1
  189. package/dist/lib/extended-api-models/utilities/is-apartment.js +0 -13
  190. package/dist/lib/extended-api-models/utilities/is-apartment.js.map +0 -1
  191. package/dist/lib/function-is-true.js +0 -11
  192. package/dist/lib/function-is-true.js.map +0 -1
  193. package/dist/lib/generated/bpd-client.js +0 -50
  194. package/dist/lib/generated/bpd-client.js.map +0 -1
  195. package/dist/lib/generated/index.js +0 -2
  196. package/dist/lib/generated/index.js.map +0 -1
  197. package/dist/lib/geometry/country-bounding-box.js +0 -12
  198. package/dist/lib/geometry/country-bounding-box.js.map +0 -1
  199. package/dist/lib/geometry/geometry.js +0 -64
  200. package/dist/lib/geometry/geometry.js.map +0 -1
  201. package/dist/lib/geometry/geometry.test.js +0 -87
  202. package/dist/lib/geometry/geometry.test.js.map +0 -1
  203. package/dist/lib/geometry/index.js +0 -3
  204. package/dist/lib/geometry/index.js.map +0 -1
  205. package/dist/lib/hooks/index.js +0 -11
  206. package/dist/lib/hooks/index.js.map +0 -1
  207. package/dist/lib/hooks/use-click-outside.js +0 -32
  208. package/dist/lib/hooks/use-click-outside.js.map +0 -1
  209. package/dist/lib/hooks/use-delegate-listen.js +0 -10
  210. package/dist/lib/hooks/use-delegate-listen.js.map +0 -1
  211. package/dist/lib/hooks/use-form-changes.js +0 -27
  212. package/dist/lib/hooks/use-form-changes.js.map +0 -1
  213. package/dist/lib/hooks/use-history.js +0 -13
  214. package/dist/lib/hooks/use-history.js.map +0 -1
  215. package/dist/lib/hooks/use-input.js +0 -28
  216. package/dist/lib/hooks/use-input.js.map +0 -1
  217. package/dist/lib/hooks/use-keyboard-focus.js +0 -11
  218. package/dist/lib/hooks/use-keyboard-focus.js.map +0 -1
  219. package/dist/lib/hooks/use-lazy.js +0 -44
  220. package/dist/lib/hooks/use-lazy.js.map +0 -1
  221. package/dist/lib/hooks/use-map-storage.js +0 -14
  222. package/dist/lib/hooks/use-map-storage.js.map +0 -1
  223. package/dist/lib/hooks/use-scroll-position.js +0 -20
  224. package/dist/lib/hooks/use-scroll-position.js.map +0 -1
  225. package/dist/lib/hooks/use-scroll-to.js +0 -64
  226. package/dist/lib/hooks/use-scroll-to.js.map +0 -1
  227. package/dist/lib/hooks/use-stylesheet.js +0 -5
  228. package/dist/lib/hooks/use-stylesheet.js.map +0 -1
  229. package/dist/lib/hooks/use-text.js +0 -16
  230. package/dist/lib/hooks/use-text.js.map +0 -1
  231. package/dist/lib/hooks/use-url-params.js +0 -28
  232. package/dist/lib/hooks/use-url-params.js.map +0 -1
  233. package/dist/lib/index.js +0 -18
  234. package/dist/lib/index.js.map +0 -1
  235. package/dist/lib/is-touch.js +0 -30
  236. package/dist/lib/is-touch.js.map +0 -1
  237. package/dist/lib/media-query/breakpoints.js +0 -27
  238. package/dist/lib/media-query/breakpoints.js.map +0 -1
  239. package/dist/lib/media-query/index.js +0 -2
  240. package/dist/lib/media-query/index.js.map +0 -1
  241. package/dist/lib/media-query/media-query.js +0 -36
  242. package/dist/lib/media-query/media-query.js.map +0 -1
  243. package/dist/lib/media-query/media-query.types.js +0 -1
  244. package/dist/lib/media-query/media-query.types.js.map +0 -1
  245. package/dist/lib/media-query/utils/index.js +0 -32
  246. package/dist/lib/media-query/utils/index.js.map +0 -1
  247. package/dist/lib/raf-throttle.js +0 -22
  248. package/dist/lib/raf-throttle.js.map +0 -1
  249. package/dist/lib/throttle.js +0 -22
  250. package/dist/lib/throttle.js.map +0 -1
  251. package/dist/lib/to-currency.js +0 -24
  252. package/dist/lib/to-currency.js.map +0 -1
  253. package/dist/types/api/http.d.ts +0 -47
  254. package/dist/types/api/index.d.ts +0 -2
  255. package/dist/types/api-utilities/api-utilities.d.ts +0 -8
  256. package/dist/types/api-utilities/api-utilities.test.d.ts +0 -1
  257. package/dist/types/api-utilities/api-utilities.types.d.ts +0 -46
  258. package/dist/types/api-utilities/decimal-range/merge-decimal-range.d.ts +0 -3
  259. package/dist/types/api-utilities/decimal-range/merge-specification-range.d.ts +0 -13
  260. package/dist/types/api-utilities/district-status.d.ts +0 -3
  261. package/dist/types/api-utilities/find-filter.d.ts +0 -32
  262. package/dist/types/api-utilities/get/coordinates.d.ts +0 -6
  263. package/dist/types/api-utilities/get/layer-raster.d.ts +0 -3
  264. package/dist/types/api-utilities/index.d.ts +0 -1
  265. package/dist/types/api-utilities/show-mortgage-price.d.ts +0 -3
  266. package/dist/types/api-utilities/show-price.d.ts +0 -7
  267. package/dist/types/constants/index.d.ts +0 -4
  268. package/dist/types/date.d.ts +0 -3
  269. package/dist/types/debounce.d.ts +0 -5
  270. package/dist/types/dom/dom.d.ts +0 -6
  271. package/dist/types/dom/index.d.ts +0 -1
  272. package/dist/types/environment.d.ts +0 -9
  273. package/dist/types/extended-api-models/excluded-properties.d.ts +0 -5
  274. package/dist/types/extended-api-models/extended-area-projects.d.ts +0 -3
  275. package/dist/types/extended-api-models/extended-area.d.ts +0 -13
  276. package/dist/types/extended-api-models/index.d.ts +0 -6
  277. package/dist/types/extended-api-models/status/apartment-building-status.d.ts +0 -3
  278. package/dist/types/extended-api-models/status/construction-number-status.d.ts +0 -3
  279. package/dist/types/extended-api-models/status/property-type-status.d.ts +0 -4
  280. package/dist/types/extended-api-models/utilities/apartment-building-view.d.ts +0 -4
  281. package/dist/types/extended-api-models/utilities/extended-model-price-range.d.ts +0 -4
  282. package/dist/types/extended-api-models/utilities/find-extended-object.d.ts +0 -4
  283. package/dist/types/extended-api-models/utilities/is-apartment.d.ts +0 -11
  284. package/dist/types/function-is-true.d.ts +0 -1
  285. package/dist/types/generated/bpd-client.d.ts +0 -808
  286. package/dist/types/generated/index.d.ts +0 -1
  287. package/dist/types/geometry/country-bounding-box.d.ts +0 -6
  288. package/dist/types/geometry/geometry.d.ts +0 -11
  289. package/dist/types/geometry/geometry.test.d.ts +0 -8
  290. package/dist/types/geometry/index.d.ts +0 -2
  291. package/dist/types/hooks/index.d.ts +0 -10
  292. package/dist/types/hooks/use-click-outside.d.ts +0 -6
  293. package/dist/types/hooks/use-delegate-listen.d.ts +0 -6
  294. package/dist/types/hooks/use-form-changes.d.ts +0 -12
  295. package/dist/types/hooks/use-history.d.ts +0 -4
  296. package/dist/types/hooks/use-input.d.ts +0 -41
  297. package/dist/types/hooks/use-keyboard-focus.d.ts +0 -6
  298. package/dist/types/hooks/use-lazy.d.ts +0 -21
  299. package/dist/types/hooks/use-map-storage.d.ts +0 -6
  300. package/dist/types/hooks/use-scroll-position.d.ts +0 -10
  301. package/dist/types/hooks/use-scroll-to.d.ts +0 -8
  302. package/dist/types/hooks/use-stylesheet.d.ts +0 -1
  303. package/dist/types/hooks/use-text.d.ts +0 -1
  304. package/dist/types/hooks/use-url-params.d.ts +0 -5
  305. package/dist/types/index.d.ts +0 -17
  306. package/dist/types/is-touch.d.ts +0 -8
  307. package/dist/types/media-query/breakpoints.d.ts +0 -26
  308. package/dist/types/media-query/index.d.ts +0 -1
  309. package/dist/types/media-query/media-query.d.ts +0 -13
  310. package/dist/types/media-query/media-query.types.d.ts +0 -14
  311. package/dist/types/media-query/utils/index.d.ts +0 -3
  312. package/dist/types/raf-throttle.d.ts +0 -4
  313. package/dist/types/throttle.d.ts +0 -2
  314. package/dist/types/to-currency.d.ts +0 -3
@@ -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,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAAC,CAAC;AAEnG,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC5C,MAAqB,EACrB,MAAoD,EACpD,MAAsB,EACxB,EAAE,CACA,SAAS,CAAC,GAAG,CAAyB,2BAA2B,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAC3F,CAAC,GAAG,EAAE,EAAE,CAAC,GAAI,CAChB,CAAC;AAEN,MAAM,CAAC,MAAM,kBA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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,CAAC;AAg3BnC,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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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"]}
@@ -1 +1,15 @@
1
- export declare function useStylesheet(style: string): void;
1
+ declare global {
2
+ interface Window {
3
+ ShadyCSS: any;
4
+ }
5
+ interface ShadowRoot {
6
+ adoptedStyleSheets: CSSStyleSheet[];
7
+ }
8
+ interface Document {
9
+ adoptedStyleSheets: CSSStyleSheet[];
10
+ }
11
+ interface CSSStyleSheet {
12
+ replaceSync(cssText: string): void;
13
+ }
14
+ }
15
+ export declare const useStylesheet: (style: string) => void;
@@ -1,5 +1,81 @@
1
- import { unsafeCSS, useStyles } from '@atomify/hooks';
2
- export function useStylesheet(style) {
3
- useStyles(() => unsafeCSS(style));
1
+ import { createHook } from '@atomify/hooks';
2
+ const supportShadyCSS = window.ShadyCSS && !window.ShadyCSS.nativeShadow;
3
+ const CSS_SAVE_TOKEN = Symbol('atomify.cssSaveToken');
4
+ const styleCache = new Map();
5
+ const APPLIED_STYLES = [];
6
+ const supportsAdoptingStyleSheets = () => 'adoptedStyleSheets' in Document.prototype && 'replace' in CSSStyleSheet.prototype;
7
+ function bindShadyRoot(target, template) {
8
+ window.ShadyCSS.prepareTemplate(template, target.$cmpMeta$.$tagName$);
9
+ window.ShadyCSS.styleElement(target);
4
10
  }
11
+ const applyShadowdomStyles = (component, styles) => {
12
+ const container = component.container;
13
+ const componentName = component.$cmpMeta$.$tagName$;
14
+ let styleTmp;
15
+ if (!styleCache.has(componentName)) {
16
+ styleTmp = document.createElement('template');
17
+ styleTmp.innerHTML = `${component.hasShadowDom && !supportsAdoptingStyleSheets() && styles
18
+ ? `<style style-hook>${styles}</style>`
19
+ : ''}`;
20
+ }
21
+ else {
22
+ styleTmp = styleCache.get(componentName);
23
+ }
24
+ if (styleTmp) {
25
+ if (supportShadyCSS && component.hasShadowDom) {
26
+ bindShadyRoot(component, styleTmp);
27
+ }
28
+ container.appendChild(document.importNode(styleTmp.content, true));
29
+ }
30
+ };
31
+ const unsafeCSS = (cssString) => createCSSResult(String(cssString), CSS_SAVE_TOKEN);
32
+ const createCSSResult = (css, token) => {
33
+ if (token !== CSS_SAVE_TOKEN)
34
+ throw new Error(`${css} is not supported. Use 'unsafeCSS' if you want to use: ${css}`);
35
+ let styleSheet = null;
36
+ const cssText = css;
37
+ if (supportsAdoptingStyleSheets()) {
38
+ styleSheet = new CSSStyleSheet();
39
+ styleSheet.replaceSync(cssText);
40
+ }
41
+ return {
42
+ cssText,
43
+ styleSheet,
44
+ };
45
+ };
46
+ const adoptStyles = (root, styles) => {
47
+ const hasShadowDom = root.hasShadowDom;
48
+ const componentName = root.$cmpMeta$.$tagName$;
49
+ if (supportsAdoptingStyleSheets() && hasShadowDom) {
50
+ const CSSRoot = root.container;
51
+ if (!(CSSRoot instanceof HTMLElement))
52
+ CSSRoot.adoptedStyleSheets = styles.map((s) => {
53
+ return s instanceof StyleSheet ? s : s.styleSheet;
54
+ });
55
+ }
56
+ else if (APPLIED_STYLES.indexOf(componentName) === -1) {
57
+ const combinedStyleArray = styles
58
+ .map((style) => ('cssText' in style ? style.cssText : null))
59
+ .join('');
60
+ if (hasShadowDom) {
61
+ root.styles = combinedStyleArray;
62
+ applyShadowdomStyles(root, combinedStyleArray);
63
+ }
64
+ else {
65
+ const styleElement = document.createElement('style');
66
+ styleElement.textContent = combinedStyleArray;
67
+ styleElement.setAttribute('scope', componentName);
68
+ document.head.appendChild(styleElement);
69
+ APPLIED_STYLES.push(componentName);
70
+ }
71
+ }
72
+ };
73
+ export const useStylesheet = (style) => {
74
+ const css = unsafeCSS(style);
75
+ const styles = Array.isArray(css) ? [...css] : [css];
76
+ return createHook({
77
+ onDidLoad: (element) => adoptStyles(element, styles),
78
+ onUpdate: (element) => adoptStyles(element, styles),
79
+ });
80
+ };
5
81
  //# sourceMappingURL=use-stylesheet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-stylesheet.js","sourceRoot":"","sources":["../../src/hooks/use-stylesheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAMtD,MAAM,UAAU,aAAa,CAAC,KAAa;IACvC,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import { unsafeCSS, useStyles } from '@atomify/hooks';\n/**\n * Add styling through imported css files (Webpack)\n * @export\n * @param {string} style\n */\nexport function useStylesheet(style: string) {\n useStyles(() => unsafeCSS(style));\n}\n"]}
1
+ {"version":3,"file":"use-stylesheet.js","sourceRoot":"","sources":["../../src/hooks/use-stylesheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA0BvD,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;AACzE,MAAM,cAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AACtD,MAAM,UAAU,GAAG,IAAI,GAAG,EAA+B,CAAC;AAC1D,MAAM,cAAc,GAAa,EAAE,CAAC;AAKpC,MAAM,2BAA2B,GAAG,GAAG,EAAE,CACrC,oBAAoB,IAAI,QAAQ,CAAC,SAAS,IAAI,SAAS,IAAI,aAAa,CAAC,SAAS,CAAC;AAQvF,SAAS,aAAa,CAAC,MAAiB,EAAE,QAA6B;IACnE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACtE,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,oBAAoB,GAAG,CAAC,SAAoB,EAAE,MAAc,EAAE,EAAE;IAClE,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;IACtC,MAAM,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC;IACpD,IAAI,QAAyC,CAAC;IAE9C,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;QAChC,QAAQ,GAAG,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7B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAErD,OAAO,UAAU,CAAC;QACd,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC;QACpD,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC;KACtD,CAAC,CAAC;AACP,CAAC,CAAC","sourcesContent":["import { Component, createHook } from '@atomify/hooks';\n\ndeclare global {\n interface Window {\n ShadyCSS: any;\n }\n interface ShadowRoot {\n adoptedStyleSheets: CSSStyleSheet[];\n }\n\n interface Document {\n adoptedStyleSheets: CSSStyleSheet[];\n }\n\n interface CSSStyleSheet {\n replaceSync(cssText: string): void;\n }\n}\n\ninterface CSSResult {\n cssText: string;\n styleSheet: CSSStyleSheet | null;\n}\n\ntype CSSResultOrNative = CSSResult | CSSStyleSheet;\n\nconst supportShadyCSS = window.ShadyCSS && !window.ShadyCSS.nativeShadow;\nconst CSS_SAVE_TOKEN = Symbol('atomify.cssSaveToken');\nconst styleCache = new Map<string, HTMLTemplateElement>();\nconst APPLIED_STYLES: string[] = [];\n\n/**\n * Checks if adopting stylesheet is supported.\n */\nconst supportsAdoptingStyleSheets = () =>\n 'adoptedStyleSheets' in Document.prototype && 'replace' in CSSStyleSheet.prototype;\n\n/**\n * Generates a template based necessary fallbacks needed for browsers that do not support Custom elements or ShadowDom\n * Reference: https://github.com/webcomponents/webcomponentsjs\n * @param {Component} target\n * @param {HTMLTemplateElement} template\n */\nfunction bindShadyRoot(target: Component, template: HTMLTemplateElement) {\n window.ShadyCSS.prepareTemplate(template, target.$cmpMeta$.$tagName$);\n window.ShadyCSS.styleElement(target);\n}\n\nconst applyShadowdomStyles = (component: Component, styles: string) => {\n const container = component.container;\n const componentName = component.$cmpMeta$.$tagName$;\n let styleTmp: HTMLTemplateElement | undefined;\n\n if (!styleCache.has(componentName)) {\n styleTmp = document.createElement('template');\n\n styleTmp.innerHTML = `${\n component.hasShadowDom && !supportsAdoptingStyleSheets() && styles\n ? `<style style-hook>${styles}</style>`\n : ''\n }`;\n } else {\n styleTmp = styleCache.get(componentName);\n }\n\n if (styleTmp) {\n // Apply polyfill when shady polyfill is available and the component has shadowdom\n if (supportShadyCSS && component.hasShadowDom) {\n bindShadyRoot(component, styleTmp);\n }\n\n container.appendChild(document.importNode(styleTmp.content, true));\n }\n};\n\n/**\n * This is unsafe because untrusted CSS text can be used to phone home\n * or exfiltrate data to an attacker controlled site. Take care to only use\n * this with trusted input.\n * @param {string} css\n * @returns {StyleObject}\n */\nconst unsafeCSS = (cssString: unknown): CSSResult =>\n createCSSResult(String(cssString), CSS_SAVE_TOKEN);\n\n/**\n * @param {string} css\n * @param {symbol} token\n * @returns {({ cssText: string; styleSheet: CSSStyleSheet | null })}\n */\nconst createCSSResult = (\n css: string,\n token: symbol,\n): { cssText: string; styleSheet: CSSStyleSheet | null } => {\n if (token !== CSS_SAVE_TOKEN)\n throw new Error(`${css} is not supported. Use 'unsafeCSS' if you want to use: ${css}`);\n\n let styleSheet: CSSStyleSheet | null = null;\n const cssText = css;\n\n if (supportsAdoptingStyleSheets()) {\n styleSheet = new CSSStyleSheet();\n styleSheet.replaceSync(cssText);\n }\n\n return {\n cssText,\n styleSheet,\n };\n};\n\n/**\n * Applies adoptedStyleSheets to the Atomify component.\n * @param { Component } root\n * @param { StyleObject } css\n */\nconst adoptStyles = (root: Component, styles: Array<CSSResultOrNative>) => {\n const hasShadowDom = root.hasShadowDom;\n const componentName = root.$cmpMeta$.$tagName$;\n\n // Add addopted stylesheets when it is supported\n if (supportsAdoptingStyleSheets() && hasShadowDom) {\n const CSSRoot = root.container;\n if (!(CSSRoot instanceof HTMLElement))\n CSSRoot.adoptedStyleSheets = styles.map((s) => {\n return s instanceof StyleSheet ? s : s.styleSheet!;\n });\n } else if (APPLIED_STYLES.indexOf(componentName) === -1) {\n const combinedStyleArray = styles\n .map((style) => ('cssText' in style ? style.cssText : null))\n .join('');\n\n // When adopted stylesheet is not supported but shadowdom is apply it to the shadowroot.\n // Else it is being applied to the head.\n if (hasShadowDom) {\n // Cache the styles so it can be reused instead of creating a style tag again.\n root.styles = combinedStyleArray;\n applyShadowdomStyles(root, combinedStyleArray);\n } else {\n const styleElement = document.createElement('style');\n styleElement.textContent = combinedStyleArray;\n styleElement.setAttribute('scope', componentName);\n\n document.head.appendChild(styleElement);\n APPLIED_STYLES.push(componentName);\n }\n }\n};\n\nexport const useStylesheet = (style: string) => {\n const css = unsafeCSS(style);\n const styles = Array.isArray(css) ? [...css] : [css];\n\n return createHook({\n onDidLoad: (element) => adoptStyles(element, styles),\n onUpdate: (element) => adoptStyles(element, styles),\n });\n};\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.3",
4
4
  "description": "Description",
5
5
  "url": "https://github.com/{repo name}",
6
6
  "license": "MIT",
@@ -39,19 +39,19 @@
39
39
  "rollup": "^2.38.0",
40
40
  "rollup-plugin-node-externals": "^2.2.0",
41
41
  "ts-node": "^9.1.1",
42
- "typescript": "^3.4.1",
42
+ "typescript": "^3.7.5",
43
43
  "uglify-es": "^3.3.9"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "409c0ad03fbf1338c34a7df5d65fed736e29fa7e",
48
+ "gitHead": "d69a42558824402f790dcf8b2bdf7148eedfa170",
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.3",
55
55
  "qs": "^6.9.4",
56
56
  "query-string": "5"
57
57
  }