@be-link/flow-cli-nodejs 0.0.34 → 0.0.35
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.
|
@@ -3,6 +3,7 @@ import { Service } from './types';
|
|
|
3
3
|
declare class BizFlowJobService extends BaseService implements Service.BizFlowJobController {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
5
|
jobNotifySupplier(): Promise<void>;
|
|
6
|
+
jobNotifyPendingChangeT1(request: Service.Request.JobNotifyPendingChangeT1): Promise<Record<string, number>>;
|
|
6
7
|
jobHotelNotifySupplier(): Promise<void>;
|
|
7
8
|
jobCancelPendingForClosedOrders(): Promise<void>;
|
|
8
9
|
jobProcessDomainEventOutbox(): Promise<{
|
|
@@ -13,6 +13,9 @@ class BizFlowJobService extends service_1.default {
|
|
|
13
13
|
jobNotifySupplier() {
|
|
14
14
|
return (0, http_1.callApi)(this.getApiUrl(this.jobNotifySupplier));
|
|
15
15
|
}
|
|
16
|
+
jobNotifyPendingChangeT1(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.jobNotifyPendingChangeT1), request);
|
|
18
|
+
}
|
|
16
19
|
jobHotelNotifySupplier() {
|
|
17
20
|
return (0, http_1.callApi)(this.getApiUrl(this.jobHotelNotifySupplier));
|
|
18
21
|
}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
export declare namespace Service {
|
|
2
|
+
namespace Request {
|
|
3
|
+
interface JobNotifyPendingChangeT1 {
|
|
4
|
+
now?: number;
|
|
5
|
+
bizTypes: Array<'TOUR' | 'PARTY_HOTEL'>;
|
|
6
|
+
dryRun?: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
2
9
|
interface BizFlowJobController {
|
|
3
10
|
/** 每天通知供应商处理变更 */
|
|
4
11
|
jobNotifySupplier(): Promise<void>;
|
|
12
|
+
/** 出行前一天仍未审核变更,通知客满 */
|
|
13
|
+
jobNotifyPendingChangeT1(request: Request.JobNotifyPendingChangeT1): Promise<Record<string, number>>;
|
|
5
14
|
jobHotelNotifySupplier(): Promise<void>;
|
|
6
15
|
jobCancelPendingForClosedOrders(): Promise<void>;
|
|
7
16
|
jobProcessDomainEventOutbox(): Promise<{
|
package/package.json
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/flow-cli-nodejs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"description": "流服务Nodejs客户端",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "rm -rf ./dist && tsc && cp package.json README.md ./dist/",
|
|
8
|
+
"test": "npx jest",
|
|
9
|
+
"gen-doc": "npx typedoc --options typedoc.json",
|
|
10
|
+
"update:major": "standard-version --release-as major",
|
|
11
|
+
"update:minor": "standard-version --release-as minor",
|
|
12
|
+
"update:patch": "standard-version --release-as patch",
|
|
13
|
+
"update:beta": "standard-version --prerelease beta"
|
|
14
|
+
},
|
|
6
15
|
"repository": {
|
|
7
16
|
"type": "git",
|
|
8
17
|
"url": "git+https://github.com/snowmountain-top/flow-cli-nodejs.git"
|
|
@@ -39,14 +48,5 @@
|
|
|
39
48
|
"axios-retry": "4.0.0",
|
|
40
49
|
"uuid": "9.0.1",
|
|
41
50
|
"vitality-meta": "1.0.240"
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"build": "rm -rf ./dist && tsc && cp package.json README.md ./dist/",
|
|
45
|
-
"test": "npx jest",
|
|
46
|
-
"gen-doc": "npx typedoc --options typedoc.json",
|
|
47
|
-
"update:major": "standard-version --release-as major",
|
|
48
|
-
"update:minor": "standard-version --release-as minor",
|
|
49
|
-
"update:patch": "standard-version --release-as patch",
|
|
50
|
-
"update:beta": "standard-version --prerelease beta"
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|