@sendhome/common 1.0.41 → 1.0.43
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/order-created-event.d.ts +4 -3
- package/build/events/publishers/order-updated-event.d.ts +4 -3
- package/build/events/publishers/recipient-created-event.d.ts +1 -1
- package/build/events/publishers/recipient-updated-event.d.ts +1 -1
- package/build/events/types/receive-country.d.ts +9 -0
- package/build/events/types/receive-country.js +13 -0
- package/build/events/types/send_country.d.ts +9 -0
- package/build/events/types/send_country.js +13 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { OrderStatus } from "../types/order-status";
|
|
3
3
|
import { CompanyType } from "../types/company-type";
|
|
4
|
-
import {
|
|
4
|
+
import { ReceiveCountry } from "../types/receive-country";
|
|
5
5
|
export interface OrderCreatedEvent {
|
|
6
6
|
subject: Subjects.OrderCreated;
|
|
7
7
|
data: {
|
|
8
8
|
id: string;
|
|
9
|
-
order_number:
|
|
9
|
+
order_number: number;
|
|
10
10
|
order_type: CompanyType;
|
|
11
11
|
entity_data: string;
|
|
12
12
|
entity_id: string;
|
|
@@ -14,7 +14,8 @@ export interface OrderCreatedEvent {
|
|
|
14
14
|
sender: string;
|
|
15
15
|
receiver: string;
|
|
16
16
|
company: string;
|
|
17
|
-
|
|
17
|
+
send_country: string;
|
|
18
|
+
receive_country: ReceiveCountry;
|
|
18
19
|
status: OrderStatus;
|
|
19
20
|
created_at: Date;
|
|
20
21
|
updated_at: Date;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { OrderStatus } from "../types/order-status";
|
|
3
3
|
import { CompanyType } from "../types/company-type";
|
|
4
|
-
import {
|
|
4
|
+
import { ReceiveCountry } from "../types/receive-country";
|
|
5
5
|
export interface OrderUpdatedEvent {
|
|
6
6
|
subject: Subjects.OrderUpdated;
|
|
7
7
|
data: {
|
|
8
8
|
id: string;
|
|
9
|
-
order_number:
|
|
9
|
+
order_number: number;
|
|
10
10
|
order_type: CompanyType;
|
|
11
11
|
entity_data: string;
|
|
12
12
|
entity_id: string;
|
|
@@ -14,7 +14,8 @@ export interface OrderUpdatedEvent {
|
|
|
14
14
|
sender: string;
|
|
15
15
|
receiver: string;
|
|
16
16
|
company: string;
|
|
17
|
-
|
|
17
|
+
send_country: string;
|
|
18
|
+
receive_country: ReceiveCountry;
|
|
18
19
|
status: OrderStatus;
|
|
19
20
|
created_at: Date;
|
|
20
21
|
updated_at: Date;
|
|
@@ -4,12 +4,12 @@ export interface RecipientCreatedEvent {
|
|
|
4
4
|
subject: Subjects.RecipientCreated;
|
|
5
5
|
data: {
|
|
6
6
|
id: string;
|
|
7
|
+
recipient_id: number;
|
|
7
8
|
name: string;
|
|
8
9
|
surname: string;
|
|
9
10
|
national_id: string;
|
|
10
11
|
email: string;
|
|
11
12
|
phone: string;
|
|
12
|
-
address: string;
|
|
13
13
|
status: RecipientStatus;
|
|
14
14
|
created_at: Date;
|
|
15
15
|
updated_at: Date;
|
|
@@ -4,12 +4,12 @@ export interface RecipientUpdatedEvent {
|
|
|
4
4
|
subject: Subjects.RecipientUpdated;
|
|
5
5
|
data: {
|
|
6
6
|
id: string;
|
|
7
|
+
recipient_id: number;
|
|
7
8
|
name: string;
|
|
8
9
|
surname: string;
|
|
9
10
|
national_id: string;
|
|
10
11
|
email: string;
|
|
11
12
|
phone: string;
|
|
12
|
-
address: string;
|
|
13
13
|
status: RecipientStatus;
|
|
14
14
|
created_at: Date;
|
|
15
15
|
updated_at: Date;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReceiveCountry = void 0;
|
|
4
|
+
var ReceiveCountry;
|
|
5
|
+
(function (ReceiveCountry) {
|
|
6
|
+
ReceiveCountry["Zimbabwe"] = "zw";
|
|
7
|
+
ReceiveCountry["Botswana"] = "bw";
|
|
8
|
+
ReceiveCountry["SouthAfrica"] = "za";
|
|
9
|
+
ReceiveCountry["Namibia"] = "na";
|
|
10
|
+
ReceiveCountry["Malawi"] = "mw";
|
|
11
|
+
ReceiveCountry["Zambia"] = "zm";
|
|
12
|
+
ReceiveCountry["Mozambique"] = "mz";
|
|
13
|
+
})(ReceiveCountry = exports.ReceiveCountry || (exports.ReceiveCountry = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendCountry = void 0;
|
|
4
|
+
var SendCountry;
|
|
5
|
+
(function (SendCountry) {
|
|
6
|
+
SendCountry["Zimbabwe"] = "zw";
|
|
7
|
+
SendCountry["Botswana"] = "bw";
|
|
8
|
+
SendCountry["SouthAfrica"] = "za";
|
|
9
|
+
SendCountry["Namibia"] = "na";
|
|
10
|
+
SendCountry["Malawi"] = "mw";
|
|
11
|
+
SendCountry["Zambia"] = "zm";
|
|
12
|
+
SendCountry["Mozambique"] = "mz";
|
|
13
|
+
})(SendCountry = exports.SendCountry || (exports.SendCountry = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './events/types/country';
|
|
|
49
49
|
export * from './events/types/media-status';
|
|
50
50
|
export * from './events/types/order-status';
|
|
51
51
|
export * from './events/types/product-status';
|
|
52
|
+
export * from './events/types/receive-country';
|
|
52
53
|
export * from './events/types/recipient-status';
|
|
53
54
|
export * from './events/types/user-roles';
|
|
54
55
|
export * from './events/types/user-status';
|
package/build/index.js
CHANGED
|
@@ -62,6 +62,7 @@ __exportStar(require("./events/types/country"), exports);
|
|
|
62
62
|
__exportStar(require("./events/types/media-status"), exports);
|
|
63
63
|
__exportStar(require("./events/types/order-status"), exports);
|
|
64
64
|
__exportStar(require("./events/types/product-status"), exports);
|
|
65
|
+
__exportStar(require("./events/types/receive-country"), exports);
|
|
65
66
|
__exportStar(require("./events/types/recipient-status"), exports);
|
|
66
67
|
__exportStar(require("./events/types/user-roles"), exports);
|
|
67
68
|
__exportStar(require("./events/types/user-status"), exports);
|