@sendhome/common 1.0.225 → 1.0.226
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 +21 -3
- package/build/events/publishers/company-updated-event.d.ts +21 -3
- package/build/events/publishers/country-created-event.d.ts +1 -0
- package/build/events/publishers/country-updated-event.d.ts +1 -0
- package/build/events/publishers/module-created-event.d.ts +21 -1
- package/build/events/publishers/module-updated-event.d.ts +21 -1
- package/build/events/types/zone-type.d.ts +5 -0
- package/build/events/types/zone-type.js +9 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/package.json +1 -1
|
@@ -7,13 +7,31 @@ export interface CompanyCreatedEvent {
|
|
|
7
7
|
company_id: number;
|
|
8
8
|
logo: string;
|
|
9
9
|
name: string;
|
|
10
|
-
|
|
11
|
-
phones: string[];
|
|
12
|
-
landlines: string[];
|
|
10
|
+
description: string;
|
|
13
11
|
email: string;
|
|
12
|
+
phone: string;
|
|
14
13
|
address: string;
|
|
14
|
+
verified: boolean;
|
|
15
|
+
registration_number: string;
|
|
16
|
+
contact_person: {
|
|
17
|
+
name: string;
|
|
18
|
+
phone: string;
|
|
19
|
+
email?: string;
|
|
20
|
+
};
|
|
21
|
+
bank_account: {
|
|
22
|
+
account_name: string;
|
|
23
|
+
account_number: string;
|
|
24
|
+
bank_name: string;
|
|
25
|
+
branch_code?: string;
|
|
26
|
+
currency: string;
|
|
27
|
+
};
|
|
28
|
+
documents: {
|
|
29
|
+
type: string;
|
|
30
|
+
url: string;
|
|
31
|
+
}[];
|
|
15
32
|
country: string;
|
|
16
33
|
currency: string;
|
|
34
|
+
slug: string;
|
|
17
35
|
created_at: Date;
|
|
18
36
|
updated_at: Date;
|
|
19
37
|
status: CompanyStatus;
|
|
@@ -7,13 +7,31 @@ export interface CompanyUpdatedEvent {
|
|
|
7
7
|
company_id: number;
|
|
8
8
|
logo: string;
|
|
9
9
|
name: string;
|
|
10
|
-
|
|
11
|
-
phones: string[];
|
|
12
|
-
landlines: string[];
|
|
10
|
+
description: string;
|
|
13
11
|
email: string;
|
|
12
|
+
phone: string;
|
|
14
13
|
address: string;
|
|
14
|
+
verified: boolean;
|
|
15
|
+
registration_number: string;
|
|
16
|
+
contact_person: {
|
|
17
|
+
name: string;
|
|
18
|
+
phone: string;
|
|
19
|
+
email?: string;
|
|
20
|
+
};
|
|
21
|
+
bank_account: {
|
|
22
|
+
account_name: string;
|
|
23
|
+
account_number: string;
|
|
24
|
+
bank_name: string;
|
|
25
|
+
branch_code?: string;
|
|
26
|
+
currency: string;
|
|
27
|
+
};
|
|
28
|
+
documents: {
|
|
29
|
+
type: string;
|
|
30
|
+
url: string;
|
|
31
|
+
}[];
|
|
15
32
|
country: string;
|
|
16
33
|
currency: string;
|
|
34
|
+
slug: string;
|
|
17
35
|
created_at: Date;
|
|
18
36
|
updated_at: Date;
|
|
19
37
|
status: CompanyStatus;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { ModuleStatus } from "../types/module-status";
|
|
3
3
|
import { Category } from "../types/category";
|
|
4
|
+
import { ZoneType } from "../types/zone-type";
|
|
4
5
|
export interface ModuleCreatedEvent {
|
|
5
6
|
subject: Subjects.ModuleCreated;
|
|
6
7
|
data: {
|
|
@@ -15,13 +16,32 @@ export interface ModuleCreatedEvent {
|
|
|
15
16
|
category: string;
|
|
16
17
|
cities: string[];
|
|
17
18
|
delivery_rate: number;
|
|
19
|
+
supported_zone_types?: ZoneType[];
|
|
18
20
|
}[];
|
|
19
21
|
company: string;
|
|
20
22
|
receive_countries: string[];
|
|
21
23
|
country: string;
|
|
24
|
+
branches: string[];
|
|
25
|
+
payout_bank_account?: {
|
|
26
|
+
account_name: string;
|
|
27
|
+
account_number: string;
|
|
28
|
+
bank_name: string;
|
|
29
|
+
currency: string;
|
|
30
|
+
};
|
|
31
|
+
delivery_settings: {
|
|
32
|
+
delivery_enabled: boolean;
|
|
33
|
+
delivery_radius_km?: number;
|
|
34
|
+
pricing_model: "fixed" | "per_km";
|
|
35
|
+
rate_per_km?: number;
|
|
36
|
+
flat_rate?: number;
|
|
37
|
+
};
|
|
38
|
+
module_documents: {
|
|
39
|
+
type: string;
|
|
40
|
+
url: string;
|
|
41
|
+
}[];
|
|
42
|
+
slug: string;
|
|
22
43
|
status: ModuleStatus;
|
|
23
44
|
created_at: Date;
|
|
24
45
|
updated_at: Date;
|
|
25
|
-
version: number;
|
|
26
46
|
};
|
|
27
47
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { ModuleStatus } from "../types/module-status";
|
|
3
3
|
import { Category } from "../types/category";
|
|
4
|
+
import { ZoneType } from "../types/zone-type";
|
|
4
5
|
export interface ModuleUpdatedEvent {
|
|
5
6
|
subject: Subjects.ModuleUpdated;
|
|
6
7
|
data: {
|
|
@@ -19,9 +20,28 @@ export interface ModuleUpdatedEvent {
|
|
|
19
20
|
company: string;
|
|
20
21
|
receive_countries: string[];
|
|
21
22
|
country: string;
|
|
23
|
+
branches: string[];
|
|
24
|
+
payout_bank_account?: {
|
|
25
|
+
account_name: string;
|
|
26
|
+
account_number: string;
|
|
27
|
+
bank_name: string;
|
|
28
|
+
currency: string;
|
|
29
|
+
};
|
|
30
|
+
delivery_settings: {
|
|
31
|
+
delivery_enabled: boolean;
|
|
32
|
+
delivery_radius_km?: number;
|
|
33
|
+
pricing_model: "fixed" | "per_km";
|
|
34
|
+
rate_per_km?: number;
|
|
35
|
+
flat_rate?: number;
|
|
36
|
+
supported_zone_types?: ZoneType[];
|
|
37
|
+
};
|
|
38
|
+
module_documents: {
|
|
39
|
+
type: string;
|
|
40
|
+
url: string;
|
|
41
|
+
}[];
|
|
42
|
+
slug: string;
|
|
22
43
|
status: ModuleStatus;
|
|
23
44
|
created_at: Date;
|
|
24
45
|
updated_at: Date;
|
|
25
|
-
version: number;
|
|
26
46
|
};
|
|
27
47
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ZoneType = void 0;
|
|
4
|
+
var ZoneType;
|
|
5
|
+
(function (ZoneType) {
|
|
6
|
+
ZoneType["Urban"] = "urban";
|
|
7
|
+
ZoneType["Suburban"] = "suburban";
|
|
8
|
+
ZoneType["Rural"] = "rural";
|
|
9
|
+
})(ZoneType = exports.ZoneType || (exports.ZoneType = {}));
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -125,3 +125,4 @@ __exportStar(require("./events/types/send-country"), exports);
|
|
|
125
125
|
__exportStar(require("./events/types/timeline-stage"), exports);
|
|
126
126
|
__exportStar(require("./events/types/unit-type"), exports);
|
|
127
127
|
__exportStar(require("./events/types/user-status"), exports);
|
|
128
|
+
__exportStar(require("./events/types/zone-type"), exports);
|