@be-link/ecommerce-trade-service-node-sdk 0.0.6 → 0.0.8

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.
@@ -1,2 +1,2 @@
1
1
  export { orderQueryByWebService } from './orderQuery/webService';
2
- export type { PosService as PosOrderQueryByWebTypes } from './orderQuery/types';
2
+ export type { PosOrderQueryService as PosOrderQueryByWebTypes } from './orderQuery/types';
@@ -1,17 +1,68 @@
1
1
  import * as DTO from '../../../types';
2
- export declare namespace PosService {
3
- namespace Entity { }
2
+ export declare namespace PosOrderQueryService {
3
+ namespace Dto {
4
+ interface IPagination {
5
+ /** 页码(从0开始) */
6
+ pageIndex: number;
7
+ /** 每页数量 */
8
+ pageSize: number;
9
+ }
10
+ interface ITimeRange {
11
+ start?: number;
12
+ end?: number;
13
+ }
14
+ }
4
15
  namespace Request {
5
- interface IOrderList {
16
+ interface IOrder {
17
+ /** 订单ID */
18
+ orderIds?: string[];
19
+ sourceList?: string[];
20
+ statusList?: string[];
21
+ orderTypeList?: string[];
22
+ refundStatusList?: string[];
23
+ verificationStatusList?: string[];
24
+ productPickList?: string[];
25
+ productDispatchList?: string[];
26
+ orderTime?: Dto.ITimeRange;
27
+ refundTime?: Dto.ITimeRange;
28
+ verificationTime?: Dto.ITimeRange;
29
+ }
30
+ interface IUser {
31
+ /** 用户ID */
32
+ userIds?: string[];
33
+ unionIds?: string[];
34
+ receiverPhone?: string;
35
+ receiverName?: string;
36
+ }
37
+ interface IProduct {
38
+ /** 商品ID */
39
+ productIds?: string[];
40
+ productTypeList?: string[];
41
+ skuCodes?: string[];
42
+ }
43
+ interface IStore {
44
+ /** 门店ID */
45
+ storeIds?: string[];
46
+ }
47
+ interface ILiveRoom {
48
+ liveRoomIds?: string[];
49
+ liveRoomGroupIds?: string[];
50
+ }
51
+ interface IByWebOrderList {
6
52
  /** 查询条件 */
7
- conditions?: {};
8
- /** 分页 */
9
- pagination: {
10
- /** 页码(从0开始) */
11
- pageIndex: number;
12
- /** 每页数量 */
13
- pageSize: number;
53
+ conditions?: {
54
+ order?: IOrder;
55
+ /** 用户相关 */
56
+ user?: IUser;
57
+ /** 商品相关 */
58
+ product?: IProduct;
59
+ /** 门店 */
60
+ store?: IStore;
61
+ /** 直播间 */
62
+ liveRoom?: ILiveRoom;
14
63
  };
64
+ /** 分页 */
65
+ pagination: Dto.IPagination;
15
66
  /** 排序 */
16
67
  sort?: {
17
68
  /** 订单创建时间 */
@@ -21,7 +72,8 @@ export declare namespace PosService {
21
72
  /** 完结时间 */
22
73
  completedAt?: 'ASC' | 'DESC';
23
74
  };
24
- queryBlocks: (keyof DTO.PosQueryBlockMap)[];
75
+ /** 查询块 */
76
+ queryBlocks?: (keyof DTO.PosQueryBlockMap)[];
25
77
  }
26
78
  }
27
79
  namespace Response {
@@ -30,6 +82,6 @@ export declare namespace PosService {
30
82
  }
31
83
  interface QueryByWebController {
32
84
  /** 示例接口 */
33
- orderList(request: PosService.Request.IOrderList): Promise<DTO.PosQueryResult[]>;
85
+ orderList(request: PosOrderQueryService.Request.IByWebOrderList): Promise<DTO.PosQueryResult[]>;
34
86
  }
35
87
  }
@@ -1,9 +1,9 @@
1
- import { PosService } from './types';
1
+ import { PosOrderQueryService } from './types';
2
2
  import * as DTO from '../../../types';
3
3
  import BaseService from '../../BaseService';
4
- declare class OrderQueryByWebService extends BaseService implements PosService.QueryByWebController {
4
+ declare class OrderQueryByWebService extends BaseService implements PosOrderQueryService.QueryByWebController {
5
5
  protected prefixUrl: string;
6
- orderList(request: PosService.Request.IOrderList): Promise<DTO.PosQueryResult[]>;
6
+ orderList(request: PosOrderQueryService.Request.IByWebOrderList): Promise<DTO.PosQueryResult[]>;
7
7
  }
8
8
  export declare const orderQueryByWebService: OrderQueryByWebService;
9
9
  export default orderQueryByWebService;
@@ -1,2 +1,2 @@
1
1
  export { orderQueryByWebService } from './orderQuery/webService';
2
- export type { RosService as RosOrderQueryByWebTypes } from './orderQuery/types';
2
+ export type { RosOrderQueryService as RosOrderQueryByWebTypes } from './orderQuery/types';
@@ -1,5 +1,5 @@
1
1
  import * as DTO from '../../../types';
2
- export declare namespace RosService {
2
+ export declare namespace RosOrderQueryService {
3
3
  namespace Entity { }
4
4
  namespace Request {
5
5
  interface IOrderList {
@@ -40,6 +40,6 @@ export declare namespace RosService {
40
40
  }
41
41
  }
42
42
  interface QueryByWebController {
43
- orderList(request: RosService.Request.IOrderList): Promise<DTO.ReverseQueryResult[]>;
43
+ orderList(request: RosOrderQueryService.Request.IOrderList): Promise<DTO.ReverseQueryResult[]>;
44
44
  }
45
45
  }
@@ -1,9 +1,9 @@
1
- import { RosService } from './types';
1
+ import { RosOrderQueryService } from './types';
2
2
  import * as DTO from '../../../types';
3
3
  import BaseService from '../../BaseService';
4
- declare class OrderQueryByWebService extends BaseService implements RosService.QueryByWebController {
4
+ declare class OrderQueryByWebService extends BaseService implements RosOrderQueryService.QueryByWebController {
5
5
  protected prefixUrl: string;
6
- orderList(request: RosService.Request.IOrderList): Promise<DTO.ReverseQueryResult[]>;
6
+ orderList(request: RosOrderQueryService.Request.IOrderList): Promise<DTO.ReverseQueryResult[]>;
7
7
  }
8
8
  export declare const orderQueryByWebService: OrderQueryByWebService;
9
9
  export default orderQueryByWebService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",