@deallony/shared 1.0.57 → 1.0.59
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types/AdType.d.ts +3 -3
- package/dist/types/GoogleType.d.ts +40 -6
- package/dist/types/UsedProductAge.d.ts +7 -0
- package/dist/types/UsedProductAge.js +1 -0
- package/dist/types/UsedProductCondation.d.ts +7 -0
- package/dist/types/UsedProductCondation.js +1 -0
- package/dist/types/UsedProductType.d.ts +6 -0
- package/dist/types/UsedProductType.js +2 -0
- package/dist/types/UserType.d.ts +1 -0
- package/dist/types/__index__.d.ts +6 -0
- package/dist/types/__index__.js +6 -0
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Converter, Converter as con } from './utils/converter';
|
|
2
|
-
export * as TYPES from './types';
|
|
2
|
+
export * as TYPES from './types/__index__';
|
package/dist/types/AdType.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AdPromotionType } from "./AdPromotionType";
|
|
2
2
|
import { IMedia } from "./MediaType";
|
|
3
3
|
import { MotorType } from "./MotorType";
|
|
4
|
-
import { UsedProductType } from "./
|
|
4
|
+
import { UsedProductType } from "./UsedProductType";
|
|
5
5
|
import { PropertyType } from "./PropertyType";
|
|
6
6
|
import { ServiceType } from "./ServiceType";
|
|
7
7
|
import { SubjectTableType } from "./SubjectType";
|
|
8
|
-
import {
|
|
8
|
+
import { IUser } from "./UserType";
|
|
9
9
|
export type IAd = {
|
|
10
10
|
id?: number;
|
|
11
11
|
user_id?: number;
|
|
@@ -29,7 +29,7 @@ export type IAd = {
|
|
|
29
29
|
by_call?: boolean;
|
|
30
30
|
} | null;
|
|
31
31
|
selected_phone: string | null;
|
|
32
|
-
user?:
|
|
32
|
+
user?: IUser;
|
|
33
33
|
media: IMedia[];
|
|
34
34
|
subject_type?: SubjectTableType;
|
|
35
35
|
promotions?: AdPromotionType[];
|
|
@@ -6,22 +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
|
-
|
|
18
|
-
|
|
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
|
|
24
|
-
|
|
25
|
-
|
|
47
|
+
terms?: Term[];
|
|
48
|
+
matched_substrings?: MatchedSubstring[];
|
|
49
|
+
address_components?: AddressComponent[];
|
|
50
|
+
adr_address?: string;
|
|
26
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;
|
|
27
61
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/UserType.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deallony/shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
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",
|