@be-link/ecommerce-client-backend-service-node-sdk 0.0.3 → 0.0.4

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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export type { RoomService } from './modules/room/types';
2
2
  export { ENUM as CLIENT_BACKEND_ENUM } from './enum';
3
+ export type { Room, RoomAutoStartConfig, RoomLoopVideo, RoomTag, RoomBindStore } from './types';
@@ -10,6 +10,8 @@ declare class RoomServiceClass extends BaseService implements RoomService.BaseCo
10
10
  uploadShareCover(request: RoomService.Request.UploadShareCover): Promise<RoomService.Response.UploadShareCover>;
11
11
  settle(request: RoomService.Request.settle): Promise<RoomService.Response.settle>;
12
12
  roomStatus(request: RoomService.Request.RoomStatus): Promise<RoomService.Response.RoomStatus>;
13
+ getBindStore(request: RoomService.Request.GetBindStore): Promise<RoomService.Response.GetBindStore>;
14
+ bindStore(request: RoomService.Request.BindStore): Promise<void>;
13
15
  }
14
16
  export declare const roomService: RoomServiceClass;
15
17
  export default roomService;
@@ -42,6 +42,12 @@ let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
42
42
  roomStatus(request) {
43
43
  return (0, http_1.callApi)(this.getApiUrl(this.roomStatus), request);
44
44
  }
45
+ getBindStore(request) {
46
+ return (0, http_1.callApi)(this.getApiUrl(this.getBindStore), request);
47
+ }
48
+ bindStore(request) {
49
+ return (0, http_1.callApi)(this.getApiUrl(this.bindStore), request);
50
+ }
45
51
  };
46
52
  __decorate([
47
53
  (0, tsoa_1.OperationId)('同步活动'),
@@ -78,6 +84,16 @@ __decorate([
78
84
  (0, tsoa_1.Post)('room-status'),
79
85
  __param(0, (0, tsoa_1.Body)())
80
86
  ], RoomServiceClass.prototype, "roomStatus", null);
87
+ __decorate([
88
+ (0, tsoa_1.OperationId)('绑定门店列表查询'),
89
+ (0, tsoa_1.Post)('get-bind-store'),
90
+ __param(0, (0, tsoa_1.Body)())
91
+ ], RoomServiceClass.prototype, "getBindStore", null);
92
+ __decorate([
93
+ (0, tsoa_1.OperationId)('绑定门店'),
94
+ (0, tsoa_1.Post)('bind-store'),
95
+ __param(0, (0, tsoa_1.Body)())
96
+ ], RoomServiceClass.prototype, "bindStore", null);
81
97
  RoomServiceClass = __decorate([
82
98
  (0, tsoa_1.Route)('room'),
83
99
  (0, tsoa_1.Tags)('Room')
@@ -46,6 +46,22 @@ export declare namespace RoomService {
46
46
  interface RoomStatus {
47
47
  id: string;
48
48
  }
49
+ /**
50
+ * 绑定门店列表查询
51
+ */
52
+ interface GetBindStore {
53
+ /** 直播间ID */
54
+ liveStreamRoomId: string;
55
+ }
56
+ /**
57
+ * 绑定门店
58
+ */
59
+ interface BindStore {
60
+ /** 直播间ID */
61
+ liveStreamRoomId: string;
62
+ /** 门店ID列表 */
63
+ bind: string[];
64
+ }
49
65
  }
50
66
  namespace Response {
51
67
  /**
@@ -89,6 +105,13 @@ export declare namespace RoomService {
89
105
  id: string;
90
106
  status: ENUM.ROOM.STATUS;
91
107
  }
108
+ /**
109
+ * 绑定门店列表响应
110
+ */
111
+ interface GetBindStore {
112
+ /** 已绑定门店ID列表 */
113
+ bind: string[];
114
+ }
92
115
  }
93
116
  interface BaseController {
94
117
  sync(request: ListActivityAPIRequest): Promise<ListActivityAPIResponse>;
@@ -98,5 +121,7 @@ export declare namespace RoomService {
98
121
  uploadShareCover(request: Request.UploadShareCover, req?: FastifyRequest): Promise<Response.UploadShareCover>;
99
122
  settle(request: Request.settle, req?: FastifyRequest): Promise<Response.settle>;
100
123
  roomStatus(request: Request.RoomStatus, req?: FastifyRequest): Promise<Response.RoomStatus>;
124
+ getBindStore(request: Request.GetBindStore, req?: FastifyRequest): Promise<Response.GetBindStore>;
125
+ bindStore(request: Request.BindStore, req?: FastifyRequest): Promise<void>;
101
126
  }
102
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-client-backend-service-node-sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/types.d.ts CHANGED
@@ -122,3 +122,22 @@ export interface RoomTag {
122
122
  /** 创建时间 */
123
123
  createdAt: number;
124
124
  }
125
+ /**
126
+ * 门店信息接口
127
+ */
128
+ export interface RoomBindStore {
129
+ /** 门店id */
130
+ id: string;
131
+ /** 门店名称 */
132
+ storeName: string;
133
+ /** 门店地址 */
134
+ address: string;
135
+ /** 门店电话 */
136
+ telephone: string;
137
+ /** 绑定标签id,根据是否是空字符串表示是否有分组 */
138
+ tagId: string;
139
+ /** 联系人姓名(店长) */
140
+ storeManagerName: string;
141
+ /** 直播间id,根据id是否为空字符串表示是否绑定了本店 */
142
+ liveStreamRoomId: string;
143
+ }