@sendhome/common 1.0.63 → 1.0.64
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 +2 -1
- package/build/events/publishers/order-updated-event.d.ts +2 -1
- package/build/events/types/receive-country.d.ts +8 -7
- package/build/events/types/receive-country.js +8 -7
- package/build/events/types/send-country.d.ts +12 -0
- package/build/events/types/send-country.js +16 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/package.json +1 -1
- package/build/events/types/send_country.d.ts +0 -9
- package/build/events/types/send_country.js +0 -13
|
@@ -2,6 +2,7 @@ import { Subjects } from "../subjects/subjects";
|
|
|
2
2
|
import { OrderStatus } from "../types/order-status";
|
|
3
3
|
import { CompanyType } from "../types/company-type";
|
|
4
4
|
import { ReceiveCountry } from "../types/receive-country";
|
|
5
|
+
import { SendCountry } from "../types/send-country";
|
|
5
6
|
export interface OrderCreatedEvent {
|
|
6
7
|
subject: Subjects.OrderCreated;
|
|
7
8
|
data: {
|
|
@@ -22,7 +23,7 @@ export interface OrderCreatedEvent {
|
|
|
22
23
|
fee: number;
|
|
23
24
|
commission_ratio: number;
|
|
24
25
|
commission: number;
|
|
25
|
-
send_country:
|
|
26
|
+
send_country: SendCountry;
|
|
26
27
|
receive_country: ReceiveCountry;
|
|
27
28
|
sender: string;
|
|
28
29
|
receiver: string;
|
|
@@ -2,6 +2,7 @@ import { Subjects } from "../subjects/subjects";
|
|
|
2
2
|
import { OrderStatus } from "../types/order-status";
|
|
3
3
|
import { CompanyType } from "../types/company-type";
|
|
4
4
|
import { ReceiveCountry } from "../types/receive-country";
|
|
5
|
+
import { SendCountry } from "../types/send-country";
|
|
5
6
|
export interface OrderUpdatedEvent {
|
|
6
7
|
subject: Subjects.OrderUpdated;
|
|
7
8
|
data: {
|
|
@@ -22,7 +23,7 @@ export interface OrderUpdatedEvent {
|
|
|
22
23
|
fee: number;
|
|
23
24
|
commission_ratio: number;
|
|
24
25
|
commission: number;
|
|
25
|
-
send_country:
|
|
26
|
+
send_country: SendCountry;
|
|
26
27
|
receive_country: ReceiveCountry;
|
|
27
28
|
sender: string;
|
|
28
29
|
receiver: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare enum ReceiveCountry {
|
|
2
|
-
Zimbabwe = "
|
|
3
|
-
Botswana = "
|
|
4
|
-
SouthAfrica = "
|
|
5
|
-
Namibia = "
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
Zimbabwe = "ZW",
|
|
3
|
+
Botswana = "BW",
|
|
4
|
+
SouthAfrica = "ZA",
|
|
5
|
+
Namibia = "NA",
|
|
6
|
+
Nigeria = "NG",
|
|
7
|
+
Malawi = "MW",
|
|
8
|
+
Zambia = "ZM",
|
|
9
|
+
Mozambique = "MZ"
|
|
9
10
|
}
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ReceiveCountry = void 0;
|
|
4
4
|
var ReceiveCountry;
|
|
5
5
|
(function (ReceiveCountry) {
|
|
6
|
-
ReceiveCountry["Zimbabwe"] = "
|
|
7
|
-
ReceiveCountry["Botswana"] = "
|
|
8
|
-
ReceiveCountry["SouthAfrica"] = "
|
|
9
|
-
ReceiveCountry["Namibia"] = "
|
|
10
|
-
ReceiveCountry["
|
|
11
|
-
ReceiveCountry["
|
|
12
|
-
ReceiveCountry["
|
|
6
|
+
ReceiveCountry["Zimbabwe"] = "ZW";
|
|
7
|
+
ReceiveCountry["Botswana"] = "BW";
|
|
8
|
+
ReceiveCountry["SouthAfrica"] = "ZA";
|
|
9
|
+
ReceiveCountry["Namibia"] = "NA";
|
|
10
|
+
ReceiveCountry["Nigeria"] = "NG";
|
|
11
|
+
ReceiveCountry["Malawi"] = "MW";
|
|
12
|
+
ReceiveCountry["Zambia"] = "ZM";
|
|
13
|
+
ReceiveCountry["Mozambique"] = "MZ";
|
|
13
14
|
})(ReceiveCountry = exports.ReceiveCountry || (exports.ReceiveCountry = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendCountry = void 0;
|
|
4
|
+
var SendCountry;
|
|
5
|
+
(function (SendCountry) {
|
|
6
|
+
SendCountry["Germany"] = "DE";
|
|
7
|
+
SendCountry["Denmark"] = "DK";
|
|
8
|
+
SendCountry["Spain"] = "ES";
|
|
9
|
+
SendCountry["Greece"] = "GR";
|
|
10
|
+
SendCountry["Ireland"] = "IE";
|
|
11
|
+
SendCountry["Iceland"] = "IT";
|
|
12
|
+
SendCountry["Portugal"] = "PT";
|
|
13
|
+
SendCountry["UnitedStates"] = "US";
|
|
14
|
+
SendCountry["UnitedKingdom"] = "GB";
|
|
15
|
+
SendCountry["SouthAfrica"] = "ZA";
|
|
16
|
+
})(SendCountry = exports.SendCountry || (exports.SendCountry = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -54,5 +54,6 @@ export * from './events/types/order-status';
|
|
|
54
54
|
export * from './events/types/product-status';
|
|
55
55
|
export * from './events/types/receive-country';
|
|
56
56
|
export * from './events/types/recipient-status';
|
|
57
|
+
export * from './events/types/send-country';
|
|
57
58
|
export * from './events/types/user-roles';
|
|
58
59
|
export * from './events/types/user-status';
|
package/build/index.js
CHANGED
|
@@ -67,5 +67,6 @@ __exportStar(require("./events/types/order-status"), exports);
|
|
|
67
67
|
__exportStar(require("./events/types/product-status"), exports);
|
|
68
68
|
__exportStar(require("./events/types/receive-country"), exports);
|
|
69
69
|
__exportStar(require("./events/types/recipient-status"), exports);
|
|
70
|
+
__exportStar(require("./events/types/send-country"), exports);
|
|
70
71
|
__exportStar(require("./events/types/user-roles"), exports);
|
|
71
72
|
__exportStar(require("./events/types/user-status"), exports);
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
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 = {}));
|