@chevre/factory 4.351.0-alpha.1 → 4.351.0-alpha.3
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/README.md +0 -1
- package/lib/action/authorize/offer/eventService/coa.d.ts +1 -1
- package/lib/action/authorize/offer/eventService.d.ts +1 -1
- package/lib/action/interact/confirm/reservation.d.ts +1 -1
- package/lib/action/trade/pay.d.ts +2 -2
- package/lib/action/transfer/return/reserveTransaction.d.ts +1 -1
- package/lib/assetTransaction/pay.d.ts +11 -18
- package/lib/creativeWork.d.ts +1 -1
- package/lib/error/alreadyInUse.js +2 -1
- package/lib/error/argument.js +2 -1
- package/lib/error/argumentNull.js +2 -1
- package/lib/error/chevre.js +3 -3
- package/lib/error/forbidden.js +2 -1
- package/lib/error/gatewayTimeout.js +2 -1
- package/lib/error/notFound.js +2 -1
- package/lib/error/notImplemented.js +2 -1
- package/lib/error/rateLimitExceeded.js +2 -1
- package/lib/error/serviceUnavailable.js +2 -1
- package/lib/error/unauthorized.js +2 -1
- package/lib/event/screeningEvent.d.ts +1 -1
- package/lib/event/screeningEventSeries.d.ts +1 -1
- package/lib/reservation.d.ts +1 -1
- package/lib/transaction/placeOrder.d.ts +2 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@chevre/factory)
|
|
4
4
|
[](https://circleci.com/gh/chevre-jp/factory)
|
|
5
5
|
[](https://coveralls.io/github/chevre-jp/factory?branch=master)
|
|
6
|
-
[](https://david-dm.org/chevre-jp/factory)
|
|
7
6
|
[](https://snyk.io/test/github/chevre-jp/factory)
|
|
8
7
|
[](https://nodei.co/npm/@chevre/factory/)
|
|
9
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as COA from '@motionpicture/coa-service';
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
3
|
import { ActionType } from '../../../actionType';
|
|
4
4
|
import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as COA from '@motionpicture/coa-service';
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
3
3
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
4
|
import { ISimpleOrder } from '../../../order';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { factory as GMOFactory } from '@motionpicture/gmo-service';
|
|
2
2
|
import * as AccountFactory from '../../account';
|
|
3
3
|
import * as ActionFactory from '../../action';
|
|
4
4
|
import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
|
|
@@ -44,7 +44,7 @@ export interface IPendingTransaction {
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
export
|
|
47
|
+
export type ICreditCardSales = GMOFactory.credit.IAlterTranResult;
|
|
48
48
|
/**
|
|
49
49
|
* 決済方法インターフェース
|
|
50
50
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as COA from '@motionpicture/coa-service';
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
3
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
4
|
import { ISimpleOrder } from '../../../order';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { factory as GMOFactory } from '@motionpicture/gmo-service';
|
|
2
2
|
import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient } from '../action/trade/pay';
|
|
3
3
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
@@ -21,21 +21,13 @@ export type IFromLocation = ITokenizedPaymentCard;
|
|
|
21
21
|
*/
|
|
22
22
|
type ICreditCard = (IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember) & ICreditCard3DS;
|
|
23
23
|
export { ICreditCard, ICreditCard3DS, IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized };
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
acs: string;
|
|
33
|
-
/**
|
|
34
|
-
* 3DSサーバーへのリダイレクトURL
|
|
35
|
-
* 3DS2.0認証初期化へのURL
|
|
36
|
-
*/
|
|
37
|
-
redirectUrl?: string;
|
|
38
|
-
}
|
|
24
|
+
export type IEntryTranArgs = GMOFactory.credit.IEntryTranArgs;
|
|
25
|
+
export type IEntryTranResult = GMOFactory.credit.IEntryTranResult;
|
|
26
|
+
export type IExecTranArgs = GMOFactory.credit.IExecTranArgs;
|
|
27
|
+
export type IExecTranResult = GMOFactory.credit.IExecTranResult;
|
|
28
|
+
export type IExecTran3dsArgs = GMOFactory.credit.IExecTran3dsArgs;
|
|
29
|
+
export type IExecTran3dsResult = GMOFactory.credit.IExecTran3dsResult;
|
|
30
|
+
export type ISecureTran2Result = GMOFactory.credit.ISecureTran2Result;
|
|
39
31
|
export interface IPaymentMethodAmount extends Pick<IMonetaryAmount, 'currency' | 'typeOf' | 'value'> {
|
|
40
32
|
value: number;
|
|
41
33
|
}
|
|
@@ -106,8 +98,9 @@ export interface IObject {
|
|
|
106
98
|
pendingTransaction?: IPendingTransaction;
|
|
107
99
|
entryTranArgs?: IEntryTranArgs;
|
|
108
100
|
entryTranResult?: IEntryTranResult;
|
|
109
|
-
execTranArgs?: IExecTranArgs;
|
|
110
|
-
execTranResult?: IExecTranResult;
|
|
101
|
+
execTranArgs?: IExecTranArgs | IExecTran3dsArgs;
|
|
102
|
+
execTranResult?: IExecTranResult | IExecTran3dsResult;
|
|
103
|
+
secureTran2Result?: ISecureTran2Result;
|
|
111
104
|
payAction?: IPayAction;
|
|
112
105
|
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
113
106
|
accountsReceivablesByServiceType?: IAccountsReceivableByServiceType[];
|
package/lib/creativeWork.d.ts
CHANGED
|
@@ -32,7 +32,8 @@ var AlreadyInUseError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = "The specified '".concat(entityName, "' value is already in use for: ").concat(fieldNames.join(', '), ".");
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.AlreadyInUse, actualMessage) || this;
|
|
36
37
|
_this.entityName = entityName;
|
|
37
38
|
_this.fieldNames = fieldNames;
|
|
38
39
|
setPrototypeOf(_this, AlreadyInUseError.prototype);
|
package/lib/error/argument.js
CHANGED
|
@@ -32,7 +32,8 @@ var ArgumentError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = "Invalid or missing argument supplied: ".concat(argumentName, ".");
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.Argument, actualMessage) || this;
|
|
36
37
|
_this.argumentName = argumentName;
|
|
37
38
|
setPrototypeOf(_this, ArgumentError.prototype);
|
|
38
39
|
return _this;
|
|
@@ -32,7 +32,8 @@ var ArgumentNullError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = "Missing argument: ".concat(argumentName, ".");
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.ArgumentNull, actualMessage) || this;
|
|
36
37
|
_this.argumentName = argumentName;
|
|
37
38
|
setPrototypeOf(_this, ArgumentNullError.prototype);
|
|
38
39
|
return _this;
|
package/lib/error/chevre.js
CHANGED
|
@@ -23,10 +23,10 @@ var setPrototypeOf = require("setprototypeof");
|
|
|
23
23
|
*/
|
|
24
24
|
var ChevreError = /** @class */ (function (_super) {
|
|
25
25
|
__extends(ChevreError, _super);
|
|
26
|
+
// tslint:disable-next-line:no-single-line-block-comment
|
|
27
|
+
/* istanbul ignore next */
|
|
26
28
|
function ChevreError(code, message) {
|
|
27
|
-
var _this =
|
|
28
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
29
|
-
_super.call(this, message) /* istanbul ignore next */ || this;
|
|
29
|
+
var _this = _super.call(this, message) || this;
|
|
30
30
|
_this.name = 'ChevreError';
|
|
31
31
|
_this.reason = code;
|
|
32
32
|
setPrototypeOf(_this, ChevreError.prototype);
|
package/lib/error/forbidden.js
CHANGED
|
@@ -32,7 +32,8 @@ var ForbiddenError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = 'Forbidden.';
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.Forbidden, actualMessage) || this;
|
|
36
37
|
setPrototypeOf(_this, ForbiddenError.prototype);
|
|
37
38
|
return _this;
|
|
38
39
|
}
|
|
@@ -32,7 +32,8 @@ var GatewayTimeoutError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = 'Gateway Timeout';
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.GatewayTimeout, actualMessage) || this;
|
|
36
37
|
setPrototypeOf(_this, GatewayTimeoutError.prototype);
|
|
37
38
|
return _this;
|
|
38
39
|
}
|
package/lib/error/notFound.js
CHANGED
|
@@ -32,7 +32,8 @@ var NotFoundError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = "Not Found: ".concat(entityName, ".");
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.NotFound, actualMessage) || this;
|
|
36
37
|
_this.entityName = entityName;
|
|
37
38
|
setPrototypeOf(_this, NotFoundError.prototype);
|
|
38
39
|
return _this;
|
|
@@ -32,7 +32,8 @@ var NotImplementedError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = 'Method is not yet implemented.';
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.NotImplemented, actualMessage) || this;
|
|
36
37
|
setPrototypeOf(_this, NotImplementedError.prototype);
|
|
37
38
|
return _this;
|
|
38
39
|
}
|
|
@@ -32,7 +32,8 @@ var RateLimitExceededError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = 'Rate limit exceeded.';
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.RateLimitExceeded, actualMessage) || this;
|
|
36
37
|
setPrototypeOf(_this, RateLimitExceededError.prototype);
|
|
37
38
|
return _this;
|
|
38
39
|
}
|
|
@@ -32,7 +32,8 @@ var ServiceUnavailableError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = 'Service unavailable temporarily.';
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.ServiceUnavailable, actualMessage) || this;
|
|
36
37
|
setPrototypeOf(_this, ServiceUnavailableError.prototype);
|
|
37
38
|
return _this;
|
|
38
39
|
}
|
|
@@ -32,7 +32,8 @@ var UnauthorizedError = /** @class */ (function (_super) {
|
|
|
32
32
|
actualMessage = 'Unauthorized.';
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
|
-
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
_this = _super.call(this, errorCode_1.ErrorCode.Unauthorized, actualMessage) || this;
|
|
36
37
|
setPrototypeOf(_this, UnauthorizedError.prototype);
|
|
37
38
|
return _this;
|
|
38
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as COA from '@motionpicture/coa-service';
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as EventFactory from '../event';
|
|
3
3
|
import * as ScreeningEventSeriesFactory from '../event/screeningEventSeries';
|
|
4
4
|
import { EventType } from '../eventType';
|
package/lib/reservation.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AccountType } from '../accountType';
|
|
|
3
3
|
import { IObject as IConfirmReservationObject } from '../action/interact/confirm/reservation';
|
|
4
4
|
import { IAttributes as IOrderActionAttributes } from '../action/trade/order';
|
|
5
5
|
import { IObject as IGivePointAwardObject } from '../action/transfer/give/pointAward';
|
|
6
|
-
import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult } from '../assetTransaction/pay';
|
|
6
|
+
import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult, IPaymentMethodWithoutDetail } from '../assetTransaction/pay';
|
|
7
7
|
import { IExtendId } from '../autoGenerated';
|
|
8
8
|
import { IClientUser } from '../clientUser';
|
|
9
9
|
import * as OrderFactory from '../order';
|
|
@@ -33,6 +33,7 @@ export interface IPaymentMethodByPaymentUrl {
|
|
|
33
33
|
entryTranResult?: IEntryTranResult;
|
|
34
34
|
execTranArgs?: IExecTranArgs;
|
|
35
35
|
execTranResult?: IExecTranResult | IExecTran3dsResult;
|
|
36
|
+
paymentMethod?: IPaymentMethodWithoutDetail;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* 注文特典口座
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "4.351.0-alpha.
|
|
3
|
+
"version": "4.351.0-alpha.3",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"license": "UNLICENSED",
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/mocha": "^5.2.7",
|
|
45
|
-
"@types/node": "
|
|
45
|
+
"@types/node": "18.19.4",
|
|
46
46
|
"@types/request": "^2.48.5",
|
|
47
47
|
"@types/request-promise-native": "^1.0.17",
|
|
48
48
|
"coveralls": "^3.0.5",
|
|
49
49
|
"mocha": "^5.2.0",
|
|
50
|
-
"nyc": "
|
|
50
|
+
"nyc": "15.1.0",
|
|
51
51
|
"rimraf": "^2.6.3",
|
|
52
52
|
"ts-node": "10.9.1",
|
|
53
53
|
"tslint": "6.1.3",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@aws-sdk/client-cognito-identity-provider": "3.438.0",
|
|
59
59
|
"@motionpicture/coa-service": "9.2.0",
|
|
60
|
-
"@motionpicture/gmo-service": "
|
|
60
|
+
"@motionpicture/gmo-service": "5.3.0-alpha.0",
|
|
61
61
|
"@surfrock/sdk": "1.1.0",
|
|
62
62
|
"@waiter/factory": "2.2.0-alpha.3",
|
|
63
63
|
"setprototypeof": "1.2.0"
|