@be-link/ecommerce-client-backend-service-node-sdk 0.1.78 → 0.1.79

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.
@@ -8,6 +8,7 @@ declare class UserDataServiceClass extends BaseService implements UserDataServic
8
8
  exportLiveRoomUserList(request: UserDataService.Request.ExportLiveRoomUserList): Promise<UserDataService.Response.ExportLiveRoomUserList>;
9
9
  getUserLiveWatchSummary(request: UserDataService.Request.GetUserLiveWatchSummary): Promise<UserDataService.Response.GetUserLiveWatchSummary>;
10
10
  getUserLiveWatchCalendar(request: UserDataService.Request.GetUserLiveWatchCalendar): Promise<UserDataService.Response.GetUserLiveWatchCalendar>;
11
+ replaceThirdPartyUserIdToUserId(request: UserDataService.Request.ReplaceThirdPartyUserIdToUserId): Promise<UserDataService.Response.ReplaceThirdPartyUserIdToUserId>;
11
12
  }
12
13
  export declare const userDataService: UserDataServiceClass;
13
14
  export default userDataService;
@@ -39,6 +39,9 @@ let UserDataServiceClass = class UserDataServiceClass extends BaseService_1.defa
39
39
  getUserLiveWatchCalendar(request) {
40
40
  return (0, http_1.callApi)(this.getApiUrl(this.getUserLiveWatchCalendar), request);
41
41
  }
42
+ replaceThirdPartyUserIdToUserId(request) {
43
+ return (0, http_1.callApi)(this.getApiUrl(this.replaceThirdPartyUserIdToUserId), request);
44
+ }
42
45
  };
43
46
  __decorate([
44
47
  (0, tsoa_1.OperationId)('获取用户列表'),
@@ -70,6 +73,11 @@ __decorate([
70
73
  (0, tsoa_1.Post)('get-user-live-watch-calendar'),
71
74
  __param(0, (0, tsoa_1.Body)())
72
75
  ], UserDataServiceClass.prototype, "getUserLiveWatchCalendar", null);
76
+ __decorate([
77
+ (0, tsoa_1.OperationId)('thirdPartyUserId置换userId'),
78
+ (0, tsoa_1.Post)('replace-third-party-user-id-to-user-id'),
79
+ __param(0, (0, tsoa_1.Body)())
80
+ ], UserDataServiceClass.prototype, "replaceThirdPartyUserIdToUserId", null);
73
81
  UserDataServiceClass = __decorate([
74
82
  (0, tsoa_1.Route)('userData'),
75
83
  (0, tsoa_1.Tags)('UserData')
@@ -107,6 +107,13 @@ export declare namespace UserDataService {
107
107
  /** 用户ID */
108
108
  userId: string;
109
109
  }
110
+ /**
111
+ * thirdPartyUserId 置换 userId
112
+ */
113
+ interface ReplaceThirdPartyUserIdToUserId {
114
+ /** 第三方用户ID列表,最大1000个 */
115
+ thirdPartyUserIds: number[];
116
+ }
110
117
  }
111
118
  namespace Response {
112
119
  /**
@@ -171,6 +178,15 @@ export declare namespace UserDataService {
171
178
  */
172
179
  days: UserLiveWatchDayItem[];
173
180
  }
181
+ /**
182
+ * thirdPartyUserId 置换 userId 响应
183
+ */
184
+ interface ReplaceThirdPartyUserIdToUserId {
185
+ [thirdPartyUserId: string]: {
186
+ userId: string;
187
+ storeId: string;
188
+ };
189
+ }
174
190
  }
175
191
  /**
176
192
  * 用户看播日历 - 单日数据
@@ -221,6 +237,7 @@ export declare namespace UserDataService {
221
237
  exportLiveRoomUserList(request: Request.ExportLiveRoomUserList, req?: FastifyRequest): Promise<Response.ExportLiveRoomUserList>;
222
238
  getUserLiveWatchSummary(request: Request.GetUserLiveWatchSummary, req?: FastifyRequest): Promise<Response.GetUserLiveWatchSummary>;
223
239
  getUserLiveWatchCalendar(request: Request.GetUserLiveWatchCalendar, req?: FastifyRequest): Promise<Response.GetUserLiveWatchCalendar>;
240
+ replaceThirdPartyUserIdToUserId(request: Request.ReplaceThirdPartyUserIdToUserId, req?: FastifyRequest): Promise<Response.ReplaceThirdPartyUserIdToUserId>;
224
241
  }
225
242
  }
226
243
  /**
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.78",
3
+ "version": "0.1.79",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",