@sendhome/common 1.0.240 → 1.0.241

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.
@@ -5,13 +5,17 @@ export interface BranchCreatedEvent {
5
5
  data: {
6
6
  id: string;
7
7
  branch_id: number;
8
+ slug: string;
8
9
  name: string;
9
10
  address: string;
11
+ branch_type: "company" | "agent";
10
12
  status: BranchStatus;
11
13
  module: string;
12
14
  company: string;
13
15
  country: string;
14
16
  city: string;
17
+ created_at: Date;
18
+ updated_at: Date;
15
19
  version: number;
16
20
  };
17
21
  }
@@ -5,13 +5,17 @@ export interface BranchUpdatedEvent {
5
5
  data: {
6
6
  id: string;
7
7
  branch_id: number;
8
+ slug: string;
8
9
  name: string;
9
10
  address: string;
11
+ branch_type: "company" | "agent";
10
12
  status: BranchStatus;
11
13
  module: string;
12
14
  company: string;
13
15
  country: string;
14
16
  city: string;
17
+ created_at: Date;
18
+ updated_at: Date;
15
19
  version: number;
16
20
  };
17
21
  }
@@ -31,6 +31,7 @@ export interface CompanyCreatedEvent {
31
31
  }[];
32
32
  country: string;
33
33
  currency: string;
34
+ dashboard_enabled: boolean;
34
35
  slug: string;
35
36
  created_at: Date;
36
37
  updated_at: Date;
@@ -31,6 +31,7 @@ export interface CompanyUpdatedEvent {
31
31
  }[];
32
32
  country: string;
33
33
  currency: string;
34
+ dashboard_enabled: boolean;
34
35
  slug: string;
35
36
  created_at: Date;
36
37
  updated_at: Date;
@@ -12,22 +12,21 @@ export interface ModuleCreatedEvent {
12
12
  category: Category;
13
13
  is_transport_company: boolean;
14
14
  commission: number;
15
+ apply_commission: boolean;
16
+ self_collect_enabled: boolean;
17
+ delivery_enabled: boolean;
18
+ notification_channels: {
19
+ email: boolean;
20
+ whatsapp: boolean;
21
+ };
15
22
  delivery_details: {
16
23
  category: string;
17
24
  cities: string[];
18
25
  delivery_rate: number;
19
- supported_zone_types?: ZoneType[];
20
26
  }[];
21
27
  company: string;
22
28
  receive_countries: string[];
23
29
  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
30
  delivery_settings: {
32
31
  delivery_enabled: boolean;
33
32
  delivery_radius_km?: number;
@@ -43,6 +42,15 @@ export interface ModuleCreatedEvent {
43
42
  status: ModuleStatus;
44
43
  created_at: Date;
45
44
  updated_at: Date;
45
+ is_delivery_partner: boolean;
46
+ delivery_routes: {
47
+ from_city: string;
48
+ to_city: string;
49
+ zone_type: ZoneType;
50
+ category: string;
51
+ fixed_fee?: number;
52
+ rate_per_km?: number;
53
+ }[];
46
54
  version: number;
47
55
  };
48
56
  }
@@ -12,6 +12,13 @@ export interface ModuleUpdatedEvent {
12
12
  category: Category;
13
13
  is_transport_company: boolean;
14
14
  commission: number;
15
+ apply_commission: boolean;
16
+ self_collect_enabled: boolean;
17
+ delivery_enabled: boolean;
18
+ notification_channels: {
19
+ email: boolean;
20
+ whatsapp: boolean;
21
+ };
15
22
  delivery_details: {
16
23
  category: string;
17
24
  cities: string[];
@@ -20,20 +27,12 @@ export interface ModuleUpdatedEvent {
20
27
  company: string;
21
28
  receive_countries: string[];
22
29
  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
30
  delivery_settings: {
31
31
  delivery_enabled: boolean;
32
32
  delivery_radius_km?: number;
33
33
  pricing_model: "fixed" | "per_km";
34
34
  rate_per_km?: number;
35
35
  flat_rate?: number;
36
- supported_zone_types?: ZoneType[];
37
36
  };
38
37
  module_documents: {
39
38
  type: string;
@@ -43,6 +42,15 @@ export interface ModuleUpdatedEvent {
43
42
  status: ModuleStatus;
44
43
  created_at: Date;
45
44
  updated_at: Date;
45
+ is_delivery_partner: boolean;
46
+ delivery_routes: {
47
+ from_city: string;
48
+ to_city: string;
49
+ zone_type: ZoneType;
50
+ category: string;
51
+ fixed_fee?: number;
52
+ rate_per_km?: number;
53
+ }[];
46
54
  version: number;
47
55
  };
48
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendhome/common",
3
- "version": "1.0.240",
3
+ "version": "1.0.241",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",