Skip to content

Commit

Permalink
feat(data): add synonyms to conventions collectives (#210)
Browse files Browse the repository at this point in the history
* feat: add synonyms to conventions collectives

* chore: update kali data types

* chore: update yarn.lock
  • Loading branch information
rmelisson committed Dec 14, 2020
1 parent a0077a5 commit 27bb7b1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion targets/ingester/package.json
Expand Up @@ -29,7 +29,7 @@
"@socialgouv/eslint-config-recommended": "^1.46.0",
"@socialgouv/fiches-travail-data-types": "^4.22.0",
"@socialgouv/fiches-vdd-types": "^2.28.0",
"@socialgouv/kali-data-types": "^2.15.0",
"@socialgouv/kali-data-types": "^2.17.0",
"@socialgouv/legi-data-types": "^2.12.0",
"@types/gunzip-maybe": "^1.4.0",
"@types/jest": "^26.0.17",
Expand Down
1 change: 1 addition & 0 deletions targets/ingester/src/index.d.ts
Expand Up @@ -55,6 +55,7 @@ type AgreementPage = Document & {
answers: AgreementAnswer[]
url?: string,
articlesByTheme: AgreementArticleByBlock[]
synonymes?: string[]
}

type AgreementAnswer = {
Expand Down
1 change: 1 addition & 0 deletions targets/ingester/src/transform/agreements.js
Expand Up @@ -64,6 +64,7 @@ export default async function getAgreementDocuments(pkgName) {
agreement.shortTitle
}`,
source: SOURCES.CCN,
synonymes: agreement.synonymes,
});
}
return agreementPages.sort(createSorter(({ num }) => num));
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2683,10 +2683,10 @@
resolved "https://registry.yarnpkg.com/@socialgouv/fiches-vdd-types/-/fiches-vdd-types-2.28.0.tgz#3a1e5d152e6e6f7287be42a329916db50f8fd772"
integrity sha512-K+Oiotw8lI2KALhk+NIy2kiKcGTEZB/PNY5uiCKXB3ILA3LQA2OarDfOCRonz3nz9Omef8cB3+Cc8RGtAxO4aw==

"@socialgouv/kali-data-types@^2.15.0":
version "2.15.0"
resolved "https://registry.yarnpkg.com/@socialgouv/kali-data-types/-/kali-data-types-2.15.0.tgz#af6795b2af9da3b01c9efaec6b5ef1c53d6b07e6"
integrity sha512-02P3uXHv6c3nbY/kW7iACXj3a2tUOALdAL5Dgyq4Rq13JF82rEKhcc7ibEGpYbohjp/eUG+lUU7ZsArvGqbaWQ==
"@socialgouv/kali-data-types@^2.17.0":
version "2.17.0"
resolved "https://registry.yarnpkg.com/@socialgouv/kali-data-types/-/kali-data-types-2.17.0.tgz#5bcd2fc8cd0e3a4b76901f3c8ed48ca7d3ff907b"
integrity sha512-cYgIQwme2PG6Sl+mjx9ZZbe5SH2Xnqgp+Sgyi4bXSiAgMQ9gNLcG6nr63QF4ywBM2mMFGYSHIJBXUHvd3n1Spw==

"@socialgouv/legi-data-types@^2.12.0":
version "2.12.0"
Expand Down

0 comments on commit 27bb7b1

Please sign in to comment.