@socialgouv/cdtn-types 2.42.2 → 2.42.4
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorialContentDoc } from "../hasura";
|
|
2
2
|
import { KeysToCamelCase } from "../utility";
|
|
3
3
|
import { DocumentElasticWithSource } from "./common";
|
|
4
|
-
export type EditorialContentElasticDocument = DocumentElasticWithSource<KeysToCamelCase<EditorialContentDoc
|
|
4
|
+
export type EditorialContentElasticDocument = DocumentElasticWithSource<KeysToCamelCase<EditorialContentDoc>, "information">;
|
|
5
5
|
//# sourceMappingURL=editorial-content.d.ts.map
|
|
@@ -1 +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,
|
|
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,EACpC,aAAa,CACd,CAAC"}
|
package/build/utility.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
type
|
|
1
|
+
type Camelize<T extends string> = T extends `${infer A}_${infer B}` ? `${A}${Camelize<Capitalize<B>>}` : T;
|
|
2
2
|
export type KeysToCamelCase<T> = {
|
|
3
|
-
[K in keyof T as
|
|
3
|
+
[K in keyof T as Camelize<string & K>]: T[K] extends {} ? KeysToCamelCase<T[K]> : T[K];
|
|
4
4
|
};
|
|
5
5
|
export {};
|
|
6
6
|
//# sourceMappingURL=utility.d.ts.map
|
package/build/utility.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../src/utility.ts"],"names":[],"mappings":"AAAA,KAAK,
|
|
1
|
+
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../src/utility.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAC/D,GAAG,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,GAChC,CAAC,CAAC;AAEN,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;KAC9B,CAAC,IAAI,MAAM,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,GACnD,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACrB,CAAC,CAAC,CAAC,CAAC;CACT,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.42.
|
|
13
|
+
"version": "2.42.4",
|
|
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": "
|
|
30
|
+
"gitHead": "6aa9baaa887fe1a3e53f26a621dd640c5a7b1286"
|
|
31
31
|
}
|