Skip to content

Commit

Permalink
added departments
Browse files Browse the repository at this point in the history
  • Loading branch information
Javarome committed Mar 9, 2024
1 parent 77b01af commit 41fa6cc
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 10 deletions.
1 change: 1 addition & 0 deletions org/eu/fr/region/FranceDepartementCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export enum FranceDepartementCode {
Gard = "30",
HauteGaronne = "31",
Gers = "32",
Gironde = "33",
Herault = "34",
Indre = "36",
Isere = "38",
Expand Down
6 changes: 3 additions & 3 deletions org/eu/fr/region/naq/23/Creuse.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NouvelleAquitaineDepartmentCode } from "../NouvelleAquitaineDepartmentCode"
import { Place } from "../../../../../../place/Place"
import { Organization, OrganizationType } from "../../../../../Organization"
import { nouvelleAquitaine } from "../NouvelleAquitaine"
import { Department } from "../../../../../country/region/department/Department"

export const creuse = new Organization(NouvelleAquitaineDepartmentCode.Creuse,
[Place.fromLocation(46.189722, 2.085556)], OrganizationType.department, nouvelleAquitaine)
export const creuse = Department.create(NouvelleAquitaineDepartmentCode.Creuse,
nouvelleAquitaine, Place.fromLocation(46.189722, 2.085556))
4 changes: 2 additions & 2 deletions org/eu/fr/region/naq/23/CreuseCities.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { chambonSurVoueize23 } from "./chambon/Chambon"
import { Organization } from "../../../../../Organization"
import { City } from "../../../../../country/region/department/city/City"

