@be-link/pos-cli-nodejs 0.0.166 → 0.0.169

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "0.0.166",
3
+ "version": "0.0.169",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,6 +20,7 @@ declare class OrderJobService extends BaseService implements Service.OrderJobCon
20
20
  jobNotifySupplierTomorrowOrder(): Promise<void>;
21
21
  jobNotifySupplierInvoiceOrder(): Promise<void>;
22
22
  jobNotifyFeishuOfConfirmBus(): Promise<void>;
23
+ jobPushTourSupplierForConfirmOrder(): Promise<void>;
23
24
  }
24
25
  declare const orderJobService: OrderJobService;
25
26
  export default orderJobService;
@@ -64,6 +64,9 @@ class OrderJobService extends service_1.default {
64
64
  jobNotifyFeishuOfConfirmBus() {
65
65
  return (0, http_1.callApi)(this.getApiUrl(this.jobNotifyFeishuOfConfirmBus));
66
66
  }
67
+ jobPushTourSupplierForConfirmOrder() {
68
+ return (0, http_1.callApi)(this.getApiUrl(this.jobPushTourSupplierForConfirmOrder));
69
+ }
67
70
  }
68
71
  const orderJobService = new OrderJobService();
69
72
  exports.default = orderJobService;
@@ -36,5 +36,7 @@ export declare namespace Service {
36
36
  jobNotifySupplierInvoiceOrder(): Promise<void>;
37
37
  /** 每天早上10点,出团前5天飞书通知客服再次确认班车 */
38
38
  jobNotifyFeishuOfConfirmBus(): Promise<void>;
39
+ /** 从8点开始每隔3小时催促供应商接单 */
40
+ jobPushTourSupplierForConfirmOrder(): Promise<void>;
39
41
  }
40
42
  }
@@ -0,0 +1,11 @@
1
+ import BaseService from '../service';
2
+ import { Service } from './types';
3
+ import * as DTO from '../../../types';
4
+ declare class QueryBySupplierService extends BaseService implements Service.QueryBySupplierController {
5
+ protected prefixUrl: string;
6
+ queryRejectReasons(request: Service.Request.queryRejectReasons): Promise<Service.Response.queryRejectReasons>;
7
+ queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.querySupplierOrderList<K>): Promise<DTO.QueryDataRes<K>[]>;
8
+ getOrderCount(request: Service.Request.getSupplierOrderCount): Promise<number>;
9
+ }
10
+ declare const queryByStoreService: QueryBySupplierService;
11
+ export default queryByStoreService;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const service_1 = __importDefault(require("../service"));
7
+ const http_1 = require("../../http");
8
+ class QueryBySupplierService extends service_1.default {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.prefixUrl = '/query/supplier';
12
+ }
13
+ queryRejectReasons(request) {
14
+ return (0, http_1.callApi)(this.getApiUrl(this.queryRejectReasons), request);
15
+ }
16
+ queryOrderList(request) {
17
+ return (0, http_1.callApi)(this.getApiUrl(this.queryOrderList), request);
18
+ }
19
+ getOrderCount(request) {
20
+ return (0, http_1.callApi)(this.getApiUrl(this.getOrderCount), request);
21
+ }
22
+ }
23
+ const queryByStoreService = new QueryBySupplierService();
24
+ exports.default = queryByStoreService;
@@ -414,6 +414,46 @@ export declare namespace Service {
414
414
  /** 查询块 */
415
415
  needBlocks: K;
416
416
  }
417
+ interface querySupplierOrderList<K> {
418
+ /** 条件 */
419
+ conditions: {
420
+ /** 状态 */
421
+ statusList?: string[];
422
+ /** 购买人姓名 */
423
+ contactName?: string;
424
+ /** 购买人手机号 */
425
+ contactMobile?: string;
426
+ /** 二级类目 */
427
+ categoryTwoList?: string[];
428
+ /** 出团日期范围 */
429
+ fulFillAtRange?: [number, number];
430
+ /** 订单创建时间筛选 */
431
+ createdAtRange?: [number, number];
432
+ /** 供应商列表 */
433
+ supplierIdList: string[];
434
+ /** 出行人姓名 */
435
+ tourismName?: string;
436
+ /** 出行人手机号 */
437
+ tourismMobile?: string;
438
+ /** 页面条数 */
439
+ pageSize?: number;
440
+ /** 页面下标 */
441
+ pageIndex?: number;
442
+ };
443
+ /** 排序 */
444
+ sort: {
445
+ /** 订单创建时间 */
446
+ createdAt?: 'ASC' | 'DESC';
447
+ /** 订单支付时间 */
448
+ paidAt?: 'ASC' | 'DESC';
449
+ /** 完结时间 */
450
+ completedAt?: 'ASC' | 'DESC';
451
+ /** 履约时间 */
452
+ fulfillAt?: 'ASC' | 'DESC';
453
+ };
454
+ /** 查询块 */
455
+ needBlocks: K;
456
+ }
417
457
  interface queryPeriodTradeOrderList {
418
458
  /** 二级类目 */
419
459
  categoryTwo: string;
@@ -486,6 +526,26 @@ export declare namespace Service {
486
526
  /** 门店列表 */
487
527
  storeIdList: string[];
488
528
  }
529
+ interface getSupplierOrderCount {
530
+ /** 状态 */
531
+ statusList?: string[];
532
+ /** 购买人姓名 */
533
+ contactName?: string;
534
+ /** 购买人手机号 */
535
+ contactMobile?: string;
536
+ /** 二级类目 */
537
+ categoryTwoList?: string[];
538
+ /** 出团日期范围 */
539
+ fulFillAtRange?: [number, number];
540
+ /** 订单创建时间筛选 */
541
+ createdAtRange?: [number, number];
542
+ /** 供应商列表 */
543
+ supplierIdList: string[];
544
+ /** 出行人姓名 */
545
+ tourismName?: string;
546
+ /** 出行人手机号 */
547
+ tourismMobile?: string;
548
+ }
489
549
  interface getOrderCount {
490
550
  /** 状态 */
491
551
  status?: string[];
@@ -775,6 +835,25 @@ export declare namespace Service {
775
835
  */
776
836
  queryRejectReasons(request: Request.queryRejectReasons): Promise<Response.queryRejectReasons>;
777
837
  }
838
+ /** 供应商维度查询 */
839
+ interface QueryBySupplierController {
840
+ /**
841
+ * 查询门店订单列表
842
+ * @path /query/supplier/query-order-list
843
+ */
844
+ queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.querySupplierOrderList<K>): Promise<DTO.QueryDataRes<K>[]>;
845
+ /**
846
+ * 查询订单数量
847
+ * @returns 订单数量
848
+ * @path /query/supplier/get-order-count
849
+ */
850
+ getOrderCount(request: Request.getSupplierOrderCount): Promise<number>;
851
+ /**
852
+ * 查询拒单原因
853
+ * @path /query/supplier/query-reject-reasons
854
+ */
855
+ queryRejectReasons(request: Request.queryRejectReasons): Promise<Response.queryRejectReasons>;
856
+ }
778
857
  /** web查询 */
779
858
  interface QueryByWebController {
780
859
  /**