@be-link/ecommerce-store-service-node-sdk 0.1.22 → 0.1.23

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.
@@ -17,6 +17,7 @@ declare class StoreService extends BaseService implements Store.StoreController
17
17
  getStoreCount(): Promise<Store.Response.GetStoreCount>;
18
18
  bindWelfareOfficial(request: Store.Request.BindWelfareOfficial): Promise<void>;
19
19
  getWelfareOfficialByStoreId(request: Store.Request.GetWelfareOfficialByStoreId): Promise<Store.Response.GetWelfareOfficialByStoreId>;
20
+ batchGetWelfareOfficialByStoreIds(request: Store.Request.BatchGetWelfareOfficialByStoreIds): Promise<Store.Response.BatchGetWelfareOfficialByStoreIds>;
20
21
  }
21
22
  export declare const storeService: StoreService;
22
23
  export default storeService;
@@ -66,6 +66,9 @@ let StoreService = class StoreService extends BaseService_1.default {
66
66
  getWelfareOfficialByStoreId(request) {
67
67
  return (0, http_1.callApi)(this.getApiUrl(this.getWelfareOfficialByStoreId), request);
68
68
  }
69
+ batchGetWelfareOfficialByStoreIds(request) {
70
+ return (0, http_1.callApi)(this.getApiUrl(this.batchGetWelfareOfficialByStoreIds), request);
71
+ }
69
72
  };
70
73
  __decorate([
71
74
  (0, tsoa_1.OperationId)('创建门店'),
@@ -141,6 +144,11 @@ __decorate([
141
144
  (0, tsoa_1.Post)('get-welfare-official-by-store-id'),
142
145
  __param(0, (0, tsoa_1.Body)())
143
146
  ], StoreService.prototype, "getWelfareOfficialByStoreId", null);
147
+ __decorate([
148
+ (0, tsoa_1.OperationId)('批量通过门店IDs获取福利官信息'),
149
+ (0, tsoa_1.Post)('batch-get-welfare-official-by-store-ids'),
150
+ __param(0, (0, tsoa_1.Body)())
151
+ ], StoreService.prototype, "batchGetWelfareOfficialByStoreIds", null);
144
152
  StoreService = __decorate([
145
153
  (0, tsoa_1.Route)('store'),
146
154
  (0, tsoa_1.Tags)('Store')
@@ -496,6 +496,11 @@ export declare namespace Store {
496
496
  /** 门店ID */
497
497
  storeId: string;
498
498
  }
499
+ /** 批量通过门店IDs获取福利官信息 */
500
+ interface BatchGetWelfareOfficialByStoreIds {
501
+ /** 门店ID列表 */
502
+ storeIds: string[];
503
+ }
499
504
  }
500
505
  namespace Response {
501
506
  /**
@@ -697,6 +702,19 @@ export declare namespace Store {
697
702
  /** 福利官企微二维码 */
698
703
  welfareOfficialQrCodeUrl: string;
699
704
  }
705
+ /** 批量通过门店IDs获取福利官信息响应,key 为门店 ID */
706
+ type BatchGetWelfareOfficialByStoreIds = Record<string, {
707
+ /** 门店ID */
708
+ storeId: string;
709
+ /** 福利官用户ID */
710
+ welfareOfficialUserId: string;
711
+ /** 福利官姓名 */
712
+ welfareOfficialName: string;
713
+ /** 福利官企微id */
714
+ welfareOfficialQyUserId: string;
715
+ /** 福利官企微二维码 */
716
+ welfareOfficialQrCodeUrl: string;
717
+ }>;
700
718
  }
701
719
  /**
702
720
  * Store Controller 接口定义
@@ -784,5 +802,7 @@ export declare namespace Store {
784
802
  bindWelfareOfficial(request: Store.Request.BindWelfareOfficial): Promise<void>;
785
803
  /** 通过门店获取福利官信息 */
786
804
  getWelfareOfficialByStoreId(request: Store.Request.GetWelfareOfficialByStoreId): Promise<Store.Response.GetWelfareOfficialByStoreId>;
805
+ /** 批量通过门店IDs获取福利官信息 */
806
+ batchGetWelfareOfficialByStoreIds(request: Store.Request.BatchGetWelfareOfficialByStoreIds): Promise<Store.Response.BatchGetWelfareOfficialByStoreIds>;
787
807
  }
788
808
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-store-service-node-sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "EcommerceStoreService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",