export const creuseCities: Organization[] = [
export const creuseCities: City[] = [
chambonSurVoueize23
]
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { chambonMessages } from "./chambon/ChambonMessages"
import { CreuseCityCode } from "./CreuseCityCode"
import { OrganizationMessages } from "../../../../../OrganizationMessages"
import { DepartmentMessages } from "../../../../../country/region/department/DepartmentMessages"
import { CityMessages } from "../../../../../country/region/department/city/CityMessages"

type CreuseCityMessagesList = { [key in CreuseCityCode]: OrganizationMessages }
type CreuseCityMessagesList = { [key in CreuseCityCode]: CityMessages }
const creuseCityMessages: CreuseCityMessagesList = {
[CreuseCityCode.ChambonSurVoueize]: chambonMessages
}
Expand Down
4 changes: 2 additions & 2 deletions org/eu/fr/region/naq/23/chambon/ChambonMessages.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { DepartmentMessages } from "../../../../../../country/region/department/DepartmentMessages"
import { CityMessages } from "../../../../../../country/region/department/city/CityMessages"

export let chambonMessages = new DepartmentMessages("Chambon-sur-Voueize")
export const chambonMessages = new CityMessages("Chambon-sur-Voueize")
7 changes: 7 additions & 0 deletions org/eu/fr/region/naq/33/Gironde.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { NouvelleAquitaineDepartmentCode } from "../NouvelleAquitaineDepartmentCode"
import { Place } from "../../../../../../place/Place"
import { nouvelleAquitaine } from "../NouvelleAquitaine"
import { Department } from "../../../../../country/region/department/Department"

export const gironde = Department.create(NouvelleAquitaineDepartmentCode.Gironde,
nouvelleAquitaine, Place.fromDMS("44°50′14″N,0°35′12″O"))
6 changes: 6 additions & 0 deletions org/eu/fr/region/naq/33/GirondeCities.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { saintAndreDeCubzac } from "./saintandredecubzac/SaintAndreDeCubzac"
import { City } from "../../../../../country/region/department/city/City"

export const girondeCities: City[] = [
saintAndreDeCubzac
]
3 changes: 3 additions & 0 deletions org/eu/fr/region/naq/33/GirondeCityCode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export enum GirondeCityCode {
SaintAndreDeCubzac = 33366
}
10 changes: 10 additions & 0 deletions org/eu/fr/region/naq/33/GirondeMessages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { saintAndreDeCubzacMessages } from "./saintandredecubzac/SaintAndreDeCubzacMessages"
import { GirondeCityCode } from "./GirondeCityCode"
import { DepartmentMessages } from "../../../../../country/region/department/DepartmentMessages"
import { CityMessages } from "../../../../../country/region/department/city/CityMessages"

type GirondeCityMessagesList = { [key in GirondeCityCode]: CityMessages }
const girondeCityMessages: GirondeCityMessagesList = {
[GirondeCityCode.SaintAndreDeCubzac]: saintAndreDeCubzacMessages
}
export const girondeMessages = DepartmentMessages.create<GirondeCityMessagesList>("Gironde", girondeCityMessages)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { franceCity } from "../../../../FranceCity"
import { Place } from "../../../../../../../place/Place"
import { GirondeCityCode } from "../GirondeCityCode"

export const saintAndreDeCubzac = franceCity(GirondeCityCode.SaintAndreDeCubzac, Place.fromDMS("44°59′44″N,0°26′41″O"))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { CityMessages } from "../../../../../../country/region/department/city/CityMessages"

export const saintAndreDeCubzacMessages = new CityMessages("Saint-André-de-Cubzac")
2 changes: 2 additions & 0 deletions org/eu/fr/region/naq/NouvelleAquitaineCities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import { landesCities } from "./40/LandesCities"
import { charenteMaritimeCities } from "./17/CharenteMaritimeCities"
import { Organization } from "../../../../Organization"
import { correzeCities } from "./19/CorrezeCities"
import { girondeCities } from "./33/GirondeCities"

export const nouvelleAquitaineCities: Organization[] = [
...charenteCities,
...charenteMaritimeCities,
...correzeCities,
...creuseCities,
...girondeCities,
...landesCities
]
1 change: 1 addition & 0 deletions org/eu/fr/region/naq/NouvelleAquitaineDepartmentCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export enum NouvelleAquitaineDepartmentCode {
CharenteMaritime = FranceDepartementCode.CharenteMaritime,
Correze = FranceDepartementCode.Correze,
Creuse = FranceDepartementCode.Creuse,
Gironde = FranceDepartementCode.Gironde,
Landes = FranceDepartementCode.Landes,
Vienne = FranceDepartementCode.Vienne,
}
2 changes: 2 additions & 0 deletions org/eu/fr/region/naq/NouvelleAquitaineDepartments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import { charenteMaritime } from "./17/CharenteMaritime"
import { vienne } from "./86/Vienne"
import { Organization } from "../../../../Organization"
import { correze } from "./19/Correze"
import { gironde } from "./33/Gironde"

export const nouvelleAquitaineDepartments: Organization[] = [
charente,
charenteMaritime,
correze,
creuse,
gironde,
landes,
vienne
]
4 changes: 3 additions & 1 deletion org/eu/fr/region/naq/NouvelleAquitaineMessages.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { RegionMessages } from "../../../../country/region/RegionMessages"
import { NouvelleAquitaineDepartmentCode } from "./NouvelleAquitaineDepartmentCode"
import { creuseMessages } from "./23/CreuseCityMessages"
import { creuseMessages } from "./23/CreuseMessages"
import { charenteMessages } from "./16/CharenteMessages"
import { landesMessages } from "./40/LandesMessages"
import { charenteMaritimeMessages } from "./17/CharenteMaritimeMessages"
import { vienneMessages } from "./86/VienneMessages"
import { DepartmentMessages } from "../../../../country/region/department/DepartmentMessages"
import { correzeMessages } from "./19/CorrezeMessages"
import { girondeMessages } from "./33/GirondeMessages"

export const nouvelleAquitaineMessageList: { [key in NouvelleAquitaineDepartmentCode]: DepartmentMessages<any> } = {
[NouvelleAquitaineDepartmentCode.Charente]: charenteMessages,
[NouvelleAquitaineDepartmentCode.CharenteMaritime]: charenteMaritimeMessages,
[NouvelleAquitaineDepartmentCode.Correze]: correzeMessages,
[NouvelleAquitaineDepartmentCode.Creuse]: creuseMessages,
[NouvelleAquitaineDepartmentCode.Gironde]: girondeMessages,
[NouvelleAquitaineDepartmentCode.Landes]: landesMessages,
[NouvelleAquitaineDepartmentCode.Vienne]: vienneMessages
}
Expand Down

0 comments on commit 41fa6cc

Please sign in to comment.