@surfrock/factory 1.0.0-alpha.0 → 1.0.0-alpha.1
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,9 +1,34 @@
|
|
|
1
|
+
import { ResultStatus } from './resultStatus';
|
|
2
|
+
import { ReservationResult } from './seat/seatInfoSync';
|
|
3
|
+
import { CancelResult } from './seat/seatInfoSyncCancel';
|
|
4
|
+
export type IRawResult = {
|
|
5
|
+
resultInfo: {
|
|
6
|
+
status: ResultStatus;
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
zskyykResult: ReservationResult;
|
|
10
|
+
cnclResult?: never;
|
|
11
|
+
} | {
|
|
12
|
+
resultInfo: {
|
|
13
|
+
status: ResultStatus;
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
cnclResult: CancelResult;
|
|
17
|
+
zskyykResult?: never;
|
|
18
|
+
};
|
|
19
|
+
export declare const SOAP_SERVER_ERROR_NAME = "MvtkReserveServiceError";
|
|
1
20
|
/**
|
|
2
|
-
*
|
|
21
|
+
* soap-parserの投げるエラー
|
|
3
22
|
*/
|
|
4
|
-
export
|
|
23
|
+
export interface ISoapServiceError {
|
|
24
|
+
message?: string;
|
|
25
|
+
/**
|
|
26
|
+
* httpステータスコード
|
|
27
|
+
*/
|
|
5
28
|
code: number;
|
|
6
|
-
status:
|
|
7
|
-
|
|
8
|
-
|
|
29
|
+
status: ResultStatus;
|
|
30
|
+
/**
|
|
31
|
+
* 着券あるいは着券取消の場合、結果詳細が含まれることがある
|
|
32
|
+
*/
|
|
33
|
+
rawResult?: IRawResult;
|
|
9
34
|
}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
* SurfRockSoapServiceError
|
|
6
|
-
*/
|
|
7
|
-
class SurfRockSoapServiceError extends Error {
|
|
8
|
-
code;
|
|
9
|
-
status;
|
|
10
|
-
rawResult; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
11
|
-
constructor(code, status, message, rawResult) {
|
|
12
|
-
super(message);
|
|
13
|
-
this.name = 'MvtkReserveServiceError';
|
|
14
|
-
this.code = code;
|
|
15
|
-
this.status = status;
|
|
16
|
-
if (rawResult !== undefined) {
|
|
17
|
-
this.rawResult = rawResult;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.SurfRockSoapServiceError = SurfRockSoapServiceError;
|
|
3
|
+
exports.SOAP_SERVER_ERROR_NAME = void 0;
|
|
4
|
+
exports.SOAP_SERVER_ERROR_NAME = 'MvtkReserveServiceError';
|
package/lib/factory.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IResultInfo } from './factory/resultInfo';
|
|
|
3
3
|
import { ResultStatus } from './factory/resultStatus';
|
|
4
4
|
import * as seatInfoSyncFactory from './factory/seat/seatInfoSync';
|
|
5
5
|
import * as seatInfoSyncCancelFactory from './factory/seat/seatInfoSyncCancel';
|
|
6
|
-
import
|
|
6
|
+
import * as soapServiceError from './factory/soapServiceError';
|
|
7
7
|
export declare namespace service {
|
|
8
8
|
namespace auth {
|
|
9
9
|
export import purchaseNumberAuth = PurchaseNumberAuthFactory;
|
|
@@ -13,4 +13,4 @@ export declare namespace service {
|
|
|
13
13
|
export import seatInfoSyncCancel = seatInfoSyncCancelFactory;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export { IResultInfo, ResultStatus,
|
|
16
|
+
export { IResultInfo, ResultStatus, soapServiceError };
|
package/lib/factory.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.soapServiceError = exports.ResultStatus = exports.service = void 0;
|
|
4
4
|
const PurchaseNumberAuthFactory = require("./factory/auth/purchaseNumberAuth");
|
|
5
5
|
const resultStatus_1 = require("./factory/resultStatus");
|
|
6
6
|
Object.defineProperty(exports, "ResultStatus", { enumerable: true, get: function () { return resultStatus_1.ResultStatus; } });
|
|
7
7
|
const seatInfoSyncFactory = require("./factory/seat/seatInfoSync");
|
|
8
8
|
const seatInfoSyncCancelFactory = require("./factory/seat/seatInfoSyncCancel");
|
|
9
|
-
const
|
|
10
|
-
|
|
9
|
+
const soapServiceError = require("./factory/soapServiceError");
|
|
10
|
+
exports.soapServiceError = soapServiceError;
|
|
11
11
|
var service;
|
|
12
12
|
(function (service) {
|
|
13
13
|
let auth;
|
package/package.json
CHANGED