@sendhome/common 1.0.89 → 1.0.91
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 +17 -0
- package/build/events/publishers/module-updated-event.d.ts +17 -0
- 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 -2
- package/build/index.js +3 -2
- package/package.json +1 -1
- package/build/events/publishers/media-created-event.d.ts +0 -18
- package/build/events/publishers/media-updated-event.d.ts +0 -18
- /package/build/events/publishers/{media-created-event.js → module-created-event.js} +0 -0
- /package/build/events/publishers/{media-updated-event.js → module-updated-event.js} +0 -0
|
@@ -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,17 @@
|
|
|
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
|
+
id: string;
|
|
9
|
+
module_id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
category: CompanyType;
|
|
12
|
+
status: ModuleStatus;
|
|
13
|
+
company: string;
|
|
14
|
+
country: Country;
|
|
15
|
+
version: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
id: string;
|
|
9
|
+
module_id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
category: CompanyType;
|
|
12
|
+
status: ModuleStatus;
|
|
13
|
+
company: string;
|
|
14
|
+
country: Country;
|
|
15
|
+
version: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -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
|
@@ -32,8 +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/
|
|
36
|
-
export * from './events/publishers/
|
|
35
|
+
export * from './events/publishers/module-created-event';
|
|
36
|
+
export * from './events/publishers/module-updated-event';
|
|
37
37
|
export * from './events/publishers/order-collected-event';
|
|
38
38
|
export * from './events/publishers/order-created-event';
|
|
39
39
|
export * from './events/publishers/order-expiration-completed';
|
|
@@ -58,6 +58,7 @@ export * from './events/types/company-type';
|
|
|
58
58
|
export * from './events/types/country';
|
|
59
59
|
export * from './events/types/coupon-status';
|
|
60
60
|
export * from './events/types/media-status';
|
|
61
|
+
export * from './events/types/module-status';
|
|
61
62
|
export * from './events/types/order-status';
|
|
62
63
|
export * from './events/types/product-status';
|
|
63
64
|
export * from './events/types/receive-country';
|
package/build/index.js
CHANGED
|
@@ -45,8 +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/
|
|
49
|
-
__exportStar(require("./events/publishers/
|
|
48
|
+
__exportStar(require("./events/publishers/module-created-event"), exports);
|
|
49
|
+
__exportStar(require("./events/publishers/module-updated-event"), exports);
|
|
50
50
|
__exportStar(require("./events/publishers/order-collected-event"), exports);
|
|
51
51
|
__exportStar(require("./events/publishers/order-created-event"), exports);
|
|
52
52
|
__exportStar(require("./events/publishers/order-expiration-completed"), exports);
|
|
@@ -71,6 +71,7 @@ __exportStar(require("./events/types/company-type"), exports);
|
|
|
71
71
|
__exportStar(require("./events/types/country"), exports);
|
|
72
72
|
__exportStar(require("./events/types/coupon-status"), exports);
|
|
73
73
|
__exportStar(require("./events/types/media-status"), exports);
|
|
74
|
+
__exportStar(require("./events/types/module-status"), exports);
|
|
74
75
|
__exportStar(require("./events/types/order-status"), exports);
|
|
75
76
|
__exportStar(require("./events/types/product-status"), exports);
|
|
76
77
|
__exportStar(require("./events/types/receive-country"), exports);
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Subjects } from "../subjects/subjects";
|
|
2
|
-
import { MediaStatus } from "../types/media-status";
|
|
3
|
-
import { Country } from "../types/country";
|
|
4
|
-
export interface MediaCreatedEvent {
|
|
5
|
-
subject: Subjects.MediaCreated;
|
|
6
|
-
data: {
|
|
7
|
-
id: string;
|
|
8
|
-
location: {};
|
|
9
|
-
product: string;
|
|
10
|
-
media_type: string;
|
|
11
|
-
status: MediaStatus;
|
|
12
|
-
company: string;
|
|
13
|
-
country: Country;
|
|
14
|
-
created_at: Date;
|
|
15
|
-
updated_at: Date;
|
|
16
|
-
version: number;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Subjects } from "../subjects/subjects";
|
|
2
|
-
import { MediaStatus } from "../types/media-status";
|
|
3
|
-
import { Country } from "../types/country";
|
|
4
|
-
export interface MediaUpdatedEvent {
|
|
5
|
-
subject: Subjects.MediaUpdated;
|
|
6
|
-
data: {
|
|
7
|
-
id: string;
|
|
8
|
-
location: {};
|
|
9
|
-
product: string;
|
|
10
|
-
media_type: string;
|
|
11
|
-
status: MediaStatus;
|
|
12
|
-
company: string;
|
|
13
|
-
country: Country;
|
|
14
|
-
created_at: Date;
|
|
15
|
-
updated_at: Date;
|
|
16
|
-
version: number;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|