File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ import { SecondarySourceGateway } from "../../ports/SourceGateway" ;
2+ import { getCNLLSoftwareExternalData } from "./getExternalData" ;
3+
4+ export const cNLLSourceGateway : SecondarySourceGateway = {
5+ sourceType : "ComptoirDuLibre" ,
6+ sourceProfile : "Secondary" ,
7+ softwareExternalData : {
8+ getById : getCNLLSoftwareExternalData
9+ }
10+ } ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { DatabaseDataType } from "../ports/DbApiV2";
33import { halSourceGateway } from "./hal" ;
44import { wikidataSourceGateway } from "./wikidata" ;
55import { comptoirDuLibreSourceGateway } from "./comptoirDuLibre" ;
6+ import { cNLLSourceGateway } from "./CNLL" ;
67
78export const resolveAdapterFromSource = (
89 source : DatabaseDataType . SourceRow
@@ -14,6 +15,8 @@ export const resolveAdapterFromSource = (
1415 return wikidataSourceGateway ;
1516 case "ComptoirDuLibre" :
1617 return comptoirDuLibreSourceGateway ;
18+ case "CNLL" :
19+ return cNLLSourceGateway ;
1720 default :
1821 const unreachableCase : never = source . kind ;
1922 throw new Error ( `Unreachable case: ${ unreachableCase } ` ) ;
You can’t perform that action at this time.
0 commit comments