@rr0/cms 0.2.5 → 0.3.1

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 (444) hide show
  1. package/dist/RR0Build.js +5 -4
  2. package/dist/RR0Context.d.ts +1 -1
  3. package/dist/book/BookService.d.ts +1 -2
  4. package/dist/book/BookService.test.js +3 -4
  5. package/dist/org/{Organization.d.ts → CmsOrganization.d.ts} +5 -8
  6. package/dist/org/{Organization.js → CmsOrganization.js} +3 -8
  7. package/dist/org/CountryMessagesList.d.ts +1 -1
  8. package/dist/org/OrgMessages.d.ts +2 -2
  9. package/dist/org/OrganizationFactory.d.ts +3 -3
  10. package/dist/org/OrganizationFactory.js +2 -2
  11. package/dist/org/OrganizationJson.d.ts +1 -1
  12. package/dist/org/OrganizationMessages.d.ts +3 -3
  13. package/dist/org/OrganizationService.d.ts +2 -2
  14. package/dist/org/au/Australia.d.ts +2 -2
  15. package/dist/org/au/Australia.js +3 -2
  16. package/dist/org/br/Brazil.d.ts +3 -3
  17. package/dist/org/br/Brazil.js +5 -5
  18. package/dist/org/br/region/BrazilRegions.d.ts +2 -2
  19. package/dist/org/br/region/cw/CentralWest.d.ts +1 -1
  20. package/dist/org/br/region/cw/CentralWestCities.d.ts +2 -2
  21. package/dist/org/br/region/cw/federaldistrict/70000-000/Brasilia.d.ts +1 -1
  22. package/dist/org/br/region/cw/federaldistrict/FederalDistrict.d.ts +2 -2
  23. package/dist/org/br/region/cw/federaldistrict/FederalDistrict.js +3 -3
  24. package/dist/org/br/region/cw/federaldistrict/FederalDistrictCities.d.ts +2 -2
  25. package/dist/org/br/region/se/SouthEast.d.ts +1 -1
  26. package/dist/org/br/region/se/SouthEastCities.d.ts +2 -2
  27. package/dist/org/br/region/se/SouthEastDepartments.d.ts +2 -2
  28. package/dist/org/ca/Canada.d.ts +2 -2
  29. package/dist/org/ca/Canada.js +3 -2
  30. package/dist/org/ca/region/ab/eastman/sundown/Sundown.d.ts +1 -1
  31. package/dist/org/ca/region/bc/rdck/Castlegar/Castlegar.d.ts +1 -1
  32. package/dist/org/ca/region/mb/eastman/sundown/Sundown.d.ts +1 -1
  33. package/dist/org/cn/China.d.ts +2 -2
  34. package/dist/org/cn/China.js +3 -2
  35. package/dist/org/cn/region/n/ji/Tianjin/Tianjin.d.ts +1 -1
  36. package/dist/org/co/Colombia.d.ts +3 -3
  37. package/dist/org/co/Colombia.js +3 -2
  38. package/dist/org/country/CmsCountry.d.ts +6 -0
  39. package/dist/org/country/CmsCountry.js +7 -0
  40. package/dist/org/country/Countries.d.ts +2 -0
  41. package/dist/org/country/Countries.js +85 -0
  42. package/dist/org/country/CountryService.d.ts +2 -3
  43. package/dist/org/country/CountryService.js +0 -83
  44. package/dist/org/country/index.d.ts +1 -3
  45. package/dist/org/country/index.js +1 -3
  46. package/dist/org/country/region/Region.d.ts +3 -3
  47. package/dist/org/country/region/Region.js +3 -3
  48. package/dist/org/country/region/RegionService.d.ts +2 -2
  49. package/dist/org/country/region/department/Department.d.ts +4 -4
  50. package/dist/org/country/region/department/Department.js +3 -3
  51. package/dist/org/country/region/department/city/City.d.ts +3 -3
  52. package/dist/org/country/region/department/city/City.js +3 -3
  53. package/dist/org/do/DominicanRepublic.d.ts +3 -3
  54. package/dist/org/do/DominicanRepublic.js +3 -2
  55. package/dist/org/dz/Algeria.d.ts +2 -2
  56. package/dist/org/dz/Algeria.js +3 -2
  57. package/dist/org/dz/region/al/Alger/Alger.d.ts +1 -1
  58. package/dist/org/ec/Ecuador.d.ts +2 -2
  59. package/dist/org/ec/Ecuador.js +3 -2
  60. package/dist/org/eg/Egypt.d.ts +2 -2
  61. package/dist/org/eg/Egypt.js +3 -2
  62. package/dist/org/eu/Region_eu.d.ts +2 -2
  63. package/dist/org/eu/de/Germany.d.ts +2 -2
  64. package/dist/org/eu/de/Germany.js +3 -3
  65. package/dist/org/eu/dk/Denmark.d.ts +2 -2
  66. package/dist/org/eu/dk/Denmark.js +3 -3
  67. package/dist/org/eu/es/Spain.d.ts +2 -2
  68. package/dist/org/eu/es/Spain.js +3 -3
  69. package/dist/org/eu/es/region/cat/lleida/LleidaCities.d.ts +2 -2
  70. package/dist/org/eu/es/region/cat/lleida/lleida/Lleida.d.ts +1 -1
  71. package/dist/org/eu/fi/Finland.d.ts +2 -2
  72. package/dist/org/eu/fi/Finland.js +3 -3
  73. package/dist/org/eu/fi/FinlandDepartments.d.ts +2 -2
  74. package/dist/org/eu/fi/region/FinlandDepartments.d.ts +1 -1
  75. package/dist/org/eu/fi/region/nk/NorthKareliaDepartments.d.ts +2 -2
  76. package/dist/org/eu/fi/region/p/nwp/parkano/Parkano.d.ts +1 -1
  77. package/dist/org/eu/fr/France.d.ts +2 -2
  78. package/dist/org/eu/fr/France.js +3 -3
  79. package/dist/org/eu/fr/France_en.js +1 -1
  80. package/dist/org/eu/fr/France_fr.js +1 -1
  81. package/dist/org/eu/fr/cnes/geipan/geipan/GeipanCaseSummary.d.ts +1 -1
  82. package/dist/org/eu/fr/region/FranceRegions.d.ts +2 -2
  83. package/dist/org/eu/fr/region/ara/01/HautevilleLompnes/HautevilleLompnes.d.ts +1 -1
  84. package/dist/org/eu/fr/region/ara/03/montmarault/Montmarault.d.ts +1 -1
  85. package/dist/org/eu/fr/region/ara/03/valonensully/VallonEnSully.d.ts +1 -1
  86. package/dist/org/eu/fr/region/ara/07/Coux/Coux.d.ts +1 -1
  87. package/dist/org/eu/fr/region/ara/07/Largentiere/Largentiere.d.ts +1 -1
  88. package/dist/org/eu/fr/region/ara/07/VernouxEnVivarais/VernouxEnVivarais.d.ts +1 -1
  89. package/dist/org/eu/fr/region/ara/15/mauriac/Mauriac.d.ts +1 -1
  90. package/dist/org/eu/fr/region/ara/15/pierrefort/Pierrefort.d.ts +1 -1
  91. package/dist/org/eu/fr/region/ara/26/Chateaudouble/Chateaudouble.d.ts +1 -1
  92. package/dist/org/eu/fr/region/ara/38/Allevard/Allevard.d.ts +1 -1
  93. package/dist/org/eu/fr/region/ara/38/Chirens/Chirens.d.ts +1 -1
  94. package/dist/org/eu/fr/region/ara/38/Domene/Domene.d.ts +1 -1
  95. package/dist/org/eu/fr/region/ara/38/IsereCities.d.ts +2 -2
  96. package/dist/org/eu/fr/region/ara/38/Meylan/Meylan.d.ts +1 -1
  97. package/dist/org/eu/fr/region/ara/38/Renage/Renage.d.ts +1 -1
  98. package/dist/org/eu/fr/region/ara/38/SaintGeoireEnValdaine/SaintGeoireEnValdaine.d.ts +1 -1
  99. package/dist/org/eu/fr/region/ara/38/SaintMarcellin/SaintMarcellin.d.ts +1 -1
  100. package/dist/org/eu/fr/region/ara/38/SaintVerand/SaintVerand.d.ts +1 -1
  101. package/dist/org/eu/fr/region/ara/38/Valbonnais/Valbonnais.d.ts +1 -1
  102. package/dist/org/eu/fr/region/ara/38/Venon/Venon.d.ts +1 -1
  103. package/dist/org/eu/fr/region/ara/42/Montbrison/Montbrison.d.ts +1 -1
  104. package/dist/org/eu/fr/region/ara/42/Roanne/Roanne.d.ts +1 -1
  105. package/dist/org/eu/fr/region/ara/42/SaintEtienne/SaintEtienne.d.ts +1 -1
  106. package/dist/org/eu/fr/region/ara/63/Billom/Billom.d.ts +1 -1
  107. package/dist/org/eu/fr/region/ara/63/ChatelGuyon/ChatelGuyon.d.ts +1 -1
  108. package/dist/org/eu/fr/region/ara/63/Riom/Riom.d.ts +1 -1
  109. package/dist/org/eu/fr/region/ara/69/Belleville/Belleville.d.ts +1 -1
  110. package/dist/org/eu/fr/region/ara/69/Lyon/Lyon.d.ts +1 -1
  111. package/dist/org/eu/fr/region/ara/69/Rhone.d.ts +2 -2
  112. package/dist/org/eu/fr/region/ara/69/Rhone.js +3 -3
  113. package/dist/org/eu/fr/region/ara/69/RhoneCities.d.ts +2 -2
  114. package/dist/org/eu/fr/region/ara/73/SaintJeanDeMaurienne/SaintJeanDeMaurienne.d.ts +1 -1
  115. package/dist/org/eu/fr/region/ara/AuvergneRhoneAlpesCities.d.ts +2 -2
  116. package/dist/org/eu/fr/region/bfc/21/MirebeauSurBeze/MirebeauSurBeze.d.ts +1 -1
  117. package/dist/org/eu/fr/region/bfc/21/Vitteaux/Vitteaux.d.ts +1 -1
  118. package/dist/org/eu/fr/region/bfc/25/AmathayVesigneux/AmathayVesigneux.d.ts +1 -1
  119. package/dist/org/eu/fr/region/bfc/25/Ouhans/Ouhans.d.ts +1 -1
  120. package/dist/org/eu/fr/region/bfc/39/SaintClaude/SaintClaude.d.ts +1 -1
  121. package/dist/org/eu/fr/region/bfc/56/Locmine/Locmine.d.ts +1 -1
  122. package/dist/org/eu/fr/region/bfc/58/ChateauneufValDeBargis/ChateauneufValDeBargis.d.ts +1 -1
  123. package/dist/org/eu/fr/region/bfc/71/Joncy/Joncy.d.ts +1 -1
  124. package/dist/org/eu/fr/region/bfc/71/Verosvres/Verosvres.d.ts +1 -1
  125. package/dist/org/eu/fr/region/bfc/89/Avallon/Avallon.d.ts +1 -1
  126. package/dist/org/eu/fr/region/bfc/89/FlognyLaChapelle/FlognyLaChapelle.d.ts +1 -1
  127. package/dist/org/eu/fr/region/bfc/89/JouxLaVille/JouxLaVille.d.ts +1 -1
  128. package/dist/org/eu/fr/region/bfc/89/PrecyLeSec/PrecyLeSec.d.ts +1 -1
  129. package/dist/org/eu/fr/region/bfc/89/Provency/Provency.d.ts +1 -1
  130. package/dist/org/eu/fr/region/bfc/89/SaintMore/SaintMore.d.ts +1 -1
  131. package/dist/org/eu/fr/region/bfc/89/Vermenton/Vermenton.d.ts +1 -1
  132. package/dist/org/eu/fr/region/bfc/89/Villy/Villy.d.ts +1 -1
  133. package/dist/org/eu/fr/region/bre/35/pleinefougeres/PleineFougeres.d.ts +1 -1
  134. package/dist/org/eu/fr/region/com/988/noumea/Noumea.d.ts +1 -1
  135. package/dist/org/eu/fr/region/com/CollectiviteOutreMer.d.ts +2 -2
  136. package/dist/org/eu/fr/region/com/CollectiviteOutreMer.js +3 -3
  137. package/dist/org/eu/fr/region/cvl/18/ChateauneufSurCher/ChateauneufSurCher.d.ts +1 -1
  138. package/dist/org/eu/fr/region/cvl/36/Issoudun/Issoudun.d.ts +1 -1
  139. package/dist/org/eu/fr/region/cvl/37/Blere/Blere.d.ts +1 -1
  140. package/dist/org/eu/fr/region/cvl/37/ChambourgSurIndre/ChambourgSurIndre.d.ts +1 -1
  141. package/dist/org/eu/fr/region/cvl/37/Monts/Monts.d.ts +1 -1
  142. package/dist/org/eu/fr/region/cvl/45/bou/Bou.d.ts +1 -1
  143. package/dist/org/eu/fr/region/cvl/45/chateaurenard/ChateauRenard.d.ts +1 -1
  144. package/dist/org/eu/fr/region/ges/08/Revin/Revin.d.ts +1 -1
  145. package/dist/org/eu/fr/region/ges/51/MarneCities.d.ts +2 -2
  146. package/dist/org/eu/fr/region/ges/51/Reims/Reims.d.ts +1 -1
  147. package/dist/org/eu/fr/region/ges/54/CosnesEtRomain/CosnesEtRomain.d.ts +1 -1
  148. package/dist/org/eu/fr/region/ges/54/MeurtheEtMoselleCities.d.ts +2 -2
  149. package/dist/org/eu/fr/region/ges/54/Nancy/Nancy.d.ts +1 -1
  150. package/dist/org/eu/fr/region/ges/54/NeuvesMaisons/NeuvesMaisons.d.ts +1 -1
  151. package/dist/org/eu/fr/region/ges/55/GondrecourtLeChateau/GondrecourtLeChateau.d.ts +1 -1
  152. package/dist/org/eu/fr/region/ges/55/Vaucouleurs/Vaucouleurs.d.ts +1 -1
  153. package/dist/org/eu/fr/region/ges/55/VoidVacon/VoidVacon.d.ts +1 -1
  154. package/dist/org/eu/fr/region/ges/57/ArsSurMoselle/ArsSurMoselle.d.ts +1 -1
  155. package/dist/org/eu/fr/region/ges/57/Bouzonville/Bouzonville.d.ts +1 -1
  156. package/dist/org/eu/fr/region/ges/57/Forbach/Forbach.d.ts +1 -1
  157. package/dist/org/eu/fr/region/ges/57/MontignyLesMetz/MontignyLesMetz.d.ts +1 -1
  158. package/dist/org/eu/fr/region/ges/67/Bischwiller/Bischwiller.d.ts +1 -1
  159. package/dist/org/eu/fr/region/ges/67/Urmatt/Urmatt.d.ts +1 -1
  160. package/dist/org/eu/fr/region/ges/68/Mulhouse/Mulhouse.d.ts +1 -1
  161. package/dist/org/eu/fr/region/ges/88/Anglemont/Anglemont.d.ts +1 -1
  162. package/dist/org/eu/fr/region/ges/88/Epinal/Epinal.d.ts +1 -1
  163. package/dist/org/eu/fr/region/gua/971/CapesterreMarieGalante/CapesterreMarieGalante.d.ts +1 -1
  164. package/dist/org/eu/fr/region/gua/971/LeMoule/LeMoule.d.ts +1 -1
  165. package/dist/org/eu/fr/region/hdf/02/SainsRichaumont/SainsRichaumont.d.ts +1 -1
  166. package/dist/org/eu/fr/region/hdf/59/Aniche/Aniche.d.ts +1 -1
  167. package/dist/org/eu/fr/region/hdf/59/AvesnesLesAubert/AvesnesLesAubert.d.ts +1 -1
  168. package/dist/org/eu/fr/region/hdf/59/Jeumont/Jeumont.d.ts +1 -1
  169. package/dist/org/eu/fr/region/hdf/59/Thiant/Thiant.d.ts +1 -1
  170. package/dist/org/eu/fr/region/hdf/62/Calais/Calais.d.ts +1 -1
  171. package/dist/org/eu/fr/region/hdf/62/NeuvilleSaintVaast/NeuvilleSaintVaast.d.ts +1 -1
  172. package/dist/org/eu/fr/region/hdf/62/SaintPolSurTernoise/SaintPolSurTernoise.d.ts +1 -1
  173. package/dist/org/eu/fr/region/hdf/80/bernaville/Bernaville.d.ts +1 -1
  174. package/dist/org/eu/fr/region/idf/60/NeuillyEnThelle/NeuillyEnThelle.d.ts +1 -1
  175. package/dist/org/eu/fr/region/idf/60/PontLEveque/PontLEveque.d.ts +1 -1
  176. package/dist/org/eu/fr/region/idf/60/PontSainteMaxence/PontSainteMaxence.d.ts +1 -1
  177. package/dist/org/eu/fr/region/idf/60/RibecourtDreslincourt/RibecourtDreslincourt.d.ts +1 -1
  178. package/dist/org/eu/fr/region/idf/60/compiegne/Compiegne.d.ts +1 -1
  179. package/dist/org/eu/fr/region/idf/60/morlincourt/Morlincourt.d.ts +1 -1
  180. package/dist/org/eu/fr/region/idf/75/paris/Paris.d.ts +1 -1
  181. package/dist/org/eu/fr/region/idf/77/SivryCourtry/SivryCourtry.d.ts +1 -1
  182. package/dist/org/eu/fr/region/idf/78/mesnilleroi/MesnilLeRoi.d.ts +1 -1
  183. package/dist/org/eu/fr/region/idf/78/neauphlelechateau/NeauphleLeChateau.d.ts +1 -1
  184. package/dist/org/eu/fr/region/idf/78/noisyleroi/NoisyLeRoi.d.ts +1 -1
  185. package/dist/org/eu/fr/region/idf/91/wissous/Wissous.d.ts +1 -1
  186. package/dist/org/eu/fr/region/idf/92/BoisColombes/BoisColombes.d.ts +1 -1
  187. package/dist/org/eu/fr/region/idf/92/Colombes/Colombes.d.ts +1 -1
  188. package/dist/org/eu/fr/region/idf/92/Nanterre/Nanterre.d.ts +1 -1
  189. package/dist/org/eu/fr/region/idf/95/taverny/Taverny.d.ts +1 -1
  190. package/dist/org/eu/fr/region/idf/IdfDepartments.d.ts +2 -2
  191. package/dist/org/eu/fr/region/lre/974/SaintBenoit/SaintBenoit.d.ts +1 -1
  192. package/dist/org/eu/fr/region/lre/974/SaintDenis/SaintDenis.d.ts +1 -1
  193. package/dist/org/eu/fr/region/lre/974/SaintPaul/SaintPaul.d.ts +1 -1
  194. package/dist/org/eu/fr/region/lre/974/SaintPierre/SaintPierre.d.ts +1 -1
  195. package/dist/org/eu/fr/region/lre/974/SainteMarie/SainteMarie.d.ts +1 -1
  196. package/dist/org/eu/fr/region/mtq/972/CasePilote/CasePilote.d.ts +1 -1
  197. package/dist/org/eu/fr/region/mtq/972/FortDeFrance/FortDeFrance.d.ts +1 -1
  198. package/dist/org/eu/fr/region/naq/16/Angouleme/Angouleme.d.ts +1 -1
  199. package/dist/org/eu/fr/region/naq/16/CharenteCities.d.ts +2 -2
  200. package/dist/org/eu/fr/region/naq/16/Montigne/Montigne.d.ts +1 -1
  201. package/dist/org/eu/fr/region/naq/16/Rouillac/Rouillac.d.ts +1 -1
  202. package/dist/org/eu/fr/region/naq/16/Villeboislavalette/VilleboisLavalette.d.ts +1 -1
  203. package/dist/org/eu/fr/region/naq/17/Matha/Matha.d.ts +1 -1
  204. package/dist/org/eu/fr/region/naq/17/SaintJeanAngely/SaintJeanAngely.d.ts +1 -1
  205. package/dist/org/eu/fr/region/naq/17/Saujon/Saujon.d.ts +1 -1
  206. package/dist/org/eu/fr/region/naq/17/StMartinDeRe/StMartinDeRe.d.ts +1 -1
  207. package/dist/org/eu/fr/region/naq/19/BriveLaGaillarde/BriveLaGaillarde.d.ts +1 -1
  208. package/dist/org/eu/fr/region/naq/19/LarochePresFeyt/LarochePresFeyt.d.ts +1 -1
  209. package/dist/org/eu/fr/region/naq/23/Chambon/Chambon.d.ts +1 -1
  210. package/dist/org/eu/fr/region/naq/24/Eymet/Eymet.d.ts +1 -1
  211. package/dist/org/eu/fr/region/naq/33/Cestas/Cestas.d.ts +1 -1
  212. package/dist/org/eu/fr/region/naq/33/Etauliers/Etauliers.d.ts +1 -1
  213. package/dist/org/eu/fr/region/naq/33/StAndreDeCubzac/StAndreDeCubzac.d.ts +1 -1
  214. package/dist/org/eu/fr/region/naq/40/MontDeMarsan/MontDeMarsan.d.ts +1 -1
  215. package/dist/org/eu/fr/region/naq/47/LaroqueTimbaut/LaroqueTimbaut.d.ts +1 -1
  216. package/dist/org/eu/fr/region/naq/47/PontDuCasse/PontDuCasse.d.ts +1 -1
  217. package/dist/org/eu/fr/region/naq/64/Nay/Nay.d.ts +1 -1
  218. package/dist/org/eu/fr/region/naq/79/Magne/Magne.d.ts +1 -1
  219. package/dist/org/eu/fr/region/naq/86/Lavoux/Lavoux.d.ts +1 -1
  220. package/dist/org/eu/fr/region/naq/NouvelleAquitaineCities.d.ts +2 -2
  221. package/dist/org/eu/fr/region/naq/NouvelleAquitaineDepartments.d.ts +2 -2
  222. package/dist/org/eu/fr/region/nor/14/PontLEveque/PontLEveque.d.ts +1 -1
  223. package/dist/org/eu/fr/region/nor/14/SaintAubinSurMer/SaintAubinSurMer.d.ts +1 -1
  224. package/dist/org/eu/fr/region/nor/76/CrielSurMer/CrielSurMer.d.ts +1 -1
  225. package/dist/org/eu/fr/region/nor/76/Dieppe/Dieppe.d.ts +1 -1
  226. package/dist/org/eu/fr/region/nor/76/Londe/Londe.d.ts +1 -1
  227. package/dist/org/eu/fr/region/nor/76/SaintAubinSurMer/SaintAubinSurMer.d.ts +1 -1
  228. package/dist/org/eu/fr/region/occ/09/cos/Cos.d.ts +1 -1
  229. package/dist/org/eu/fr/region/occ/11/AudeCities.d.ts +2 -2
  230. package/dist/org/eu/fr/region/occ/11/cucugnan/Cucugnan.d.ts +1 -1
  231. package/dist/org/eu/fr/region/occ/12/Espalion/Espalion.d.ts +1 -1
  232. package/dist/org/eu/fr/region/occ/30/GardCities.d.ts +2 -2
  233. package/dist/org/eu/fr/region/occ/30/SaintGilles/StGilles.d.ts +1 -1
  234. package/dist/org/eu/fr/region/occ/30/ledignan/Ledignan.d.ts +1 -1
  235. package/dist/org/eu/fr/region/occ/31/HauteGaronneCities.d.ts +2 -2
  236. package/dist/org/eu/fr/region/occ/31/loudet/Loudet.d.ts +1 -1
  237. package/dist/org/eu/fr/region/occ/31/stplancard/StPlancard.d.ts +1 -1
  238. package/dist/org/eu/fr/region/occ/31/toulouse/Toulouse.d.ts +1 -1
  239. package/dist/org/eu/fr/region/occ/32/Condom/Condom.d.ts +1 -1
  240. package/dist/org/eu/fr/region/occ/32/Estang/Estang.d.ts +1 -1
  241. package/dist/org/eu/fr/region/occ/32/MiramontDAstarac/MiramontDAstarac.d.ts +1 -1
  242. package/dist/org/eu/fr/region/occ/34/HeraultCities.d.ts +2 -2
  243. package/dist/org/eu/fr/region/occ/34/Montpellier/Montpellier.d.ts +1 -1
  244. package/dist/org/eu/fr/region/occ/34/SaintGeniesDesMourgues/SaintGeniesDesMourgues.d.ts +1 -1
  245. package/dist/org/eu/fr/region/occ/65/Tarbes/Tarbes.d.ts +1 -1
  246. package/dist/org/eu/fr/region/occ/66/Planes/Planes.d.ts +1 -1
  247. package/dist/org/eu/fr/region/occ/66/PortePuymorens/PortePuymorens.d.ts +1 -1
  248. package/dist/org/eu/fr/region/occ/66/Thuir/Thuir.d.ts +1 -1
  249. package/dist/org/eu/fr/region/occ/81/Albi/Albi.d.ts +1 -1
  250. package/dist/org/eu/fr/region/occ/81/CastelnauDeMontmiral/CastelnauDeMontmiral.d.ts +1 -1
  251. package/dist/org/eu/fr/region/occ/81/TarnCities.d.ts +2 -2
  252. package/dist/org/eu/fr/region/occ/82/TarnEtGaronne.d.ts +2 -2
  253. package/dist/org/eu/fr/region/occ/82/TarnEtGaronne.js +3 -3
  254. package/dist/org/eu/fr/region/occ/82/touffailles/Touffailles.d.ts +1 -1
  255. package/dist/org/eu/fr/region/occ/87/HauteVienne.d.ts +2 -2
  256. package/dist/org/eu/fr/region/occ/87/HauteVienne.js +3 -3
  257. package/dist/org/eu/fr/region/occ/87/jabreilles/Jabreilles.d.ts +1 -1
  258. package/dist/org/eu/fr/region/occ/OccitanieCities.d.ts +2 -2
  259. package/dist/org/eu/fr/region/occ/OccitanieDepartments.d.ts +2 -2
  260. package/dist/org/eu/fr/region/pac/04/Barcelonnette/Barcelonnette.d.ts +1 -1
  261. package/dist/org/eu/fr/region/pac/04/Entrevaux/Entrevaux.d.ts +1 -1
  262. package/dist/org/eu/fr/region/pac/04/LauzetUbaye/LauzetUbaye.d.ts +1 -1
  263. package/dist/org/eu/fr/region/pac/05/briancon/Briancon.d.ts +1 -1
  264. package/dist/org/eu/fr/region/pac/06/cagnessurmer/CagnesSurMer.d.ts +1 -1
  265. package/dist/org/eu/fr/region/pac/06/cannes/Cannes.d.ts +1 -1
  266. package/dist/org/eu/fr/region/pac/13/eyragues/Eyragues.d.ts +1 -1
  267. package/dist/org/eu/fr/region/pac/83/Carces/Carces.d.ts +1 -1
  268. package/dist/org/eu/fr/region/pac/83/FoxAmphoux/FoxAmphoux.d.ts +1 -1
  269. package/dist/org/eu/fr/region/pac/83/Grimaud/Grimaud.d.ts +1 -1
  270. package/dist/org/eu/fr/region/pac/84/Bollene/Bollene.d.ts +1 -1
  271. package/dist/org/eu/fr/region/pac/85/Chantonnay/Chantonnay.d.ts +1 -1
  272. package/dist/org/eu/fr/region/pac/PacaDepartments.d.ts +2 -2
  273. package/dist/org/eu/fr/region/pdl/44/LeCroisic/LeCroisic.d.ts +1 -1
  274. package/dist/org/eu/fr/region/pdl/44/LorouxBottereau/LorouxBottereau.d.ts +1 -1
  275. package/dist/org/eu/fr/region/pdl/44/Reze/Reze.d.ts +1 -1
  276. package/dist/org/eu/fr/region/pdl/49/Angers/Angers.d.ts +1 -1
  277. package/dist/org/eu/fr/region/pdl/49/Cholet/Cholet.d.ts +1 -1
  278. package/dist/org/eu/fr/region/pdl/53/ChateauGontier/ChateauGontier.d.ts +1 -1
  279. package/dist/org/eu/fr/region/pdl/72/LeMans/LeMans.d.ts +1 -1
  280. package/dist/org/eu/fr/region/pdl/72/SougeLeGanelon/SougeLeGanelon.d.ts +1 -1
  281. package/dist/org/eu/fr/region/pdl/72/SteCerotte/SteCerotte.d.ts +1 -1
  282. package/dist/org/eu/fr/region/pdl/72/bazoge/Bazoge.d.ts +1 -1
  283. package/dist/org/eu/pl/Poland.d.ts +2 -2
  284. package/dist/org/eu/pl/Poland.js +3 -3
  285. package/dist/org/eu/pl/region/12/sucha/jordanow/Jordanow.d.ts +1 -1
  286. package/dist/org/ge/Georgia.d.ts +2 -2
  287. package/dist/org/ge/Georgia.js +3 -2
  288. package/dist/org/il/Israel.d.ts +2 -2
  289. package/dist/org/il/Israel.js +3 -2
  290. package/dist/org/in/India.d.ts +2 -2
  291. package/dist/org/in/India.js +3 -2
  292. package/dist/org/index.d.ts +1 -2
  293. package/dist/org/index.js +1 -2
  294. package/dist/org/kr/SouthKorea.d.ts +3 -3
  295. package/dist/org/kr/SouthKorea.js +3 -2
  296. package/dist/org/mx/Mexico.d.ts +3 -3
  297. package/dist/org/mx/Mexico.js +3 -2
  298. package/dist/org/mz/Mozambique.d.ts +3 -3
  299. package/dist/org/mz/Mozambique.js +3 -2
  300. package/dist/org/nz/NewZealand.d.ts +3 -3
  301. package/dist/org/nz/NewZealand.js +3 -2
  302. package/dist/org/nz/region/NewZealandCities.d.ts +2 -2
  303. package/dist/org/pa/Panama.d.ts +2 -2
  304. package/dist/org/pa/Panama.js +3 -2
  305. package/dist/org/pa/region/al/Alger/Alger.d.ts +1 -1
  306. package/dist/org/pe/Peru.d.ts +2 -2
  307. package/dist/org/pe/Peru.js +3 -2
  308. package/dist/org/ph/Philippines.d.ts +2 -2
  309. package/dist/org/ph/Philippines.js +3 -2
  310. package/dist/org/ru/Russia.d.ts +3 -3
  311. package/dist/org/ru/Russia.js +3 -2
  312. package/dist/org/ru/region/nc/kb/elbrus/MountElbrus.d.ts +1 -1
  313. package/dist/org/sc/Seychelles.d.ts +3 -3
  314. package/dist/org/sc/Seychelles.js +3 -2
  315. package/dist/org/tn/Tunisia.d.ts +3 -3
  316. package/dist/org/tn/Tunisia.js +3 -2
  317. package/dist/org/tw/Taiwan.d.ts +3 -3
  318. package/dist/org/tw/Taiwan.js +3 -2
  319. package/dist/org/uk/Uk.d.ts +3 -3
  320. package/dist/org/uk/Uk.js +3 -2
  321. package/dist/org/uk/region/eng/sussex/frant/Frant.d.ts +1 -1
  322. package/dist/org/us/Usa.d.ts +3 -3
  323. package/dist/org/us/Usa.js +3 -2
  324. package/dist/org/us/region/UsaCounties.d.ts +2 -2
  325. package/dist/org/us/region/ak/AlaskaCounties.d.ts +2 -2
  326. package/dist/org/us/region/al/AlabamaCounties.d.ts +2 -2
  327. package/dist/org/us/region/al/geneva/slocomb/Slocomb.d.ts +1 -1
  328. package/dist/org/us/region/ar/ArkansasCounties.d.ts +2 -2
  329. package/dist/org/us/region/ca/CaDepartment.d.ts +2 -2
  330. package/dist/org/us/region/ca/CaDepartment.js +3 -3
  331. package/dist/org/us/region/ca/CaliforniaCounties.d.ts +2 -2
  332. package/dist/org/us/region/ca/sandiego/SanDiego.d.ts +1 -1
  333. package/dist/org/us/region/ca/sandiego/SanDiegoCity.d.ts +1 -1
  334. package/dist/org/us/region/ca/sandiego/camppendleton/CampPendleton.d.ts +1 -1
  335. package/dist/org/us/region/ca/sandiego/oceanside/OceanSide.d.ts +1 -1
  336. package/dist/org/us/region/co/ColoradoCounties.d.ts +2 -2
  337. package/dist/org/us/region/ct/ConnecticutCounties.d.ts +2 -2
  338. package/dist/org/us/region/de/DelawareCounties.d.ts +2 -2
  339. package/dist/org/us/region/fl/FloridaCounties.d.ts +2 -2
  340. package/dist/org/us/region/fl/pinellas/Pinellas.d.ts +2 -2
  341. package/dist/org/us/region/fl/pinellas/Pinellas.js +3 -3
  342. package/dist/org/us/region/fl/pinellas/stpetersburg/StPetersburg.d.ts +1 -1
  343. package/dist/org/us/region/hi/honolulu/Helemano/Helemano.d.ts +1 -1
  344. package/dist/org/us/region/il/IllinoisCounties.d.ts +2 -2
  345. package/dist/org/us/region/in/elkhart/elkhart/ElkhartCity.d.ts +1 -1
  346. package/dist/org/us/region/in/monroe/bloomington/Bloomington.d.ts +1 -1
  347. package/dist/org/us/region/in/whitley/SouthWhitley/SouthWhitley.d.ts +1 -1
  348. package/dist/org/us/region/ky/KentuckyCounties.d.ts +2 -2
  349. package/dist/org/us/region/ma/MassachusettsCounties.d.ts +2 -2
  350. package/dist/org/us/region/ma/middlesex/cambridge/Cambridge.d.ts +1 -1
  351. package/dist/org/us/region/md/MarylandCounties.d.ts +2 -2
  352. package/dist/org/us/region/me/MaineCounties.d.ts +2 -2
  353. package/dist/org/us/region/mi/MichiganCounties.d.ts +2 -2
  354. package/dist/org/us/region/mi/kalamazoo/galesburg/Galesburg.d.ts +1 -1
  355. package/dist/org/us/region/mn/MinnesotaCounties.d.ts +2 -2
  356. package/dist/org/us/region/mn/hennepin/Minneapolis/Minneapolis.d.ts +1 -1
  357. package/dist/org/us/region/mo/MissouriCounties.d.ts +2 -2
  358. package/dist/org/us/region/mo/pike/Louisiana/Louisiana.d.ts +1 -1
  359. package/dist/org/us/region/ms/MississippiCounties.d.ts +2 -2
  360. package/dist/org/us/region/ms/hinds/Jackson/Jackson.d.ts +1 -1
  361. package/dist/org/us/region/mt/MontanaCounties.d.ts +2 -2
  362. package/dist/org/us/region/mt/cascade/GreatFalls/GreatFalls.d.ts +1 -1
  363. package/dist/org/us/region/nc/guilford/greensboro/Greensboro.d.ts +1 -1
  364. package/dist/org/us/region/ne/ScottsBluff/Scottsbluff/ScottsbluffCity.d.ts +1 -1
  365. package/dist/org/us/region/nh/NewHampshireCounties.d.ts +2 -2
  366. package/dist/org/us/region/nh/rockingham/Portsmouth/Portsmouth.d.ts +1 -1
  367. package/dist/org/us/region/nj/burlington/willingboro/Willingboro.d.ts +1 -1
  368. package/dist/org/us/region/nv/NevadaCounties.d.ts +2 -2
  369. package/dist/org/us/region/nv/clark/LasVegas/LasVegas.d.ts +1 -1
  370. package/dist/org/us/region/ny/niagara/niagarafalls/NiagaraFalls.d.ts +1 -1
  371. package/dist/org/us/region/oh/OhioCounties.d.ts +2 -2
  372. package/dist/org/us/region/ok/OklahomaCounties.d.ts +2 -2
  373. package/dist/org/us/region/ok/kalamazoo/galesburg/Galesburg.d.ts +1 -1
  374. package/dist/org/us/region/or/OregonCounties.d.ts +2 -2
  375. package/dist/org/us/region/or/kalamazoo/galesburg/Galesburg.d.ts +1 -1
  376. package/dist/org/us/region/pa/westmoreland/Westmoreland.d.ts +2 -2
  377. package/dist/org/us/region/pa/westmoreland/Westmoreland.js +3 -3
  378. package/dist/org/us/region/pa/westmoreland/monessen/Monessen.d.ts +1 -1
  379. package/dist/org/us/region/pr/PuertoRicoCounties.d.ts +2 -2
  380. package/dist/org/us/region/pr/kalamazoo/galesburg/Galesburg.d.ts +1 -1
  381. package/dist/org/us/region/sc/SouthCarolinaCounties.d.ts +2 -2
  382. package/dist/org/us/region/sc/kalamazoo/galesburg/Galesburg.d.ts +1 -1
  383. package/dist/org/us/region/tx/TexasCounties.d.ts +2 -2
  384. package/dist/org/us/region/tx/Texas_en.js +1 -1
  385. package/dist/org/us/region/tx/Texas_fr.js +1 -1
  386. package/dist/org/us/region/tx/houston/Houston.d.ts +1 -1
  387. package/dist/org/us/region/tx/tarrant/fortworth/FortWorth.d.ts +1 -1
  388. package/dist/org/us/region/ut/UtahCounties.d.ts +2 -2
  389. package/dist/org/us/region/ut/uintah/skinwalker/Skinwalker.d.ts +1 -1
  390. package/dist/org/us/region/va/Virginia_en.js +1 -1
  391. package/dist/org/us/region/va/Virginia_fr.js +1 -1
  392. package/dist/org/us/region/vi/VirginIslandsCounties.d.ts +2 -2
  393. package/dist/org/us/region/vi/stthomas/CharlotteAmalie/CharlotteAmalie.d.ts +1 -1
  394. package/dist/org/us/region/vt/VermontCounties.d.ts +2 -2
  395. package/dist/org/us/region/vt/rutland/Rutland/Rutland.d.ts +1 -1
  396. package/dist/org/us/region/wa/pierce/bonneylake/BonneyLake.d.ts +1 -1
  397. package/dist/org/us/region/wi/WisconsinCounties.d.ts +2 -2
  398. package/dist/org/us/region/wi/dane/Madison/Madison.d.ts +1 -1
  399. package/dist/org/us/region/wv/fayette/MountHope/MountHope.d.ts +1 -1
  400. package/dist/org/us/region/wv/mason/PointPleasant/PointPleasant.d.ts +1 -1
  401. package/dist/org/us/region/wy/WyomingCounties.d.ts +2 -2
  402. package/dist/org/us/region/wy/carbon/Rawlins/Rawlins.d.ts +1 -1
  403. package/dist/people/OccupationMessages.d.ts +1 -1
  404. package/dist/people/PeopleDirectoryStep.d.ts +1 -4
  405. package/dist/people/PeopleDirectoryStep.js +1 -1
  406. package/dist/people/PeopleDirectoryStepFactory.d.ts +1 -1
  407. package/dist/people/PeopleDirectoryStepFactory.js +1 -1
  408. package/dist/people/PeopleFactory.test.js +1 -5
  409. package/dist/people/PeopleHtmlRenderer.d.ts +1 -3
  410. package/dist/people/PeopleRegexReplaceCommand.test.js +6 -6
  411. package/dist/people/PeopleReplacer.d.ts +1 -1
  412. package/dist/people/PeopleReplacer.test.js +8 -10
  413. package/dist/people/PeopleReplacerFactory.d.ts +1 -1
  414. package/dist/people/index.d.ts +0 -4
  415. package/dist/people/index.js +0 -4
  416. package/dist/place/OrganizationPlace.d.ts +3 -3
  417. package/dist/place/PlaceReplacer.test.js +1 -1
  418. package/dist/test/RR0TestUtil.d.ts +3 -3
  419. package/dist/test/RR0TestUtil.js +3 -3
  420. package/dist/time/datasource/nuforc/NuforcRR0Mapper.d.ts +1 -1
  421. package/dist/time/datasource/nuforc/NuforcRR0Mapping.d.ts +2 -1
  422. package/dist/time/datasource/urecat/UrecatRR0Mapper.d.ts +1 -1
  423. package/dist/time/datasource/urecat/UrecatRR0Mapping.d.ts +2 -1
  424. package/package.json +8 -8
  425. package/dist/org/OrganizationKind.d.ts +0 -7
  426. package/dist/org/OrganizationKind.js +0 -8
  427. package/dist/org/country/Country.d.ts +0 -6
  428. package/dist/org/country/Country.js +0 -7
  429. package/dist/org/country/CountryCode.d.ts +0 -229
  430. package/dist/org/country/CountryCode.js +0 -230
  431. package/dist/people/Occupation.d.ts +0 -92
  432. package/dist/people/Occupation.js +0 -93
  433. package/dist/people/People.d.ts +0 -52
  434. package/dist/people/People.js +0 -101
  435. package/dist/people/People.test.d.ts +0 -1
  436. package/dist/people/People.test.js +0 -35
  437. package/dist/people/PeopleFactory.d.ts +0 -13
  438. package/dist/people/PeopleFactory.js +0 -66
  439. package/dist/people/PeopleJson.d.ts +0 -34
  440. package/dist/people/PeopleJson.js +0 -1
  441. package/dist/people/PeopleService.d.ts +0 -15
  442. package/dist/people/PeopleService.js +0 -54
  443. package/dist/people/PeopleService.test.d.ts +0 -1
  444. package/dist/people/PeopleService.test.js +0 -82
