@sendhome/common 1.0.111 → 1.0.114

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.
@@ -16,6 +16,8 @@ export interface CompanyCreatedEvent {
16
16
  send_country: string;
17
17
  country: ReceiveCountry;
18
18
  currency: string;
19
+ created_at: Date;
20
+ updated_at: Date;
19
21
  status: CompanyStatus;
20
22
  version: number;
21
23
  };
@@ -16,6 +16,8 @@ export interface CompanyUpdatedEvent {
16
16
  send_country: string;
17
17
  country: ReceiveCountry;
18
18
  currency: string;
19
+ created_at: Date;
20
+ updated_at: Date;
19
21
  status: CompanyStatus;
20
22
  version: number;
21
23
  };
@@ -0,0 +1,14 @@
1
+ import { Subjects } from "../subjects/subjects";
2
+ import { ReceiveCountry } from "../types/receive-country";
3
+ export interface LocationCreatedEvent {
4
+ subject: Subjects.LocationCreated;
5
+ data: {
6
+ id: string;
7
+ city: string;
8
+ country: ReceiveCountry;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ status: string;
12
+ version: number;
13
+ };
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { Subjects } from "../subjects/subjects";
2
+ import { ReceiveCountry } from "../types/receive-country";
3
+ export interface LocationUpdatedEvent {
4
+ subject: Subjects.LocationUpdated;
5
+ data: {
6
+ id: string;
7
+ city: string;
8
+ country: ReceiveCountry;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ status: string;
12
+ version: number;
13
+ };
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,9 +10,13 @@ export interface ModuleCreatedEvent {
10
10
  module_id: number;
11
11
  name: string;
12
12
  category: CompanyType;
13
- status: ModuleStatus;
14
13
  company: string;
15
14
  country: ReceiveCountry;
15
+ Locations: string[];
16
+ categories: string[];
17
+ status: ModuleStatus;
18
+ created_at: Date;
19
+ updated_at: Date;
16
20
  version: number;
17
21
  };
18
22
  }
@@ -10,9 +10,13 @@ export interface ModuleUpdatedEvent {
10
10
  module_id: number;
11
11
  name: string;
12
12
  category: CompanyType;
13
- status: ModuleStatus;
14
13
  company: string;
15
14
  country: ReceiveCountry;
15
+ Locations: string[];
16
+ categories: string[];
17
+ status: ModuleStatus;
18
+ created_at: Date;
19
+ updated_at: Date;
16
20
  version: number;
17
21
  };
18
22
  }
