@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 CHANGED
@@ -1,3 +1,3 @@
1
1
  export { BaseService } from './types/BaseService';
2
2
  export { Converter, Converter as con } from './utils/converter';
3
- export * as TYPES from './types';
3
+ export * as TYPES from './types/__index__';
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__';
@@ -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 "./product/UsedProductType";
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 { UserType } from "./UserType";
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?: UserType;
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
- 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;
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,7 @@
1
+ import { SubjectTableType } from "./SubjectType";
2
+ export type UsedProductAgeType = {
3
+ id?: number;
4
+ name: string;
5
+ description?: string;
6
+ subject_type?: SubjectTableType;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SubjectTableType } from "./SubjectType";
2
+ export type UsedProductConditionType = {
3
+ id?: number;
4
+ name: string;
5
+ description?: string;
6
+ subject_type?: SubjectTableType;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export type UsedProductType = {
2
+ id?: number;
3
+ condition_id: number;
4
+ age_id?: number;
5
+ isFree?: boolean;
6
+ };
@@ -0,0 +1,2 @@
1
+ // import { IMedia } from "../MediaType";
2
+ export {};
@@ -30,4 +30,5 @@ export type UserType = {
30
30
  updated_at?: string;
31
31
  blocked_at?: string | null;
32
32
  };
33
+ export type IUser = UserType;
33
34
  export type UserTypeOrNull = UserType | null;
@@ -0,0 +1,6 @@
1
+ export * as Ad from './AdType';
2
+ export * as AdminBoundary from './AdminBoundaryType';
3
+ export * as Media from './MediaType';
4
+ export * from './PropertyTypeType';
5
+ export * as Google from './GoogleType';
6
+ export * as User from './UserType';
@@ -0,0 +1,6 @@
1
+ export * as Ad from './AdType';
2
+ export * as AdminBoundary from './AdminBoundaryType';
3
+ export * as Media from './MediaType';
4
+ export * from './PropertyTypeType';
5
+ export * as Google from './GoogleType';
6
+ export * as User from './UserType';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.57",
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",