package/dist/RR0Build.js CHANGED
@@ -3,12 +3,12 @@ import fs from "fs";
3
3
  import { BaseOvniFranceRR0Mapping, CaseSummaryRenderer, ChronologyReplacerFactory, CsvMapper, EventReplacer, EventReplacerFactory, FuforaRR0Mapping, HttpSource, NuforcRR0Mapping, RR0Mapping, SceauRR0Mapping, SsiTitleReplaceCommand, TimeElementFactory, TimeLinkDefaultHandler, TimeReplacer, TimeReplacerFactory, TimeService, TimeTextBuilder, TimeUrlBuilder, UrecatRR0Mapping } from "./time";
4
4
  import { CaseDirectoryStep, CaseFactory, CaseService } from "./science/index.js";
5
5
  import { PlaceReplacerFactory } from "./place/index.js";
6
- import { cities, CityService, countries, CountryService, departments, DepartmentService, OrganizationFactory, OrganizationService, regions, RegionService } from "./org/index.js";
6
+ import { cities, CityService, countries, departments, DepartmentService, OrganizationFactory, OrganizationService, regions, RegionService } from "./org/index.js";
7
7
  import { RR0ContextImpl } from "./RR0Context.js";
8
8
  import { HtmlTable } from "./util/index.js";
9
9
  import { AngularExpressionReplaceCommand, ClassDomReplaceCommand, CopyStep, DomReplaceCommand, HtAccessToNetlifyConfigReplaceCommand, HtmlFileContents, Ssg, SsiEchoVarReplaceCommand, SsiIfReplaceCommand, SsiIncludeReplaceCommand, SsiLastModifiedReplaceCommand, SsiSetVarReplaceCommand, StringEchoVarReplaceCommand } from "ssg-api";
