@be-link/ecommerce-client-backend-service-node-sdk 0.1.15 → 0.1.17

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.
@@ -13,7 +13,7 @@ declare class DataServiceClass extends BaseService implements DataService.BaseCo
13
13
  /** 直播间商品销量排行查询 */
14
14
  getLiveStreamProductTop(request: DataService.Request.LiveStreamProductTop): Promise<DataService.Response.LiveStreamProductTop>;
15
15
  /** 观众导出数据 */
16
- audienceExport(): Promise<DataService.Response.AudienceExport>;
16
+ audienceExport(request: DataService.Request.AudienceList): Promise<DataService.Response.AudienceExport>;
17
17
  }
18
18
  export declare const dataService: DataServiceClass;
19
19
  export default dataService;
@@ -46,8 +46,8 @@ let DataServiceClass = class DataServiceClass extends BaseService_1.default {
46
46
  return (0, http_1.callApi)(this.getApiUrl(this.getLiveStreamProductTop), request);
47
47
  }
48
48
  /** 观众导出数据 */
49
- audienceExport() {
50
- return (0, http_1.callApi)(this.getApiUrl(this.audienceExport), undefined);
49
+ audienceExport(request) {
50
+ return (0, http_1.callApi)(this.getApiUrl(this.audienceExport), request);
51
51
  }
52
52
  };
53
53
  __decorate([
@@ -87,7 +87,8 @@ __decorate([
87
87
  ], DataServiceClass.prototype, "getLiveStreamProductTop", null);
88
88
  __decorate([
89
89
  (0, tsoa_1.OperationId)('观众导出数据'),
90
- (0, tsoa_1.Post)('audience-export')
90
+ (0, tsoa_1.Post)('audience-export'),
91
+ __param(0, (0, tsoa_1.Body)())
91
92
  ], DataServiceClass.prototype, "audienceExport", null);
92
93
  DataServiceClass = __decorate([
93
94
  (0, tsoa_1.Route)('data'),
@@ -50,7 +50,7 @@ export declare namespace DataService {
50
50
  */
51
51
  interface AudienceList {
52
52
  /** 观众数据主键id,用于导出 */
53
- ids: string[];
53
+ ids?: number[];
54
54
  /** 直播间id */
55
55
  liveStreamRoomId: string;
56
56
  /** 门店id */
@@ -122,8 +122,12 @@ export declare namespace DataService {
122
122
  * 观众导出数据响应
123
123
  */
124
124
  interface AudienceExport {
125
+ /** 观众数据表头 */
125
126
  headers: string[];
127
+ /** 观众数据内容 */
126
128
  data: string[][];
129
+ /** 观众数据总数 */
130
+ total: number;
127
131
  }
128
132
  }
129
133
  interface BaseController {
@@ -134,7 +138,7 @@ export declare namespace DataService {
134
138
  getAudienceList(request: Request.AudienceList, req?: FastifyRequest): Promise<Response.AudienceList>;
135
139
  getLiveStreamStatistics(request: Request.LiveStreamStatistics, req?: FastifyRequest): Promise<Response.LiveStreamStatistics>;
136
140
  getLiveStreamProductTop(request: Request.LiveStreamProductTop, req?: FastifyRequest): Promise<Response.LiveStreamProductTop>;
137
- audienceExport(req?: FastifyRequest): Promise<Response.AudienceExport>;
141
+ audienceExport(request: Request.AudienceList, req?: FastifyRequest): Promise<Response.AudienceExport>;
138
142
  }
139
143
  }
140
144
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-client-backend-service-node-sdk",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",