@be-link/ecommerce-client-backend-service-node-sdk 0.1.65 → 0.1.67

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/enum.d.ts CHANGED
@@ -279,6 +279,8 @@ export declare namespace ENUM {
279
279
  /** 支付调整(对账冲平) */
280
280
  PAY_ADJUST = 3,
281
281
  /** 退款调整(对账冲平) */
282
- REFUND_ADJUST = 4
282
+ REFUND_ADJUST = 4,
283
+ /** 订单笔数调整(对账冲平) */
284
+ ORDER_COUNT_ADJUST = 5
283
285
  }
284
286
  }
package/enum.js CHANGED
@@ -319,5 +319,7 @@ var ENUM;
319
319
  TransactionType[TransactionType["PAY_ADJUST"] = 3] = "PAY_ADJUST";
320
320
  /** 退款调整(对账冲平) */
321
321
  TransactionType[TransactionType["REFUND_ADJUST"] = 4] = "REFUND_ADJUST";
322
+ /** 订单笔数调整(对账冲平) */
323
+ TransactionType[TransactionType["ORDER_COUNT_ADJUST"] = 5] = "ORDER_COUNT_ADJUST";
322
324
  })(TransactionType = ENUM.TransactionType || (ENUM.TransactionType = {}));
323
325
  })(ENUM || (exports.ENUM = ENUM = {}));
@@ -39,7 +39,7 @@ declare class DataServiceClass extends BaseService implements DataService.BaseCo
39
39
  /** 每小时更新用户首次消费时间 */
40
40
  hourlyUpdateUserFirstConsumptionTime(): Promise<void>;
41
41
  /** 每日对账任务 */
42
- dailyReconciliation(): Promise<void>;
42
+ dailyReconciliation(request?: DataService.Request.DailyReconciliation): Promise<void>;
43
43
  /** 批量更新用户消费数据(从CSV文件) */
44
44
  batchUpdateUserConsumptionFromCsv(request: DataService.Request.BatchUpdateUserConsumptionFromCsv): Promise<void>;
45
45
  batchUpdateUserWatchDataFromCsv(request: DataService.Request.BatchUpdateUserWatchDataFromCsv): Promise<void>;
@@ -98,8 +98,8 @@ let DataServiceClass = class DataServiceClass extends BaseService_1.default {
98
98
  return (0, http_1.callApi)(this.getApiUrl(this.hourlyUpdateUserFirstConsumptionTime), undefined);
99
99
  }
100
100
  /** 每日对账任务 */
101
- dailyReconciliation() {
102
- return (0, http_1.callApi)(this.getApiUrl(this.dailyReconciliation), undefined);
101
+ dailyReconciliation(request) {
102
+ return (0, http_1.callApi)(this.getApiUrl(this.dailyReconciliation), request);
103
103
  }
104
104
  /** 批量更新用户消费数据(从CSV文件) */
105
105
  batchUpdateUserConsumptionFromCsv(request) {
@@ -186,6 +186,13 @@ export declare namespace DataService {
186
186
  /** 直播间id */
187
187
  liveStreamRoomId: string;
188
188
  }
189
+ /**
190
+ * 每日对账任务
191
+ */
192
+ interface DailyReconciliation {
193
+ /** 目标对账日期(ISO 8601格式,如 "2024-01-15"),不传则对账昨天 */
194
+ targetDate?: string;
195
+ }
189
196
  /**
190
197
  * 批量更新用户消费数据(从CSV文件)
191
198
  */
@@ -284,7 +291,7 @@ export declare namespace DataService {
284
291
  syncAudienceStatistics(): Promise<void>;
285
292
  dailyUpdateUserFirstWatchTime(req?: FastifyRequest): Promise<void>;
286
293
  hourlyUpdateUserFirstConsumptionTime(req?: FastifyRequest): Promise<void>;
287
- dailyReconciliation(req?: FastifyRequest): Promise<void>;
294
+ dailyReconciliation(request?: Request.DailyReconciliation, req?: FastifyRequest): Promise<void>;
288
295
  batchUpdateUserConsumptionFromCsv(request: Request.BatchUpdateUserConsumptionFromCsv, req?: FastifyRequest): Promise<void>;
289
296
  batchUpdateUserWatchDataFromCsv(request: Request.BatchUpdateUserWatchDataFromCsv, req?: FastifyRequest): Promise<void>;
290
297
  }
@@ -25,6 +25,8 @@ export declare namespace UserDataService {
25
25
  nickname?: string;
26
26
  /** 门店ID */
27
27
  storeId?: string;
28
+ /** 门店ID列表 */
29
+ storeIds?: string[];
28
30
  /** 可用积分范围 [最小值, 最大值] */
29
31
  availablePointsRange?: number[];
30
32
  /** 福利官ID列表 */
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.65",
3
+ "version": "0.1.67",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@be-link/ecommerce-volcengine-open-api-sdk": "1.0.11",
14
- "@be-link/ecommerce-user-service-node-sdk": "0.1.76",
14
+ "@be-link/ecommerce-user-service-node-sdk": "0.1.79",
15
15
  "@fastify/request-context": "6.2.1",
16
16
  "axios": "1.13.2",
17
17
  "axios-retry": "4.0.0",