@socialgouv/cdtn-types 2.49.0 → 2.49.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.
@@ -0,0 +1,4 @@
1
+ import { DocumentElasticWithSource } from "./common";
2
+ import { MailTemplateDoc } from "../hasura";
3
+ export type MailElasticDocument = DocumentElasticWithSource<MailTemplateDoc, "modeles_de_courriers">;
4
+ //# sourceMappingURL=modeles-de-courrier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modeles-de-courrier.d.ts","sourceRoot":"","sources":["../../src/elastic/modeles-de-courrier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CACzD,eAAe,EACf,sBAAsB,CACvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=modeles-de-courrier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modeles-de-courrier.js","sourceRoot":"","sources":["../../src/elastic/modeles-de-courrier.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { DocumentElasticWithSource } from "./common";
2
+ export type ThemeElasticDocument = DocumentElasticWithSource<ThemeElastic, "themes">;
3
+ export type ThemeElastic = {
4
+ children: ThemeChildren[];
5
+ description?: string;
6
+ icon?: string;
7
+ position: number;
8
+ };
9
+ export type ThemeChildren = {
10
+ label: string;
11
+ slug: string;
12
+ };
13
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/elastic/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAC1D,YAAY,EACZ,QAAQ,CACT,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/elastic/theme.ts"],"names":[],"mappings":""}
@@ -1,16 +1,21 @@
1
1
  import { HasuraDocument } from "./common";
2
2
  export type MailTemplate = HasuraDocument<MailTemplateDoc, "modeles_de_courriers">;
3
3
  export type MailTemplateDoc = {
4
+ meta_title: string;
4
5
  date: string;
6
+ type: MailTemplateType;
5
7
  html: string;
6
8
  author: string;
7
9
  filename: string;
8
10
  filesize: number;
11
+ intro: string;
9
12
  description: string;
10
- references?: {
11
- url: string;
12
- title: string;
13
- type: string;
14
- }[];
13
+ references?: MailTemplateReference[];
15
14
  };
15
+ export type MailTemplateReference = {
16
+ url: string;
17
+ title: string;
18
+ type: "external";
19
+ };
20
+ export type MailTemplateType = "lettre" | "fichier" | "document";
16
21
  //# sourceMappingURL=modeles-de-courrier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modeles-de-courrier.d.ts","sourceRoot":"","sources":["../../src/hasura/modeles-de-courrier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG,cAAc,CACvC,eAAe,EACf,sBAAsB,CACvB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;CACL,CAAC"}
1
+ {"version":3,"file":"modeles-de-courrier.d.ts","sourceRoot":"","sources":["../../src/hasura/modeles-de-courrier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG,cAAc,CACvC,eAAe,EACf,sBAAsB,CACvB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,qBAAqB,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,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.49.0",
13
+ "version": "2.49.2",
14
14
  "main": "build/index.js",
15
15
  "module": "build/index.js",
16
16
  "types": "build/index.d.ts",
@@ -27,5 +27,5 @@
27
27
  "@socialgouv/legi-data-types": "^2.73.1",
28
28
  "typescript": "^5.4.3"
29
29
  },
30
- "gitHead": "c3e7e3ed6bfc4831c32b4de27438085fe7353423"
30
+ "gitHead": "441744d40d2b5009e9c4bd2667419f7497af0ac8"
31
31
  }