@socialgouv/cdtn-types 2.56.2 → 2.57.0
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/elastic/tools.d.ts +14 -14
- package/build/elastic/tools.d.ts.map +1 -1
- package/package.json +2 -2
package/build/elastic/tools.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { SOURCES } from "@socialgouv/cdtn-utils";
|
|
2
|
-
|
|
2
|
+
import { DocumentElasticWithSource } from "./common";
|
|
3
|
+
export type ToolAction = "Estimer" | "Calculer" | "Consulter";
|
|
4
|
+
export interface ToolDoc {
|
|
3
5
|
date: string;
|
|
4
6
|
icon: string;
|
|
5
7
|
order: number;
|
|
6
|
-
action:
|
|
8
|
+
action: ToolAction;
|
|
7
9
|
metaTitle: string;
|
|
8
10
|
questions?: string[];
|
|
9
11
|
description: string;
|
|
12
|
+
displayTool: boolean;
|
|
10
13
|
displayTitle: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
source: typeof SOURCES.TOOLS | typeof SOURCES.EXTERNALS;
|
|
19
|
-
text: string;
|
|
20
|
-
title: string;
|
|
21
|
-
_id: string;
|
|
22
|
-
displayTool?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type ExternalToolDoc = {
|
|
16
|
+
url: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
action: ToolAction;
|
|
19
|
+
description: string;
|
|
20
|
+
displayTool: boolean;
|
|
23
21
|
};
|
|
22
|
+
export type ElasticTool = DocumentElasticWithSource<ToolDoc, typeof SOURCES.TOOLS>;
|
|
23
|
+
export type ElasticExternalTool = DocumentElasticWithSource<ExternalToolDoc, typeof SOURCES.EXTERNALS>;
|
|
24
24
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/elastic/tools.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/elastic/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAC,yBAAyB,EAAC,MAAM,UAAU,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC;AAE9D,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,yBAAyB,CACjD,OAAO,EACP,OAAO,OAAO,CAAC,KAAK,CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CACzD,eAAe,EACf,OAAO,OAAO,CAAC,SAAS,CACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/SocialGouv/cdtn-admin.git"
|
|
12
12
|
},
|
|
13
|
-
"version": "2.
|
|
13
|
+
"version": "2.57.0",
|
|
14
14
|
"main": "build/index.js",
|
|
15
15
|
"module": "build/index.js",
|
|
16
16
|
"types": "build/index.d.ts",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@socialgouv/legi-data-types": "^2.73.1",
|
|
29
29
|
"typescript": "^5.4.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "ad9d2e2a125594ea0e0438892900a5cf29b0d4ad"
|
|
32
32
|
}
|