@new-project-media/client-frontends-shared-types 1.3.2 → 1.3.3
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.3.
|
|
3
|
+
"version": "1.3.3",
|
|
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/",
|
|
@@ -59,7 +59,15 @@ export interface ChartAggregationBucket extends Omit<AggregationBucket, 'id'> {
|
|
|
59
59
|
id?: string;
|
|
60
60
|
[key: string]: number | string | undefined;
|
|
61
61
|
}
|
|
62
|
-
export declare const isAggregationItem: (item: AggregationItem | FilteredAggregation | undefined) => item is AggregationItem;
|
|
62
|
+
export declare const isAggregationItem: (item: AggregationItem | FilteredAggregation | CentroidAggregation | undefined) => item is AggregationItem;
|
|
63
|
+
export type CentroidAggregation = {
|
|
64
|
+
count: number;
|
|
65
|
+
location: {
|
|
66
|
+
lat: number;
|
|
67
|
+
lon: number;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export declare const isCentroidAggregation: (item: AggregationItem | FilteredAggregation | CentroidAggregation | undefined) => item is CentroidAggregation;
|
|
63
71
|
type AggregationParam = {
|
|
64
72
|
primary: string;
|
|
65
73
|
secondary?: string;
|
|
@@ -103,7 +111,7 @@ export type ClientApiListResponse<T> = {
|
|
|
103
111
|
total: number;
|
|
104
112
|
};
|
|
105
113
|
data: T[];
|
|
106
|
-
aggregations?: Record<string, AggregationItem | FilteredAggregation>;
|
|
114
|
+
aggregations?: Record<string, AggregationItem | FilteredAggregation | CentroidAggregation>;
|
|
107
115
|
};
|
|
108
116
|
export type ClientApiSingleItemResponse<T> = {
|
|
109
117
|
paging: {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isAggregationItem = void 0;
|
|
3
|
+
exports.isCentroidAggregation = exports.isAggregationItem = void 0;
|
|
4
4
|
const isAggregationItem = (item) => {
|
|
5
5
|
return !!item && 'buckets' in item;
|
|
6
6
|
};
|
|
7
7
|
exports.isAggregationItem = isAggregationItem;
|
|
8
|
+
const isCentroidAggregation = (item) => {
|
|
9
|
+
return !!item && 'location' in item;
|
|
10
|
+
};
|
|
11
|
+
exports.isCentroidAggregation = isCentroidAggregation;
|
|
8
12
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/common.ts"],"names":[],"mappings":";;;AA+EO,MAAM,iBAAiB,GAAG,CAC/B,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/common.ts"],"names":[],"mappings":";;;AA+EO,MAAM,iBAAiB,GAAG,CAC/B,IAA6E,EACpD,EAAE;IAC3B,OAAO,CAAC,CAAC,IAAI,IAAI,SAAS,IAAI,IAAI,CAAA;AACpC,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAUM,MAAM,qBAAqB,GAAG,CACnC,IAA6E,EAChD,EAAE;IAC/B,OAAO,CAAC,CAAC,IAAI,IAAI,UAAU,IAAI,IAAI,CAAA;AACrC,CAAC,CAAA;AAJY,QAAA,qBAAqB,yBAIjC"}
|
|
@@ -177,15 +177,15 @@ declare const signal: z.ZodObject<{
|
|
|
177
177
|
lat?: number;
|
|
178
178
|
lon?: number;
|
|
179
179
|
};
|
|
180
|
-
|
|
180
|
+
location?: {
|
|
181
181
|
lat?: number;
|
|
182
182
|
lon?: number;
|
|
183
183
|
};
|
|
184
|
-
|
|
185
|
-
location?: {
|
|
184
|
+
default?: {
|
|
186
185
|
lat?: number;
|
|
187
186
|
lon?: number;
|
|
188
187
|
};
|
|
188
|
+
defaultValue?: string;
|
|
189
189
|
facility?: {
|
|
190
190
|
lat?: number;
|
|
191
191
|
lon?: number;
|
|
@@ -195,15 +195,15 @@ declare const signal: z.ZodObject<{
|
|
|
195
195
|
lat?: number;
|
|
196
196
|
lon?: number;
|
|
197
197
|
};
|
|
198
|
-
|
|
198
|
+
location?: {
|
|
199
199
|
lat?: number;
|
|
200
200
|
lon?: number;
|
|
201
201
|
};
|
|
202
|
-
|
|
203
|
-
location?: {
|
|
202
|
+
default?: {
|
|
204
203
|
lat?: number;
|
|
205
204
|
lon?: number;
|
|
206
205
|
};
|
|
206
|
+
defaultValue?: string;
|
|
207
207
|
facility?: {
|
|
208
208
|
lat?: number;
|
|
209
209
|
lon?: number;
|
|
@@ -501,6 +501,11 @@ declare const signal: z.ZodObject<{
|
|
|
501
501
|
source?: string;
|
|
502
502
|
}[];
|
|
503
503
|
id?: string;
|
|
504
|
+
location?: {
|
|
505
|
+
id?: string;
|
|
506
|
+
identifier?: string;
|
|
507
|
+
isApproximate?: boolean;
|
|
508
|
+
}[];
|
|
504
509
|
status?: PublishStatus;
|
|
505
510
|
country?: {
|
|
506
511
|
id?: string;
|
|
@@ -564,25 +569,20 @@ declare const signal: z.ZodObject<{
|
|
|
564
569
|
latitude?: number;
|
|
565
570
|
longitude?: number;
|
|
566
571
|
};
|
|
567
|
-
location?: {
|
|
568
|
-
id?: string;
|
|
569
|
-
identifier?: string;
|
|
570
|
-
isApproximate?: boolean;
|
|
571
|
-
}[];
|
|
572
572
|
geo?: {
|
|
573
573
|
county?: {
|
|
574
574
|
lat?: number;
|
|
575
575
|
lon?: number;
|
|
576
576
|
};
|
|
577
|
-
|
|
577
|
+
location?: {
|
|
578
578
|
lat?: number;
|
|
579
579
|
lon?: number;
|
|
580
580
|
};
|
|
581
|
-
|
|
582
|
-
location?: {
|
|
581
|
+
default?: {
|
|
583
582
|
lat?: number;
|
|
584
583
|
lon?: number;
|
|
585
584
|
};
|
|
585
|
+
defaultValue?: string;
|
|
586
586
|
facility?: {
|
|
587
587
|
lat?: number;
|
|
588
588
|
lon?: number;
|
|
@@ -666,6 +666,11 @@ declare const signal: z.ZodObject<{
|
|
|
666
666
|
source?: string;
|
|
667
667
|
}[];
|
|
668
668
|
id?: string;
|
|
669
|
+
location?: {
|
|
670
|
+
id?: string;
|
|
671
|
+
identifier?: string;
|
|
672
|
+
isApproximate?: boolean;
|
|
673
|
+
}[];
|
|
669
674
|
status?: PublishStatus;
|
|
670
675
|
country?: {
|
|
671
676
|
id?: string;
|
|
@@ -729,25 +734,20 @@ declare const signal: z.ZodObject<{
|
|
|
729
734
|
latitude?: number;
|
|
730
735
|
longitude?: number;
|
|
731
736
|
};
|
|
732
|
-
location?: {
|
|
733
|
-
id?: string;
|
|
734
|
-
identifier?: string;
|
|
735
|
-
isApproximate?: boolean;
|
|
736
|
-
}[];
|
|
737
737
|
geo?: {
|
|
738
738
|
county?: {
|
|
739
739
|
lat?: number;
|
|
740
740
|
lon?: number;
|
|
741
741
|
};
|
|
742
|
-
|
|
742
|
+
location?: {
|
|
743
743
|
lat?: number;
|
|
744
744
|
lon?: number;
|
|
745
745
|
};
|
|
746
|
-
|
|
747
|
-
location?: {
|
|
746
|
+
default?: {
|
|
748
747
|
lat?: number;
|
|
749
748
|
lon?: number;
|
|
750
749
|
};
|
|
750
|
+
defaultValue?: string;
|
|
751
751
|
facility?: {
|
|
752
752
|
lat?: number;
|
|
753
753
|
lon?: number;
|