@deallony/shared 1.0.48 → 1.0.51

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.
@@ -1,5 +1,5 @@
1
1
  import { AdPromotionType } from "./AdPromotionType";
2
- import { MediaType } from "./MediaType";
2
+ import { IMedia } from "./MediaType";
3
3
  import { MotorType } from "./MotorType";
4
4
  import { UsedProductType } from "./product/UsedProductType";
5
5
  import { PropertyType } from "./PropertyType";
@@ -30,7 +30,7 @@ export type IAd = {
30
30
  } | null;
31
31
  selected_phone: string | null;
32
32
  user?: UserType;
33
- media?: MediaType[];
33
+ media?: IMedia[];
34
34
  subject_type?: SubjectTableType;
35
35
  promotions?: AdPromotionType[];
36
36
  property?: PropertyType;
@@ -1,9 +1,9 @@
1
- import { MediaType } from "./MediaType";
1
+ import { IMedia } from "./MediaType";
2
2
  export type AppStartScreenType = {
3
3
  id?: number;
4
4
  title: string;
5
5
  description: string;
6
6
  created_at?: string;
7
7
  updated_at?: string;
8
- media: MediaType;
8
+ media: IMedia;
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import { CategoryWorkTypeType } from "./CategoryWorkTypeType";
2
- import { MediaType } from "./MediaType";
2
+ import { IMedia } from "./MediaType";
3
3
  import { SubjectTableType } from "./SubjectType";
4
4
  export type CategoryType = {
5
5
  id?: number;
@@ -13,5 +13,5 @@ export type CategoryType = {
13
13
  should_validate?: boolean;
14
14
  type?: SubjectTableType;
15
15
  props?: Record<string, any>;
16
- media: MediaType;
16
+ media: IMedia;
17
17
  };
@@ -1,4 +1,4 @@
1
- export type MediaType = {
1
+ export type IMedia = {
2
2
  id?: number;
3
3
  mimetype: string;
4
4
  url: string;
@@ -8,7 +8,7 @@ export type PropertyType = {
8
8
  price_type_id: number;
9
9
  size_m2: number;
10
10
  bedrooms: number;
11
- district_id: number;
11
+ district_id?: number;
12
12
  created_at: string;
13
13
  updated_at: string;
14
14
  property_facilities: Array<PropertyFacilitiesType>;
@@ -1,4 +1,3 @@
1
- import { MediaType } from "./MediaType";
2
1
  import { ServiceLocationType } from "./ServicesLocationsType";
3
2
  export type ServiceType = {
4
3
  id?: number;
@@ -8,5 +7,4 @@ export type ServiceType = {
8
7
  access_type_id: number | null;
9
8
  work_type_id: number | null;
10
9
  locations: ServiceLocationType[];
11
- media: MediaType[];
12
10
  };
@@ -1,7 +1,7 @@
1
- import { MediaType } from "./MediaType";
1
+ import { IMedia } from "./MediaType";
2
2
  export type SocialMediaPlatformType = {
3
3
  id: number;
4
4
  name: string;
5
5
  url_pattern: string;
6
- media: MediaType;
6
+ media: IMedia;
7
7
  };
@@ -1,3 +1,4 @@
1
1
  export * as Ad from './AdType';
2
2
  export * as AdminBoundary from './AdminBoundaryType';
3
+ export * as Media from './MediaType';
3
4
  export * from './PropertyTypeType';
@@ -1,3 +1,4 @@
1
1
  export * as Ad from './AdType';
2
2
  export * as AdminBoundary from './AdminBoundaryType';
3
+ export * as Media from './MediaType';
3
4
  export * from './PropertyTypeType';
@@ -1 +1,2 @@
1
+ // import { IMedia } from "../MediaType";
1
2
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.48",
3
+ "version": "1.0.51",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,10 +8,11 @@
8
8
  "dist"
9
9
  ],
10
10
  "scripts": {
11
+ "login": "npm login",
12
+ "deploy": "node scripts/publish.js",
13
+ "========": "============ DEFAULT ============",
11
14
  "build": "tsc",
12
15
  "watch": "tsc --watch",
13
- "deploy": "node scripts/publish.js",
14
- "deploy:login": "npm login",
15
16
  "deploy:publish": "npm publish --access public"
16
17
  },
17
18
  "dependencies": {