File tree 2 files changed +13
-0
lines changed
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";
3
3
import { halSourceGateway } from "./hal" ;
4
4
import { wikidataSourceGateway } from "./wikidata" ;
5
5
import { comptoirDuLibreSourceGateway } from "./comptoirDuLibre" ;
6
+ import { cNLLSourceGateway } from "./CNLL" ;
6
7
7
8
export const resolveAdapterFromSource = (
8
9
source : DatabaseDataType . SourceRow
@@ -14,6 +15,8 @@ export const resolveAdapterFromSource = (
14
15
return wikidataSourceGateway ;
15
16
case "ComptoirDuLibre" :
16
17
return comptoirDuLibreSourceGateway ;
18
+ case "CNLL" :
19
+ return cNLLSourceGateway ;
17
20
default :
18
21
const unreachableCase : never = source . kind ;
19
22
throw new Error ( `Unreachable case: ${ unreachableCase } ` ) ;
You can’t perform that action at this time.
0 commit comments