1
- export const ecommerce = { }
1
+ // Main ecommerce module index file
2
+ import * as coupons from './coupons'
3
+ import * as customers from './customers'
4
+ import * as giftCards from './gift-cards'
5
+ import * as manufacturer from './manufacturer'
6
+ import * as orders from './orders'
7
+ import * as payments from './payments'
8
+ import * as reviews from './reviews'
9
+
10
+ // Define types for each module
11
+ type CouponsModule = typeof coupons
12
+ type CustomersModule = typeof customers
13
+ type GiftCardsModule = typeof giftCards
14
+ type ManufacturerModule = typeof manufacturer
15
+ type OrdersModule = typeof orders
16
+ type PaymentsModule = typeof payments
17
+ type ReviewsModule = typeof reviews
18
+
19
+ // Define the ecommerce namespace interface
20
+ export interface EcommerceNamespace {
21
+ coupons : CouponsModule
22
+ customers : CustomersModule
23
+ giftCards : GiftCardsModule
24
+ manufacturer : ManufacturerModule
25
+ orders : OrdersModule
26
+ payments : PaymentsModule
27
+ reviews : ReviewsModule
28
+ }
29
+
30
+ // Create the main ecommerce namespace object with explicit type
31
+ export const ecommerce : EcommerceNamespace = {
32
+ coupons : coupons ,
33
+ customers : customers ,
34
+ giftCards : giftCards ,
35
+ manufacturer : manufacturer ,
36
+ orders : orders ,
37
+ payments : payments ,
38
+ reviews : reviews ,
39
+ }
40
+
41
+ // Default export for easier import
42
+ export default ecommerce
43
+
44
+ // Also provide direct access to all submodules
45
+ export {
46
+ coupons ,
47
+ customers ,
48
+ giftCards ,
49
+ manufacturer ,
50
+ orders ,
51
+ payments ,
52
+ reviews ,
53
+ }
0 commit comments