@@ -4,14 +4,6 @@ import { Memoize } from 'typescript-memoize'
4
4
import { ArrayBuilder } from "../utils/Arrays" ;
5
5
import { RemoteConfig } from "../utils/RemoteConfig" ;
6
6
7
- export type CodeTrancheAge = 'plus75ans' ;
8
- export type TrancheAge = {
9
- codeTrancheAge : CodeTrancheAge ;
10
- libelle : string ;
11
- } ;
12
- export const TRANCHES_AGE : Map < CodeTrancheAge , TrancheAge > = new Map ( [
13
- [ 'plus75ans' , { codeTrancheAge : 'plus75ans' , libelle : "Plus de 75 ans" } ]
14
- ] ) ;
15
7
16
8
17
9
export type SearchRequest = SearchRequest . ByCommune | SearchRequest . ByDepartement
@@ -107,15 +99,10 @@ export type ISODateString = string
107
99
export type WeekDay = "lundi" | "mardi" | "mercredi" | "jeudi" | "vendredi" | "samedi" | "dimanche"
108
100
export type BusinessHours = Record < WeekDay , string > ;
109
101
export type VaccineType = "AstraZeneca" | "Janssen" | "Pfizer-BioNTech" | "Moderna" | "ARNm" ;
110
- export type AppointmentPerVaccine = {
111
- vaccine_type : VaccineType ;
112
- appointments : number ;
113
- } ;
114
102
export type AppointmentSchedule = {
115
103
name : string ;
116
104
from : string ; // Should be better to have ISODateString here
117
105
to : string ; // Should be better to have ISODateString here
118
- // appointments_per_vaccine: AppointmentPerVaccine[];
119
106
total : number ;
120
107
} ;
121
108
export type Lieu = {
@@ -195,9 +182,6 @@ export type StatsCreneauxLieuxParJour = {
195
182
export function countCreneauxFromCreneauxParTag ( statsCreneauxQuotidiensParTag : StatsCreneauxQuotidienParTag [ ] , tag : TagCreneau ) : number {
196
183
return statsCreneauxQuotidiensParTag . find ( cpt => cpt . tag === tag ) ?. creneaux || 0 ;
197
184
}
198
- export function countCreneauxFromStatsCreneauxLieux ( statsCreneauxLieuxParJour : StatsCreneauxLieuxParJour , tag : TagCreneau ) {
199
- return statsCreneauxLieuxParJour . statsCreneauxParLieu . reduce ( ( total , lieu ) => total + countCreneauxFromCreneauxParTag ( lieu . statsCreneauxParTag , tag ) , 0 ) ;
200
- }
201
185
export type StatsCreneauxLieuxParJour_JSON = {
202
186
date : string ; // "2021-05-23"
203
187
total : number ;
@@ -268,7 +252,6 @@ export type StatsLieu = {
268
252
global : StatLieuGlobale ;
269
253
}
270
254
271
- export type CommunesParAutocomplete = Map < string , Commune [ ] > ;
272
255
export interface Commune {
273
256
code : string ;
274
257
codePostal : string ;
@@ -335,28 +318,6 @@ const SEARCH_TYPE_CONFIGS: {[type in SearchType]: SearchTypeConfig & {type: type
335
318
searchResultsByCity : 'search_results_by_city'
336
319
}
337
320
} ,
338
- /*
339
- '18_55': {
340
- type: '18_55',
341
- tagCreneau: "preco18_55",
342
- cardAppointmentsExtractor: (lieu, daySelectorDisponible, creneauxParLieux) => {
343
- if(daySelectorDisponible) {
344
- return creneauxParLieux.find(cpl => cpl.lieu === lieu.internal_id)?.creneaux || 0
345
- }
346
- throw new Error("We're not supposed to call cardAppointmentsExtractor() on 18_55 without day selector !")
347
- },
348
- lieuConsidereCommeDisponible: (lieu, creneauxParLieu) => lieu.appointment_by_phone_only || (creneauxParLieu?.creneaux || 0) > 0,
349
- pathParam: '18_55',
350
- standardTabSelected: true,
351
- excludeAppointmentByPhoneOnly: false,
352
- jourSelectionnable: true,
353
- theme: 'standard',
354
- analytics: {
355
- searchResultsByDepartement: 'search_results_by_department_18_55',
356
- searchResultsByCity: 'search_results_by_city_18_55'
357
- }
358
- },
359
- */
360
321
'dose_rappel' : {
361
322
type : 'dose_rappel' ,
362
323
tagCreneau : 'third_dose' ,
0 commit comments