@@ -50,6 +50,8 @@ export interface OrderCreatedEvent {
50
50
  receiver: string;
51
51
  module: string;
52
52
  company: string;
53
+ transportModule: string;
54
+ location: string;
53
55
  warning_date: Date;
54
56
  expire_date: Date;
55
57
  status: OrderStatus;
@@ -50,6 +50,8 @@ export interface OrderUpdatedEvent {
50
50
  receiver: string;
51
51
  module: string;
52
52
  company: string;
53
+ transportModule: string;
54
+ location: string;
53
55
  warning_date: Date;
54
56
  expire_date: Date;
55
57
  status: OrderStatus;
@@ -1,4 +1,5 @@
1
1
  import { Subjects } from "../subjects/subjects";
2
+ import { ProductClass } from "../types/product_class";
2
3
  import { ProductStatus } from "../types/product-status";
3
4
  import { CompanyType } from "../types/company-type";
4
5
  import { UnitType } from "../types/unit-type";
@@ -42,7 +43,7 @@ export interface ProductCreatedEvent {
42
43
  name: string;
43
44
  description: string;
44
45
  product_type: CompanyType;
45
- product_class: "general" | "diesel" | "petrol" | "lp";
46
+ product_class: ProductClass;
46
47
  category: string;
47
48
  brand: string;
48
49
  price: number;
@@ -1,4 +1,5 @@
1
1
  import { Subjects } from "../subjects/subjects";
2
+ import { ProductClass } from "../types/product_class";
2
3
  import { ProductStatus } from "../types/product-status";
3
4
  import { CompanyType } from "../types/company-type";
4
5
  import { UnitType } from "../types/unit-type";
@@ -42,7 +43,7 @@ export interface ProductUpdatedEvent {
42
43
  name: string;
43
44
  description: string;
44
45
  product_type: CompanyType;
45
- product_class: "general" | "diesel" | "petrol" | "lp";
46
+ product_class: ProductClass;
46
47
  category: string;
47
48
  brand: string;
48
49
  price: number;
@@ -5,6 +5,8 @@ export declare enum Subjects {
5
5
  BonusAwarded = "bonus:awarded",
6
6
  CompanyCreated = "company:created",
7
7
  CompanyUpdated = "company:updated",
8
+ LocationCreated = "location:created",
9
+ LocationUpdated = "location:updated",
8
10
  ModuleCreated = "module:created",
9
11
  ModuleUpdated = "module:updated",
10
12
  BranchCreated = "branch:created",
@@ -12,6 +12,9 @@ var Subjects;
12
12
  // company
13
13
  Subjects["CompanyCreated"] = "company:created";
14
14
  Subjects["CompanyUpdated"] = "company:updated";
15
+ // company
16
+ Subjects["LocationCreated"] = "location:created";
17
+ Subjects["LocationUpdated"] = "location:updated";
15
18
  // module
16
19
  Subjects["ModuleCreated"] = "module:created";
17
20
  Subjects["ModuleUpdated"] = "module:updated";
@@ -7,6 +7,7 @@ export declare enum CompanyType {
7
7
  Gas = "gas",
8
8
  Furniture = "furniture",
9
9
  Transfer = "transfer",
10
+ Transport = "transport",
10
11
  Farming = "farming",
11
12
  Pharmacy = "pharmacy",
12
13
  Liquor = "liquor"
@@ -11,6 +11,7 @@ var CompanyType;
11
11
  CompanyType["Gas"] = "gas";
12
12
  CompanyType["Furniture"] = "furniture";
13
13
  CompanyType["Transfer"] = "transfer";
14
+ CompanyType["Transport"] = "transport";
14
15
  CompanyType["Farming"] = "farming";
15
16
  CompanyType["Pharmacy"] = "pharmacy";
16
17
  CompanyType["Liquor"] = "liquor";
@@ -0,0 +1,6 @@
1
+ export declare enum ProductClass {
2
+ General = "general",
3
+ Diesel = "diesel",
4
+ Petrol = "petrol",
5
+ Lp = "lp"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductClass = void 0;
4
+ var ProductClass;
5
+ (function (ProductClass) {
6
+ ProductClass["General"] = "general";
7
+ ProductClass["Diesel"] = "diesel";
8
+ ProductClass["Petrol"] = "petrol";
9
+ ProductClass["Lp"] = "lp";
10
+ })(ProductClass = exports.ProductClass || (exports.ProductClass = {}));
package/build/index.d.ts CHANGED
@@ -32,6 +32,8 @@ export * from './events/publishers/company-updated-event';
32
32
  export * from './events/publishers/coupon-created-event';
33
33
  export * from './events/publishers/coupon-updated-event';
34
34
  export * from './events/publishers/coupon-expired-event';
35
+ export * from './events/publishers/location-created-event';
36
+ export * from './events/publishers/location-updated-event';
35
37
  export * from './events/publishers/module-created-event';
36
38
  export * from './events/publishers/module-updated-event';
37
39
  export * from './events/publishers/order-cancellation-created-event';
@@ -67,6 +69,7 @@ export * from './events/types/module-status';
67
69
  export * from './events/types/order-cancellation-status';
68
70
  export * from './events/types/order-status';
69
71
  export * from './events/types/payment-status';
72
+ export * from './events/types/product_class';
70
73
  export * from './events/types/product-status';
71
74
  export * from './events/types/receive-country';
72
75
  export * from './events/types/recipient-status';
package/build/index.js CHANGED
@@ -45,6 +45,8 @@ __exportStar(require("./events/publishers/company-updated-event"), exports);
45
45
  __exportStar(require("./events/publishers/coupon-created-event"), exports);
46
46
  __exportStar(require("./events/publishers/coupon-updated-event"), exports);
47
47
  __exportStar(require("./events/publishers/coupon-expired-event"), exports);
48
+ __exportStar(require("./events/publishers/location-created-event"), exports);
49
+ __exportStar(require("./events/publishers/location-updated-event"), exports);
48
50
  __exportStar(require("./events/publishers/module-created-event"), exports);
49
51
  __exportStar(require("./events/publishers/module-updated-event"), exports);
50
52
  __exportStar(require("./events/publishers/order-cancellation-created-event"), exports);
@@ -80,6 +82,7 @@ __exportStar(require("./events/types/module-status"), exports);
80
82
  __exportStar(require("./events/types/order-cancellation-status"), exports);
81
83
  __exportStar(require("./events/types/order-status"), exports);
82
84
  __exportStar(require("./events/types/payment-status"), exports);
85
+ __exportStar(require("./events/types/product_class"), exports);
83
86
  __exportStar(require("./events/types/product-status"), exports);
84
87
  __exportStar(require("./events/types/receive-country"), exports);
85
88
  __exportStar(require("./events/types/recipient-status"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendhome/common",
3
- "version": "1.0.111",
3
+ "version": "1.0.114",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",