@be-link/ecommerce-backend-bff-service-node-sdk 0.0.117 → 0.0.118

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.
Files changed (21) hide show
  1. package/cjs/bff/modules/pandora/userManager/types/address.types.d.ts +7 -83
  2. package/cjs/bff/modules/pandora/userManager/types/address.types.js +4 -0
  3. package/cjs/bff/modules/pandora/userManager/types/coupon.types.d.ts +7 -89
  4. package/cjs/bff/modules/pandora/userManager/types/coupon.types.js +4 -0
  5. package/cjs/bff/modules/pandora/userManager/types/point.types.d.ts +7 -101
  6. package/cjs/bff/modules/pandora/userManager/types/point.types.js +4 -0
  7. package/cjs/bff/modules/pandora/userManager/types/region.types.d.ts +7 -64
  8. package/cjs/bff/modules/pandora/userManager/types/region.types.js +4 -0
  9. package/cjs/bff/modules/pandora/userManager/types/user.types.d.ts +7 -113
  10. package/cjs/bff/modules/pandora/userManager/types/user.types.js +4 -0
  11. package/esm/bff/modules/pandora/userManager/types/address.types.d.ts +7 -83
  12. package/esm/bff/modules/pandora/userManager/types/address.types.mjs +3 -1
  13. package/esm/bff/modules/pandora/userManager/types/coupon.types.d.ts +7 -89
  14. package/esm/bff/modules/pandora/userManager/types/coupon.types.mjs +3 -1
  15. package/esm/bff/modules/pandora/userManager/types/point.types.d.ts +7 -101
  16. package/esm/bff/modules/pandora/userManager/types/point.types.mjs +3 -1
  17. package/esm/bff/modules/pandora/userManager/types/region.types.d.ts +7 -64
  18. package/esm/bff/modules/pandora/userManager/types/region.types.mjs +3 -1
  19. package/esm/bff/modules/pandora/userManager/types/user.types.d.ts +7 -113
  20. package/esm/bff/modules/pandora/userManager/types/user.types.mjs +3 -1
  21. package/package.json +2 -2
