@socialgouv/cdtn-types 2.42.1
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/agreements.d.ts +40 -0
- package/build/elastic/agreements.d.ts.map +1 -0
- package/build/elastic/agreements.js +3 -0
- package/build/elastic/agreements.js.map +1 -0
- package/build/elastic/common.d.ts +34 -0
- package/build/elastic/common.d.ts.map +1 -0
- package/build/elastic/common.js +3 -0
- package/build/elastic/common.js.map +1 -0
- package/build/elastic/contributions.d.ts +52 -0
- package/build/elastic/contributions.d.ts.map +1 -0
- package/build/elastic/contributions.js +3 -0
- package/build/elastic/contributions.js.map +1 -0
- package/build/elastic/editorial-content.d.ts +5 -0
- package/build/elastic/editorial-content.d.ts.map +1 -0
- package/build/elastic/editorial-content.js +3 -0
- package/build/elastic/editorial-content.js.map +1 -0
- package/build/elastic/index.d.ts +7 -0
- package/build/elastic/index.d.ts.map +1 -0
- package/build/elastic/index.js +23 -0
- package/build/elastic/index.js.map +1 -0
- package/build/elastic/prequalified.d.ts +6 -0
- package/build/elastic/prequalified.d.ts.map +1 -0
- package/build/elastic/prequalified.js +3 -0
- package/build/elastic/prequalified.js.map +1 -0
- package/build/elastic/tools.d.ts +24 -0
- package/build/elastic/tools.d.ts.map +1 -0
- package/build/elastic/tools.js +3 -0
- package/build/elastic/tools.js.map +1 -0
- package/build/hasura/agreement.d.ts +8 -0
- package/build/hasura/agreement.d.ts.map +1 -0
- package/build/hasura/agreement.js +3 -0
- package/build/hasura/agreement.js.map +1 -0
- package/build/hasura/alert.d.ts +166 -0
- package/build/hasura/alert.d.ts.map +1 -0
- package/build/hasura/alert.js +3 -0
- package/build/hasura/alert.js.map +1 -0
- package/build/hasura/code-du-travail.d.ts +10 -0
- package/build/hasura/code-du-travail.d.ts.map +1 -0
- package/build/hasura/code-du-travail.js +3 -0
- package/build/hasura/code-du-travail.js.map +1 -0
- package/build/hasura/common.d.ts +18 -0
- package/build/hasura/common.d.ts.map +1 -0
- package/build/hasura/common.js +3 -0
- package/build/hasura/common.js.map +1 -0
- package/build/hasura/contributions.d.ts +114 -0
- package/build/hasura/contributions.d.ts.map +1 -0
- package/build/hasura/contributions.js +3 -0
- package/build/hasura/contributions.js.map +1 -0
- package/build/hasura/dila-resolver.d.ts +164 -0
- package/build/hasura/dila-resolver.d.ts.map +1 -0
- package/build/hasura/dila-resolver.js +3 -0
- package/build/hasura/dila-resolver.js.map +1 -0
- package/build/hasura/editorial-content.d.ts +65 -0
- package/build/hasura/editorial-content.d.ts.map +1 -0
- package/build/hasura/editorial-content.js +20 -0
- package/build/hasura/editorial-content.js.map +1 -0
- package/build/hasura/export-es.d.ts +29 -0
- package/build/hasura/export-es.d.ts.map +1 -0
- package/build/hasura/export-es.js +16 -0
- package/build/hasura/export-es.js.map +1 -0
- package/build/hasura/fiche-sp.d.ts +21 -0
- package/build/hasura/fiche-sp.d.ts.map +1 -0
- package/build/hasura/fiche-sp.js +3 -0
- package/build/hasura/fiche-sp.js.map +1 -0
- package/build/hasura/fiche-travail.d.ts +26 -0
- package/build/hasura/fiche-travail.d.ts.map +1 -0
- package/build/hasura/fiche-travail.js +3 -0
- package/build/hasura/fiche-travail.js.map +1 -0
- package/build/hasura/highlights.d.ts +3 -0
- package/build/hasura/highlights.d.ts.map +1 -0
- package/build/hasura/highlights.js +3 -0
- package/build/hasura/highlights.js.map +1 -0
- package/build/hasura/index.d.ts +15 -0
- package/build/hasura/index.d.ts.map +1 -0
- package/build/hasura/index.js +31 -0
- package/build/hasura/index.js.map +1 -0
- package/build/hasura/modeles-de-courrier.d.ts +16 -0
- package/build/hasura/modeles-de-courrier.d.ts.map +1 -0
- package/build/hasura/modeles-de-courrier.js +3 -0
- package/build/hasura/modeles-de-courrier.js.map +1 -0
- package/build/hasura/prequalified.d.ts +6 -0
- package/build/hasura/prequalified.d.ts.map +1 -0
- package/build/hasura/prequalified.js +3 -0
- package/build/hasura/prequalified.js.map +1 -0
- package/build/hasura/themes.d.ts +8 -0
- package/build/hasura/themes.d.ts.map +1 -0
- package/build/hasura/themes.js +3 -0
- package/build/hasura/themes.js.map +1 -0
- package/build/index.d.ts +4 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +20 -0
- package/build/index.js.map +1 -0
- package/build/utility.d.ts +6 -0
- package/build/utility.d.ts.map +1 -0
- package/build/utility.js +3 -0
- package/build/utility.js.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AgreementDoc } from "../hasura";
|
|
2
|
+
import { DocumentElasticWithSource } from "./common";
|
|
3
|
+
import { ContributionElasticDocument } from "./contributions";
|
|
4
|
+
export type ElasticAgreement = DocumentElasticWithSource<AgreementDoc> & {
|
|
5
|
+
articlesByTheme: ArticleByTheme[];
|
|
6
|
+
source: "conventions_collectives";
|
|
7
|
+
description: string;
|
|
8
|
+
answers: ExportAnswer[];
|
|
9
|
+
contributions: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ExportAnswer = ContributionElasticDocument & {
|
|
12
|
+
theme?: string;
|
|
13
|
+
infoMessage: string;
|
|
14
|
+
};
|
|
15
|
+
export interface ArticleByTheme {
|
|
16
|
+
bloc: string;
|
|
17
|
+
articles: {
|
|
18
|
+
id: string;
|
|
19
|
+
cid: string;
|
|
20
|
+
title: string;
|
|
21
|
+
section: string;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
export interface KaliBlockByIdccResult {
|
|
25
|
+
kali_blocks: {
|
|
26
|
+
id: string;
|
|
27
|
+
blocks: {
|
|
28
|
+
[key: string]: string[];
|
|
29
|
+
};
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
export interface KaliArticlesByIdResult {
|
|
33
|
+
kali_articles: {
|
|
34
|
+
id: string;
|
|
35
|
+
cid: string;
|
|
36
|
+
label: string;
|
|
37
|
+
section: string;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=agreements.d.ts.map
|
|
@@ -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,"file":"agreements.js","sourceRoot":"","sources":["../../src/elastic/agreements.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SourceRoute } from "@socialgouv/cdtn-sources";
|
|
2
|
+
export type DocumentElasticWithSource<T, U extends SourceRoute = SourceRoute> = DocumentElastic<U> & T;
|
|
3
|
+
export type Breadcrumb = {
|
|
4
|
+
label: string;
|
|
5
|
+
position: number;
|
|
6
|
+
slug: string;
|
|
7
|
+
};
|
|
8
|
+
export type DocumentElastic<T extends SourceRoute = SourceRoute> = {
|
|
9
|
+
id: string;
|
|
10
|
+
cdtnId: string;
|
|
11
|
+
breadcrumbs: Breadcrumb[];
|
|
12
|
+
title: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
source: T;
|
|
15
|
+
text: string;
|
|
16
|
+
isPublished: boolean;
|
|
17
|
+
excludeFromSearch: boolean;
|
|
18
|
+
metaDescription: string;
|
|
19
|
+
refs: DocumentRef[];
|
|
20
|
+
};
|
|
21
|
+
export type RelatedDocument<T extends SourceRoute = SourceRoute> = {
|
|
22
|
+
id: string;
|
|
23
|
+
cdtnId: string;
|
|
24
|
+
breadcrumbs: Breadcrumb[];
|
|
25
|
+
title: string;
|
|
26
|
+
slug: string;
|
|
27
|
+
source: T;
|
|
28
|
+
description: string;
|
|
29
|
+
icon?: string;
|
|
30
|
+
action?: string;
|
|
31
|
+
url?: string;
|
|
32
|
+
};
|
|
33
|
+
export type DocumentRef<T extends SourceRoute = SourceRoute> = Omit<RelatedDocument<T>, "action" | "url" | "id">;
|
|
34
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/elastic/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,yBAAyB,CACnC,CAAC,EACD,CAAC,SAAS,WAAW,GAAG,WAAW,IACjC,e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],"mappings":""}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ContributionDocumentJson, ContributionHighlight } from "../hasura";
|
|
2
|
+
import { Breadcrumb, DocumentElasticWithSource } from "./common";
|
|
3
|
+
export interface ContributionConventionnelInfos {
|
|
4
|
+
ccnSlug: string;
|
|
5
|
+
ccnShortTitle: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ContributionGenericInfos {
|
|
8
|
+
ccSupported: string[];
|
|
9
|
+
ccUnextended: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface ContributionMetadata {
|
|
12
|
+
title: string;
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ContributionContentBase {
|
|
16
|
+
content: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ContributionFicheSpContent {
|
|
19
|
+
url: string;
|
|
20
|
+
date: string;
|
|
21
|
+
raw: string;
|
|
22
|
+
ficheSpDescription: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ContributionGenericNoCDTContent {
|
|
25
|
+
messageBlockGenericNoCDT: string;
|
|
26
|
+
}
|
|
27
|
+
export type ContributionContent = ContributionContentBase | ContributionFicheSpContent | ContributionGenericNoCDTContent;
|
|
28
|
+
export interface ExportFullLinkedContent {
|
|
29
|
+
breadcrumbs: Breadcrumb[];
|
|
30
|
+
description: string;
|
|
31
|
+
source: string;
|
|
32
|
+
slug: string;
|
|
33
|
+
title: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ExportContributionFullLinkedContent {
|
|
36
|
+
linkedContent: ExportFullLinkedContent[];
|
|
37
|
+
}
|
|
38
|
+
type ExportContributionInfo = {
|
|
39
|
+
breadcrumbs: Breadcrumb[];
|
|
40
|
+
highlight?: ContributionHighlight;
|
|
41
|
+
messageBlock?: string;
|
|
42
|
+
};
|
|
43
|
+
type ContributionElasticDocumentBase = Omit<DocumentElasticWithSource<Omit<ContributionDocumentJson, "linkedContent">>, "breadcrumbs"> & ContributionMetadata & ContributionContent & ExportContributionFullLinkedContent & ExportContributionInfo;
|
|
44
|
+
export type ContributionElasticDocument = ContributionElasticDocumentBase & (ContributionGenericInfos | ContributionConventionnelInfos);
|
|
45
|
+
export type ElasticSearchContributionGeneric = ContributionElasticDocumentBase & ContributionGenericInfos;
|
|
46
|
+
export type ElasticSearchContributionConventionnelle = ContributionElasticDocumentBase & ContributionConventionnelInfos;
|
|
47
|
+
export type ElasticSearchContribution = ElasticSearchContributionGeneric | ElasticSearchContributionConventionnelle;
|
|
48
|
+
export type ElasticSearchContributionWithInfoMessage = ElasticSearchContribution & {
|
|
49
|
+
infoMessage: string;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=contributions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contributions.d.ts","sourceRoot":"","sources":["../../src/elastic/contributions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEjE,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AACD,MAAM,WAAW,+BAA+B;IAC9C,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,MAAM,mBAAmB,GAC3B,uBAAuB,GACvB,0BAA0B,GAC1B,+BAA+B,CAAC;AAEpC,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mCAAmC;IAClD,aAAa,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,KAAK,sBAAsB,GAAG;IAC5B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,+BAA+B,GAAG,IAAI,CACzC,yBAAyB,CAAC,IAAI,CAAC,wBAAwB,EAAE,eAAe,CAAC,CAAC,EAC1E,aAAa,CACd,GACC,oBAAoB,GACpB,mBAAmB,GACnB,mCAAmC,GACnC,sBAAsB,CAAC;AAEzB,MAAM,MAAM,2BAA2B,GAAG,+BAA+B,GACvE,CAAC,wBAAwB,GAAG,8BAA8B,CAAC,CAAC;AAE9D,MAAM,MAAM,gCAAgC,GAAG,+BAA+B,GAC5E,wBAAwB,CAAC;AAE3B,MAAM,MAAM,wCAAwC,GAClD,+BAA+B,GAAG,8BAA8B,CAAC;AAEnE,MAAM,MAAM,yBAAyB,GACjC,gCAAgC,GAChC,wCAAwC,CAAC;AAE7C,MAAM,MAAM,wCAAwC,GAClD,yBAAyB,GAAG;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contributions.js","sourceRoot":"","sources":["../../src/elastic/contributions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EditorialContentDoc } from "../hasura";
|
|
2
|
+
import { KeysToCamelCase } from "../utility";
|
|
3
|
+
import { DocumentElasticWithSource } from "./common";
|
|
4
|
+
export type EditorialContentElasticDocument = DocumentElasticWithSource<KeysToCamelCase<EditorialContentDoc>>;
|
|
5
|
+
//# sourceMappingURL=editorial-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorial-content.d.ts","sourceRoot":"","sources":["../../src/elastic/editorial-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CACrE,eAAe,CAAC,mBAAmB,CAAC,CACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorial-content.js","sourceRoot":"","sources":["../../src/elastic/editorial-content.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./agreements"), exports);
|
|
18
|
+
__exportStar(require("./contributions"), exports);
|
|
19
|
+
__exportStar(require("./common"), exports);
|
|
20
|
+
__exportStar(require("./prequalified"), exports);
|
|
21
|
+
__exportStar(require("./tools"), exports);
|
|
22
|
+
__exportStar(require("./editorial-content"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrequalifiedDoc } from "../hasura";
|
|
2
|
+
import { DocumentElasticWithSource, RelatedDocument } from "./common";
|
|
3
|
+
export type PrequalifiedElasticDocument = Omit<DocumentElasticWithSource<PrequalifiedDoc, "prequalified">, "slug" | "refs"> & {
|
|
4
|
+
refs: RelatedDocument[];
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=prequalified.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prequalified.d.ts","sourceRoot":"","sources":["../../src/elastic/prequalified.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,yBAAyB,CAAC,eAAe,EAAE,cAAc,CAAC,EAC1D,MAAM,GAAG,MAAM,CAChB,GAAG;IACF,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prequalified.js","sourceRoot":"","sources":["../../src/elastic/prequalified.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type Tool = {
|
|
2
|
+
date: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
order: number;
|
|
5
|
+
action: string;
|
|
6
|
+
metaTitle: string;
|
|
7
|
+
questions?: string[];
|
|
8
|
+
description: string;
|
|
9
|
+
displayTitle: string;
|
|
10
|
+
breadcrumbs: Record<string, string | number>[];
|
|
11
|
+
cdtnId: string;
|
|
12
|
+
excludeFromSearch: boolean;
|
|
13
|
+
id: string;
|
|
14
|
+
isPublished: boolean;
|
|
15
|
+
metaDescription: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
source: string;
|
|
18
|
+
text: string;
|
|
19
|
+
title: string;
|
|
20
|
+
title_vector: number[];
|
|
21
|
+
_id: string;
|
|
22
|
+
displayTool?: boolean;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/elastic/tools.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/elastic/tools.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IndexedAgreement } from "@socialgouv/kali-data-types";
|
|
2
|
+
import { HasuraDocument } from "./common";
|
|
3
|
+
import { ContributionHighlight } from "./contributions";
|
|
4
|
+
export type Agreement = HasuraDocument<AgreementDoc, "conventions_collectives">;
|
|
5
|
+
export type AgreementDoc = Pick<IndexedAgreement, "date_publi" | "effectif" | "mtime" | "num" | "shortTitle" | "url" | "synonymes"> & {
|
|
6
|
+
highlight?: ContributionHighlight;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=agreement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agreement.d.ts","sourceRoot":"","sources":["../../src/hasura/agreement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,YAAY,EAAE,yBAAyB,CAAC,CAAC;AAEhF,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,gBAAgB,EACd,YAAY,GACZ,UAAU,GACV,OAAO,GACP,KAAK,GACL,YAAY,GACZ,KAAK,GACL,WAAW,CACd,GAAG;IACF,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agreement.js","sourceRoot":"","sources":["../../src/hasura/agreement.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import type { CodeArticle, CodeSection } from "@socialgouv/legi-data-types";
|
|
2
|
+
import type { AgreementArticle, AgreementSection } from "@socialgouv/kali-data-types";
|
|
3
|
+
import { HasuraDocument } from "./common";
|
|
4
|
+
export type HasuraAlert = {
|
|
5
|
+
id: string;
|
|
6
|
+
info: AlertInfo;
|
|
7
|
+
status: string;
|
|
8
|
+
repository: string;
|
|
9
|
+
ref: string;
|
|
10
|
+
changes: AlertChanges;
|
|
11
|
+
created_at: Date;
|
|
12
|
+
updated_at: Date;
|
|
13
|
+
};
|
|
14
|
+
export type AlertInfo = {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
export type AlertChanges = DilaAlertChanges | TravailDataAlertChanges | VddAlertChanges | DaresAlertChanges;
|
|
18
|
+
/** Dila alert changes */
|
|
19
|
+
export type DilaAlertChanges = DilaChanges & {
|
|
20
|
+
type: "dila";
|
|
21
|
+
ref: string;
|
|
22
|
+
title: string;
|
|
23
|
+
date: Date;
|
|
24
|
+
id: string;
|
|
25
|
+
file: string;
|
|
26
|
+
num?: number;
|
|
27
|
+
};
|
|
28
|
+
export type DilaChanges = {
|
|
29
|
+
modified: DilaModifiedNode[];
|
|
30
|
+
added: DilaAddedNode[];
|
|
31
|
+
removed: DilaRemovedNode[];
|
|
32
|
+
documents: DocumentReferences[];
|
|
33
|
+
};
|
|
34
|
+
export type DilaAddedNode = {
|
|
35
|
+
etat: string;
|
|
36
|
+
parents: string[];
|
|
37
|
+
title: string;
|
|
38
|
+
id: string;
|
|
39
|
+
cid: string;
|
|
40
|
+
};
|
|
41
|
+
export type DilaRemovedNode = {
|
|
42
|
+
parents: string[];
|
|
43
|
+
title: string;
|
|
44
|
+
id: string;
|
|
45
|
+
cid: string;
|
|
46
|
+
};
|
|
47
|
+
export type DilaModifiedNode = {
|
|
48
|
+
parents: string[];
|
|
49
|
+
title: string;
|
|
50
|
+
id: string;
|
|
51
|
+
cid: string;
|
|
52
|
+
etat: string;
|
|
53
|
+
diffs: DiffInfo[];
|
|
54
|
+
};
|
|
55
|
+
export type DilaNode = AgreementArticle | AgreementSection | CodeArticle | CodeSection;
|
|
56
|
+
export type DilaArticle = AgreementArticle | CodeArticle;
|
|
57
|
+
export type DilaSection = AgreementSection | CodeSection;
|
|
58
|
+
export type DiffInfo = {
|
|
59
|
+
type: "etat" | "nota" | "texte";
|
|
60
|
+
currentText: string;
|
|
61
|
+
previousText: string;
|
|
62
|
+
};
|
|
63
|
+
export type DocumentReferences = {
|
|
64
|
+
document: DocumentInfo;
|
|
65
|
+
references: DocumentReference[];
|
|
66
|
+
};
|
|
67
|
+
export type DocumentReference = Pick<DilaRef, "dila_cid" | "dila_container_id" | "dila_id" | "title" | "url">;
|
|
68
|
+
export type DocumentInfo = Pick<HasuraDocument<any>, "source" | "title"> & {
|
|
69
|
+
id: string;
|
|
70
|
+
};
|
|
71
|
+
export type DocumentInfoWithCdtnRef = DocumentInfo & {
|
|
72
|
+
ref: Pick<DocumentInfo, "id" | "title">;
|
|
73
|
+
url?: string;
|
|
74
|
+
};
|
|
75
|
+
/** Fiche travail alert changes */
|
|
76
|
+
export type TravailDataAlertChanges = TravailDataChanges & {
|
|
77
|
+
type: "travail-data";
|
|
78
|
+
title: string;
|
|
79
|
+
ref: string;
|
|
80
|
+
date: Date;
|
|
81
|
+
};
|
|
82
|
+
export type TravailDataChanges = {
|
|
83
|
+
added: FicheTravailEmploiInfo[];
|
|
84
|
+
removed: FicheTravailEmploiInfo[];
|
|
85
|
+
modified: FicheTravailEmploiInfoWithDiff[];
|
|
86
|
+
documents: DocumentInfoWithCdtnRef[];
|
|
87
|
+
};
|
|
88
|
+
export type FicheTravailEmploiInfo = {
|
|
89
|
+
pubId: string;
|
|
90
|
+
title: string;
|
|
91
|
+
url: string;
|
|
92
|
+
};
|
|
93
|
+
export type FicheTravailEmploiInfoWithDiff = FicheTravailEmploiInfo & {
|
|
94
|
+
removedSections: SectionTextChange[];
|
|
95
|
+
addedSections: SectionTextChange[];
|
|
96
|
+
modifiedSections: SectionTextChange[];
|
|
97
|
+
};
|
|
98
|
+
export type SectionTextChange = {
|
|
99
|
+
title: string;
|
|
100
|
+
currentText: string;
|
|
101
|
+
previousText: string;
|
|
102
|
+
};
|
|
103
|
+
/** fiche vdd alert changes*/
|
|
104
|
+
export type VddAlertChanges = VddChanges & {
|
|
105
|
+
type: "vdd";
|
|
106
|
+
title: string;
|
|
107
|
+
ref: string;
|
|
108
|
+
date: Date;
|
|
109
|
+
};
|
|
110
|
+
export type DaresAlertChanges = {
|
|
111
|
+
type: "dares";
|
|
112
|
+
title: string;
|
|
113
|
+
ref: string;
|
|
114
|
+
date: Date;
|
|
115
|
+
modified: [];
|
|
116
|
+
added: {
|
|
117
|
+
name: string;
|
|
118
|
+
num: number;
|
|
119
|
+
}[];
|
|
120
|
+
removed: {
|
|
121
|
+
name: string;
|
|
122
|
+
num: number;
|
|
123
|
+
}[];
|
|
124
|
+
documents: [];
|
|
125
|
+
};
|
|
126
|
+
export type DaresAlert = {
|
|
127
|
+
id: string;
|
|
128
|
+
info: {
|
|
129
|
+
id: string | number;
|
|
130
|
+
};
|
|
131
|
+
status: "doing" | "done" | "rejected" | "todo";
|
|
132
|
+
repository: "dares";
|
|
133
|
+
ref: string;
|
|
134
|
+
changes: DaresAlertChanges;
|
|
135
|
+
};
|
|
136
|
+
export type VddChanges = {
|
|
137
|
+
modified: FicheVddInfoWithDiff[];
|
|
138
|
+
removed: FicheVddInfo[];
|
|
139
|
+
added: FicheVddInfo[];
|
|
140
|
+
documents: DocumentInfoWithCdtnRef[];
|
|
141
|
+
};
|
|
142
|
+
export type FicheVddInfo = {
|
|
143
|
+
id: string;
|
|
144
|
+
type: string;
|
|
145
|
+
title: string;
|
|
146
|
+
};
|
|
147
|
+
export type FicheVddInfoWithDiff = FicheVddInfo & {
|
|
148
|
+
currentText: string;
|
|
149
|
+
previousText: string;
|
|
150
|
+
};
|
|
151
|
+
export type ContributionReference = BaseRef | DilaRef;
|
|
152
|
+
export type DilaRef = {
|
|
153
|
+
category: "agreement" | "labor_code";
|
|
154
|
+
url: string;
|
|
155
|
+
title: string;
|
|
156
|
+
dila_id: string;
|
|
157
|
+
dila_cid: string;
|
|
158
|
+
dila_container_id: string;
|
|
159
|
+
};
|
|
160
|
+
export type BaseRef = {
|
|
161
|
+
category: null;
|
|
162
|
+
title: string;
|
|
163
|
+
url: string | null;
|
|
164
|
+
};
|
|
165
|
+
export type State = "ABROGE" | "DENONCE" | "MODIFIE" | "PERIME" | "REMPLACE" | "VIGUEUR" | "VIGUEUR_ETEN" | "VIGUEUR_NON_ETEN";
|
|
166
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/hasura/alert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,E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AAS,GACT,cAAc,GACd,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/hasura/alert.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CodeArticleData } from "@socialgouv/legi-data-types";
|
|
2
|
+
import { HasuraDocument } from "./common";
|
|
3
|
+
export type LaborCodeArticle = HasuraDocument<LaborCodeDoc, "code_du_travail">;
|
|
4
|
+
export type LaborCodeDoc = Pick<CodeArticleData, "cid" | "dateDebut" | "id"> & {
|
|
5
|
+
description: string;
|
|
6
|
+
html: string;
|
|
7
|
+
url: string;
|
|
8
|
+
notaHtml?: string;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=code-du-travail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-du-travail.d.ts","sourceRoot":"","sources":["../../src/hasura/code-du-travail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;AAE/E,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,KAAK,GAAG,WAAW,GAAG,IAAI,CAAC,GAAG;IAC7E,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-du-travail.js","sourceRoot":"","sources":["../../src/hasura/code-du-travail.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SourceRoute } from "@socialgouv/cdtn-sources";
|
|
2
|
+
export type HasuraDocument<T, U extends SourceRoute = SourceRoute> = {
|
|
3
|
+
cdtn_id: string;
|
|
4
|
+
initial_id: string;
|
|
5
|
+
source: U;
|
|
6
|
+
document: T;
|
|
7
|
+
slug: string;
|
|
8
|
+
text: string;
|
|
9
|
+
title: string;
|
|
10
|
+
meta_description: string;
|
|
11
|
+
is_available: boolean;
|
|
12
|
+
is_searchable: boolean;
|
|
13
|
+
is_published: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type ShortHasuraDocument<T> = Pick<HasuraDocument<T>, "source" | "slug" | "title" | "initial_id" | "cdtn_id"> & {
|
|
16
|
+
isPublished: boolean;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/hasura/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,CAAC;IACV,QAAQ,EAAE,CAAC,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,IAAI,CACvC,cAAc,CAAC,CAAC,CAAC,EACjB,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CACvD,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/hasura/common.ts"],"names":[],"mappings":""}
|