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

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.
@@ -11,6 +11,7 @@ declare class StoreService extends BaseService implements Store.StoreController
11
11
  batchGetStoreInfo(request: Store.Request.BatchGetStoreInfo): Promise<Store.Response.BatchGetStoreInfo>;
12
12
  getStoreList(request: Store.Request.GetStoreList): Promise<Store.Response.GetStoreList>;
13
13
  getStoreIdByName(request: Store.Request.GetStoreIdByName): Promise<Store.Response.GetStoreIdByName>;
14
+ batchGetStoreIdsByNames(request: Store.Request.BatchGetStoreIdsByNames): Promise<Store.Response.BatchGetStoreIdsByNames>;
14
15
  bindStoreUser(request: Store.Request.BindStoreUser): Promise<Store.Response.BindStoreUser>;
15
16
  getStoreFullInfo(request: Store.Request.GetStoreFullInfo): Promise<Store.Response.GetStoreFullInfo>;
16
17
  getStoreIdsByConditions(request: Store.Request.GetStoreIdsByConditions): Promise<Store.Response.GetStoreIdsByConditions>;
@@ -48,6 +48,9 @@ let StoreService = class StoreService extends BaseService_1.default {
48
48
  getStoreIdByName(request) {
49
49
  return (0, http_1.callApi)(this.getApiUrl(this.getStoreIdByName), request);
50
50
  }
51
+ batchGetStoreIdsByNames(request) {
52
+ return (0, http_1.callApi)(this.getApiUrl(this.batchGetStoreIdsByNames), request);
53
+ }
51
54
  bindStoreUser(request) {
52
55
  return (0, http_1.callApi)(this.getApiUrl(this.bindStoreUser), request);
53
56
  }
@@ -115,6 +118,11 @@ __decorate([
115
118
  (0, tsoa_1.Post)('get-store-id-by-name'),
116
119
  __param(0, (0, tsoa_1.Body)())
117
120
  ], StoreService.prototype, "getStoreIdByName", null);
121
+ __decorate([
122
+ (0, tsoa_1.OperationId)('批量根据门店名称精确获取门店ID'),
123
+ (0, tsoa_1.Post)('batch-get-store-ids-by-names'),
124
+ __param(0, (0, tsoa_1.Body)())
125
+ ], StoreService.prototype, "batchGetStoreIdsByNames", null);
118
126
  __decorate([
119
127
  (0, tsoa_1.OperationId)('统一绑定门店人员'),
120
128
  (0, tsoa_1.Post)('bind-store-user'),
@@ -467,6 +467,13 @@ export declare namespace Store {
467
467
  /** 门店名称 */
468
468
  storeName: string;
469
469
  }
470
+ /**
471
+ * 批量根据门店名称精确获取门店ID请求
472
+ */
473
+ interface BatchGetStoreIdsByNames {
474
+ /** 门店名称列表 */
475
+ storeNames: string[];
476
+ }
470
477
  /**
471
478
  * 根据条件查询门店ID列表请求
472
479
  */
@@ -677,6 +684,11 @@ export declare namespace Store {
677
684
  storeName: string;
678
685
  }>;
679
686
  }
687
+ /**
688
+ * 批量根据门店名称精确获取门店ID响应
689
+ * key 为门店名称,value 为门店ID
690
+ */
691
+ type BatchGetStoreIdsByNames = Record<string, string>;
680
692
  /**
681
693
  * 根据条件查询门店ID列表响应
682
694
  */
@@ -780,6 +792,12 @@ export declare namespace Store {
780
792
  * @returns 响应数据
781
793
  */
782
794
  getStoreIdByName(request: Store.Request.GetStoreIdByName): Promise<Store.Response.GetStoreIdByName>;
795
+ /**
796
+ * 批量根据门店名称精确获取门店ID
797
+ * @param request 请求参数
798
+ * @returns 响应数据
799
+ */
800
+ batchGetStoreIdsByNames(request: Store.Request.BatchGetStoreIdsByNames): Promise<Store.Response.BatchGetStoreIdsByNames>;
783
801
  /**
784
802
  * 统一绑定门店人员(支持店长、BD、加盟商、BDM等)
785
803
  * 替换逻辑:先解绑所有当前绑定该 userId 的门店,然后将传入的 storeIds 绑定到该 userId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-store-service-node-sdk",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "EcommerceStoreService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",