10
10
  import { LanguageReplaceCommand } from "./lang/index.js";
11
- import { AuthorReplaceCommand, PeopleDirectoryStepFactory, PeopleFactory, PeopleReplacerFactory, PeopleService, WitnessReplacerFactory } from "./people";
11
+ import { AuthorReplaceCommand, PeopleDirectoryStepFactory, PeopleReplacerFactory, WitnessReplacerFactory } from "./people";
12
12
  import { PersistentSourceRegistry, SourceFileCounter, SourceIndexStep, SourceRenderer, SourceReplacer, SourceReplacerFactory } from "./source";
13
13
  import { NoteFileCounter, NoteRenderer, NoteReplacer, NoteReplacerFactory } from "./note/index.js";
14
14
  import { AnchorReplaceCommand, CaseAnchorHandler, DataAnchorHandler } from "./anchor/index.js";
@@ -28,10 +28,11 @@ import { DefaultContentVisitor } from "./DefaultContentVisitor.js";
28
28
  import { rr0DefaultCopyright } from "./RR0DefaultCopyright.js";
29
29
  import { TimeContext } from "@rr0/time";
30
30
  import { writeFile } from "@javarome/fileutil";
31
- import { AllDataService, EventDataFactory, RR0EventFactory, TypedDataFactory } from "@rr0/data";
31
+ import { AllDataService, EventDataFactory, PeopleFactory, PeopleService, RR0EventFactory, TypedDataFactory } from "@rr0/data";
32
32
  import { GooglePlaceService } from "@rr0/place";
