@socialgouv/cdtn-utils 4.207.0 → 4.207.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/sources.d.ts +5 -2
- package/build/sources.js +3 -0
- package/package.json +2 -2
package/build/sources.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const SOURCES: {
|
|
|
16
16
|
readonly THEMES: "themes";
|
|
17
17
|
readonly TOOLS: "outils";
|
|
18
18
|
readonly INFOGRAPHICS: "infographies";
|
|
19
|
+
readonly WHAT_IS_NEW: "what_is_new";
|
|
19
20
|
};
|
|
20
21
|
export declare const routeBySource: {
|
|
21
22
|
readonly conventions_collectives: "convention-collective";
|
|
@@ -35,6 +36,7 @@ export declare const routeBySource: {
|
|
|
35
36
|
readonly highlights: "highlights";
|
|
36
37
|
readonly prequalified: "prequalified";
|
|
37
38
|
readonly infographies: "infographie";
|
|
39
|
+
readonly what_is_new: "quoi-de-neuf";
|
|
38
40
|
};
|
|
39
41
|
export declare const labelBySource: {
|
|
40
42
|
readonly conventions_collectives: "Conventions collectives";
|
|
@@ -54,9 +56,10 @@ export declare const labelBySource: {
|
|
|
54
56
|
readonly prequalified: "Requêtes préqualifiées";
|
|
55
57
|
readonly glossary: "Glossaire";
|
|
56
58
|
readonly infographies: "Infographies";
|
|
59
|
+
readonly what_is_new: "Quoi de neuf ?";
|
|
57
60
|
};
|
|
58
|
-
export declare const getLabelBySource: (src: keyof typeof labelBySource) => "Conventions collectives" | "Code du travail" | "Fiches pratiques" | "Information" | "Outils externes" | "Le droit du travail" | "Modèles de documents" | "service-public.gouv.fr" | "Ministère du Travail" | "Dossiers" | "Themes" | "Outils" | "À la une" | "Requêtes préqualifiées" | "Glossaire" | "Infographies";
|
|
59
|
-
export declare const getRouteBySource: (src: keyof typeof routeBySource) => "information" | "external" | "highlights" | "prequalified" | "dossiers" | "themes" | "outils" | "convention-collective" | "code-du-travail" | "contribution" | "glossaire" | "droit-du-travail" | "modeles-de-courriers" | "fiche-ministere-travail" | "fiche-service-public" | "infographie";
|
|
61
|
+
export declare const getLabelBySource: (src: keyof typeof labelBySource) => "Conventions collectives" | "Code du travail" | "Fiches pratiques" | "Information" | "Outils externes" | "Le droit du travail" | "Modèles de documents" | "service-public.gouv.fr" | "Ministère du Travail" | "Dossiers" | "Themes" | "Outils" | "À la une" | "Requêtes préqualifiées" | "Glossaire" | "Infographies" | "Quoi de neuf ?";
|
|
62
|
+
export declare const getRouteBySource: (src: keyof typeof routeBySource) => "information" | "external" | "highlights" | "prequalified" | "dossiers" | "themes" | "outils" | "convention-collective" | "code-du-travail" | "contribution" | "glossaire" | "droit-du-travail" | "modeles-de-courriers" | "fiche-ministere-travail" | "fiche-service-public" | "infographie" | "quoi-de-neuf";
|
|
60
63
|
export declare const getSourceByRoute: (slug: string) => string;
|
|
61
64
|
export type Sources = typeof routeBySource;
|
|
62
65
|
export type SourceKeys = keyof Sources;
|
package/build/sources.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.SOURCES = {
|
|
|
19
19
|
THEMES: "themes",
|
|
20
20
|
TOOLS: "outils",
|
|
21
21
|
INFOGRAPHICS: "infographies",
|
|
22
|
+
WHAT_IS_NEW: "what_is_new",
|
|
22
23
|
};
|
|
23
24
|
exports.routeBySource = {
|
|
24
25
|
[exports.SOURCES.CCN]: "convention-collective",
|
|
@@ -38,6 +39,7 @@ exports.routeBySource = {
|
|
|
38
39
|
[exports.SOURCES.HIGHLIGHTS]: "highlights",
|
|
39
40
|
[exports.SOURCES.PREQUALIFIED]: "prequalified",
|
|
40
41
|
[exports.SOURCES.INFOGRAPHICS]: "infographie",
|
|
42
|
+
[exports.SOURCES.WHAT_IS_NEW]: "quoi-de-neuf",
|
|
41
43
|
};
|
|
42
44
|
exports.labelBySource = {
|
|
43
45
|
[exports.SOURCES.CCN]: "Conventions collectives",
|
|
@@ -57,6 +59,7 @@ exports.labelBySource = {
|
|
|
57
59
|
[exports.SOURCES.PREQUALIFIED]: "Requêtes préqualifiées",
|
|
58
60
|
[exports.SOURCES.GLOSSARY]: "Glossaire",
|
|
59
61
|
[exports.SOURCES.INFOGRAPHICS]: "Infographies",
|
|
62
|
+
[exports.SOURCES.WHAT_IS_NEW]: "Quoi de neuf ?",
|
|
60
63
|
};
|
|
61
64
|
const getLabelBySource = (src) => exports.labelBySource[src];
|
|
62
65
|
exports.getLabelBySource = getLabelBySource;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
|
-
"version": "4.207.
|
|
7
|
+
"version": "4.207.2",
|
|
8
8
|
"main": "build/index.js",
|
|
9
9
|
"module": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"pnpm format"
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "386b0423161ef3f134e025f0514d2dc6580cd4d5"
|
|
52
52
|
}
|