@sendhome/common 1.0.88 → 1.0.90
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/branch-created-event.d.ts +1 -0
- package/build/events/publishers/branch-updated-event.d.ts +1 -0
- package/build/events/publishers/company-created-event.d.ts +0 -2
- package/build/events/publishers/company-updated-event.d.ts +0 -2
- package/build/events/publishers/module-created-event.d.ts +16 -0
- package/build/events/publishers/module-created-event.js +2 -0
- package/build/events/publishers/module-updated-event.d.ts +16 -0
- package/build/events/publishers/module-updated-event.js +2 -0
- package/build/events/publishers/product-created-event.d.ts +2 -2
- package/build/events/publishers/product-updated-event.d.ts +2 -2
- 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 +2 -1
- package/build/events/types/company-type.js +1 -0
- package/build/events/types/module-status.d.ts +6 -0
- package/build/events/types/module-status.js +14 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { CompanyStatus } from "../types/company-status";
|
|
3
|
-
import { CompanyType } from "../types/company-type";
|
|
4
3
|
import { ReceiveCountry } from "../types/receive-country";
|
|
5
4
|
export interface CompanyCreatedEvent {
|
|
6
5
|
subject: Subjects.CompanyCreated;
|
|
@@ -14,7 +13,6 @@ export interface CompanyCreatedEvent {
|
|
|
14
13
|
landlines: string[];
|
|
15
14
|
email: string;
|
|
16
15
|
address: string;
|
|
17
|
-
type: CompanyType;
|
|
18
16
|
send_country: string;
|
|
19
17
|
country: ReceiveCountry;
|
|
20
18
|
currency: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { CompanyStatus } from "../types/company-status";
|
|
3
|
-
import { CompanyType } from "../types/company-type";
|
|
4
3
|
import { ReceiveCountry } from "../types/receive-country";
|
|
5
4
|
export interface CompanyUpdatedEvent {
|
|
6
5
|
subject: Subjects.CompanyUpdated;
|
|
@@ -14,7 +13,6 @@ export interface CompanyUpdatedEvent {
|
|
|
14
13
|
landlines: string[];
|
|
15
14
|
email: string;
|
|
16
15
|
address: string;
|
|
17
|
-
type: CompanyType;
|
|
18
16
|
send_country: string;
|
|
19
17
|
country: ReceiveCountry;
|
|
20
18
|
currency: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Subjects } from "../subjects/subjects";
|
|
2
|
+
import { ModuleStatus } from "../types/module-status";
|
|
3
|
+
import { CompanyType } from "../types/company-type";
|
|
4
|
+
import { Country } from "../types/country";
|
|
5
|
+
export interface ModuleCreatedEvent {
|
|
6
|
+
subject: Subjects.ModuleCreated;
|
|
7
|
+
data: {
|
|
8
|
+
module_id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
category: CompanyType;
|
|
11
|
+
status: ModuleStatus;
|
|
12
|
+
company: string;
|
|
13
|
+
country: Country;
|
|
14
|
+
version: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Subjects } from "../subjects/subjects";
|
|
2
|
+
import { ModuleStatus } from "../types/module-status";
|
|
3
|
+
import { CompanyType } from "../types/company-type";
|
|
4
|
+
import { Country } from "../types/country";
|
|
5
|
+
export interface ModuleUpdatedEvent {
|
|
6
|
+
subject: Subjects.ModuleUpdated;
|
|
7
|
+
data: {
|
|
8
|
+
module_id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
category: CompanyType;
|
|
11
|
+
status: ModuleStatus;
|
|
12
|
+
company: string;
|
|
13
|
+
country: Country;
|
|
14
|
+
version: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -38,8 +38,8 @@ export interface ProductCreatedEvent {
|
|
|
38
38
|
category: string;
|
|
39
39
|
brand: string;
|
|
40
40
|
price: number;
|
|
41
|
-
unit
|
|
42
|
-
|
|
41
|
+
unit: UnitType;
|
|
42
|
+
unit_value: number;
|
|
43
43
|
properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelCouponFields | {};
|
|
44
44
|
status: ProductStatus;
|
|
45
45
|
company: string;
|
|
@@ -38,8 +38,8 @@ export interface ProductUpdatedEvent {
|
|
|
38
38
|
category: string;
|
|
39
39
|
brand: string;
|
|
40
40
|
price: number;
|
|
41
|
-
unit
|
|
42
|
-
|
|
41
|
+
unit: UnitType;
|
|
42
|
+
unit_value: number;
|
|
43
43
|
properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelCouponFields | {};
|
|
44
44
|
status: ProductStatus;
|
|
45
45
|
company: string;
|
|
@@ -5,6 +5,8 @@ export declare enum Subjects {
|
|
|
5
5
|
BonusAwarded = "bonus:awarded",
|
|
6
6
|
CompanyCreated = "company:created",
|
|
7
7
|
CompanyUpdated = "company:updated",
|
|
8
|
+
ModuleCreated = "module:created",
|
|
9
|
+
ModuleUpdated = "module:updated",
|
|
8
10
|
BranchCreated = "branch:created",
|
|
9
11
|
BranchUpdated = "branch:updated",
|
|
10
12
|
RecipientCreated = "recipient:created",
|
|
@@ -12,6 +12,9 @@ var Subjects;
|
|
|
12
12
|
// company
|
|
13
13
|
Subjects["CompanyCreated"] = "company:created";
|
|
14
14
|
Subjects["CompanyUpdated"] = "company:updated";
|
|
15
|
+
// module
|
|
16
|
+
Subjects["ModuleCreated"] = "module:created";
|
|
17
|
+
Subjects["ModuleUpdated"] = "module:updated";
|
|
15
18
|
// branches
|
|
16
19
|
Subjects["BranchCreated"] = "branch:created";
|
|
17
20
|
Subjects["BranchUpdated"] = "branch:updated";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModuleStatus = void 0;
|
|
4
|
+
var ModuleStatus;
|
|
5
|
+
(function (ModuleStatus) {
|
|
6
|
+
// Company created
|
|
7
|
+
ModuleStatus["Created"] = "created";
|
|
8
|
+
// Company active
|
|
9
|
+
ModuleStatus["Active"] = "active";
|
|
10
|
+
// Company inactive
|
|
11
|
+
ModuleStatus["Inactive"] = "inactive";
|
|
12
|
+
// Company archived
|
|
13
|
+
ModuleStatus["Archived"] = "archived";
|
|
14
|
+
})(ModuleStatus = exports.ModuleStatus || (exports.ModuleStatus = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export * from './events/publishers/coupon-updated-event';
|
|
|
34
34
|
export * from './events/publishers/coupon-expired-event';
|
|
35
35
|
export * from './events/publishers/media-created-event';
|
|
36
36
|
export * from './events/publishers/media-updated-event';
|
|
37
|
+
export * from './events/publishers/module-created-event';
|
|
38
|
+
export * from './events/publishers/module-updated-event';
|
|
37
39
|
export * from './events/publishers/order-collected-event';
|
|
38
40
|
export * from './events/publishers/order-created-event';
|
|
39
41
|
export * from './events/publishers/order-expiration-completed';
|
|
@@ -58,6 +60,7 @@ export * from './events/types/company-type';
|
|
|
58
60
|
export * from './events/types/country';
|
|
59
61
|
export * from './events/types/coupon-status';
|
|
60
62
|
export * from './events/types/media-status';
|
|
63
|
+
export * from './events/types/module-status';
|
|
61
64
|
export * from './events/types/order-status';
|
|
62
65
|
export * from './events/types/product-status';
|
|
63
66
|
export * from './events/types/receive-country';
|
package/build/index.js
CHANGED
|
@@ -47,6 +47,8 @@ __exportStar(require("./events/publishers/coupon-updated-event"), exports);
|
|
|
47
47
|
__exportStar(require("./events/publishers/coupon-expired-event"), exports);
|
|
48
48
|
__exportStar(require("./events/publishers/media-created-event"), exports);
|
|
49
49
|
__exportStar(require("./events/publishers/media-updated-event"), exports);
|
|
50
|
+
__exportStar(require("./events/publishers/module-created-event"), exports);
|
|
51
|
+
__exportStar(require("./events/publishers/module-updated-event"), exports);
|
|
50
52
|
__exportStar(require("./events/publishers/order-collected-event"), exports);
|
|
51
53
|
__exportStar(require("./events/publishers/order-created-event"), exports);
|
|
52
54
|
__exportStar(require("./events/publishers/order-expiration-completed"), exports);
|
|
@@ -71,6 +73,7 @@ __exportStar(require("./events/types/company-type"), exports);
|
|
|
71
73
|
__exportStar(require("./events/types/country"), exports);
|
|
72
74
|
__exportStar(require("./events/types/coupon-status"), exports);
|
|
73
75
|
__exportStar(require("./events/types/media-status"), exports);
|
|
76
|
+
__exportStar(require("./events/types/module-status"), exports);
|
|
74
77
|
__exportStar(require("./events/types/order-status"), exports);
|
|
75
78
|
__exportStar(require("./events/types/product-status"), exports);
|
|
76
79
|
__exportStar(require("./events/types/receive-country"), exports);
|