@socialgouv/cdtn-types 2.70.0 → 2.71.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.
@@ -10,4 +10,5 @@ export * from "./modeles-de-courrier";
10
10
  export * from "./highlights";
11
11
  export * from "./infographic";
12
12
  export * from "./what-is-new";
13
+ export * from "./news";
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/elastic/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/elastic/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -26,4 +26,5 @@ __exportStar(require("./modeles-de-courrier"), exports);
26
26
  __exportStar(require("./highlights"), exports);
27
27
  __exportStar(require("./infographic"), exports);
28
28
  __exportStar(require("./what-is-new"), exports);
29
+ __exportStar(require("./news"), exports);
29
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/elastic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,2CAAyB;AACzB,iDAA+B;AAC/B,0CAAwB;AACxB,sDAAoC;AACpC,kDAAgC;AAChC,oDAAkC;AAClC,wDAAsC;AACtC,+CAA6B;AAC7B,gDAA8B;AAC9B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/elastic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,2CAAyB;AACzB,iDAA+B;AAC/B,0CAAwB;AACxB,sDAAoC;AACpC,kDAAgC;AAChC,oDAAkC;AAClC,wDAAsC;AACtC,+CAA6B;AAC7B,gDAA8B;AAC9B,gDAA8B;AAC9B,yCAAuB"}
@@ -0,0 +1,9 @@
1
+ import { DocumentElasticWithSource } from "./common";
2
+ import { NewsTemplateDoc } from "../hasura";
3
+ import { SOURCES } from "@socialgouv/cdtn-utils";
4
+ import { LinkedContent } from "./related-items";
5
+ export type NewsElasticDocument = DocumentElasticWithSource<NewsHasuraDoc, typeof SOURCES.NEWS>;
6
+ export type NewsHasuraDoc = Omit<NewsTemplateDoc, "cdtnReferences"> & {
7
+ linkedContent: LinkedContent[];
8
+ };
9
+ //# sourceMappingURL=news.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"news.d.ts","sourceRoot":"","sources":["../../src/elastic/news.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAkB,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CACzD,aAAa,EACb,OAAO,OAAO,CAAC,IAAI,CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,eAAe,EAAE,gBAAgB,CAAC,GAAG;IACpE,aAAa,EAAE,aAAa,EAAE,CAAC;CAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=news.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"news.js","sourceRoot":"","sources":["../../src/elastic/news.ts"],"names":[],"mappings":""}
@@ -14,4 +14,5 @@ export * from "./prequalified";
14
14
  export * from "./themes";
15
15
  export * from "./glossary";
16
16
  export * from "./infographic";
17
+ export * from "./news";
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hasura/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hasura/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -30,4 +30,5 @@ __exportStar(require("./prequalified"), exports);
30
30
  __exportStar(require("./themes"), exports);
31
31
  __exportStar(require("./glossary"), exports);
32
32
  __exportStar(require("./infographic"), exports);
33
+ __exportStar(require("./news"), exports);
33
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hasura/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,0CAAwB;AACxB,oDAAkC;AAClC,2CAAyB;AACzB,kDAAgC;AAChC,kDAAgC;AAChC,sDAAoC;AACpC,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,+CAA6B;AAC7B,wDAAsC;AACtC,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hasura/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,0CAAwB;AACxB,oDAAkC;AAClC,2CAAyB;AACzB,kDAAgC;AAChC,kDAAgC;AAChC,sDAAoC;AACpC,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,+CAA6B;AAC7B,wDAAsC;AACtC,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,gDAA8B;AAC9B,yCAAuB"}
@@ -0,0 +1,15 @@
1
+ import { HasuraDocument } from "./common";
2
+ import { SOURCES } from "@socialgouv/cdtn-utils";
3
+ export type NewsTemplate = HasuraDocument<NewsTemplateDoc, typeof SOURCES.NEWS>;
4
+ export type NewsTemplateDoc = {
5
+ meta_title: string;
6
+ date: string;
7
+ author: string;
8
+ content: string;
9
+ meta_description: string;
10
+ cdtnReferences: NewsLinkedContent[];
11
+ };
12
+ export type NewsLinkedContent = {
13
+ cdtnId: string;
14
+ };
15
+ //# sourceMappingURL=news.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"news.d.ts","sourceRoot":"","sources":["../../src/hasura/news.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,eAAe,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;AAEhF,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,iBAAiB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=news.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"news.js","sourceRoot":"","sources":["../../src/hasura/news.ts"],"names":[],"mappings":""}
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.70.0",
13
+ "version": "2.71.0",
14
14
  "main": "build/index.js",
15
15
  "module": "build/index.js",
16
16
  "types": "build/index.d.ts",
@@ -23,10 +23,10 @@
23
23
  "type-check": "tsc --noEmit"
24
24
  },
25
25
  "devDependencies": {
26
- "@socialgouv/cdtn-utils": "^4.208.2",
26
+ "@socialgouv/cdtn-utils": "^4.222.0",
27
27
  "@socialgouv/kali-data-types": "^3.414.1",
28
28
  "@socialgouv/legi-data-types": "^2.73.1",
29
29
  "typescript": "^5.4.3"
30
30
  },
31
- "gitHead": "08689cee187ce91b51724d476811220b1a90dd9d"
31
+ "gitHead": "a1d3c38949a7559399e84a6fe370f4d977d22b34"
32
32
  }