@@ -1,88 +1,12 @@
1
+ /**
2
+ * 地址管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { AddressManagementTypes as UserAddressServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/addressManagement.types';
2
7
  export declare namespace PandoraAddressManagementTypes {
3
- namespace Request {
4
- interface getUserAddressList {
5
- userId: string;
6
- }
7
- interface getAddressDetail {
8
- id: string;
9
- userId: string;
10
- }
11
- interface createAddress {
12
- userId: string;
13
- receiverName: string;
14
- receiverMobile: string;
15
- provinceId: string;
16
- provinceName: string;
17
- cityId: string;
18
- cityName: string;
19
- districtId: string;
20
- districtName: string;
21
- townId?: string;
22
- townName?: string;
23
- detailAddress: string;
24
- postalCode?: string;
25
- isDefault?: number;
26
- operatorId: string;
27
- }
28
- interface updateUserAddress {
29
- id: string;
30
- userId: string;
31
- receiverName?: string;
32
- receiverMobile?: string;
33
- provinceId?: string;
34
- provinceName?: string;
35
- cityId?: string;
36
- cityName?: string;
37
- districtId?: string;
38
- districtName?: string;
39
- townId?: string;
40
- townName?: string;
41
- detailAddress?: string;
42
- postalCode?: string;
43
- isDefault?: number;
44
- operatorId: string;
45
- }
46
- interface deleteAddress {
47
- id: string;
48
- userId: string;
49
- operatorId: string;
50
- }
51
- interface setDefaultAddress {
52
- id: string;
53
- userId: string;
54
- operatorId: string;
55
- }
56
- }
57
- namespace Response {
58
- interface UserAddressDTO {
59
- id?: string;
60
- userId?: string;
61
- receiverName?: string;
62
- receiverMobile?: string;
63
- provinceId?: string;
64
- provinceName?: string;
65
- cityId?: string;
66
- cityName?: string;
67
- districtId?: string;
68
- districtName?: string;
69
- townId?: string;
70
- townName?: string;
71
- detailAddress?: string;
72
- postalCode?: string;
73
- isDefault?: number;
74
- createdAt?: number;
75
- updatedAt?: number;
76
- }
77
- type getUserAddressList = UserAddressDTO[];
78
- type getAddressDetail = UserAddressDTO;
79
- type createAddress = UserAddressDTO;
80
- type updateUserAddress = UserAddressDTO;
81
- type deleteAddress = {
82
- success: boolean;
83
- };
84
- type setDefaultAddress = UserAddressDTO;
85
- }
8
+ export import Request = UserAddressServiceTypes.Request;
9
+ export import Response = UserAddressServiceTypes.Response;
86
10
  interface Controller {
87
11
  getUserAddressList(request: Request.getUserAddressList): Promise<StandardResponse<Response.getUserAddressList>>;
88
12
  getAddressDetail(request: Request.getAddressDetail): Promise<StandardResponse<Response.getAddressDetail>>;
@@ -1,2 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PandoraAddressManagementTypes = void 0;
4
+ var PandoraAddressManagementTypes;
5
+ (function (PandoraAddressManagementTypes) {
6
+ })(PandoraAddressManagementTypes || (exports.PandoraAddressManagementTypes = PandoraAddressManagementTypes = {}));
@@ -1,94 +1,12 @@
1
+ /**
2
+ * 优惠券管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { CouponManagementTypes as UserCouponServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/couponManagement.types';
2
7
  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
- }
8
+ export import Request = UserCouponServiceTypes.Request;
9
+ export import Response = UserCouponServiceTypes.Response;
92
10
  interface Controller {
93
11
  batchGrantCoupons(request: Request.batchGrantCoupons): Promise<StandardResponse<Response.batchGrantCoupons>>;
94
12
  grantCoupon(request: Request.grantCoupon): Promise<StandardResponse<Response.grantCoupon>>;
@@ -1,2 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PandoraCouponManagementTypes = void 0;
4
+ var PandoraCouponManagementTypes;
5
+ (function (PandoraCouponManagementTypes) {
6
+ })(PandoraCouponManagementTypes || (exports.PandoraCouponManagementTypes = PandoraCouponManagementTypes = {}));
@@ -1,106 +1,12 @@
1
+ /**
2
+ * 积分管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { PointManagementTypes as UserPointServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/pointManagement.types';
2
7
  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
- }
8
+ export import Request = UserPointServiceTypes.Request;
9
+ export import Response = UserPointServiceTypes.Response;
104
10
  interface Controller {
105
11
  adjustPoint(request: Request.adjustPoint): Promise<StandardResponse<Response.adjustPoint>>;
106
12
  batchAdjustPoints(request: Request.batchAdjustPoints): Promise<StandardResponse<Response.batchAdjustPoints>>;
@@ -1,2 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PandoraPointManagementTypes = void 0;
4
+ var PandoraPointManagementTypes;
5
+ (function (PandoraPointManagementTypes) {
6
+ })(PandoraPointManagementTypes || (exports.PandoraPointManagementTypes = PandoraPointManagementTypes = {}));
@@ -1,69 +1,12 @@
1
+ /**
2
+ * 地区管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { RegionManagementTypes as UserRegionServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/regionManagement.types';
2
7
  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
- }
8
+ export import Request = UserRegionServiceTypes.Request;
9
+ export import Response = UserRegionServiceTypes.Response;
67
10
  interface Controller {
68
11
  batchImportRegions(request: Request.batchImportRegions): Promise<StandardResponse<Response.batchImportRegions>>;
69
12
  getAllProvinces(request: Request.getAllProvinces): Promise<StandardResponse<Response.getAllProvinces>>;
@@ -1,2 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PandoraRegionManagementTypes = void 0;
4
+ var PandoraRegionManagementTypes;
5
+ (function (PandoraRegionManagementTypes) {
6
+ })(PandoraRegionManagementTypes || (exports.PandoraRegionManagementTypes = PandoraRegionManagementTypes = {}));
@@ -1,118 +1,12 @@
1
+ /**
2
+ * 用户管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { UserManagementTypes as UserServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/userManagement.types';
2
7
  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: string;
49
- operatorId: string;
50
- }
51
- /**
52
- * 解绑用户与门店
53
- */
54
- interface unbindUsersFromStore {
55
- userIds: string[];
56
- storeId: string;
57
- operatorId: string;
58
- }
59
- }
60
- namespace Response {
61
- interface UserInfoDTO {
62
- id: string;
63
- mobile?: string;
64
- nickname?: string;
65
- avatar?: string;
66
- gender?: number;
67
- birthday?: string;
68
- registerChannel?: string;
69
- status?: string;
70
- memberLevel?: string;
71
- unionId?: string;
72
- openId?: string;
73
- storeId?: string;
74
- createdAt?: number;
75
- updatedAt?: number;
76
- }
77
- interface PageResponse<T> {
78
- list: T[];
79
- total: number;
80
- limit: number;
81
- offset: number;
82
- }
83
- type getUserList = PageResponse<UserInfoDTO>;
84
- type getUserDetail = UserInfoDTO;
85
- type updateUserStatus = UserInfoDTO;
86
- interface batchUpdateUserStatus {
87
- total: number;
88
- success: number;
89
- failed: number;
90
- results: Array<{
91
- userId: string;
92
- success: boolean;
93
- data?: UserInfoDTO;
94
- error?: string;
95
- }>;
96
- }
97
- interface bindUsersToStore {
98
- successUsers: string[];
99
- failedUsers: Array<{
100
- userId: string;
101
- reason: string;
102
- }>;
103
- successCount: number;
104
- failedCount: number;
105
- }
106
- interface unbindUsersFromStore {
107
- successUsers: string[];
108
- failedUsers: Array<{
109
- userId: string;
110
- reason: string;
111
- }>;
112
- successCount: number;
113
- failedCount: number;
114
- }
115
- }
8
+ export import Request = UserServiceTypes.Request;
9
+ export import Response = UserServiceTypes.Response;
116
10
  interface Controller {
117
11
  getUserList(request: Request.getUserList): Promise<StandardResponse<Response.getUserList>>;
118
12
  getUserDetail(request: Request.getUserDetail): Promise<StandardResponse<Response.getUserDetail>>;
@@ -1,2 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PandoraUserManagementTypes = void 0;
4
+ var PandoraUserManagementTypes;
5
+ (function (PandoraUserManagementTypes) {
6
+ })(PandoraUserManagementTypes || (exports.PandoraUserManagementTypes = PandoraUserManagementTypes = {}));
@@ -1,88 +1,12 @@
1
+ /**
2
+ * 地址管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { AddressManagementTypes as UserAddressServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/addressManagement.types';
2
7
  export declare namespace PandoraAddressManagementTypes {
3
- namespace Request {
4
- interface getUserAddressList {
5
- userId: string;
6
- }
7
- interface getAddressDetail {
8
- id: string;
9
- userId: string;
10
- }
11
- interface createAddress {
12
- userId: string;
13
- receiverName: string;
14
- receiverMobile: string;
15
- provinceId: string;
16
- provinceName: string;
17
- cityId: string;
18
- cityName: string;
19
- districtId: string;
20
- districtName: string;
21
- townId?: string;
22
- townName?: string;
23
- detailAddress: string;
24
- postalCode?: string;
25
- isDefault?: number;
26
- operatorId: string;
27
- }
28
- interface updateUserAddress {
29
- id: string;
30
- userId: string;
31
- receiverName?: string;
32
- receiverMobile?: string;
33
- provinceId?: string;
34
- provinceName?: string;
35
- cityId?: string;
36
- cityName?: string;
37
- districtId?: string;
38
- districtName?: string;
39
- townId?: string;
40
- townName?: string;
41
- detailAddress?: string;
42
- postalCode?: string;
43
- isDefault?: number;
44
- operatorId: string;
45
- }
46
- interface deleteAddress {
47
- id: string;
48
- userId: string;
49
- operatorId: string;
50
- }
51
- interface setDefaultAddress {
52
- id: string;
53
- userId: string;
54
- operatorId: string;
55
- }
56
- }
57
- namespace Response {
58
- interface UserAddressDTO {
59
- id?: string;
60
- userId?: string;
61
- receiverName?: string;
62
- receiverMobile?: string;
63
- provinceId?: string;
64
- provinceName?: string;
65
- cityId?: string;
66
- cityName?: string;
67
- districtId?: string;
68
- districtName?: string;
69
- townId?: string;
70
- townName?: string;
71
- detailAddress?: string;
72
- postalCode?: string;
73
- isDefault?: number;
74
- createdAt?: number;
75
- updatedAt?: number;
76
- }
77
- type getUserAddressList = UserAddressDTO[];
78
- type getAddressDetail = UserAddressDTO;
79
- type createAddress = UserAddressDTO;
80
- type updateUserAddress = UserAddressDTO;
81
- type deleteAddress = {
82
- success: boolean;
83
- };
84
- type setDefaultAddress = UserAddressDTO;
85
- }
8
+ export import Request = UserAddressServiceTypes.Request;
9
+ export import Response = UserAddressServiceTypes.Response;
86
10
  interface Controller {
87
11
  getUserAddressList(request: Request.getUserAddressList): Promise<StandardResponse<Response.getUserAddressList>>;
88
12
  getAddressDetail(request: Request.getAddressDetail): Promise<StandardResponse<Response.getAddressDetail>>;
@@ -1 +1,3 @@
1
- export {};
1
+ export var PandoraAddressManagementTypes;
2
+ (function (PandoraAddressManagementTypes) {
3
+ })(PandoraAddressManagementTypes || (PandoraAddressManagementTypes = {}));
@@ -1,94 +1,12 @@
1
+ /**
2
+ * 优惠券管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { CouponManagementTypes as UserCouponServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/couponManagement.types';
2
7
  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
- }
8
+ export import Request = UserCouponServiceTypes.Request;
9
+ export import Response = UserCouponServiceTypes.Response;
92
10
  interface Controller {
93
11
  batchGrantCoupons(request: Request.batchGrantCoupons): Promise<StandardResponse<Response.batchGrantCoupons>>;
94
12
  grantCoupon(request: Request.grantCoupon): Promise<StandardResponse<Response.grantCoupon>>;
@@ -1 +1,3 @@
1
- export {};
1
+ export var PandoraCouponManagementTypes;
2
+ (function (PandoraCouponManagementTypes) {
3
+ })(PandoraCouponManagementTypes || (PandoraCouponManagementTypes = {}));
@@ -1,106 +1,12 @@
1
+ /**
2
+ * 积分管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { PointManagementTypes as UserPointServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/pointManagement.types';
2
7
  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
- }
8
+ export import Request = UserPointServiceTypes.Request;
9
+ export import Response = UserPointServiceTypes.Response;
104
10
  interface Controller {
105
11
  adjustPoint(request: Request.adjustPoint): Promise<StandardResponse<Response.adjustPoint>>;
106
12
  batchAdjustPoints(request: Request.batchAdjustPoints): Promise<StandardResponse<Response.batchAdjustPoints>>;
@@ -1 +1,3 @@
1
- export {};
1
+ export var PandoraPointManagementTypes;
2
+ (function (PandoraPointManagementTypes) {
3
+ })(PandoraPointManagementTypes || (PandoraPointManagementTypes = {}));
@@ -1,69 +1,12 @@
1
+ /**
2
+ * 地区管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { RegionManagementTypes as UserRegionServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/regionManagement.types';
2
7
  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
- }
8
+ export import Request = UserRegionServiceTypes.Request;
9
+ export import Response = UserRegionServiceTypes.Response;
67
10
  interface Controller {
68
11
  batchImportRegions(request: Request.batchImportRegions): Promise<StandardResponse<Response.batchImportRegions>>;
69
12
  getAllProvinces(request: Request.getAllProvinces): Promise<StandardResponse<Response.getAllProvinces>>;
@@ -1 +1,3 @@
1
- export {};
1
+ export var PandoraRegionManagementTypes;
2
+ (function (PandoraRegionManagementTypes) {
3
+ })(PandoraRegionManagementTypes || (PandoraRegionManagementTypes = {}));
@@ -1,118 +1,12 @@
1
+ /**
2
+ * 用户管理类型定义
3
+ * 直接使用 ecommerce-user-service-node-sdk 的类型定义
4
+ */
1
5
  import { StandardResponse } from '../../../../../types';
6
+ import { UserManagementTypes as UserServiceTypes } from '@be-link/ecommerce-user-service-node-sdk/modules/admin/types/userManagement.types';
2
7
  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: string;
49
- operatorId: string;
50
- }
51
- /**
52
- * 解绑用户与门店
53
- */
54
- interface unbindUsersFromStore {
55
- userIds: string[];
56
- storeId: string;
57
- operatorId: string;
58
- }
59
- }
60
- namespace Response {
61
- interface UserInfoDTO {
62
- id: string;
63
- mobile?: string;
64
- nickname?: string;
65
- avatar?: string;
66
- gender?: number;
67
- birthday?: string;
68
- registerChannel?: string;
69
- status?: string;
70
- memberLevel?: string;
71
- unionId?: string;
72
- openId?: string;
73
- storeId?: string;
74
- createdAt?: number;
75
- updatedAt?: number;
76
- }
77
- interface PageResponse<T> {
78
- list: T[];
79
- total: number;
80
- limit: number;
81
- offset: number;
82
- }
83
- type getUserList = PageResponse<UserInfoDTO>;
84
- type getUserDetail = UserInfoDTO;
85
- type updateUserStatus = UserInfoDTO;
86
- interface batchUpdateUserStatus {
87
- total: number;
88
- success: number;
89
- failed: number;
90
- results: Array<{
91
- userId: string;
92
- success: boolean;
93
- data?: UserInfoDTO;
94
- error?: string;
95
- }>;
96
- }
97
- interface bindUsersToStore {
98
- successUsers: string[];
99
- failedUsers: Array<{
100
- userId: string;
101
- reason: string;
102
- }>;
103
- successCount: number;
104
- failedCount: number;
105
- }
106
- interface unbindUsersFromStore {
107
- successUsers: string[];
108
- failedUsers: Array<{
109
- userId: string;
110
- reason: string;
111
- }>;
112
- successCount: number;
113
- failedCount: number;
114
- }
115
- }
8
+ export import Request = UserServiceTypes.Request;
9
+ export import Response = UserServiceTypes.Response;
116
10
  interface Controller {
117
11
  getUserList(request: Request.getUserList): Promise<StandardResponse<Response.getUserList>>;
118
12
  getUserDetail(request: Request.getUserDetail): Promise<StandardResponse<Response.getUserDetail>>;
@@ -1 +1,3 @@
1
- export {};
1
+ export var PandoraUserManagementTypes;
2
+ (function (PandoraUserManagementTypes) {
3
+ })(PandoraUserManagementTypes || (PandoraUserManagementTypes = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-backend-bff-service-node-sdk",
3
- "version": "0.0.117",
3
+ "version": "0.0.118",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -29,7 +29,7 @@
29
29
  "@be-link/ecommerce-volcengine-open-api-sdk": "^1.0.11",
30
30
  "@be-link/ecommerce-client-backend-service-node-sdk": "^0.0.19",
31
31
  "@be-link/ecommerce-store-service-node-sdk": "^0.1.2",
32
- "@be-link/ecommerce-user-service-node-sdk": "0.0.26",
32
+ "@be-link/ecommerce-user-service-node-sdk": "0.0.28",
33
33
  "@be-link/ecommerce-trade-service-node-sdk": "0.0.64",
34
34
  "@be-link/ecommerce-task-center-service-node-sdk": "^0.0.45",
35
35
  "@be-link/ecommerce-tag-service-node-sdk": "^0.1.1",