@be-link/ecommerce-backend-bff-service-node-sdk 0.0.96 → 0.0.97
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/cjs/bff/modules/pandora/userManager/service/address.service.d.ts +10 -0
- package/cjs/bff/modules/pandora/userManager/service/address.service.js +26 -0
- package/cjs/bff/modules/pandora/userManager/service/coupon.service.d.ts +11 -0
- package/cjs/bff/modules/pandora/userManager/service/coupon.service.js +29 -0
- package/cjs/bff/modules/pandora/userManager/service/index.d.ts +5 -0
- package/cjs/bff/modules/pandora/userManager/service/index.js +21 -0
- package/cjs/bff/modules/pandora/userManager/service/point.service.d.ts +13 -0
- package/cjs/bff/modules/pandora/userManager/service/point.service.js +35 -0
- package/cjs/bff/modules/pandora/userManager/service/region.service.d.ts +14 -0
- package/cjs/bff/modules/pandora/userManager/service/region.service.js +38 -0
- package/cjs/bff/modules/pandora/userManager/service/user.service.d.ts +11 -0
- package/cjs/bff/modules/pandora/userManager/service/user.service.js +29 -0
- package/cjs/bff/modules/pandora/userManager/types/address.types.d.ts +68 -0
- package/cjs/bff/modules/pandora/userManager/types/address.types.js +2 -0
- package/cjs/bff/modules/pandora/userManager/types/coupon.types.d.ts +99 -0
- package/cjs/bff/modules/pandora/userManager/types/coupon.types.js +2 -0
- package/cjs/bff/modules/pandora/userManager/types/index.d.ts +5 -0
- package/cjs/bff/modules/pandora/userManager/types/index.js +21 -0
- package/cjs/bff/modules/pandora/userManager/types/point.types.d.ts +113 -0
- package/cjs/bff/modules/pandora/userManager/types/point.types.js +2 -0
- package/cjs/bff/modules/pandora/userManager/types/region.types.d.ts +77 -0
- package/cjs/bff/modules/pandora/userManager/types/region.types.js +2 -0
- package/cjs/bff/modules/pandora/userManager/types/user.types.d.ts +106 -0
- package/cjs/bff/modules/pandora/userManager/types/user.types.js +2 -0
- package/cjs/enums.d.ts +1 -0
- package/cjs/enums.js +6 -3
- package/cjs/index.d.ts +19 -8
- package/cjs/index.js +49 -38
- package/esm/bff/modules/pandora/userManager/service/address.service.d.ts +10 -0
- package/esm/bff/modules/pandora/userManager/service/address.service.mjs +19 -0
- package/esm/bff/modules/pandora/userManager/service/coupon.service.d.ts +11 -0
- package/esm/bff/modules/pandora/userManager/service/coupon.service.mjs +22 -0
- package/esm/bff/modules/pandora/userManager/service/index.d.ts +5 -0
- package/esm/bff/modules/pandora/userManager/service/index.mjs +5 -0
- package/esm/bff/modules/pandora/userManager/service/point.service.d.ts +13 -0
- package/esm/bff/modules/pandora/userManager/service/point.service.mjs +28 -0
- package/esm/bff/modules/pandora/userManager/service/region.service.d.ts +14 -0
- package/esm/bff/modules/pandora/userManager/service/region.service.mjs +31 -0
- package/esm/bff/modules/pandora/userManager/service/user.service.d.ts +11 -0
- package/esm/bff/modules/pandora/userManager/service/user.service.mjs +22 -0
- package/esm/bff/modules/pandora/userManager/types/address.types.d.ts +68 -0
- package/esm/bff/modules/pandora/userManager/types/address.types.mjs +1 -0
- package/esm/bff/modules/pandora/userManager/types/coupon.types.d.ts +99 -0
- package/esm/bff/modules/pandora/userManager/types/coupon.types.mjs +1 -0
- package/esm/bff/modules/pandora/userManager/types/index.d.ts +5 -0
- package/esm/bff/modules/pandora/userManager/types/index.mjs +5 -0
- package/esm/bff/modules/pandora/userManager/types/point.types.d.ts +113 -0
- package/esm/bff/modules/pandora/userManager/types/point.types.mjs +1 -0
- package/esm/bff/modules/pandora/userManager/types/region.types.d.ts +77 -0
- package/esm/bff/modules/pandora/userManager/types/region.types.mjs +1 -0
- package/esm/bff/modules/pandora/userManager/types/user.types.d.ts +106 -0
- package/esm/bff/modules/pandora/userManager/types/user.types.mjs +1 -0
- package/esm/enums.d.ts +1 -0
- package/esm/enums.mjs +2 -0
- package/esm/index.d.ts +19 -8
- package/esm/index.mjs +19 -8
- package/package.json +1 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../../types';
|
|
2
|
+
export declare namespace PandoraCouponManagementTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface batchGrantCoupons {
|
|
5
|
+
list: Array<{
|
|
6
|
+
userId: string;
|
|
7
|
+
couponId: string;
|
|
8
|
+
couponName: string;
|
|
9
|
+
couponCode?: string;
|
|
10
|
+
couponType: string;
|
|
11
|
+
getChannel: string;
|
|
12
|
+
getBizId?: string;
|
|
13
|
+
startTime: number;
|
|
14
|
+
endTime: number;
|
|
15
|
+
couponInfo: object;
|
|
16
|
+
remark?: string;
|
|
17
|
+
}>;
|
|
18
|
+
operatorId: string;
|
|
19
|
+
}
|
|
20
|
+
interface grantCoupon {
|
|
21
|
+
userId: string;
|
|
22
|
+
couponId: string;
|
|
23
|
+
couponName: string;
|
|
24
|
+
couponCode: string;
|
|
25
|
+
couponType: string;
|
|
26
|
+
getChannel: string;
|
|
27
|
+
getBizId?: string;
|
|
28
|
+
startTime: number;
|
|
29
|
+
endTime: number;
|
|
30
|
+
couponInfo: object;
|
|
31
|
+
remark?: string;
|
|
32
|
+
operatorId: string;
|
|
33
|
+
}
|
|
34
|
+
interface batchInvalidateCoupons {
|
|
35
|
+
couponIds: Array<{
|
|
36
|
+
id: string;
|
|
37
|
+
userId: string;
|
|
38
|
+
}>;
|
|
39
|
+
operatorId: string;
|
|
40
|
+
reason?: string;
|
|
41
|
+
}
|
|
42
|
+
interface getUserCouponList {
|
|
43
|
+
userId: string;
|
|
44
|
+
status?: string;
|
|
45
|
+
couponType?: string;
|
|
46
|
+
limit?: number;
|
|
47
|
+
offset?: number;
|
|
48
|
+
}
|
|
49
|
+
interface getCouponDetail {
|
|
50
|
+
id: string;
|
|
51
|
+
userId: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
namespace Response {
|
|
55
|
+
interface UserCouponDTO {
|
|
56
|
+
id?: string;
|
|
57
|
+
userId?: string;
|
|
58
|
+
couponId?: string;
|
|
59
|
+
couponName?: string;
|
|
60
|
+
couponCode?: string;
|
|
61
|
+
couponType?: string;
|
|
62
|
+
status?: string;
|
|
63
|
+
getChannel?: string;
|
|
64
|
+
startTime?: number;
|
|
65
|
+
endTime?: number;
|
|
66
|
+
couponInfo?: object;
|
|
67
|
+
createdAt?: number;
|
|
68
|
+
updatedAt?: number;
|
|
69
|
+
}
|
|
70
|
+
interface PageResponse<T> {
|
|
71
|
+
list: T[];
|
|
72
|
+
total: number;
|
|
73
|
+
limit: number;
|
|
74
|
+
offset: number;
|
|
75
|
+
}
|
|
76
|
+
type batchGrantCoupons = UserCouponDTO[];
|
|
77
|
+
type grantCoupon = UserCouponDTO;
|
|
78
|
+
interface batchInvalidateCoupons {
|
|
79
|
+
total: number;
|
|
80
|
+
success: number;
|
|
81
|
+
failed: number;
|
|
82
|
+
results: Array<{
|
|
83
|
+
couponId: string;
|
|
84
|
+
success: boolean;
|
|
85
|
+
data?: UserCouponDTO;
|
|
86
|
+
error?: string;
|
|
87
|
+
}>;
|
|
88
|
+
}
|
|
89
|
+
type getUserCouponList = PageResponse<UserCouponDTO>;
|
|
90
|
+
type getCouponDetail = UserCouponDTO;
|
|
91
|
+
}
|
|
92
|
+
interface Controller {
|
|
93
|
+
batchGrantCoupons(request: Request.batchGrantCoupons): Promise<StandardResponse<Response.batchGrantCoupons>>;
|
|
94
|
+
grantCoupon(request: Request.grantCoupon): Promise<StandardResponse<Response.grantCoupon>>;
|
|
95
|
+
batchInvalidateCoupons(request: Request.batchInvalidateCoupons): Promise<StandardResponse<Response.batchInvalidateCoupons>>;
|
|
96
|
+
getUserCouponList(request: Request.getUserCouponList): Promise<StandardResponse<Response.getUserCouponList>>;
|
|
97
|
+
getCouponDetail(request: Request.getCouponDetail): Promise<StandardResponse<Response.getCouponDetail>>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../../types';
|
|
2
|
+
export declare namespace PandoraPointManagementTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface adjustPoint {
|
|
5
|
+
userId: string;
|
|
6
|
+
point: number;
|
|
7
|
+
flowType: string;
|
|
8
|
+
remark: string;
|
|
9
|
+
expireTime?: number;
|
|
10
|
+
operatorId: string;
|
|
11
|
+
operatorName: string;
|
|
12
|
+
}
|
|
13
|
+
interface batchAdjustPoints {
|
|
14
|
+
adjustments: Array<{
|
|
15
|
+
userId: string;
|
|
16
|
+
point: number;
|
|
17
|
+
type: 'add' | 'deduct';
|
|
18
|
+
remark: string;
|
|
19
|
+
}>;
|
|
20
|
+
operatorId: string;
|
|
21
|
+
operatorName: string;
|
|
22
|
+
}
|
|
23
|
+
interface getUserPointInfo {
|
|
24
|
+
userId: string;
|
|
25
|
+
}
|
|
26
|
+
interface getPointFlowList {
|
|
27
|
+
userId: string;
|
|
28
|
+
flowType?: string;
|
|
29
|
+
limit?: number;
|
|
30
|
+
offset?: number;
|
|
31
|
+
}
|
|
32
|
+
interface getPointDetailList {
|
|
33
|
+
userId: string;
|
|
34
|
+
limit?: number;
|
|
35
|
+
offset?: number;
|
|
36
|
+
}
|
|
37
|
+
interface freezeUserPoint {
|
|
38
|
+
userId: string;
|
|
39
|
+
point: number;
|
|
40
|
+
remark: string;
|
|
41
|
+
operatorId: string;
|
|
42
|
+
}
|
|
43
|
+
interface unfreezeUserPoint {
|
|
44
|
+
userId: string;
|
|
45
|
+
point: number;
|
|
46
|
+
remark: string;
|
|
47
|
+
operatorId: string;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
namespace Response {
|
|
51
|
+
interface UserPointDTO {
|
|
52
|
+
id?: string;
|
|
53
|
+
userId?: string;
|
|
54
|
+
totalPoint?: number;
|
|
55
|
+
availablePoint?: number;
|
|
56
|
+
frozenPoint?: number;
|
|
57
|
+
usedPoint?: number;
|
|
58
|
+
expiredPoint?: number;
|
|
59
|
+
createdAt?: number;
|
|
60
|
+
updatedAt?: number;
|
|
61
|
+
}
|
|
62
|
+
interface UserPointFlowDTO {
|
|
63
|
+
id?: string;
|
|
64
|
+
userId?: string;
|
|
65
|
+
flowType?: string;
|
|
66
|
+
point?: number;
|
|
67
|
+
beforePoint?: number;
|
|
68
|
+
afterPoint?: number;
|
|
69
|
+
remark?: string;
|
|
70
|
+
createdAt?: number;
|
|
71
|
+
}
|
|
72
|
+
interface UserPointDetailDTO {
|
|
73
|
+
id?: string;
|
|
74
|
+
userId?: string;
|
|
75
|
+
point?: number;
|
|
76
|
+
expireTime?: number;
|
|
77
|
+
status?: string;
|
|
78
|
+
createdAt?: number;
|
|
79
|
+
}
|
|
80
|
+
interface PageResponse<T> {
|
|
81
|
+
list: T[];
|
|
82
|
+
total: number;
|
|
83
|
+
limit: number;
|
|
84
|
+
offset: number;
|
|
85
|
+
}
|
|
86
|
+
type adjustPoint = UserPointDTO;
|
|
87
|
+
interface batchAdjustPoints {
|
|
88
|
+
total: number;
|
|
89
|
+
success: number;
|
|
90
|
+
failed: number;
|
|
91
|
+
results: Array<{
|
|
92
|
+
userId: string;
|
|
93
|
+
success: boolean;
|
|
94
|
+
data?: UserPointDTO;
|
|
95
|
+
error?: string;
|
|
96
|
+
}>;
|
|
97
|
+
}
|
|
98
|
+
type getUserPointInfo = UserPointDTO;
|
|
99
|
+
type getPointFlowList = PageResponse<UserPointFlowDTO>;
|
|
100
|
+
type getPointDetailList = PageResponse<UserPointDetailDTO>;
|
|
101
|
+
type freezeUserPoint = UserPointDTO;
|
|
102
|
+
type unfreezeUserPoint = UserPointDTO;
|
|
103
|
+
}
|
|
104
|
+
interface Controller {
|
|
105
|
+
adjustPoint(request: Request.adjustPoint): Promise<StandardResponse<Response.adjustPoint>>;
|
|
106
|
+
batchAdjustPoints(request: Request.batchAdjustPoints): Promise<StandardResponse<Response.batchAdjustPoints>>;
|
|
107
|
+
getUserPointInfo(request: Request.getUserPointInfo): Promise<StandardResponse<Response.getUserPointInfo>>;
|
|
108
|
+
getPointFlowList(request: Request.getPointFlowList): Promise<StandardResponse<Response.getPointFlowList>>;
|
|
109
|
+
getPointDetailList(request: Request.getPointDetailList): Promise<StandardResponse<Response.getPointDetailList>>;
|
|
110
|
+
freezeUserPoint(request: Request.freezeUserPoint): Promise<StandardResponse<Response.freezeUserPoint>>;
|
|
111
|
+
unfreezeUserPoint(request: Request.unfreezeUserPoint): Promise<StandardResponse<Response.unfreezeUserPoint>>;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../../types';
|
|
2
|
+
export declare namespace PandoraRegionManagementTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface batchImportRegions {
|
|
5
|
+
regions: Array<{
|
|
6
|
+
code: string;
|
|
7
|
+
parentCode: string;
|
|
8
|
+
name: string;
|
|
9
|
+
level: number;
|
|
10
|
+
}>;
|
|
11
|
+
operatorId: string;
|
|
12
|
+
}
|
|
13
|
+
interface getAllProvinces {
|
|
14
|
+
}
|
|
15
|
+
interface getCitiesByProvince {
|
|
16
|
+
provinceCode: string;
|
|
17
|
+
}
|
|
18
|
+
interface getDistrictsByCity {
|
|
19
|
+
cityCode: string;
|
|
20
|
+
}
|
|
21
|
+
interface searchRegions {
|
|
22
|
+
name: string;
|
|
23
|
+
limit?: number;
|
|
24
|
+
}
|
|
25
|
+
interface getRegionByCode {
|
|
26
|
+
code: string;
|
|
27
|
+
}
|
|
28
|
+
interface getFullAddress {
|
|
29
|
+
provinceCode?: string;
|
|
30
|
+
cityCode?: string;
|
|
31
|
+
districtCode?: string;
|
|
32
|
+
}
|
|
33
|
+
interface getRegionTree {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
namespace Response {
|
|
37
|
+
interface UserRegionDTO {
|
|
38
|
+
code?: string;
|
|
39
|
+
parentCode?: string;
|
|
40
|
+
name?: string;
|
|
41
|
+
level?: number;
|
|
42
|
+
createdAt?: number;
|
|
43
|
+
updatedAt?: number;
|
|
44
|
+
}
|
|
45
|
+
interface RegionTreeNode {
|
|
46
|
+
code: string;
|
|
47
|
+
parentCode: string;
|
|
48
|
+
name: string;
|
|
49
|
+
level: number;
|
|
50
|
+
children?: RegionTreeNode[];
|
|
51
|
+
}
|
|
52
|
+
interface batchImportRegions {
|
|
53
|
+
successCount: number;
|
|
54
|
+
}
|
|
55
|
+
type getAllProvinces = UserRegionDTO[];
|
|
56
|
+
type getCitiesByProvince = UserRegionDTO[];
|
|
57
|
+
type getDistrictsByCity = UserRegionDTO[];
|
|
58
|
+
type searchRegions = UserRegionDTO[];
|
|
59
|
+
type getRegionByCode = UserRegionDTO;
|
|
60
|
+
interface getFullAddress {
|
|
61
|
+
province?: UserRegionDTO;
|
|
62
|
+
city?: UserRegionDTO;
|
|
63
|
+
district?: UserRegionDTO;
|
|
64
|
+
}
|
|
65
|
+
type getRegionTree = RegionTreeNode[];
|
|
66
|
+
}
|
|
67
|
+
interface Controller {
|
|
68
|
+
batchImportRegions(request: Request.batchImportRegions): Promise<StandardResponse<Response.batchImportRegions>>;
|
|
69
|
+
getAllProvinces(request: Request.getAllProvinces): Promise<StandardResponse<Response.getAllProvinces>>;
|
|
70
|
+
getCitiesByProvince(request: Request.getCitiesByProvince): Promise<StandardResponse<Response.getCitiesByProvince>>;
|
|
71
|
+
getDistrictsByCity(request: Request.getDistrictsByCity): Promise<StandardResponse<Response.getDistrictsByCity>>;
|
|
72
|
+
searchRegions(request: Request.searchRegions): Promise<StandardResponse<Response.searchRegions>>;
|
|
73
|
+
getRegionByCode(request: Request.getRegionByCode): Promise<StandardResponse<Response.getRegionByCode>>;
|
|
74
|
+
getFullAddress(request: Request.getFullAddress): Promise<StandardResponse<Response.getFullAddress>>;
|
|
75
|
+
getRegionTree(request: Request.getRegionTree): Promise<StandardResponse<Response.getRegionTree>>;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../../types';
|
|
2
|
+
export declare namespace PandoraUserManagementTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
/**
|
|
5
|
+
* 获取用户列表
|
|
6
|
+
*/
|
|
7
|
+
interface getUserList {
|
|
8
|
+
registerChannel?: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
memberLevel?: string;
|
|
11
|
+
userId?: string;
|
|
12
|
+
mobile?: string;
|
|
13
|
+
unionId?: string;
|
|
14
|
+
nickname?: string;
|
|
15
|
+
storeId?: string;
|
|
16
|
+
limit?: number;
|
|
17
|
+
offset?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 获取用户详情
|
|
21
|
+
*/
|
|
22
|
+
interface getUserDetail {
|
|
23
|
+
userId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 更新用户状态
|
|
27
|
+
*/
|
|
28
|
+
interface updateUserStatus {
|
|
29
|
+
userId: string;
|
|
30
|
+
status: string;
|
|
31
|
+
operatorId: string;
|
|
32
|
+
reason?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 批量更新用户状态
|
|
36
|
+
*/
|
|
37
|
+
interface batchUpdateUserStatus {
|
|
38
|
+
userIds: string[];
|
|
39
|
+
status: string;
|
|
40
|
+
operatorId: string;
|
|
41
|
+
reason?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 绑定用户到门店
|
|
45
|
+
*/
|
|
46
|
+
interface bindUsersToStore {
|
|
47
|
+
userIds: string[];
|
|
48
|
+
storeId: number;
|
|
49
|
+
operatorId: string;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
namespace Response {
|
|
53
|
+
interface UserInfoDTO {
|
|
54
|
+
id: string;
|
|
55
|
+
mobile?: string;
|
|
56
|
+
nickname?: string;
|
|
57
|
+
avatar?: string;
|
|
58
|
+
gender?: number;
|
|
59
|
+
birthday?: string;
|
|
60
|
+
registerChannel?: string;
|
|
61
|
+
status?: string;
|
|
62
|
+
memberLevel?: string;
|
|
63
|
+
unionId?: string;
|
|
64
|
+
openId?: string;
|
|
65
|
+
storeId?: string;
|
|
66
|
+
createdAt?: number;
|
|
67
|
+
updatedAt?: number;
|
|
68
|
+
}
|
|
69
|
+
interface PageResponse<T> {
|
|
70
|
+
list: T[];
|
|
71
|
+
total: number;
|
|
72
|
+
limit: number;
|
|
73
|
+
offset: number;
|
|
74
|
+
}
|
|
75
|
+
type getUserList = PageResponse<UserInfoDTO>;
|
|
76
|
+
type getUserDetail = UserInfoDTO;
|
|
77
|
+
type updateUserStatus = UserInfoDTO;
|
|
78
|
+
interface batchUpdateUserStatus {
|
|
79
|
+
total: number;
|
|
80
|
+
success: number;
|
|
81
|
+
failed: number;
|
|
82
|
+
results: Array<{
|
|
83
|
+
userId: string;
|
|
84
|
+
success: boolean;
|
|
85
|
+
data?: UserInfoDTO;
|
|
86
|
+
error?: string;
|
|
87
|
+
}>;
|
|
88
|
+
}
|
|
89
|
+
interface bindUsersToStore {
|
|
90
|
+
successUsers: string[];
|
|
91
|
+
failedUsers: Array<{
|
|
92
|
+
userId: string;
|
|
93
|
+
reason: string;
|
|
94
|
+
}>;
|
|
95
|
+
successCount: number;
|
|
96
|
+
failedCount: number;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
interface Controller {
|
|
100
|
+
getUserList(request: Request.getUserList): Promise<StandardResponse<Response.getUserList>>;
|
|
101
|
+
getUserDetail(request: Request.getUserDetail): Promise<StandardResponse<Response.getUserDetail>>;
|
|
102
|
+
updateUserStatus(request: Request.updateUserStatus): Promise<StandardResponse<Response.updateUserStatus>>;
|
|
103
|
+
batchUpdateUserStatus(request: Request.batchUpdateUserStatus): Promise<StandardResponse<Response.batchUpdateUserStatus>>;
|
|
104
|
+
bindUsersToStore(request: Request.bindUsersToStore): Promise<StandardResponse<Response.bindUsersToStore>>;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/enums.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export { ENUM as STORE_SERVICE_ENUM } from '@be-link/ecommerce-store-service-nod
|
|
|
7
7
|
export { ENUM as PROMOTION_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
|
|
8
8
|
export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
|
|
9
9
|
export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
|
|
10
|
+
export { ENUM as USER_SERVICE_ENUM } from '@be-link/ecommerce-user-service-node-sdk/enum';
|
|
10
11
|
export { ENUM as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk/enums';
|
|
11
12
|
export { ENUM as TASK_CENTER_ENUM } from '@be-link/ecommerce-task-center-service-node-sdk/enum';
|
package/esm/enums.mjs
CHANGED
|
@@ -10,6 +10,8 @@ export { ENUM as PROMOTION_ENUM } from '@be-link/ecommerce-promotion-service-nod
|
|
|
10
10
|
export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
|
|
11
11
|
// 优惠券服务枚举
|
|
12
12
|
export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
|
|
13
|
+
// 用户服务枚举
|
|
14
|
+
export { ENUM as USER_SERVICE_ENUM } from '@be-link/ecommerce-user-service-node-sdk/enum';
|
|
13
15
|
// 交易服务枚举
|
|
14
16
|
export { ENUM as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk/enums';
|
|
15
17
|
// 任务中心服务枚举
|
package/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
2
1
|
import { PandoraStoreService } from './bff/modules/pandora/store/service';
|
|
3
2
|
import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/service';
|
|
4
3
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
|
|
@@ -7,15 +6,21 @@ import { PandoraAuthService } from './bff/modules/pandora/auth/service';
|
|
|
7
6
|
import { PandoraBDService } from './bff/modules/pandora/bd/service';
|
|
8
7
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
|
|
9
8
|
import { PandoraCommonService } from './bff/modules/pandora/common/service';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
|
|
13
|
-
import { PandoraUserService } from './bff/modules/pandora/user/service';
|
|
9
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
|
|
10
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
14
11
|
import { PandoraProductService } from './bff/modules/pandora/product/service';
|
|
15
12
|
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
|
|
16
13
|
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
|
|
17
|
-
import {
|
|
14
|
+
import { PandoraRoleService } from './bff/modules/pandora/role/service';
|
|
18
15
|
import { PandoraRoomService } from './bff/modules/pandora/room/service';
|
|
16
|
+
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
|
|
17
|
+
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
|
|
18
|
+
import { PandoraUserService } from './bff/modules/pandora/user/service';
|
|
19
|
+
import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service';
|
|
20
|
+
import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service';
|
|
21
|
+
import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service';
|
|
22
|
+
import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service';
|
|
23
|
+
import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service';
|
|
19
24
|
import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service';
|
|
20
25
|
import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
|
|
21
26
|
import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
|
|
@@ -45,6 +50,11 @@ export declare class PandoraSDK {
|
|
|
45
50
|
storeClerk: PandoraStoreClerkService;
|
|
46
51
|
storeManager: PandoraStoreManagerService;
|
|
47
52
|
user: PandoraUserService;
|
|
53
|
+
userManagement: PandoraUserManagementService;
|
|
54
|
+
pointManagement: PandoraPointManagementService;
|
|
55
|
+
couponManagement: PandoraCouponManagementService;
|
|
56
|
+
addressManagement: PandoraAddressManagementService;
|
|
57
|
+
regionManagement: PandoraRegionManagementService;
|
|
48
58
|
product: PandoraProductService;
|
|
49
59
|
productExp: PandoraProductExpService;
|
|
50
60
|
productLive: PandoraProductLiveService;
|
|
@@ -103,8 +113,8 @@ export declare class MiniProgramSDK {
|
|
|
103
113
|
*/
|
|
104
114
|
constructor(options: SdkOptions);
|
|
105
115
|
}
|
|
106
|
-
export {
|
|
107
|
-
export {
|
|
116
|
+
export { BizError, SdkError, SystemError } from './errors';
|
|
117
|
+
export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
|
|
108
118
|
export * from './enums';
|
|
109
119
|
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
110
120
|
export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
|
|
@@ -119,6 +129,7 @@ export { PandoraRoleService as PandoraRoleServiceTypes } from './bff/modules/pan
|
|
|
119
129
|
export { PandoraStoreClerkService as PandoraStoreClerkServiceTypes } from './bff/modules/pandora/storeClerk/types';
|
|
120
130
|
export { PandoraStoreManagerService as PandoraStoreManagerServiceTypes } from './bff/modules/pandora/storeManager/types';
|
|
121
131
|
export { PandoraUserService as PandoraUserServiceTypes } from './bff/modules/pandora/user/types';
|
|
132
|
+
export * from './bff/modules/pandora/userManager/types';
|
|
122
133
|
export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
|
|
123
134
|
export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
|
|
124
135
|
export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
|
package/esm/index.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { HttpClient } from './bff/request/client.mjs';
|
|
2
|
-
import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
|
|
3
1
|
import { PandoraStoreService } from './bff/modules/pandora/store/service.mjs';
|
|
4
2
|
import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/service.mjs';
|
|
5
3
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
|
|
@@ -8,15 +6,22 @@ import { PandoraAuthService } from './bff/modules/pandora/auth/service.mjs';
|
|
|
8
6
|
import { PandoraBDService } from './bff/modules/pandora/bd/service.mjs';
|
|
9
7
|
import { PandoraBDMService } from './bff/modules/pandora/bdm/service.mjs';
|
|
10
8
|
import { PandoraCommonService } from './bff/modules/pandora/common/service.mjs';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
|
|
14
|
-
import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
|
|
9
|
+
import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
|
|
10
|
+
import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
|
|
15
11
|
import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
|
|
16
12
|
import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
|
|
17
13
|
import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
|
|
18
|
-
import {
|
|
14
|
+
import { PandoraRoleService } from './bff/modules/pandora/role/service.mjs';
|
|
19
15
|
import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
|
|
16
|
+
import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service.mjs';
|
|
17
|
+
import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
|
|
18
|
+
import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
|
|
19
|
+
import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service.mjs';
|
|
20
|
+
import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service.mjs';
|
|
21
|
+
import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service.mjs';
|
|
22
|
+
import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service.mjs';
|
|
23
|
+
import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service.mjs';
|
|
24
|
+
import { HttpClient } from './bff/request/client.mjs';
|
|
20
25
|
import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service.mjs';
|
|
21
26
|
import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service.mjs';
|
|
22
27
|
import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service.mjs';
|
|
@@ -53,6 +58,11 @@ export class PandoraSDK {
|
|
|
53
58
|
this.storeUserRelation = new PandoraStoreUserRelationService(this.http);
|
|
54
59
|
this.room = new PandoraRoomService(this.http);
|
|
55
60
|
this.coupon = new PandoraCouponService(this.http);
|
|
61
|
+
this.userManagement = new PandoraUserManagementService(this.http);
|
|
62
|
+
this.pointManagement = new PandoraPointManagementService(this.http);
|
|
63
|
+
this.couponManagement = new PandoraCouponManagementService(this.http);
|
|
64
|
+
this.addressManagement = new PandoraAddressManagementService(this.http);
|
|
65
|
+
this.regionManagement = new PandoraRegionManagementService(this.http);
|
|
56
66
|
this.pointMall = new PandoraPointsMallService(this.http);
|
|
57
67
|
this.orderQuery = new PandoraOrderQueryService(this.http);
|
|
58
68
|
this.orderCore = new PandoraOrderCoreService(this.http);
|
|
@@ -81,7 +91,8 @@ export class MiniProgramSDK {
|
|
|
81
91
|
}
|
|
82
92
|
// ==================== 导出 ====================
|
|
83
93
|
// 错误类
|
|
84
|
-
export {
|
|
94
|
+
export { BizError, SdkError, SystemError } from './errors/index.mjs';
|
|
85
95
|
// 枚举和常量
|
|
86
96
|
export * from './enums.mjs';
|
|
87
97
|
export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types.mjs';
|
|
98
|
+
export * from './bff/modules/pandora/userManager/types/index.mjs';
|