@new-project-media/client-frontends-shared-types 1.4.5 → 1.4.6

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.4.5",
3
+ "version": "1.4.6",
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/",
@@ -95,6 +95,15 @@ export declare enum FilterOperator {
95
95
  equals = "eq",
96
96
  notEquals = "ne"
97
97
  }
98
+ type Location = {
99
+ lat: number;
100
+ lon: number;
101
+ };
102
+ type GeoBounds = {
103
+ topLeft: Location;
104
+ bottomRight: Location;
105
+ };
106
+ type GeoShape = number[][][];
98
107
  export type ClientApiListRequestQueryParams = {
99
108
  page?: number;
100
109
  export?: boolean;
@@ -119,6 +128,8 @@ export type ClientApiListRequestQueryParams = {
119
128
  direction: string;
120
129
  };
121
130
  source?: string[];
131
+ geoBounds?: GeoBounds;
132
+ geoShape?: GeoShape;
122
133
  };
123
134
  export type ClientApiListRequest = {
124
135
  queryType: string;
@@ -45,3 +45,13 @@ export type EntityExportMap = (userDateFormat: string) => Array<{
45
45
  id: string;
46
46
  render: (entity: Entity) => string;
47
47
  }>;
48
+ export type GeoBounds = {
49
+ topLeft: Location;
50
+ bottomRight: Location;
51
+ };
52
+ type Location = {
53
+ lat: number;
54
+ lon: number;
55
+ };
56
+ export type GeoShape = number[][][];
57
+ export {};