@be-link/ecommerce-store-service-node-sdk 0.1.19 → 0.1.21
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.
|
@@ -15,6 +15,8 @@ declare class StoreService extends BaseService implements Store.StoreController
|
|
|
15
15
|
getStoreFullInfo(request: Store.Request.GetStoreFullInfo): Promise<Store.Response.GetStoreFullInfo>;
|
|
16
16
|
getStoreIdsByConditions(request: Store.Request.GetStoreIdsByConditions): Promise<Store.Response.GetStoreIdsByConditions>;
|
|
17
17
|
getStoreCount(): Promise<Store.Response.GetStoreCount>;
|
|
18
|
+
bindWelfareOfficial(request: Store.Request.BindWelfareOfficial): Promise<void>;
|
|
19
|
+
getWelfareOfficialByStoreId(request: Store.Request.GetWelfareOfficialByStoreId): Promise<Store.Response.GetWelfareOfficialByStoreId>;
|
|
18
20
|
}
|
|
19
21
|
export declare const storeService: StoreService;
|
|
20
22
|
export default storeService;
|
package/modules/store/service.js
CHANGED
|
@@ -60,6 +60,12 @@ let StoreService = class StoreService extends BaseService_1.default {
|
|
|
60
60
|
getStoreCount() {
|
|
61
61
|
return (0, http_1.callApi)(this.getApiUrl(this.getStoreCount));
|
|
62
62
|
}
|
|
63
|
+
bindWelfareOfficial(request) {
|
|
64
|
+
return (0, http_1.callApi)(this.getApiUrl(this.bindWelfareOfficial), request);
|
|
65
|
+
}
|
|
66
|
+
getWelfareOfficialByStoreId(request) {
|
|
67
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getWelfareOfficialByStoreId), request);
|
|
68
|
+
}
|
|
63
69
|
};
|
|
64
70
|
__decorate([
|
|
65
71
|
(0, tsoa_1.OperationId)('创建门店'),
|
|
@@ -125,6 +131,16 @@ __decorate([
|
|
|
125
131
|
(0, tsoa_1.OperationId)('获取门店数量'),
|
|
126
132
|
(0, tsoa_1.Post)('get-store-count')
|
|
127
133
|
], StoreService.prototype, "getStoreCount", null);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, tsoa_1.OperationId)('绑定福利官'),
|
|
136
|
+
(0, tsoa_1.Post)('bind-welfare-official'),
|
|
137
|
+
__param(0, (0, tsoa_1.Body)())
|
|
138
|
+
], StoreService.prototype, "bindWelfareOfficial", null);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, tsoa_1.OperationId)('通过门店获取福利官信息'),
|
|
141
|
+
(0, tsoa_1.Post)('get-welfare-official-by-store-id'),
|
|
142
|
+
__param(0, (0, tsoa_1.Body)())
|
|
143
|
+
], StoreService.prototype, "getWelfareOfficialByStoreId", null);
|
|
128
144
|
StoreService = __decorate([
|
|
129
145
|
(0, tsoa_1.Route)('store'),
|
|
130
146
|
(0, tsoa_1.Tags)('Store')
|
package/modules/store/types.d.ts
CHANGED
|
@@ -129,6 +129,19 @@ export declare namespace Store {
|
|
|
129
129
|
/** 人员数量 */
|
|
130
130
|
userCount: number;
|
|
131
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* 门店福利官信息
|
|
134
|
+
*/
|
|
135
|
+
interface WelfareOfficial {
|
|
136
|
+
/** 福利官用户ID */
|
|
137
|
+
welfareOfficialUserId: string;
|
|
138
|
+
/** 福利官姓名 */
|
|
139
|
+
welfareOfficialName: string;
|
|
140
|
+
/** 福利官企微id */
|
|
141
|
+
welfareOfficialQyUserId: string;
|
|
142
|
+
/** 福利官企微二维码 */
|
|
143
|
+
welfareOfficialQrCodeUrl: string;
|
|
144
|
+
}
|
|
132
145
|
/**
|
|
133
146
|
* 完整门店信息(包含基础、结算、仓配信息)
|
|
134
147
|
*/
|
|
@@ -138,6 +151,7 @@ export declare namespace Store {
|
|
|
138
151
|
storeGroup?: StoreGroup;
|
|
139
152
|
storeUser?: StoreUser;
|
|
140
153
|
statistics?: StoreStatistics;
|
|
154
|
+
welfareOfficial?: WelfareOfficial;
|
|
141
155
|
}
|
|
142
156
|
}
|
|
143
157
|
namespace QueryBlock {
|
|
@@ -239,7 +253,9 @@ export declare namespace Store {
|
|
|
239
253
|
/** 门店人员信息表 */
|
|
240
254
|
STORE_USER = "STORE_USER",
|
|
241
255
|
/** 门店统计数据表 */
|
|
242
|
-
STATISTICS = "STATISTICS"
|
|
256
|
+
STATISTICS = "STATISTICS",
|
|
257
|
+
/** 门店福利官信息表 */
|
|
258
|
+
WELFARE_OFFICIAL = "WELFARE_OFFICIAL"
|
|
243
259
|
}
|
|
244
260
|
}
|
|
245
261
|
namespace Request {
|
|
@@ -468,6 +484,18 @@ export declare namespace Store {
|
|
|
468
484
|
/** 门店统计数据查询块 */
|
|
469
485
|
statisticsQuery?: QueryBlock.Statistics;
|
|
470
486
|
}
|
|
487
|
+
/** 绑定福利官 */
|
|
488
|
+
interface BindWelfareOfficial {
|
|
489
|
+
/** 门店ID */
|
|
490
|
+
storeIds: string[];
|
|
491
|
+
/** 福利官用户ID */
|
|
492
|
+
welfareOfficialUserId: string;
|
|
493
|
+
}
|
|
494
|
+
/** 通过门店获取福利官信息 */
|
|
495
|
+
interface GetWelfareOfficialByStoreId {
|
|
496
|
+
/** 门店ID */
|
|
497
|
+
storeId: string;
|
|
498
|
+
}
|
|
471
499
|
}
|
|
472
500
|
namespace Response {
|
|
473
501
|
/**
|
|
@@ -547,7 +575,10 @@ export declare namespace Store {
|
|
|
547
575
|
*/
|
|
548
576
|
interface GetStoreDetail {
|
|
549
577
|
/** 门店完整信息 */
|
|
550
|
-
store: Entity.StoreBasicInfo
|
|
578
|
+
store: Entity.StoreBasicInfo & {
|
|
579
|
+
/** 门店福利官信息 */
|
|
580
|
+
welfareOfficial?: Entity.WelfareOfficial;
|
|
581
|
+
};
|
|
551
582
|
}
|
|
552
583
|
/**
|
|
553
584
|
* 获取门店完整信息响应
|
|
@@ -569,6 +600,8 @@ export declare namespace Store {
|
|
|
569
600
|
storeUser?: Entity.StoreUser;
|
|
570
601
|
/** 统计信息 */
|
|
571
602
|
statistics?: Entity.StoreStatistics;
|
|
603
|
+
/** 门店福利官信息 */
|
|
604
|
+
welfareOfficial?: Entity.WelfareOfficial;
|
|
572
605
|
};
|
|
573
606
|
}
|
|
574
607
|
/**
|
|
@@ -591,6 +624,8 @@ export declare namespace Store {
|
|
|
591
624
|
storeUser?: Entity.StoreUser;
|
|
592
625
|
/** 门店统计数据(如果请求了该块) */
|
|
593
626
|
statistics?: Entity.StoreStatistics;
|
|
627
|
+
/** 门店福利官信息(如果请求了该块) */
|
|
628
|
+
welfareOfficial?: Entity.WelfareOfficial;
|
|
594
629
|
}>;
|
|
595
630
|
/** 未找到的门店ID列表 */
|
|
596
631
|
notFoundStoreIds?: string[];
|
|
@@ -615,6 +650,8 @@ export declare namespace Store {
|
|
|
615
650
|
storeUser?: Entity.StoreUser;
|
|
616
651
|
/** 门店统计数据(如果请求了该块) */
|
|
617
652
|
statistics?: Entity.StoreStatistics;
|
|
653
|
+
/** 门店福利官信息(如果请求了该块) */
|
|
654
|
+
welfareOfficial?: Entity.WelfareOfficial;
|
|
618
655
|
}>;
|
|
619
656
|
/** 总数 */
|
|
620
657
|
total: number;
|
|
@@ -649,6 +686,17 @@ export declare namespace Store {
|
|
|
649
686
|
/** 门店总数 */
|
|
650
687
|
totalStores: number;
|
|
651
688
|
}
|
|
689
|
+
/** 通过门店获取福利官信息响应 */
|
|
690
|
+
interface GetWelfareOfficialByStoreId {
|
|
691
|
+
/** 福利官用户ID */
|
|
692
|
+
welfareOfficialUserId: string;
|
|
693
|
+
/** 福利官姓名 */
|
|
694
|
+
welfareOfficialName: string;
|
|
695
|
+
/** 福利官企微id */
|
|
696
|
+
welfareOfficialQyUserId: string;
|
|
697
|
+
/** 福利官企微二维码 */
|
|
698
|
+
welfareOfficialQrCodeUrl: string;
|
|
699
|
+
}
|
|
652
700
|
}
|
|
653
701
|
/**
|
|
654
702
|
* Store Controller 接口定义
|
|
@@ -732,5 +780,9 @@ export declare namespace Store {
|
|
|
732
780
|
* @returns 响应数据
|
|
733
781
|
*/
|
|
734
782
|
getStoreCount(): Promise<Store.Response.GetStoreCount>;
|
|
783
|
+
/** 绑定福利官 */
|
|
784
|
+
bindWelfareOfficial(request: Store.Request.BindWelfareOfficial): Promise<void>;
|
|
785
|
+
/** 通过门店获取福利官信息 */
|
|
786
|
+
getWelfareOfficialByStoreId(request: Store.Request.GetWelfareOfficialByStoreId): Promise<Store.Response.GetWelfareOfficialByStoreId>;
|
|
735
787
|
}
|
|
736
788
|
}
|
package/modules/store/types.js
CHANGED
|
@@ -23,6 +23,8 @@ var Store;
|
|
|
23
23
|
BlockType["STORE_USER"] = "STORE_USER";
|
|
24
24
|
/** 门店统计数据表 */
|
|
25
25
|
BlockType["STATISTICS"] = "STATISTICS";
|
|
26
|
+
/** 门店福利官信息表 */
|
|
27
|
+
BlockType["WELFARE_OFFICIAL"] = "WELFARE_OFFICIAL";
|
|
26
28
|
})(BlockType = ResponseBlock.BlockType || (ResponseBlock.BlockType = {}));
|
|
27
29
|
})(ResponseBlock = Store.ResponseBlock || (Store.ResponseBlock = {}));
|
|
28
30
|
})(Store || (exports.Store = Store = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/ecommerce-store-service-node-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "EcommerceStoreService Node.js SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@be-link/ecommerce-tag-service-node-sdk": "
|
|
13
|
+
"@be-link/ecommerce-tag-service-node-sdk": "0.0.14",
|
|
14
14
|
"@fastify/request-context": "6.2.1",
|
|
15
15
|
"axios": "1.13.2",
|
|
16
16
|
"axios-retry": "4.0.0",
|
|
17
|
-
"safe-stable-stringify": "
|
|
17
|
+
"safe-stable-stringify": "2.4.3",
|
|
18
18
|
"uuid": "9.0.1",
|
|
19
|
-
"tsoa": "
|
|
20
|
-
"pino": "
|
|
21
|
-
"pino-pretty": "
|
|
22
|
-
"pino-roll": "
|
|
19
|
+
"tsoa": "6.6.0",
|
|
20
|
+
"pino": "10.1.0",
|
|
21
|
+
"pino-pretty": "13.1.3",
|
|
22
|
+
"pino-roll": "4.0.0"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "rm -rf ./dist && tsc && cp package.json README.md ./dist/ 2>/dev/null || true",
|