@new-project-media/client-frontends-shared-types 3.3.21 → 3.3.23
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/package.json +1 -1
- package/src/lib/dataGrid/api/index.d.ts +1 -0
- package/src/lib/dataGrid/api/index.js +1 -0
- package/src/lib/dataGrid/api/index.js.map +1 -1
- package/src/lib/dataGrid/api/intel.d.ts +51 -0
- package/src/lib/dataGrid/api/intel.js +29 -0
- package/src/lib/dataGrid/api/intel.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@new-project-media/client-frontends-shared-types",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "tsc -p tsconfig.json",
|
|
6
6
|
"postbuild": "mkdir -p ../../dist/packages/client-frontends-shared-types/ && cp package.json ../../dist/packages/client-frontends-shared-types/",
|
|
@@ -8,4 +8,5 @@ tslib_1.__exportStar(require("./queues"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("./dataCenters"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./poiGroups"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./poiLocations"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./intel"), exports);
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,oDAAyB;AACzB,mDAAwB;AACxB,mDAAwB;AACxB,wDAA6B;AAC7B,sDAA2B;AAC3B,yDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,oDAAyB;AACzB,mDAAwB;AACxB,mDAAwB;AACxB,wDAA6B;AAC7B,sDAA2B;AAC3B,yDAA8B;AAC9B,kDAAuB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const IntelSchema: z.ZodObject<{
|
|
3
|
+
audiences: z.ZodArray<z.ZodObject<{
|
|
4
|
+
identifier: z.ZodString;
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>>;
|
|
7
|
+
body: z.ZodOptional<z.ZodString>;
|
|
8
|
+
country: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
identifier: z.ZodString;
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
created: z.ZodString;
|
|
13
|
+
createdAt: z.ZodString;
|
|
14
|
+
headline: z.ZodString;
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
intel: z.ZodAny;
|
|
17
|
+
intelChannelTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
identifier: z.ZodString;
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
intelSource: z.ZodAny;
|
|
22
|
+
intelType: z.ZodOptional<z.ZodString>;
|
|
23
|
+
journalists: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
localState: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25
|
+
identifier: z.ZodString;
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>>;
|
|
28
|
+
meta: z.ZodAny;
|
|
29
|
+
modified: z.ZodString;
|
|
30
|
+
organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
+
identifier: z.ZodString;
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
role: z.ZodString;
|
|
34
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
projects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
+
identifier: z.ZodString;
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
|
+
published: z.ZodBoolean;
|
|
41
|
+
publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
+
regions: z.ZodArray<z.ZodObject<{
|
|
43
|
+
identifier: z.ZodString;
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
sectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
identifier: z.ZodString;
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type Intel = z.infer<typeof IntelSchema>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntelSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const entity_1 = require("./entity");
|
|
6
|
+
exports.IntelSchema = zod_1.z.object({
|
|
7
|
+
audiences: entity_1.EntityItemArraySchema,
|
|
8
|
+
body: entity_1.OptionalStringSchema,
|
|
9
|
+
country: entity_1.EntityItemArrayOptionalSchema,
|
|
10
|
+
created: entity_1.YYYYMMDDRegexSchema,
|
|
11
|
+
createdAt: entity_1.YYYYMMDDRegexSchema,
|
|
12
|
+
headline: zod_1.z.string(),
|
|
13
|
+
id: zod_1.z.string(),
|
|
14
|
+
intel: zod_1.z.any(),
|
|
15
|
+
intelChannelTags: entity_1.EntityItemArrayOptionalSchema,
|
|
16
|
+
intelSource: zod_1.z.any(),
|
|
17
|
+
intelType: entity_1.OptionalStringSchema,
|
|
18
|
+
journalists: entity_1.OptionalStringArraySchema,
|
|
19
|
+
localState: entity_1.EntityItemArrayOptionalSchema,
|
|
20
|
+
meta: zod_1.z.any(),
|
|
21
|
+
modified: entity_1.YYYYMMDDRegexSchema,
|
|
22
|
+
organizations: entity_1.OrganizationSchema,
|
|
23
|
+
projects: entity_1.EntityItemArrayOptionalSchema,
|
|
24
|
+
published: zod_1.z.boolean(),
|
|
25
|
+
publishedAt: entity_1.YYYYMMDDRegexOptionalSchema,
|
|
26
|
+
regions: entity_1.EntityItemArraySchema,
|
|
27
|
+
sectors: entity_1.EntityItemArrayOptionalSchema,
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=intel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intel.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/intel.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,qCAQiB;AAEJ,QAAA,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,SAAS,EAAE,8BAAqB;IAChC,IAAI,EAAE,6BAAoB;IAC1B,OAAO,EAAE,sCAA6B;IACtC,OAAO,EAAE,4BAAmB;IAC5B,SAAS,EAAE,4BAAmB;IAC9B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,OAAC,CAAC,GAAG,EAAE;IACd,gBAAgB,EAAE,sCAA6B;IAC/C,WAAW,EAAE,OAAC,CAAC,GAAG,EAAE;IACpB,SAAS,EAAE,6BAAoB;IAC/B,WAAW,EAAE,kCAAyB;IACtC,UAAU,EAAE,sCAA6B;IACzC,IAAI,EAAE,OAAC,CAAC,GAAG,EAAE;IACb,QAAQ,EAAE,4BAAmB;IAC7B,aAAa,EAAE,2BAAkB;IACjC,QAAQ,EAAE,sCAA6B;IACvC,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,WAAW,EAAE,oCAA2B;IACxC,OAAO,EAAE,8BAAqB;IAC9B,OAAO,EAAE,sCAA6B;CACvC,CAAC,CAAA"}
|