@new-project-media/client-frontends-shared-types 1.0.5 → 1.0.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@new-project-media/client-frontends-shared-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.8",
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/",
@@ -14,6 +14,9 @@ export type AggregationBucket = {
14
14
  state?: AggregationItem;
15
15
  county?: AggregationItem;
16
16
  audiences?: AggregationItem;
17
+ totalMw?: {
18
+ sum: number;
19
+ };
17
20
  };
18
21
  export type NestedAggregation = {
19
22
  doc_count: number;
@@ -71,6 +74,7 @@ type AggregationParam = {
71
74
  primary: string;
72
75
  secondary?: string;
73
76
  };
77
+ export type ChartAggregationDocCountSelector = (subBucket: AggregationBucket) => number | string;
74
78
  export type ClientApiListRequestQueryParams = {
75
79
  page?: number;
76
80
  filters?: Array<{
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/common.ts"],"names":[],"mappings":";;;AAmFO,MAAM,iBAAiB,GAAG,CAC/B,IAAuD,EAC9B,EAAE;IAC3B,OAAO,CAAC,CAAC,IAAI,IAAI,SAAS,IAAI,IAAI,CAAA;AACpC,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/common.ts"],"names":[],"mappings":";;;AAsFO,MAAM,iBAAiB,GAAG,CAC/B,IAAuD,EAC9B,EAAE;IAC3B,OAAO,CAAC,CAAC,IAAI,IAAI,SAAS,IAAI,IAAI,CAAA;AACpC,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B"}
@@ -5,16 +5,7 @@ declare const queue: z.ZodObject<{
5
5
  allSectors: z.ZodString;
6
6
  applicationId: z.ZodString;
7
7
  constructionDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
8
- country: z.ZodArray<z.ZodObject<{
9
- identifier: z.ZodString;
10
- id: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- identifier?: string;
13
- id?: string;
14
- }, {
15
- identifier?: string;
16
- id?: string;
17
- }>, "many">;
8
+ country: z.ZodOptional<z.ZodString>;
18
9
  developmentStatus: z.ZodOptional<z.ZodString>;
19
10
  geo: z.ZodObject<{
20
11
  project: z.ZodObject<{
@@ -97,10 +88,7 @@ declare const queue: z.ZodObject<{
97
88
  status?: string;
98
89
  applicationId?: string;
99
90
  queueDataset?: string;
100
- country?: {
101
- identifier?: string;
102
- id?: string;
103
- }[];
91
+ country?: string;
104
92
  organizations?: {
105
93
  identifier?: string;
106
94
  id?: string;
@@ -149,10 +137,7 @@ declare const queue: z.ZodObject<{
149
137
  status?: string;
150
138
  applicationId?: string;
151
139
  queueDataset?: string;
152
- country?: {
153
- identifier?: string;
154
- id?: string;
155
- }[];
140
+ country?: string;
156
141
  organizations?: {
157
142
  identifier?: string;
158
143
  id?: string;
@@ -8,7 +8,7 @@ const queue = zod_1.z.object({
8
8
  allSectors: zod_1.z.string(),
9
9
  applicationId: zod_1.z.string(),
10
10
  constructionDate: entity_1.YYYYMMDDRegexOptionalSchema,
11
- country: entity_1.EntityItemArraySchema,
11
+ country: zod_1.z.string().optional(),
12
12
  developmentStatus: entity_1.OptionalStringSchema,
13
13
  geo: entity_1.GeoSchema,
14
14
  id: zod_1.z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"queues.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/queues.ts"],"names":[],"mappings":";;AAAA,6BAAuB;AACvB,qCAQiB;AAEjB,MAAM,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IACrB,qBAAqB,EAAE,oCAA2B;IAClD,OAAO,EAAE,6BAAoB;IAC7B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,gBAAgB,EAAE,oCAA2B;IAC7C,OAAO,EAAE,8BAAqB;IAC9B,iBAAiB,EAAE,6BAAoB;IACvC,GAAG,EAAE,kBAAS;IACd,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,4BAAmB;IAC/B,WAAW,EAAE,6BAAoB;IACjC,WAAW,EAAE,6BAAoB;IACjC,UAAU,EAAE,6BAAoB;IAChC,SAAS,EAAE,6BAAoB;IAC/B,OAAO,EAAE,6BAAoB;IAC7B,KAAK,EAAE,6BAAoB;IAC3B,aAAa,EAAE,2BAAkB;IACjC,sBAAsB,EAAE,oCAA2B;IACnD,iBAAiB,EAAE,6BAAoB;IACvC,eAAe,EAAE,oCAA2B;IAC5C,UAAU,EAAE,6BAAoB;IAChC,WAAW,EAAE,6BAAoB;IACjC,YAAY,EAAE,6BAAoB;IAClC,SAAS,EAAE,4BAAmB;IAC9B,KAAK,EAAE,6BAAoB;IAC3B,UAAU,EAAE,4BAAmB;IAC/B,YAAY,EAAE,6BAAoB;IAClC,OAAO,EAAE,8BAAqB;IAC9B,YAAY,EAAE,4BAAmB;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,6BAAoB;IACrC,WAAW,EAAE,6BAAoB;IACjC,UAAU,EAAE,6BAAoB;IAChC,OAAO,EAAE,6BAAoB;IAC7B,YAAY,EAAE,6BAAoB;IAClC,aAAa,EAAE,oCAA2B;CAC3C,CAAC,CAAA"}
1
+ {"version":3,"file":"queues.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/queues.ts"],"names":[],"mappings":";;AAAA,6BAAuB;AACvB,qCAQiB;AAEjB,MAAM,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IACrB,qBAAqB,EAAE,oCAA2B;IAClD,OAAO,EAAE,6BAAoB;IAC7B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,gBAAgB,EAAE,oCAA2B;IAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,iBAAiB,EAAE,6BAAoB;IACvC,GAAG,EAAE,kBAAS;IACd,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,4BAAmB;IAC/B,WAAW,EAAE,6BAAoB;IACjC,WAAW,EAAE,6BAAoB;IACjC,UAAU,EAAE,6BAAoB;IAChC,SAAS,EAAE,6BAAoB;IAC/B,OAAO,EAAE,6BAAoB;IAC7B,KAAK,EAAE,6BAAoB;IAC3B,aAAa,EAAE,2BAAkB;IACjC,sBAAsB,EAAE,oCAA2B;IACnD,iBAAiB,EAAE,6BAAoB;IACvC,eAAe,EAAE,oCAA2B;IAC5C,UAAU,EAAE,6BAAoB;IAChC,WAAW,EAAE,6BAAoB;IACjC,YAAY,EAAE,6BAAoB;IAClC,SAAS,EAAE,4BAAmB;IAC9B,KAAK,EAAE,6BAAoB;IAC3B,UAAU,EAAE,4BAAmB;IAC/B,YAAY,EAAE,6BAAoB;IAClC,OAAO,EAAE,8BAAqB;IAC9B,YAAY,EAAE,4BAAmB;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,6BAAoB;IACrC,WAAW,EAAE,6BAAoB;IACjC,UAAU,EAAE,6BAAoB;IAChC,OAAO,EAAE,6BAAoB;IAC7B,YAAY,EAAE,6BAAoB;IAClC,aAAa,EAAE,oCAA2B;CAC3C,CAAC,CAAA"}
@@ -19,9 +19,10 @@ export type SearchRoleField = {
19
19
  label: string;
20
20
  field: string;
21
21
  };
22
- export type FilterType = 'autocomplete' | 'date-range' | 'exists';
22
+ export type FilterType = 'autocomplete' | 'date-range' | 'exists' | 'label';
23
23
  export type FilterDefinition = {
24
24
  id: string;
25
+ filterId?: string;
25
26
  variant: FilterType;
26
27
  label: string;
27
28
  options: FilterSelectOption[];