@sendhome/common 1.0.114 → 1.0.116

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.
@@ -12,7 +12,7 @@ export interface ModuleCreatedEvent {
12
12
  category: CompanyType;
13
13
  company: string;
14
14
  country: ReceiveCountry;
15
- Locations: string[];
15
+ locations: string[];
16
16
  categories: string[];
17
17
  status: ModuleStatus;
18
18
  created_at: Date;
@@ -12,7 +12,7 @@ export interface ModuleUpdatedEvent {
12
12
  category: CompanyType;
13
13
  company: string;
14
14
  country: ReceiveCountry;
15
- Locations: string[];
15
+ locations: string[];
16
16
  categories: string[];
17
17
  status: ModuleStatus;
18
18
  created_at: Date;
@@ -45,14 +45,10 @@ export interface ProductCreatedEvent {
45
45
  product_type: CompanyType;
46
46
  product_class: ProductClass;
47
47
  category: string;
48
- brand: string;
49
- price: number;
50
48
  unit: UnitType;
51
49
  unit_value: number;
52
50
  properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | IFuelFields | IGasFields | {};
53
51
  status: ProductStatus;
54
- module: string;
55
- company: string;
56
52
  country: Country;
57
53
  created_at: Date;
58
54
  updated_at: Date;
@@ -45,14 +45,10 @@ export interface ProductUpdatedEvent {
45
45
  product_type: CompanyType;
46
46
  product_class: ProductClass;
47
47
  category: string;
48
- brand: string;
49
- price: number;
50
48
  unit: UnitType;
51
49
  unit_value: number;
52
50
  properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | IFuelFields | IGasFields | {};
53
51
  status: ProductStatus;
54
- module: string;
55
- company: string;
56
52
  country: Country;
57
53
  created_at: Date;
58
54
  updated_at: Date;
@@ -0,0 +1,21 @@
1
+ import { Subjects } from "../subjects/subjects";
2
+ import { ProductStatus } from "../types/product-status";
3
+ import { Country } from "../types/country";
4
+ import { CompanyType } from "../types/company-type";
5
+ export interface ProductItemCreatedEvent {
6
+ subject: Subjects.ProductItemCreated;
7
+ data: {
8
+ id: string;
9
+ price: number;
10
+ product_type: CompanyType;
11
+ category: string;
12
+ product: string;
13
+ company: string;
14
+ module: string;
15
+ country: Country;
16
+ status: ProductStatus;
17
+ created_at: Date;
18
+ updated_at: Date;
19
+ version: number;
20
+ };
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { Subjects } from "../subjects/subjects";
2
+ import { ProductStatus } from "../types/product-status";
3
+ import { Country } from "../types/country";
4
+ import { CompanyType } from "../types/company-type";
5
+ export interface ProductItemUpdatedEvent {
6
+ subject: Subjects.ProductItemUpdated;
7
+ data: {
8
+ id: string;
9
+ price: number;
10
+ product_type: CompanyType;
11
+ category: string;
12
+ product: string;
13
+ company: string;
14
+ module: string;
15
+ country: Country;
16
+ status: ProductStatus;
17
+ created_at: Date;
18
+ updated_at: Date;
19
+ version: number;
20
+ };
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,6 +21,8 @@ export declare enum Subjects {
21
21
  MediaUpdated = "media:updated",
22
22
  ProductCreated = "product:created",
23
23
  ProductUpdated = "product:updated",
24
+ ProductItemCreated = "productItem:created",
25
+ ProductItemUpdated = "productItem:updated",
24
26
  CartItemCreated = "cart-item:created",
25
27
  CartItemUpdated = "cart-item:updated",
26
28
  CartItemDeleted = "cart-item:deleted",
@@ -36,6 +36,9 @@ var Subjects;
36
36
  // products
37
37
  Subjects["ProductCreated"] = "product:created";
38
38
  Subjects["ProductUpdated"] = "product:updated";
39
+ // productItems
40
+ Subjects["ProductItemCreated"] = "productItem:created";
41
+ Subjects["ProductItemUpdated"] = "productItem:updated";
39
42
  // cartItem
40
43
  Subjects["CartItemCreated"] = "cart-item:created";
41
44
  Subjects["CartItemUpdated"] = "cart-item:updated";
package/build/index.d.ts CHANGED
@@ -49,6 +49,8 @@ export * from './events/publishers/payment-updated-event';
49
49
  export * from './events/publishers/order-updated-event';
50
50
  export * from './events/publishers/product-created-event';
51
51
  export * from './events/publishers/product-updated-event';
52
+ export * from './events/publishers/productItem-created-event';
53
+ export * from './events/publishers/productItem-updated-event';
52
54
  export * from './events/publishers/recipient-created-event';
53
55
  export * from './events/publishers/recipient-updated-event';
54
56
  export * from './events/publishers/user-created-event';
package/build/index.js CHANGED
@@ -62,6 +62,8 @@ __exportStar(require("./events/publishers/payment-updated-event"), exports);
62
62
  __exportStar(require("./events/publishers/order-updated-event"), exports);
63
63
  __exportStar(require("./events/publishers/product-created-event"), exports);
64
64
  __exportStar(require("./events/publishers/product-updated-event"), exports);
65
+ __exportStar(require("./events/publishers/productItem-created-event"), exports);
66
+ __exportStar(require("./events/publishers/productItem-updated-event"), exports);
65
67
  __exportStar(require("./events/publishers/recipient-created-event"), exports);
66
68
  __exportStar(require("./events/publishers/recipient-updated-event"), exports);
67
69
  __exportStar(require("./events/publishers/user-created-event"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendhome/common",
3
- "version": "1.0.114",
3
+ "version": "1.0.116",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",