@sendhome/common 1.0.221 → 1.0.225

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,4 +1,9 @@
1
1
  import { Subjects } from "../subjects/subjects";
2
+ declare enum ZoneType {
3
+ Urban = "urban",
4
+ Suburban = "suburban",
5
+ Rural = "rural"
6
+ }
2
7
  export interface CityCreatedEvent {
3
8
  subject: Subjects.CityCreated;
4
9
  data: {
@@ -6,11 +11,16 @@ export interface CityCreatedEvent {
6
11
  name: string;
7
12
  country: string;
8
13
  state: string;
14
+ zone_type: ZoneType;
15
+ serviced_by_city: string;
16
+ distance_from_servicing_city: number;
9
17
  latitude: number;
10
18
  longitude: number;
11
19
  active: boolean;
20
+ slug: string;
12
21
  created_at: Date;
13
22
  updated_at: Date;
14
23
  version: number;
15
24
  };
16
25
  }
26
+ export {};
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ZoneType;
4
+ (function (ZoneType) {
5
+ ZoneType["Urban"] = "urban";
6
+ ZoneType["Suburban"] = "suburban";
7
+ ZoneType["Rural"] = "rural";
8
+ })(ZoneType || (ZoneType = {}));
@@ -1,4 +1,9 @@
1
1
  import { Subjects } from "../subjects/subjects";
2
+ declare enum ZoneType {
3
+ Urban = "urban",
4
+ Suburban = "suburban",
5
+ Rural = "rural"
6
+ }
2
7
  export interface CityUpdatedEvent {
3
8
  subject: Subjects.CityUpdated;
4
9
  data: {
@@ -6,11 +11,16 @@ export interface CityUpdatedEvent {
6
11
  name: string;
7
12
  country: string;
8
13
  state: string;
14
+ zone_type: ZoneType;
15
+ serviced_by_city: string;
16
+ distance_from_servicing_city: number;
9
17
  latitude: number;
10
18
  longitude: number;
11
19
  active: boolean;
20
+ slug: string;
12
21
  created_at: Date;
13
22
  updated_at: Date;
14
23
  version: number;
15
24
  };
16
25
  }
26
+ export {};
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ZoneType;
4
+ (function (ZoneType) {
5
+ ZoneType["Urban"] = "urban";
6
+ ZoneType["Suburban"] = "suburban";
7
+ ZoneType["Rural"] = "rural";
8
+ })(ZoneType || (ZoneType = {}));
@@ -10,6 +10,7 @@ export interface CountryCreatedEvent {
10
10
  can_send: boolean;
11
11
  can_receive: boolean;
12
12
  active: boolean;
13
+ slug: string;
13
14
  created_at: Date;
14
15
  updated_at: Date;
15
16
  version: number;
@@ -10,6 +10,7 @@ export interface CountryUpdatedEvent {
10
10
  can_send: boolean;
11
11
  can_receive: boolean;
12
12
  active: boolean;
13
+ slug: string;
13
14
  created_at: Date;
14
15
  updated_at: Date;
15
16
  version: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendhome/common",
3
- "version": "1.0.221",
3
+ "version": "1.0.225",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",