@new-project-media/client-frontends-shared-types 1.4.4 → 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.4",
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/",
@@ -88,12 +88,22 @@ type AggregationParam = {
88
88
  type: string;
89
89
  field?: string;
90
90
  size?: number;
91
+ include?: string;
91
92
  };
92
93
  };
93
94
  export declare enum FilterOperator {
94
95
  equals = "eq",
95
96
  notEquals = "ne"
96
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[][][];
97
107
  export type ClientApiListRequestQueryParams = {
98
108
  page?: number;
99
109
  export?: boolean;
@@ -118,6 +128,8 @@ export type ClientApiListRequestQueryParams = {
118
128
  direction: string;
119
129
  };
120
130
  source?: string[];
131
+ geoBounds?: GeoBounds;
132
+ geoShape?: GeoShape;
121
133
  };
122
134
  export type ClientApiListRequest = {
123
135
  queryType: string;
@@ -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,IAKa,EACY,EAAE;IAC3B,OAAO,CAAC,CAAC,IAAI,IAAI,SAAS,IAAI,IAAI,CAAA;AACpC,CAAC,CAAA;AATY,QAAA,iBAAiB,qBAS7B;AAUM,MAAM,qBAAqB,GAAG,CACnC,IAKa,EACgB,EAAE;IAC/B,OAAO,CAAC,CAAC,IAAI,IAAI,UAAU,IAAI,IAAI,CAAA;AACrC,CAAC,CAAA;AATY,QAAA,qBAAqB,yBASjC;AASM,MAAM,mBAAmB,GAAG,CACjC,IAKa,EACc,EAAE;IAC7B,OAAO,CAAC,CAAC,IAAI,IAAI,QAAQ,IAAI,IAAI,CAAA;AACnC,CAAC,CAAA;AATY,QAAA,mBAAmB,uBAS/B;AAYD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,kCAAgB,CAAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
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,IAKa,EACY,EAAE;IAC3B,OAAO,CAAC,CAAC,IAAI,IAAI,SAAS,IAAI,IAAI,CAAA;AACpC,CAAC,CAAA;AATY,QAAA,iBAAiB,qBAS7B;AAUM,MAAM,qBAAqB,GAAG,CACnC,IAKa,EACgB,EAAE;IAC/B,OAAO,CAAC,CAAC,IAAI,IAAI,UAAU,IAAI,IAAI,CAAA;AACrC,CAAC,CAAA;AATY,QAAA,qBAAqB,yBASjC;AASM,MAAM,mBAAmB,GAAG,CACjC,IAKa,EACc,EAAE;IAC7B,OAAO,CAAC,CAAC,IAAI,IAAI,QAAQ,IAAI,IAAI,CAAA;AACnC,CAAC,CAAA;AATY,QAAA,mBAAmB,uBAS/B;AAaD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,kCAAgB,CAAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
@@ -27,11 +27,12 @@ export type SearchRoleField = {
27
27
  label: string;
28
28
  field: string;
29
29
  };
30
- export type FilterType = 'autocomplete' | 'date-range' | 'exists' | 'label' | 'range-slider';
30
+ export type FilterType = 'autocomplete' | 'lookup-autocomplete' | 'date-range' | 'exists' | 'label' | 'range-slider';
31
31
  export type FilterDefinition = {
32
32
  id: string;
33
33
  filterId?: string;
34
34
  variant: FilterType;
35
+ useSearch?: (searchTerm: string) => UseQueryResult<FilterSelectOption[]>;
35
36
  label: string;
36
37
  options?: FilterSelectOption[];
37
38
  filterGroup?: FilterGroup;
@@ -44,3 +45,13 @@ export type EntityExportMap = (userDateFormat: string) => Array<{
44
45
  id: string;
45
46
  render: (entity: Entity) => string;
46
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 {};