@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.
- package/build/events/publishers/company-created-event.d.ts +2 -0
- package/build/events/publishers/company-updated-event.d.ts +2 -0
- package/build/events/publishers/location-created-event.d.ts +14 -0
- package/build/events/publishers/location-created-event.js +2 -0
- package/build/events/publishers/location-updated-event.d.ts +14 -0
- package/build/events/publishers/location-updated-event.js +2 -0
- package/build/events/publishers/module-created-event.d.ts +5 -1
- package/build/events/publishers/module-updated-event.d.ts +5 -1
- package/build/events/publishers/order-created-event.d.ts +2 -0
- package/build/events/publishers/order-updated-event.d.ts +2 -0
- package/build/events/publishers/product-created-event.d.ts +2 -1
- package/build/events/publishers/product-updated-event.d.ts +2 -1
- package/build/events/subjects/subjects.d.ts +2 -0
- package/build/events/subjects/subjects.js +3 -0
- package/build/events/types/company-type.d.ts +1 -0
- package/build/events/types/company-type.js +1 -0
- package/build/events/types/product_class.d.ts +6 -0
- package/build/events/types/product_class.js +10 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/package.json +1 -1
|
@@ -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,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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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:
|
|
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:
|
|
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";
|
|
@@ -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,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);
|