@deallony/shared 1.0.8 → 1.0.9

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.
@@ -4,7 +4,7 @@ import { PropertyType } from "./PropertyType";
4
4
  import { ServiceType } from "./ServiceType";
5
5
  import { SubjectTableType } from "./SubjectType";
6
6
  import { UserType } from "./UserType";
7
- export type AdType = {
7
+ export type Ad = {
8
8
  id?: number;
9
9
  user_id?: number;
10
10
  status_id?: number;
@@ -1,4 +1,9 @@
1
- export type AdminBoundaryType = {
1
+ export type GeoJSONPosition = [number, number];
2
+ export type GeoJSONPolygonGeometry = {
3
+ type: 'Polygon';
4
+ coordinates: GeoJSONPosition[][];
5
+ };
6
+ export type AdminBoundary = {
2
7
  id: number;
3
8
  parentId?: number | null;
4
9
  active?: boolean;
@@ -13,5 +18,5 @@ export type AdminBoundaryType = {
13
18
  adminCentreNodeId?: number | null;
14
19
  adminCentreNodeLat?: number | null;
15
20
  adminCentreNodeLng?: number | null;
16
- geometry?: any | null;
21
+ geometry?: GeoJSONPolygonGeometry | null;
17
22
  };
@@ -1,4 +1,4 @@
1
- import { AdType } from "./AdType";
1
+ import { Ad } from "./AdType";
2
2
  import { NotificationTokenType } from "./NotificationTokenType";
3
3
  import { SocialMediaProfileType } from "./SocialMediaProfileType";
4
4
  import { WalletType } from "./WalletType";
@@ -17,7 +17,7 @@ export type UserType = {
17
17
  name: string;
18
18
  is_primary: boolean;
19
19
  }>;
20
- ads?: AdType[];
20
+ ads?: Ad[];
21
21
  notificationTokens?: NotificationTokenType[];
22
22
  socialMediaProfiles?: SocialMediaProfileType[];
23
23
  referredUsers?: Array<{
@@ -1,3 +1,3 @@
1
1
  export * from './AdType';
2
- export * from './AdminBoundary';
2
+ export * from './AdminBoundaryType';
3
3
  export * from './PropertyTypeType';
@@ -1,3 +1,3 @@
1
1
  export * from './AdType';
2
- export * from './AdminBoundary';
2
+ export * from './AdminBoundaryType';
3
3
  export * from './PropertyTypeType';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",