@deallony/shared 1.0.56 → 1.0.58

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.
@@ -6,21 +6,56 @@ export type Term = {
6
6
  offset: number;
7
7
  value: string;
8
8
  };
9
+ export type AddressComponent = {
10
+ long_name: string;
11
+ short_name: string;
12
+ types: string[];
13
+ };
14
+ export type LatLng = {
15
+ lat: number;
16
+ lng: number;
17
+ };
18
+ export type PlaceViewport = {
19
+ northeast: LatLng;
20
+ southwest: LatLng;
21
+ };
22
+ export type PlaceGeometry = {
23
+ location: LatLng;
24
+ viewport: PlaceViewport;
25
+ };
26
+ export type PlacePhoto = {
27
+ height: number;
28
+ width: number;
29
+ html_attributions: string[];
30
+ photo_reference: string;
31
+ };
9
32
  export type PlacesAutocompleteResponse = {
10
33
  predictions: PlacePrediction[];
11
34
  status: string;
12
35
  error_message?: string;
13
36
  };
14
37
  export type PlacePrediction = {
15
- description: string;
16
38
  place_id: string;
17
- reference: string;
18
- structured_formatting: {
39
+ types: string[];
40
+ reference?: string;
41
+ description?: string;
42
+ structured_formatting?: {
19
43
  main_text: string;
20
44
  main_text_matched_substrings: MatchedSubstring[];
21
45
  secondary_text: string;
22
46
  };
23
- terms: Term[];
24
- types: string[];
25
- matched_substrings: MatchedSubstring[];
47
+ terms?: Term[];
48
+ matched_substrings?: MatchedSubstring[];
49
+ address_components?: AddressComponent[];
50
+ adr_address?: string;
51
+ formatted_address?: string;
52
+ geometry?: PlaceGeometry;
53
+ icon?: string;
54
+ icon_background_color?: string;
55
+ icon_mask_base_uri?: string;
56
+ name?: string;
57
+ photos?: PlacePhoto[];
58
+ url?: string;
59
+ utc_offset?: number;
60
+ vicinity?: string;
26
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,6 +10,8 @@
10
10
  "scripts": {
11
11
  "login": "npm login",
12
12
  "deploy": "node scripts/publish.js",
13
+ "=========": "============= UPDATE APPS LIBRARY =============",
14
+ "mobile:update": "cd ../deallony && npm install @deallony/shared@latest",
13
15
  "========": "============ DEFAULT ============",
14
16
  "build": "tsc",
15
17
  "watch": "tsc --watch",