33
33
  import { GeipanRR0Mapping } from "./org/eu/fr/cnes/geipan/geipan/GeipanRR0Mapping";
34
34
  import { PeopleHtmlRenderer } from "./people/PeopleHtmlRenderer";
35
+ import { CountryService } from "./org/country/CountryService";
35
36
  const outputFunc = async (context, outFile) => {
36
37
  try {
37
38
  if (context.file instanceof HtmlFileContents) {
@@ -92,7 +93,7 @@ export class RR0Build {
92
93
  let dataService = this.dataService;
93
94
  const caseService = new CaseService(dataService, this.caseFactory, timeElementFactory, caseFiles);
94
95
  const peopleFiles = await this.peopleFactory.getFiles();
95
- const peopleService = new PeopleService(dataService, this.peopleFactory, peopleFiles, timeService);
96
+ const peopleService = new PeopleService(dataService, this.peopleFactory, { files: peopleFiles, rootDir: "people" });
96
97
  const peopleList = await peopleService.getAll();
97
98
  context.setVar("peopleFilesCount", peopleList.length);
98
99
  const bookMeta = new Map();
@@ -1,9 +1,9 @@
1
1
  import { RR0Messages } from "./lang/index.js";
2
2
  import { FileWriteConfig, HtmlSsgContext, SsgContext, SsgContextImpl } from "ssg-api";
3
- import { People } from "./people/People.js";
4
3
  import { TimeContext } from "@rr0/time";
5
4
  import { FileContents } from "@javarome/fileutil";
6
5
  import { PlaceContext } from "@rr0/place";
6
+ import { People } from "@rr0/data";
7
7
  export interface RR0Context extends SsgContext {
8
8
  readonly messages: RR0Messages;
9
9
  readonly time: TimeContext;
@@ -1,8 +1,7 @@
1
1
  import { FileWriteConfig, Logger } from "ssg-api";
2
2
  import { Book } from "./Book.js";
3
- import { People } from "../people/People.js";
4
- import { PeopleService } from "../people/PeopleService.js";
5
3
  import { TimeUrlBuilder } from "../time";
4
+ import { People, PeopleService } from "@rr0/data";
6
5
  export declare class BookService {
7
6
  readonly logger: Logger;
8
7
  protected dry: boolean;
@@ -1,8 +1,7 @@
1
+ import path from "path";
1
2
  import { ConsoleLogger } from "ssg-api";
2
3
  import { CLI } from "../util/cli/CLI.js";
3
- import path from "path";
4
- import { PeopleService } from "../people";
5
- import { AllDataService, RR0EventFactory, TypedDataFactory } from "@rr0/data";
4
+ import { AllDataService, PeopleService, RR0EventFactory, TypedDataFactory } from "@rr0/data";
6
5
  import { BookService } from "./BookService";
7
6
  import { TimeUrlBuilder } from "../time";
8
7
  import { rr0TestUtil, testFilePath } from "../test";
@@ -26,7 +25,7 @@ const timeOptions = {
26
25
  };
27
26
  const timeUrlBuilder = new TimeUrlBuilder({ rootDir: timeOptions.root });
28
27
  let files = [];
29
- const peopleService = new PeopleService(dataService, peopleFactory, files, rr0TestUtil.time.getService());
28
+ const peopleService = new PeopleService(dataService, peopleFactory, { files, rootDir: testFilePath("people") });
30
29
  const books = new BookService(logger, dry, peopleService, timeUrlBuilder, config);
31
30
  books.import(fileName).then((result) => {
32
31
  logger.log("Wrote", result.length, "books");
@@ -1,18 +1,15 @@
1
1
  import { RR0Context } from "../RR0Context.js";
2
2
  import { OrganizationMessageOptions, OrganizationMessages } from "./OrganizationMessages.js";
3
3
  import { TitleMessage } from "./TitleMessage.js";
4
- import { RR0Data, RR0Event } from "@rr0/data";
5
- import { OrganizationKind } from "./OrganizationKind";
4
+ import { Organization } from "@rr0/data";
5
+ import { OrganizationKind } from "@rr0/data";
6
6
  import { Place } from "@rr0/place";
7
- export declare class Organization<M extends TitleMessage = OrganizationMessages> implements RR0Data {
7
+ export declare class CmsOrganization<M extends TitleMessage = OrganizationMessages> extends Organization {
8
8
  readonly id: string;
9
9
  readonly places: Place[];
10
10
  readonly kind: OrganizationKind;
11
- readonly parent?: Organization;
12
- readonly type = "org";
13
- readonly dirName: string;
14
- events: RR0Event[];
15
- constructor(id: string, places: Place[], kind: OrganizationKind, parent?: Organization);
11
+ readonly parent?: CmsOrganization;
12
+ constructor(id: string, places: Place[], kind: OrganizationKind, parent?: CmsOrganization);
16
13
  getMessages(context: RR0Context): M;
17
14
  getTitle(context: RR0Context, options?: OrganizationMessageOptions): string;
18
15
  }
@@ -1,17 +1,12 @@
1
- import path from "path";
2
1
  import assert from "assert";
3
- export class Organization {
2
+ import { Organization } from "@rr0/data";
3
+ export class CmsOrganization extends Organization {
4
4
  constructor(id, places, kind, parent) {
5
- var _a;
5
+ super(id, places, kind, parent);
6
6
  this.id = id;
7
7
  this.places = places;
8
8
  this.kind = kind;
9
9
  this.parent = parent;
10
- this.type = "org";
11
- this.events = [];
12
- assert.ok(id, `id must be defined for organization of type ${kind}`);
13
- this.dirName = path.join((_a = parent === null || parent === void 0 ? void 0 : parent.dirName) !== null && _a !== void 0 ? _a : "org/", id);
14
- assert.ok(id, `Code must be defined for organization of type ${kind}`);
15
10
  }
16
11
  getMessages(context) {
17
12
  const parent = this.parent;
@@ -1,5 +1,5 @@
1
- import { CountryCode } from "./country/CountryCode.js";
2
1
  import { CountryMessages } from "./country/CountryMessages.js";
2
+ import { CountryCode } from "@rr0/data";
3
3
  export type CountryMessagesList = {
4
4
  [key in CountryCode]: CountryMessages<any>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { RR0Context } from "../RR0Context.js";
2
- import { Organization } from "./Organization.js";
2
+ import { CmsOrganization } from "./CmsOrganization.js";
3
3
  import { OrganizationMessageOptions } from "./OrganizationMessages.js";
4
4
  export declare class OrgMessages {
5
5
  readonly titles: string[];
@@ -10,5 +10,5 @@ export declare class OrgMessages {
10
10
  */
11
11
  constructor(...titles: string[]);
12
12
  get title(): string;
13
- toTitle(context: RR0Context, org: Organization<any>, opts?: OrganizationMessageOptions): string;
13
+ toTitle(context: RR0Context, org: CmsOrganization<any>, opts?: OrganizationMessageOptions): string;
14
14
  }
@@ -1,7 +1,7 @@
1
- import { Organization } from "./Organization.js";
1
+ import { CmsOrganization } from "./CmsOrganization.js";
2
2
  import { RR0EventFactory, TypedDataFactory } from "@rr0/data";
3
3
  import { OrganizationJson } from "./OrganizationJson";
4
- export declare class OrganizationFactory extends TypedDataFactory<Organization, OrganizationJson> {
4
+ export declare class OrganizationFactory extends TypedDataFactory<CmsOrganization, OrganizationJson> {
5
5
  constructor(eventFactory: RR0EventFactory);
6
- parse(dataJson: OrganizationJson): Organization;
6
+ parse(dataJson: OrganizationJson): CmsOrganization;
7
7
  }
@@ -1,4 +1,4 @@
1
- import { Organization } from "./Organization.js";
1
+ import { CmsOrganization } from "./CmsOrganization.js";
2
2
  import { TypedDataFactory } from "@rr0/data";
3
3
  export class OrganizationFactory extends TypedDataFactory {
4
4
  constructor(eventFactory) {
@@ -7,6 +7,6 @@ export class OrganizationFactory extends TypedDataFactory {
7
7
  parse(dataJson) {
8
8
  const base = super.parse(dataJson);
9
9
  const id = base.id || dataJson.dirName.replaceAll("/", "-");
10
- return new Organization(id, dataJson.places, dataJson.kind);
10
+ return new CmsOrganization(id, dataJson.places, dataJson.kind);
11
11
  }
12
12
  }
@@ -1,7 +1,7 @@
1
1
  import { OrganizationMessages } from "./OrganizationMessages.js";
2
2
  import { TitleMessage } from "./TitleMessage.js";
3
3
  import { RR0DataJson, RR0EventJson } from "@rr0/data";
4
- import { OrganizationKind } from "./OrganizationKind";
4
+ import { OrganizationKind } from "@rr0/data";
5
5
  import { Place } from "@rr0/place";
6
6
  export declare class OrganizationJson<M extends TitleMessage = OrganizationMessages> implements RR0DataJson {
7
7
  readonly type = "org";
@@ -1,5 +1,5 @@
1
1
  import { RR0Context } from "../RR0Context.js";
2
- import { Organization } from "./Organization.js";
2
+ import { CmsOrganization } from "./CmsOrganization.js";
3
3
  export interface OrganizationMessageOptions {
4
4
  parent: boolean;
5
5
  }
@@ -12,7 +12,7 @@ export declare class OrganizationMessages {
12
12
  */
13
13
  constructor(titles: string[]);
14
14
  get title(): string;
15
- toTitle(context: RR0Context, org: Organization, options?: OrganizationMessageOptions): string;
16
- toTitleFromName(context: RR0Context, org: Organization, title: string, options: OrganizationMessageOptions): string;
15
+ toTitle(context: RR0Context, org: CmsOrganization, options?: OrganizationMessageOptions): string;
16
+ toTitleFromName(context: RR0Context, org: CmsOrganization, title: string, options: OrganizationMessageOptions): string;
17
17
  cityName(cityStr: string): string;
18
18
  }
@@ -1,7 +1,7 @@
1
- import { Organization } from "./Organization.js";
1
+ import { CmsOrganization } from "./CmsOrganization.js";
2
2
  import { RR0Context } from "../RR0Context.js";
3
3
  import { OrganizationFactory } from "./OrganizationFactory";
4
- export declare class OrganizationService<O extends Organization = Organization, P extends Organization = undefined> {
4
+ export declare class OrganizationService<O extends CmsOrganization = CmsOrganization, P extends CmsOrganization = undefined> {
5
5
  readonly orgs: O[];
6
6
  readonly rootDir: string;
7
7
  protected factory: OrganizationFactory;
@@ -1,2 +1,2 @@
1
- import { Country } from "../country/index.js";
2
- export declare const australia: Country;
1
+ import { CmsCountry } from "../country/CmsCountry";
2
+ export declare const australia: CmsCountry;
@@ -1,2 +1,3 @@
1
- import { Country, CountryCode } from "../country/index.js";
2
- export const australia = new Country(CountryCode.au, []);
1
+ import { CountryCode } from "@rr0/data";
2
+ import { CmsCountry } from "../country/CmsCountry";
3
+ export const australia = new CmsCountry(CountryCode.au, []);
@@ -1,5 +1,5 @@
1
1
  import { Place } from "@rr0/place";
2
2
  import { BrazilRegionCode } from "./region/BrazilRegionCode.js";
3
- import { Organization } from "../Organization.js";
4
- export declare const brazil: Organization<import("../OrganizationMessages.js").OrganizationMessages>;
5
- export declare function brazilRegion(code: BrazilRegionCode, place: Place): Organization<import("../OrganizationMessages.js").OrganizationMessages>;
3
+ import { CmsOrganization } from "../CmsOrganization.js";
4
+ export declare const brazil: CmsOrganization<import("../OrganizationMessages.js").OrganizationMessages>;
5
+ export declare function brazilRegion(code: BrazilRegionCode, place: Place): CmsOrganization<import("../OrganizationMessages.js").OrganizationMessages>;
@@ -1,7 +1,7 @@
1
- import { CountryCode } from "../country/index.js";
2
- import { Organization } from "../Organization.js";
3
- import { OrganizationKind } from "../OrganizationKind";
4
- export const brazil = new Organization(CountryCode.br, [], OrganizationKind.country);
1
+ import { CountryCode } from "@rr0/data";
2
+ import { CmsOrganization } from "../CmsOrganization.js";
3
+ import { OrganizationKind } from "@rr0/data";
4
+ export const brazil = new CmsOrganization(CountryCode.br, [], OrganizationKind.country);
5
5
  export function brazilRegion(code, place) {
6
- return new Organization(code, [place], OrganizationKind.region, brazil);
6
+ return new CmsOrganization(code, [place], OrganizationKind.region, brazil);
7
7
  }
@@ -1,2 +1,2 @@
1
- import { Organization } from "../../Organization.js";
2
- export declare const brazilRegions: Organization[];
1
+ import { CmsOrganization } from "../../CmsOrganization.js";
2
+ export declare const brazilRegions: CmsOrganization[];
@@ -1 +1 @@
1
- export declare const centralWest: import("../../../Organization.js").Organization<import("../../../OrganizationMessages.js").OrganizationMessages>;
1
+ export declare const centralWest: import("../../../CmsOrganization.js").CmsOrganization<import("../../../OrganizationMessages.js").OrganizationMessages>;
@@ -1,2 +1,2 @@
1
- import { Organization } from "../../../Organization.js";
2
- export declare const centralWestCities: Organization[];
1
+ import { CmsOrganization } from "../../../CmsOrganization.js";
2
+ export declare const centralWestCities: CmsOrganization[];
@@ -1,2 +1,2 @@
1
1
  import { City } from "../../../../../country/index.js";
2
- export declare let brasilia: City<import("../../../../../Organization.js").Organization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
2
+ export declare let brasilia: City<import("../../../../../CmsOrganization.js").CmsOrganization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
@@ -1,2 +1,2 @@
1
- import { Organization } from "../../../../Organization.js";
2
- export declare const federalDistrict: Organization<import("../../../../OrganizationMessages.js").OrganizationMessages>;
1
+ import { CmsOrganization } from "../../../../CmsOrganization.js";
2
+ export declare const federalDistrict: CmsOrganization<import("../../../../OrganizationMessages.js").OrganizationMessages>;
@@ -1,6 +1,6 @@
1
1
  import { Place } from "@rr0/place";
2
2
  import { BrazilDepartementCode } from "../../BrazilDepartementCode.js";
3
- import { Organization } from "../../../../Organization.js";
3
+ import { CmsOrganization } from "../../../../CmsOrganization.js";
4
4
  import { centralWest } from "../CentralWest.js";
5
- import { OrganizationKind } from "../../../../OrganizationKind";
6
- export const federalDistrict = new Organization(BrazilDepartementCode.federalDistrict, [Place.fromDMS(`47°03′N,122°07′W`)], OrganizationKind.department, centralWest);
5
+ import { OrganizationKind } from "@rr0/data";
6
+ export const federalDistrict = new CmsOrganization(BrazilDepartementCode.federalDistrict, [Place.fromDMS(`47°03′N,122°07′W`)], OrganizationKind.department, centralWest);
@@ -1,2 +1,2 @@
1
- import { Organization } from "../../../../Organization.js";
2
- export declare const federalDistrictCities: Organization[];
1
+ import { CmsOrganization } from "../../../../CmsOrganization.js";
2
+ export declare const federalDistrictCities: CmsOrganization[];
@@ -1 +1 @@
1
- export declare const southEast: import("../../../Organization.js").Organization<import("../../../OrganizationMessages.js").OrganizationMessages>;
1
+ export declare const southEast: import("../../../CmsOrganization.js").CmsOrganization<import("../../../OrganizationMessages.js").OrganizationMessages>;
@@ -1,2 +1,2 @@
1
- import { Organization } from "../../../Organization.js";
2
- export declare const southEastCities: Organization[];
1
+ import { CmsOrganization } from "../../../CmsOrganization.js";
2
+ export declare const southEastCities: CmsOrganization[];
@@ -1,2 +1,2 @@
1
- import { Organization } from "../../../Organization.js";
2
- export declare const southEastDepartments: Organization[];
1
+ import { CmsOrganization } from "../../../CmsOrganization.js";
2
+ export declare const southEastDepartments: CmsOrganization[];
@@ -1,2 +1,2 @@
1
- import { Country } from "../country/index.js";
2
- export declare const canada: Country;
1
+ import { CmsCountry } from "../country/CmsCountry";
2
+ export declare const canada: CmsCountry;
@@ -1,2 +1,3 @@
1
- import { Country, CountryCode } from "../country/index.js";
2
- export const canada = new Country(CountryCode.ca);
1
+ import { CountryCode } from "@rr0/data";
2
+ import { CmsCountry } from "../country/CmsCountry";
3
+ export const canada = new CmsCountry(CountryCode.ca);
@@ -1,2 +1,2 @@
1
1
  import { City } from "../../../../../country/index.js";
2
- export declare const sundown: City<import("../../../../../Organization.js").Organization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
2
+ export declare const sundown: City<import("../../../../../CmsOrganization.js").CmsOrganization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
@@ -1,2 +1,2 @@
1
1
  import { City } from "../../../../../country/region/department/city/City.js";
2
- export declare const castlegar: City<import("../../../../../Organization.js").Organization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
2
+ export declare const castlegar: City<import("../../../../../CmsOrganization.js").CmsOrganization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
@@ -1,2 +1,2 @@
1
1
  import { City } from "../../../../../country/index.js";
2
- export declare const sundown: City<import("../../../../../Organization.js").Organization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
2
+ export declare const sundown: City<import("../../../../../CmsOrganization.js").CmsOrganization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
@@ -1,2 +1,2 @@
1
- import { Country } from "../country/index.js";
2
- export declare const china: Country;
1
+ import { CmsCountry } from "../country/CmsCountry";
2
+ export declare const china: CmsCountry;
@@ -1,3 +1,4 @@
1
- import { Country, CountryCode } from "../country/index.js";
1
+ import { CountryCode } from "@rr0/data";
2
+ import { CmsCountry } from "../country/CmsCountry";
2
3
  import { Place, PlaceLocation } from "@rr0/place";
3
- export const china = new Country(CountryCode.cn, [new Place([PlaceLocation.fromDMS("35°0'N,103°0'E")])]);
4
+ export const china = new CmsCountry(CountryCode.cn, [new Place([PlaceLocation.fromDMS("35°0'N,103°0'E")])]);
@@ -1,2 +1,2 @@
1
1
  import { City } from "../../../../../country/index.js";
2
- export declare const tianjin: City<import("../../../../../Organization.js").Organization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
2
+ export declare const tianjin: City<import("../../../../../CmsOrganization.js").CmsOrganization<import("../../../../../OrganizationMessages.js").OrganizationMessages>>;
@@ -1,6 +1,6 @@
1
- import { Country } from "../country/index.js";
1
+ import { CmsCountry } from "../country/CmsCountry";
2
2
  import { Place } from "@rr0/place";
3
3
  import { Region } from "../country/region/Region.js";
4
4
  import { ColombiaRegionCode } from "./region/ColombiaRegionCode.js";
5
- export declare const colombia: Country;
6
- export declare function colombiaRegion(code: ColombiaRegionCode, place: Place): Region<import("../country/index.js").RegionMessages<any>, ColombiaRegionCode>;
5
+ export declare const colombia: CmsCountry;
6
+ export declare function colombiaRegion(code: ColombiaRegionCode, place: Place): Region<import("..").RegionMessages<any>, ColombiaRegionCode>;
@@ -1,6 +1,7 @@
1
- import { Country, CountryCode } from "../country/index.js";
1
+ import { CountryCode } from "@rr0/data";
2
+ import { CmsCountry } from "../country/CmsCountry";
2
3
  import { Region } from "../country/region/Region.js";
3
- export const colombia = new Country(CountryCode.co);
4
+ export const colombia = new CmsCountry(CountryCode.co);
4
5
  export function colombiaRegion(code, place) {
5
6
  return new Region(code, colombia, [place]);
6
7
  }
@@ -0,0 +1,6 @@
1
+ import { Place } from "@rr0/place";
2
+ import { CmsOrganization } from "../CmsOrganization";
3
+ import { CountryCode } from "@rr0/data";
4
+ export declare class CmsCountry extends CmsOrganization {
5
+ constructor(code: CountryCode, places?: Place[]);
6
+ }
@@ -0,0 +1,7 @@
1
+ import { CmsOrganization } from "../CmsOrganization";
2
+ import { OrganizationKind } from "@rr0/data";
3
+ export class CmsCountry extends CmsOrganization {
4
+ constructor(code, places = []) {
5
+ super(code, places, OrganizationKind.country);
6
+ }
7
+ }
@@ -0,0 +1,2 @@
1
+ import { CmsCountry } from "./CmsCountry";
2
+ export declare const countries: CmsCountry[];
@@ -0,0 +1,85 @@
1
+ import { algeria } from "../dz/Algeria";
2
+ import { CountryCode } from "@rr0/data";
3
+ import { australia } from "../au/index.js";
4
+ import { brazil } from "../br/Brazil";
5
+ import { canada } from "../ca/Canada";
6
+ import { china } from "../cn/China";
7
+ import { colombia } from "../co/Colombia";
8
+ import { germany } from "../eu/de/Germany";
9
+ import { denmark } from "../eu/dk/Denmark";
10
+ import { dominicanRepublic } from "../do/DominicanRepublic";
11
+ import { spain } from "../eu/es/Spain";
12
+ import { finland } from "../eu/fi/Finland";
13
+ import { france } from "../eu/fr/France";
14
+ import { israel } from "../il/Israel";
15
+ import { india } from "../in/India";
16
+ import { mexico } from "../mx/Mexico";
17
+ import { mozambique } from "../mz/Mozambique";
18
+ import { newZealand } from "../nz/NewZealand";
19
+ import { panama } from "../pa/Panama";
20
+ import { peru } from "../pe/Peru";
21
+ import { philippines } from "../ph/Philippines";
22
+ import { poland } from "../eu/pl/Poland";
23
+ import { russia } from "../ru/Russia";
24
+ import { seychelles } from "../sc/Seychelles";
25
+ import { southKorea } from "../kr/SouthKorea";
26
+ import { taiwan } from "../tw/Taiwan";
27
+ import { tunisia } from "../tn/Tunisia";
28
+ import { uk } from "../uk/Uk";
29
+ import { usa } from "../us/Usa";
30
+ import { CmsCountry } from "./CmsCountry";
31
+ import { georgia } from "../ge/Georgia";
32
+ export const countries = [
33
+ algeria,
34
+ new CmsCountry(CountryCode.ar),
35
+ new CmsCountry(CountryCode.at),
36
+ australia,
37
+ new CmsCountry(CountryCode.be),
38
+ brazil,
39
+ canada,
40
+ new CmsCountry(CountryCode.ch),
41
+ new CmsCountry(CountryCode.cl),
42
+ china,
43
+ colombia,
44
+ new CmsCountry(CountryCode.cy),
45
+ georgia,
46
+ germany,
47
+ denmark,
48
+ dominicanRepublic,
49
+ spain,
50
+ finland,
51
+ france,
52
+ new CmsCountry(CountryCode.gr),
53
+ new CmsCountry(CountryCode.hu),
54
+ new CmsCountry(CountryCode.ie),
55
+ israel,
56
+ india,
57
+ new CmsCountry(CountryCode.ir),
58
+ new CmsCountry(CountryCode.it),
59
+ new CmsCountry(CountryCode.jp),
60
+ new CmsCountry(CountryCode.ma),
61
+ mexico,
62
+ mozambique,
63
+ new CmsCountry(CountryCode.nl),
64
+ new CmsCountry(CountryCode.no),
65
+ newZealand,
66
+ panama,
67
+ peru,
68
+ philippines,
69
+ poland,
70
+ new CmsCountry(CountryCode.pt),
71
+ new CmsCountry(CountryCode.ro),
72
+ russia,
73
+ new CmsCountry(CountryCode.sa),
74
+ new CmsCountry(CountryCode.se),
75
+ seychelles,
76
+ southKorea,
77
+ new CmsCountry(CountryCode.tr),
78
+ taiwan,
79
+ tunisia,
80
+ new CmsCountry(CountryCode.ua),
81
+ uk,
82
+ usa,
83
+ new CmsCountry(CountryCode.ve),
84
+ new CmsCountry(CountryCode.za)
85
+ ];
@@ -1,5 +1,4 @@
1
- import { Country } from "./Country.js";
2
1
  import { OrganizationService } from "../OrganizationService.js";
3
- export declare class CountryService extends OrganizationService<Country> {
2
+ import { CmsCountry } from "./CmsCountry";
3
+ export declare class CountryService extends OrganizationService<CmsCountry> {
4
4
  }
5
- export declare const countries: Country[];
@@ -1,86 +1,3 @@
1
- import { Country } from "./Country.js";
2
- import { CountryCode } from "./CountryCode.js";
3
- import { france } from "../eu/fr/France.js";
4
- import { finland } from "../eu/fi/Finland.js";
5
- import { canada } from "../ca/Canada.js";
6
- import { usa } from "../us/Usa.js";
7
- import { australia } from "../au/Australia.js";
8
- import { india } from "../in/India.js";
9
- import { brazil } from "../br/Brazil.js";
10
- import { newZealand } from "../nz/NewZealand.js";
11
- import { philippines } from "../ph/Philippines.js";
12
- import { mexico } from "../mx/Mexico.js";
13
- import { seychelles } from "../sc/Seychelles.js";
14
- import { peru } from "../pe/Peru.js";
15
- import { dominicanRepublic } from "../do/DominicanRepublic.js";
16
- import { southKorea } from "../kr/SouthKorea.js";
17
- import { colombia } from "../co/Colombia.js";
18
- import { uk } from "../uk/Uk.js";
19
1
  import { OrganizationService } from "../OrganizationService.js";
20
- import { germany } from "../eu/de/Germany.js";
21
- import { russia } from "../ru/Russia.js";
22
- import { mozambique } from "../mz/Mozambique.js";
23
- import { algeria } from "../dz/Algeria.js";
24
- import { panama } from "../pa/Panama.js";
25
- import { taiwan } from "../tw/Taiwan.js";
26
- import { tunisia } from "../tn/Tunisia.js";
27
- import { israel } from "../il/Israel.js";
28
- import { china } from "../cn/China";
29
- import { denmark } from "../eu/dk/Denmark";
30
- import { spain } from "../eu/es/Spain";
31
- import { poland } from "../eu/pl/Poland";
32
2
  export class CountryService extends OrganizationService {
33
3
  }
34
- export const countries = [
35
- algeria,
36
- new Country(CountryCode.ar),
37
- new Country(CountryCode.at),
38
- australia,
39
- new Country(CountryCode.be),
40
- brazil,
41
- canada,
42
- new Country(CountryCode.ch),
43
- new Country(CountryCode.cl),
44
- china,
45
- colombia,
46
- new Country(CountryCode.cy),
47
- germany,
48
- denmark,
49
- dominicanRepublic,
50
- spain,
51
- finland,
52
- france,
53
- new Country(CountryCode.gr),
54
- new Country(CountryCode.hu),
55
- new Country(CountryCode.ie),
56
- israel,
57
- india,
58
- new Country(CountryCode.ir),
59
- new Country(CountryCode.it),
60
- new Country(CountryCode.jp),
61
- new Country(CountryCode.ma),
62
- mexico,
63
- mozambique,
64
- new Country(CountryCode.nl),
65
- new Country(CountryCode.no),
66
- newZealand,
67
- panama,
68
- peru,
69
- philippines,
70
- poland,
71
- new Country(CountryCode.pt),
72
- new Country(CountryCode.ro),
73
- russia,
74
- new Country(CountryCode.sa),
75
- new Country(CountryCode.se),
76
- seychelles,
77
- southKorea,
78
- new Country(CountryCode.tr),
79
- taiwan,
80
- tunisia,
81
- new Country(CountryCode.ua),
82
- uk,
83
- usa,
84
- new Country(CountryCode.ve),
85
- new Country(CountryCode.za)
86
- ];
@@ -1,5 +1,3 @@
1
- export * from "./Country.js";
2
- export * from "./CountryCode.js";
3
1
  export * from "./CountryMessages.js";
4
- export * from "./CountryService.js";
5
2
  export * from "./region/index.js";
3
+ export * from "./Countries.js";
@@ -1,5 +1,3 @@
1
- export * from "./Country.js";
2
- export * from "./CountryCode.js";
3
1
  export * from "./CountryMessages.js";
4
- export * from "./CountryService.js";
5
2
  export * from "./region/index.js";
3
+ export * from "./Countries.js";