@sendhome/common 1.0.210 → 1.0.212

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.
@@ -11,7 +11,7 @@ export interface BranchCreatedEvent {
11
11
  module: string;
12
12
  company: string;
13
13
  country: string;
14
- location: string;
14
+ city: string;
15
15
  version: number;
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ export interface BranchUpdatedEvent {
11
11
  module: string;
12
12
  company: string;
13
13
  country: string;
14
- location: string;
14
+ city: string;
15
15
  version: number;
16
16
  };
17
17
  }
@@ -1,6 +1,5 @@
1
1
  import { Subjects } from "../subjects/subjects";
2
2
  import { BrandStatus } from "../types/brand-status";
3
- import { ReceiveCountry } from "../types/receive-country";
4
3
  import { Category } from "../types/category";
5
4
  export interface BrandCreatedEvent {
6
5
  subject: Subjects.BrandCreated;
@@ -8,7 +7,7 @@ export interface BrandCreatedEvent {
8
7
  id: string;
9
8
  name: string;
10
9
  brand_categories: Category[];
11
- countries: ReceiveCountry[];
10
+ countries: string[];
12
11
  status: BrandStatus;
13
12
  created_at: Date;
14
13
  updated_at: Date;
@@ -1,6 +1,5 @@
1
1
  import { Subjects } from "../subjects/subjects";
2
2
  import { BrandStatus } from "../types/brand-status";
3
- import { ReceiveCountry } from "../types/receive-country";
4
3
  import { Category } from "../types/category";
5
4
  export interface BrandUpdatedEvent {
6
5
  subject: Subjects.BrandUpdated;
@@ -8,7 +7,7 @@ export interface BrandUpdatedEvent {
8
7
  id: string;
9
8
  name: string;
10
9
  brand_categories: Category[];
11
- countries: ReceiveCountry[];
10
+ countries: string[];
12
11
  status: BrandStatus;
13
12
  created_at: Date;
14
13
  updated_at: Date;
@@ -1,8 +1,6 @@
1
1
  import { Subjects } from "../subjects/subjects";
2
2
  import { ModuleStatus } from "../types/module-status";
3
3
  import { Category } from "../types/category";
4
- import { ReceiveCountry } from "../types/receive-country";
5
- import { CompanyCountry } from "../types/company-country";
6
4
  export interface ModuleCreatedEvent {
7
5
  subject: Subjects.ModuleCreated;
8
6
  data: {
@@ -15,12 +13,12 @@ export interface ModuleCreatedEvent {
15
13
  commission: number;
16
14
  delivery_details: {
17
15
  category: string;
18
- locations: string[];
16
+ cities: string[];
19
17
  delivery_rate: number;
20
18
  }[];
21
19
  company: string;
22
- receive_countries: ReceiveCountry[];
23
- country: CompanyCountry;
20
+ receive_countries: string[];
21
+ country: string;
24
22
  status: ModuleStatus;
25
23
  created_at: Date;
26
24
  updated_at: Date;
@@ -1,8 +1,6 @@
1
1
  import { Subjects } from "../subjects/subjects";
2
2
  import { ModuleStatus } from "../types/module-status";
3
3
  import { Category } from "../types/category";
4
- import { ReceiveCountry } from "../types/receive-country";
5
- import { CompanyCountry } from "../types/company-country";
6
4
  export interface ModuleUpdatedEvent {
7
5
  subject: Subjects.ModuleUpdated;
8
6
  data: {
@@ -15,12 +13,12 @@ export interface ModuleUpdatedEvent {
15
13
  commission: number;
16
14
  delivery_details: {
17
15
  category: string;
18
- locations: string[];
16
+ cities: string[];
19
17
  delivery_rate: number;
20
18
  }[];
21
19
  company: string;
22
- receive_countries: ReceiveCountry[];
23
- country: CompanyCountry;
20
+ receive_countries: string[];
21
+ country: string;
24
22
  status: ModuleStatus;
25
23
  created_at: Date;
26
24
  updated_at: Date;
@@ -2,7 +2,6 @@ import { Subjects } from "../subjects/subjects";
2
2
  import { ProductStatus } from "../types/product-status";
3
3
  import { Category } from "../types/category";
4
4
  import { UnitType } from "../types/unit-type";
5
- import { ReceiveCountry } from "../types/receive-country";
6
5
  interface IGroceriesFields {
7
6
  expiration_date?: Date;
8
7
  brand?: string;
@@ -51,18 +50,25 @@ interface IFuelFields {
51
50
  biofuel_content?: string;
52
51
  storage_requirements?: string;
53
52
  }
54
- interface IGasFields {
53
+ interface ILiquorFields {
55
54
  brand?: string;
56
- gas_type?: string;
57
- energy_content?: string;
58
- purity?: string;
59
- density?: string;
60
- boiling_point?: string;
61
- pressure_requirements?: string;
62
- odorant_added?: string;
63
- applications?: string;
64
- storage_requirements?: string;
65
- emissions_rating?: string;
55
+ alcohol_content?: string;
56
+ volume?: string;
57
+ origin?: string;
58
+ flavor_profile?: string;
59
+ aging_info?: string;
60
+ packaging_type?: string;
61
+ }
62
+ interface IAutomotiveFields {
63
+ part_type?: string;
64
+ compatible_models?: string;
65
+ material?: string;
66
+ brand?: string;
67
+ weight?: string;
68
+ volume?: string;
69
+ viscosity_grade?: string;
70
+ specifications?: string;
71
+ usage_notes?: string;
66
72
  }
67
73
  export interface ProductCreatedEvent {
68
74
  subject: Subjects.ProductCreated;
@@ -77,9 +83,9 @@ export interface ProductCreatedEvent {
77
83
  brand: string;
78
84
  unit: UnitType;
79
85
  unit_value: number;
80
- properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | IFuelFields | IGasFields | {};
86
+ properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | ILiquorFields | IAutomotiveFields | {};
81
87
  status: ProductStatus;
82
- country: ReceiveCountry;
88
+ countries: string[];
83
89
  created_at: Date;
84
90
  updated_at: Date;
85
91
  version: number;
@@ -2,7 +2,6 @@ import { Subjects } from "../subjects/subjects";
2
2
  import { ProductStatus } from "../types/product-status";
3
3
  import { Category } from "../types/category";
4
4
  import { UnitType } from "../types/unit-type";
5
- import { ReceiveCountry } from "../types/receive-country";
6
5
  interface IGroceriesFields {
7
6
  expiration_date?: Date;
8
7
  brand?: string;
@@ -51,18 +50,25 @@ interface IFuelFields {
51
50
  biofuel_content?: string;
52
51
  storage_requirements?: string;
53
52
  }
54
- interface IGasFields {
53
+ interface ILiquorFields {
55
54
  brand?: string;
56
- gas_type?: string;
57
- energy_content?: string;
58
- purity?: string;
59
- density?: string;
60
- boiling_point?: string;
61
- pressure_requirements?: string;
62
- odorant_added?: string;
63
- applications?: string;
64
- storage_requirements?: string;
65
- emissions_rating?: string;
55
+ alcohol_content?: string;
56
+ volume?: string;
57
+ origin?: string;
58
+ flavor_profile?: string;
59
+ aging_info?: string;
60
+ packaging_type?: string;
61
+ }
62
+ interface IAutomotiveFields {
63
+ part_type?: string;
64
+ compatible_models?: string;
65
+ material?: string;
66
+ brand?: string;
67
+ weight?: string;
68
+ volume?: string;
69
+ viscosity_grade?: string;
70
+ specifications?: string;
71
+ usage_notes?: string;
66
72
  }
67
73
  export interface ProductUpdatedEvent {
68
74
  subject: Subjects.ProductUpdated;
@@ -77,9 +83,9 @@ export interface ProductUpdatedEvent {
77
83
  brand: string;
78
84
  unit: UnitType;
79
85
  unit_value: number;
80
- properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | IFuelFields | IGasFields | {};
86
+ properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | ILiquorFields | IAutomotiveFields | {};
81
87
  status: ProductStatus;
82
- country: ReceiveCountry;
88
+ countries: string[];
83
89
  created_at: Date;
84
90
  updated_at: Date;
85
91
  version: number;
@@ -4,12 +4,12 @@ export declare enum Category {
4
4
  Electricity = "electricity",
5
5
  Clothing = "clothing",
6
6
  Fuel = "fuel",
7
- Gas = "gas",
8
7
  Furniture = "furniture",
9
8
  Transfer = "transfer",
10
9
  Transport = "transport",
11
10
  Farming = "farming",
12
11
  Pharmacy = "pharmacy",
13
12
  Liquor = "liquor",
14
- Delivery = "delivery"
13
+ Delivery = "delivery",
14
+ Automotive = "automotive"
15
15
  }
@@ -8,7 +8,6 @@ var Category;
8
8
  Category["Electricity"] = "electricity";
9
9
  Category["Clothing"] = "clothing";
10
10
  Category["Fuel"] = "fuel";
11
- Category["Gas"] = "gas";
12
11
  Category["Furniture"] = "furniture";
13
12
  Category["Transfer"] = "transfer";
14
13
  Category["Transport"] = "transport";
@@ -16,4 +15,5 @@ var Category;
16
15
  Category["Pharmacy"] = "pharmacy";
17
16
  Category["Liquor"] = "liquor";
18
17
  Category["Delivery"] = "delivery";
18
+ Category["Automotive"] = "automotive";
19
19
  })(Category = exports.Category || (exports.Category = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendhome/common",
3
- "version": "1.0.210",
3
+ "version": "1.0.212",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",