@chevre/factory 4.196.0 → 4.197.0-alpha.2
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/lib/chevre.d.ts +23 -23
- package/lib/chevre.js +22 -22
- package/lib/factory/account/action/moneyTransfer.d.ts +5 -5
- package/lib/factory/account/transaction/deposit.d.ts +3 -3
- package/lib/factory/account/transaction/transfer.d.ts +3 -3
- package/lib/factory/account/transaction/withdraw.d.ts +3 -3
- package/lib/factory/account/transaction.d.ts +4 -4
- package/lib/factory/account/transactionType.d.ts +2 -3
- package/lib/factory/account/transactionType.js +8 -8
- package/lib/factory/account.d.ts +10 -10
- package/lib/factory/account.js +1 -1
- package/lib/factory/accountStatusType.d.ts +1 -2
- package/lib/factory/accountStatusType.js +2 -2
- package/lib/factory/accountTitle.d.ts +1 -1
- package/lib/factory/action/authorize/award/point.d.ts +2 -2
- package/lib/factory/action/authorize/offer/moneyTransfer.d.ts +3 -3
- package/lib/factory/action/authorize/offer/product.d.ts +3 -3
- package/lib/factory/action/authorize/offer/seatReservation.d.ts +4 -4
- package/lib/factory/action/authorize/paymentMethod/any.d.ts +4 -4
- package/lib/factory/action/authorize.d.ts +1 -1
- package/lib/factory/action/cancel/reservation.d.ts +2 -2
- package/lib/factory/action/check.d.ts +1 -1
- package/lib/factory/action/consume/use.d.ts +1 -1
- package/lib/factory/action/interact/confirm/moneyTransfer.d.ts +2 -2
- package/lib/factory/action/interact/confirm/pay.d.ts +1 -1
- package/lib/factory/action/interact/confirm/registerService.d.ts +1 -1
- package/lib/factory/action/interact/confirm/reservation.d.ts +1 -1
- package/lib/factory/action/interact/confirm.d.ts +1 -1
- package/lib/factory/action/interact/inform.d.ts +1 -1
- package/lib/factory/action/interact/register.d.ts +1 -1
- package/lib/factory/action/interact/unRegister.d.ts +1 -1
- package/lib/factory/action/reserve.d.ts +2 -2
- package/lib/factory/action/trade/order.d.ts +3 -5
- package/lib/factory/action/trade/pay.d.ts +1 -1
- package/lib/factory/action/trade/refund.d.ts +1 -1
- package/lib/factory/action/transfer/give.d.ts +1 -1
- package/lib/factory/action/transfer/moneyTransfer.d.ts +2 -2
- package/lib/factory/action/transfer/print.d.ts +1 -1
- package/lib/factory/action/transfer/return/paymentMethod.d.ts +1 -1
- package/lib/factory/action/transfer/return/pointAward.d.ts +1 -1
- package/lib/factory/action/transfer/return/reservation.d.ts +2 -2
- package/lib/factory/action/transfer/return.d.ts +1 -1
- package/lib/factory/action/transfer/send/order.d.ts +1 -1
- package/lib/factory/action/transfer/send.d.ts +1 -1
- package/lib/factory/action/update/delete.d.ts +1 -1
- package/lib/factory/action.d.ts +3 -3
- package/lib/factory/actionStatusType.d.ts +1 -2
- package/lib/factory/actionStatusType.js +2 -2
- package/lib/factory/actionType.d.ts +1 -2
- package/lib/factory/actionType.js +2 -2
- package/lib/factory/assetTransaction/cancelReservation.d.ts +1 -1
- package/lib/factory/assetTransaction/moneyTransfer.d.ts +1 -1
- package/lib/factory/assetTransaction/pay.d.ts +1 -1
- package/lib/factory/assetTransaction/refund.d.ts +1 -1
- package/lib/factory/assetTransaction/registerService.d.ts +1 -1
- package/lib/factory/assetTransaction/reserve.d.ts +3 -3
- package/lib/factory/assetTransaction.d.ts +4 -4
- package/lib/factory/assetTransactionType.d.ts +2 -3
- package/lib/factory/assetTransactionType.js +3 -3
- package/lib/factory/authorization.d.ts +1 -1
- package/lib/factory/creativeWork/message/email.d.ts +1 -1
- package/lib/factory/creativeWork/movie.d.ts +1 -1
- package/lib/factory/creativeWork/softwareApplication/webApplication.d.ts +1 -1
- package/lib/factory/creativeWork.d.ts +1 -1
- package/lib/factory/creativeWorkType.d.ts +1 -2
- package/lib/factory/creativeWorkType.js +2 -2
- package/lib/factory/customer.d.ts +2 -2
- package/lib/factory/encodingFormat.js +2 -2
- package/lib/factory/error/alreadyInUse.d.ts +1 -1
- package/lib/factory/error/alreadyInUse.js +3 -2
- package/lib/factory/error/argument.d.ts +1 -1
- package/lib/factory/error/argument.js +3 -2
- package/lib/factory/error/argumentNull.d.ts +1 -1
- package/lib/factory/error/argumentNull.js +3 -2
- package/lib/factory/error/chevre.d.ts +1 -1
- package/lib/factory/error/forbidden.d.ts +1 -1
- package/lib/factory/error/forbidden.js +3 -2
- package/lib/factory/error/gatewayTimeout.d.ts +1 -1
- package/lib/factory/error/gatewayTimeout.js +3 -2
- package/lib/factory/error/notFound.d.ts +1 -1
- package/lib/factory/error/notFound.js +3 -2
- package/lib/factory/error/notImplemented.d.ts +1 -1
- package/lib/factory/error/notImplemented.js +3 -2
- package/lib/factory/error/rateLimitExceeded.d.ts +1 -1
- package/lib/factory/error/rateLimitExceeded.js +3 -2
- package/lib/factory/error/serviceUnavailable.d.ts +1 -1
- package/lib/factory/error/serviceUnavailable.js +3 -2
- package/lib/factory/error/unauthorized.d.ts +1 -1
- package/lib/factory/error/unauthorized.js +3 -2
- package/lib/factory/errorCode.d.ts +1 -2
- package/lib/factory/errorCode.js +3 -3
- package/lib/factory/errors.d.ts +10 -10
- package/lib/factory/errors.js +10 -10
- package/lib/factory/event/screeningEvent.d.ts +4 -4
- package/lib/factory/event/screeningEventSeries.d.ts +3 -3
- package/lib/factory/event.d.ts +4 -4
- package/lib/factory/eventStatusType.d.ts +1 -2
- package/lib/factory/eventStatusType.js +3 -3
- package/lib/factory/eventType.d.ts +1 -2
- package/lib/factory/eventType.js +2 -2
- package/lib/factory/iam.d.ts +2 -2
- package/lib/factory/invoice.d.ts +3 -3
- package/lib/factory/itemAvailability.d.ts +1 -2
- package/lib/factory/itemAvailability.js +3 -3
- package/lib/factory/multilingualString.d.ts +1 -2
- package/lib/factory/offer.d.ts +5 -5
- package/lib/factory/offerCatalog.d.ts +2 -2
- package/lib/factory/order.d.ts +44 -8
- package/lib/factory/orderStatus.d.ts +1 -2
- package/lib/factory/orderStatus.js +2 -2
- package/lib/factory/organization.d.ts +1 -1
- package/lib/factory/ownershipInfo.d.ts +2 -2
- package/lib/factory/paymentMethod/paymentCard/movieTicket.d.ts +1 -1
- package/lib/factory/paymentStatusType.d.ts +1 -2
- package/lib/factory/paymentStatusType.js +2 -2
- package/lib/factory/person.d.ts +1 -1
- package/lib/factory/personType.d.ts +1 -2
- package/lib/factory/personType.js +3 -3
- package/lib/factory/place/movieTheater.d.ts +1 -1
- package/lib/factory/place/screeningRoom.d.ts +1 -1
- package/lib/factory/place/seat.d.ts +2 -2
- package/lib/factory/place.d.ts +1 -1
- package/lib/factory/priceCurrency.d.ts +1 -2
- package/lib/factory/priceCurrency.js +2 -2
- package/lib/factory/priceSpecification/categoryCodeChargeSpecification.d.ts +1 -1
- package/lib/factory/priceSpecification/compoundPriceSpecification.d.ts +1 -1
- package/lib/factory/priceSpecification/movieTicketTypeChargeSpecification.d.ts +1 -1
- package/lib/factory/priceSpecification/unitPriceSpecification.d.ts +1 -1
- package/lib/factory/priceSpecification.d.ts +4 -4
- package/lib/factory/priceSpecificationType.d.ts +1 -2
- package/lib/factory/priceSpecificationType.js +2 -2
- package/lib/factory/product.d.ts +2 -2
- package/lib/factory/project.d.ts +1 -1
- package/lib/factory/reservation/event.d.ts +4 -5
- package/lib/factory/reservation/reservationPackage.d.ts +2 -2
- package/lib/factory/reservation.d.ts +6 -6
- package/lib/factory/reservationStatusType.d.ts +1 -2
- package/lib/factory/reservationStatusType.js +2 -2
- package/lib/factory/reservationType.d.ts +1 -2
- package/lib/factory/reservationType.js +2 -2
- package/lib/factory/seller.d.ts +1 -1
- package/lib/factory/sortType.d.ts +1 -2
- package/lib/factory/sortType.js +2 -2
- package/lib/factory/task/accountMoneyTransfer.d.ts +1 -1
- package/lib/factory/task/aggregateScreeningEvent.d.ts +2 -2
- package/lib/factory/task/aggregateUseActionsOnEvent.d.ts +2 -2
- package/lib/factory/task/cancelAccountMoneyTransfer.d.ts +3 -3
- package/lib/factory/task/cancelMoneyTransfer.d.ts +2 -2
- package/lib/factory/task/cancelPendingReservation.d.ts +1 -1
- package/lib/factory/task/cancelReservation.d.ts +1 -1
- package/lib/factory/task/confirmCancelReserve.d.ts +2 -2
- package/lib/factory/task/confirmMoneyTransfer.d.ts +1 -1
- package/lib/factory/task/confirmPay.d.ts +1 -1
- package/lib/factory/task/confirmRefund.d.ts +1 -1
- package/lib/factory/task/confirmRegisterService.d.ts +1 -1
- package/lib/factory/task/confirmReservation.d.ts +1 -1
- package/lib/factory/task/deleteAuthorization.d.ts +1 -1
- package/lib/factory/task/deleteMember.d.ts +1 -1
- package/lib/factory/task/deleteOrder.d.ts +1 -1
- package/lib/factory/task/deleteTransaction.d.ts +1 -1
- package/lib/factory/task/givePointAward.d.ts +1 -1
- package/lib/factory/task/importEventCapacitiesFromCOA.d.ts +1 -1
- package/lib/factory/task/importEventsFromCOA.d.ts +1 -1
- package/lib/factory/task/importOffersFromCOA.d.ts +1 -1
- package/lib/factory/task/moneyTransfer.d.ts +1 -1
- package/lib/factory/task/orderProgramMembership.d.ts +2 -2
- package/lib/factory/task/pay.d.ts +1 -1
- package/lib/factory/task/placeOrder.d.ts +1 -1
- package/lib/factory/task/refund.d.ts +1 -1
- package/lib/factory/task/registerService.d.ts +1 -1
- package/lib/factory/task/reserve.d.ts +1 -1
- package/lib/factory/task/returnMoneyTransfer.d.ts +1 -1
- package/lib/factory/task/returnOrder.d.ts +1 -1
- package/lib/factory/task/returnPointAward.d.ts +1 -1
- package/lib/factory/task/sendEmailMessage.d.ts +1 -1
- package/lib/factory/task/sendOrder.d.ts +1 -1
- package/lib/factory/task/triggerWebhook.d.ts +1 -1
- package/lib/factory/task/voidMoneyTransferTransaction.d.ts +1 -1
- package/lib/factory/task/voidPayTransaction.d.ts +1 -1
- package/lib/factory/task/voidPayment.d.ts +1 -1
- package/lib/factory/task/voidRegisterServiceTransaction.d.ts +1 -1
- package/lib/factory/task/voidReserveTransaction.d.ts +1 -1
- package/lib/factory/task.d.ts +3 -3
- package/lib/factory/taskName.d.ts +1 -2
- package/lib/factory/taskName.js +2 -2
- package/lib/factory/taskStatus.d.ts +1 -2
- package/lib/factory/taskStatus.js +2 -2
- package/lib/factory/thing.d.ts +1 -1
- package/lib/factory/transaction/moneyTransfer.d.ts +2 -2
- package/lib/factory/transaction/placeOrder.d.ts +1 -1
- package/lib/factory/transaction/returnOrder.d.ts +1 -1
- package/lib/factory/transaction.d.ts +5 -5
- package/lib/factory/transactionStatusType.d.ts +1 -2
- package/lib/factory/transactionStatusType.js +3 -3
- package/lib/factory/transactionTasksExportationStatus.d.ts +1 -2
- package/lib/factory/transactionTasksExportationStatus.js +3 -3
- package/lib/factory/transactionType.d.ts +1 -2
- package/lib/factory/transactionType.js +2 -2
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ForbiddenError = void 0;
|
|
18
19
|
// tslint:disable-next-line:no-require-imports
|
|
19
20
|
var setPrototypeOf = require("setprototypeof");
|
|
20
21
|
var errorCode_1 = require("../errorCode");
|
|
@@ -31,10 +32,10 @@ var ForbiddenError = /** @class */ (function (_super) {
|
|
|
31
32
|
actualMessage = 'Forbidden.';
|
|
32
33
|
}
|
|
33
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
34
|
-
_this = _super.call(this, errorCode_1.
|
|
35
|
+
_this = _super.call(this, errorCode_1.ErrorCode.Forbidden, actualMessage) /* istanbul ignore next */ || this;
|
|
35
36
|
setPrototypeOf(_this, ForbiddenError.prototype);
|
|
36
37
|
return _this;
|
|
37
38
|
}
|
|
38
39
|
return ForbiddenError;
|
|
39
40
|
}(chevre_1.ChevreError));
|
|
40
|
-
exports.
|
|
41
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GatewayTimeoutError = void 0;
|
|
18
19
|
// tslint:disable-next-line:no-require-imports
|
|
19
20
|
var setPrototypeOf = require("setprototypeof");
|
|
20
21
|
var errorCode_1 = require("../errorCode");
|
|
@@ -31,10 +32,10 @@ var GatewayTimeoutError = /** @class */ (function (_super) {
|
|
|
31
32
|
actualMessage = 'Gateway Timeout';
|
|
32
33
|
}
|
|
33
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
34
|
-
_this = _super.call(this, errorCode_1.
|
|
35
|
+
_this = _super.call(this, errorCode_1.ErrorCode.GatewayTimeout, actualMessage) /* istanbul ignore next */ || this;
|
|
35
36
|
setPrototypeOf(_this, GatewayTimeoutError.prototype);
|
|
36
37
|
return _this;
|
|
37
38
|
}
|
|
38
39
|
return GatewayTimeoutError;
|
|
39
40
|
}(chevre_1.ChevreError));
|
|
40
|
-
exports.
|
|
41
|
+
exports.GatewayTimeoutError = GatewayTimeoutError;
|
|
@@ -2,7 +2,7 @@ import { ChevreError } from './chevre';
|
|
|
2
2
|
/**
|
|
3
3
|
* NotFoundError
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export declare class NotFoundError extends ChevreError {
|
|
6
6
|
readonly entityName: string;
|
|
7
7
|
constructor(entityName: string, message?: string);
|
|
8
8
|
}
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.NotFoundError = void 0;
|
|
18
19
|
// tslint:disable-next-line:no-require-imports
|
|
19
20
|
var setPrototypeOf = require("setprototypeof");
|
|
20
21
|
var errorCode_1 = require("../errorCode");
|
|
@@ -31,11 +32,11 @@ var NotFoundError = /** @class */ (function (_super) {
|
|
|
31
32
|
actualMessage = "Not Found: " + entityName + ".";
|
|
32
33
|
}
|
|
33
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
34
|
-
_this = _super.call(this, errorCode_1.
|
|
35
|
+
_this = _super.call(this, errorCode_1.ErrorCode.NotFound, actualMessage) /* istanbul ignore next */ || this;
|
|
35
36
|
_this.entityName = entityName;
|
|
36
37
|
setPrototypeOf(_this, NotFoundError.prototype);
|
|
37
38
|
return _this;
|
|
38
39
|
}
|
|
39
40
|
return NotFoundError;
|
|
40
41
|
}(chevre_1.ChevreError));
|
|
41
|
-
exports.
|
|
42
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.NotImplementedError = void 0;
|
|
18
19
|
// tslint:disable-next-line:no-require-imports
|
|
19
20
|
var setPrototypeOf = require("setprototypeof");
|
|
20
21
|
var errorCode_1 = require("../errorCode");
|
|
@@ -31,10 +32,10 @@ var NotImplementedError = /** @class */ (function (_super) {
|
|
|
31
32
|
actualMessage = 'Method is not yet implemented.';
|
|
32
33
|
}
|
|
33
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
34
|
-
_this = _super.call(this, errorCode_1.
|
|
35
|
+
_this = _super.call(this, errorCode_1.ErrorCode.NotImplemented, actualMessage) /* istanbul ignore next */ || this;
|
|
35
36
|
setPrototypeOf(_this, NotImplementedError.prototype);
|
|
36
37
|
return _this;
|
|
37
38
|
}
|
|
38
39
|
return NotImplementedError;
|
|
39
40
|
}(chevre_1.ChevreError));
|
|
40
|
-
exports.
|
|
41
|
+
exports.NotImplementedError = NotImplementedError;
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.RateLimitExceededError = void 0;
|
|
18
19
|
// tslint:disable-next-line:no-require-imports
|
|
19
20
|
var setPrototypeOf = require("setprototypeof");
|
|
20
21
|
var errorCode_1 = require("../errorCode");
|
|
@@ -31,10 +32,10 @@ var RateLimitExceededError = /** @class */ (function (_super) {
|
|
|
31
32
|
actualMessage = 'Rate limit exceeded.';
|
|
32
33
|
}
|
|
33
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
34
|
-
_this = _super.call(this, errorCode_1.
|
|
35
|
+
_this = _super.call(this, errorCode_1.ErrorCode.RateLimitExceeded, actualMessage) /* istanbul ignore next */ || this;
|
|
35
36
|
setPrototypeOf(_this, RateLimitExceededError.prototype);
|
|
36
37
|
return _this;
|
|
37
38
|
}
|
|
38
39
|
return RateLimitExceededError;
|
|
39
40
|
}(chevre_1.ChevreError));
|
|
40
|
-
exports.
|
|
41
|
+
exports.RateLimitExceededError = RateLimitExceededError;
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ServiceUnavailableError = void 0;
|
|
18
19
|
// tslint:disable-next-line:no-require-imports
|
|
19
20
|
var setPrototypeOf = require("setprototypeof");
|
|
20
21
|
var errorCode_1 = require("../errorCode");
|
|
@@ -31,10 +32,10 @@ var ServiceUnavailableError = /** @class */ (function (_super) {
|
|
|
31
32
|
actualMessage = 'Service unavailable temporarily.';
|
|
32
33
|
}
|
|
33
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
34
|
-
_this = _super.call(this, errorCode_1.
|
|
35
|
+
_this = _super.call(this, errorCode_1.ErrorCode.ServiceUnavailable, actualMessage) /* istanbul ignore next */ || this;
|
|
35
36
|
setPrototypeOf(_this, ServiceUnavailableError.prototype);
|
|
36
37
|
return _this;
|
|
37
38
|
}
|
|
38
39
|
return ServiceUnavailableError;
|
|
39
40
|
}(chevre_1.ChevreError));
|
|
40
|
-
exports.
|
|
41
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.UnauthorizedError = void 0;
|
|
18
19
|
// tslint:disable-next-line:no-require-imports
|
|
19
20
|
var setPrototypeOf = require("setprototypeof");
|
|
20
21
|
var errorCode_1 = require("../errorCode");
|
|
@@ -31,10 +32,10 @@ var UnauthorizedError = /** @class */ (function (_super) {
|
|
|
31
32
|
actualMessage = 'Unauthorized.';
|
|
32
33
|
}
|
|
33
34
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
34
|
-
_this = _super.call(this, errorCode_1.
|
|
35
|
+
_this = _super.call(this, errorCode_1.ErrorCode.Unauthorized, actualMessage) /* istanbul ignore next */ || this;
|
|
35
36
|
setPrototypeOf(_this, UnauthorizedError.prototype);
|
|
36
37
|
return _this;
|
|
37
38
|
}
|
|
38
39
|
return UnauthorizedError;
|
|
39
40
|
}(chevre_1.ChevreError));
|
|
40
|
-
exports.
|
|
41
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* エラーコード
|
|
3
3
|
*/
|
|
4
|
-
declare enum ErrorCode {
|
|
4
|
+
export declare enum ErrorCode {
|
|
5
5
|
AlreadyInUse = "AlreadyInUse",
|
|
6
6
|
Argument = "Argument",
|
|
7
7
|
ArgumentNull = "ArgumentNull",
|
|
@@ -13,4 +13,3 @@ declare enum ErrorCode {
|
|
|
13
13
|
ServiceUnavailable = "ServiceUnavailable",
|
|
14
14
|
Unauthorized = "Unauthorized"
|
|
15
15
|
}
|
|
16
|
-
export default ErrorCode;
|
package/lib/factory/errorCode.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorCode = void 0;
|
|
2
4
|
/**
|
|
3
5
|
* エラーコード
|
|
4
6
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
var ErrorCode;
|
|
7
8
|
(function (ErrorCode) {
|
|
8
9
|
ErrorCode["AlreadyInUse"] = "AlreadyInUse";
|
|
@@ -15,5 +16,4 @@ var ErrorCode;
|
|
|
15
16
|
ErrorCode["RateLimitExceeded"] = "RateLimitExceeded";
|
|
16
17
|
ErrorCode["ServiceUnavailable"] = "ServiceUnavailable";
|
|
17
18
|
ErrorCode["Unauthorized"] = "Unauthorized";
|
|
18
|
-
})(ErrorCode || (ErrorCode = {}));
|
|
19
|
-
exports.default = ErrorCode;
|
|
19
|
+
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
package/lib/factory/errors.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* errors
|
|
3
3
|
*/
|
|
4
|
-
import AlreadyInUseError from './error/alreadyInUse';
|
|
5
|
-
import ArgumentError from './error/argument';
|
|
6
|
-
import ArgumentNullError from './error/argumentNull';
|
|
4
|
+
import { AlreadyInUseError } from './error/alreadyInUse';
|
|
5
|
+
import { ArgumentError } from './error/argument';
|
|
6
|
+
import { ArgumentNullError } from './error/argumentNull';
|
|
7
7
|
import { ChevreError } from './error/chevre';
|
|
8
|
-
import ForbiddenError from './error/forbidden';
|
|
9
|
-
import GatewayTimeoutError from './error/gatewayTimeout';
|
|
10
|
-
import NotFoundError from './error/notFound';
|
|
11
|
-
import NotImplementedError from './error/notImplemented';
|
|
12
|
-
import RateLimitExceededError from './error/rateLimitExceeded';
|
|
13
|
-
import ServiceUnavailableError from './error/serviceUnavailable';
|
|
14
|
-
import UnauthorizedError from './error/unauthorized';
|
|
8
|
+
import { ForbiddenError } from './error/forbidden';
|
|
9
|
+
import { GatewayTimeoutError } from './error/gatewayTimeout';
|
|
10
|
+
import { NotFoundError } from './error/notFound';
|
|
11
|
+
import { NotImplementedError } from './error/notImplemented';
|
|
12
|
+
import { RateLimitExceededError } from './error/rateLimitExceeded';
|
|
13
|
+
import { ServiceUnavailableError } from './error/serviceUnavailable';
|
|
14
|
+
import { UnauthorizedError } from './error/unauthorized';
|
|
15
15
|
export { AlreadyInUseError as AlreadyInUse, ArgumentError as Argument, ArgumentNullError as ArgumentNull, ForbiddenError as Forbidden, GatewayTimeoutError as GatewayTimeout, NotFoundError as NotFound, NotImplementedError as NotImplemented, RateLimitExceededError as RateLimitExceeded, ServiceUnavailableError as ServiceUnavailable, ChevreError as Chevre, UnauthorizedError as Unauthorized };
|
package/lib/factory/errors.js
CHANGED
|
@@ -5,24 +5,24 @@ exports.Unauthorized = exports.Chevre = exports.ServiceUnavailable = exports.Rat
|
|
|
5
5
|
* errors
|
|
6
6
|
*/
|
|
7
7
|
var alreadyInUse_1 = require("./error/alreadyInUse");
|
|
8
|
-
exports
|
|
8
|
+
Object.defineProperty(exports, "AlreadyInUse", { enumerable: true, get: function () { return alreadyInUse_1.AlreadyInUseError; } });
|
|
9
9
|
var argument_1 = require("./error/argument");
|
|
10
|
-
exports
|
|
10
|
+
Object.defineProperty(exports, "Argument", { enumerable: true, get: function () { return argument_1.ArgumentError; } });
|
|
11
11
|
var argumentNull_1 = require("./error/argumentNull");
|
|
12
|
-
exports
|
|
12
|
+
Object.defineProperty(exports, "ArgumentNull", { enumerable: true, get: function () { return argumentNull_1.ArgumentNullError; } });
|
|
13
13
|
var chevre_1 = require("./error/chevre");
|
|
14
14
|
Object.defineProperty(exports, "Chevre", { enumerable: true, get: function () { return chevre_1.ChevreError; } });
|
|
15
15
|
var forbidden_1 = require("./error/forbidden");
|
|
16
|
-
exports
|
|
16
|
+
Object.defineProperty(exports, "Forbidden", { enumerable: true, get: function () { return forbidden_1.ForbiddenError; } });
|
|
17
17
|
var gatewayTimeout_1 = require("./error/gatewayTimeout");
|
|
18
|
-
exports
|
|
18
|
+
Object.defineProperty(exports, "GatewayTimeout", { enumerable: true, get: function () { return gatewayTimeout_1.GatewayTimeoutError; } });
|
|
19
19
|
var notFound_1 = require("./error/notFound");
|
|
20
|
-
exports
|
|
20
|
+
Object.defineProperty(exports, "NotFound", { enumerable: true, get: function () { return notFound_1.NotFoundError; } });
|
|
21
21
|
var notImplemented_1 = require("./error/notImplemented");
|
|
22
|
-
exports
|
|
22
|
+
Object.defineProperty(exports, "NotImplemented", { enumerable: true, get: function () { return notImplemented_1.NotImplementedError; } });
|
|
23
23
|
var rateLimitExceeded_1 = require("./error/rateLimitExceeded");
|
|
24
|
-
exports
|
|
24
|
+
Object.defineProperty(exports, "RateLimitExceeded", { enumerable: true, get: function () { return rateLimitExceeded_1.RateLimitExceededError; } });
|
|
25
25
|
var serviceUnavailable_1 = require("./error/serviceUnavailable");
|
|
26
|
-
exports
|
|
26
|
+
Object.defineProperty(exports, "ServiceUnavailable", { enumerable: true, get: function () { return serviceUnavailable_1.ServiceUnavailableError; } });
|
|
27
27
|
var unauthorized_1 = require("./error/unauthorized");
|
|
28
|
-
exports
|
|
28
|
+
Object.defineProperty(exports, "Unauthorized", { enumerable: true, get: function () { return unauthorized_1.UnauthorizedError; } });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as EventFactory from '../event';
|
|
3
3
|
import * as ScreeningEventSeriesFactory from '../event/screeningEventSeries';
|
|
4
|
-
import EventType from '../eventType';
|
|
5
|
-
import IMultilingualString from '../multilingualString';
|
|
4
|
+
import { EventType } from '../eventType';
|
|
5
|
+
import { IMultilingualString } from '../multilingualString';
|
|
6
6
|
import * as OfferFactory from '../offer';
|
|
7
7
|
import { OfferType } from '../offerType';
|
|
8
8
|
import { OrganizationType } from '../organizationType';
|
|
9
9
|
import { PlaceType } from '../placeType';
|
|
10
|
-
import PriceCurrency from '../priceCurrency';
|
|
10
|
+
import { PriceCurrency } from '../priceCurrency';
|
|
11
11
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
|
|
12
12
|
import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
|
|
13
13
|
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
|
|
@@ -15,7 +15,7 @@ import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecific
|
|
|
15
15
|
import { IProject } from '../project';
|
|
16
16
|
import { IQuantitativeValue } from '../quantitativeValue';
|
|
17
17
|
import * as ReservationFactory from '../reservation';
|
|
18
|
-
import ReservationType from '../reservationType';
|
|
18
|
+
import { ReservationType } from '../reservationType';
|
|
19
19
|
import * as WebAPIFactory from '../service/webAPI';
|
|
20
20
|
import { IServiceType } from '../serviceType';
|
|
21
21
|
import { IThing } from '../thing';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import { ICreativeWork as IMovie } from '../creativeWork/movie';
|
|
3
3
|
import * as EventFactory from '../event';
|
|
4
|
-
import EventType from '../eventType';
|
|
4
|
+
import { EventType } from '../eventType';
|
|
5
5
|
import { ILanguage } from '../language';
|
|
6
|
-
import IMultilingualString from '../multilingualString';
|
|
6
|
+
import { IMultilingualString } from '../multilingualString';
|
|
7
7
|
import { OfferType } from '../offerType';
|
|
8
8
|
import { OrganizationType } from '../organizationType';
|
|
9
9
|
import { PlaceType } from '../placeType';
|
|
10
|
-
import PriceCurrency from '../priceCurrency';
|
|
10
|
+
import { PriceCurrency } from '../priceCurrency';
|
|
11
11
|
import { IProject } from '../project';
|
|
12
12
|
/**
|
|
13
13
|
* 施設コンテンツに対するオファーインターフェース
|
package/lib/factory/event.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as CreativeWorkFactory from './creativeWork';
|
|
2
|
-
import EventStatusType from './eventStatusType';
|
|
3
|
-
import EventType from './eventType';
|
|
4
|
-
import IMultilingualString from './multilingualString';
|
|
2
|
+
import { EventStatusType } from './eventStatusType';
|
|
3
|
+
import { EventType } from './eventType';
|
|
4
|
+
import { IMultilingualString } from './multilingualString';
|
|
5
5
|
import * as OfferFactory from './offer';
|
|
6
6
|
import * as PlaceFactory from './place';
|
|
7
7
|
import { IProject } from './project';
|
|
8
8
|
import { IPropertyValue } from './propertyValue';
|
|
9
|
-
import SortType from './sortType';
|
|
9
|
+
import { SortType } from './sortType';
|
|
10
10
|
export interface IHasOfferCatalog {
|
|
11
11
|
typeOf: 'OfferCatalog';
|
|
12
12
|
id?: string;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* イベントステータス
|
|
3
3
|
*/
|
|
4
|
-
declare enum EventStatusType {
|
|
4
|
+
export declare enum EventStatusType {
|
|
5
5
|
EventCancelled = "EventCancelled",
|
|
6
6
|
EventPostponed = "EventPostponed",
|
|
7
7
|
EventRescheduled = "EventRescheduled",
|
|
8
8
|
EventScheduled = "EventScheduled"
|
|
9
9
|
}
|
|
10
|
-
export default EventStatusType;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventStatusType = void 0;
|
|
2
4
|
/**
|
|
3
5
|
* イベントステータス
|
|
4
6
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
var EventStatusType;
|
|
7
8
|
(function (EventStatusType) {
|
|
8
9
|
EventStatusType["EventCancelled"] = "EventCancelled";
|
|
9
10
|
EventStatusType["EventPostponed"] = "EventPostponed";
|
|
10
11
|
EventStatusType["EventRescheduled"] = "EventRescheduled";
|
|
11
12
|
EventStatusType["EventScheduled"] = "EventScheduled";
|
|
12
|
-
})(EventStatusType || (EventStatusType = {}));
|
|
13
|
-
exports.default = EventStatusType;
|
|
13
|
+
})(EventStatusType = exports.EventStatusType || (exports.EventStatusType = {}));
|
package/lib/factory/eventType.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventType = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* イベントタイプ
|
|
5
6
|
*/
|
|
@@ -7,5 +8,4 @@ var EventType;
|
|
|
7
8
|
(function (EventType) {
|
|
8
9
|
EventType["ScreeningEvent"] = "ScreeningEvent";
|
|
9
10
|
EventType["ScreeningEventSeries"] = "ScreeningEventSeries";
|
|
10
|
-
})(EventType || (EventType = {}));
|
|
11
|
-
exports.default = EventType;
|
|
11
|
+
})(EventType = exports.EventType || (exports.EventType = {}));
|
package/lib/factory/iam.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import CreativeWorkType from './creativeWorkType';
|
|
1
|
+
import { CreativeWorkType } from './creativeWorkType';
|
|
2
2
|
import { OrganizationType } from './organizationType';
|
|
3
|
-
import PersonType from './personType';
|
|
3
|
+
import { PersonType } from './personType';
|
|
4
4
|
export declare enum RoleType {
|
|
5
5
|
OrganizationRole = "OrganizationRole"
|
|
6
6
|
}
|
package/lib/factory/invoice.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
2
2
|
import * as OrderFactory from './order';
|
|
3
|
-
import PaymentStatusType from './paymentStatusType';
|
|
3
|
+
import { PaymentStatusType } from './paymentStatusType';
|
|
4
4
|
import * as PersonFactory from './person';
|
|
5
|
-
import PersonType from './personType';
|
|
5
|
+
import { PersonType } from './personType';
|
|
6
6
|
import { IProject } from './project';
|
|
7
7
|
import * as SellerFactory from './seller';
|
|
8
|
-
import SortType from './sortType';
|
|
8
|
+
import { SortType } from './sortType';
|
|
9
9
|
export declare type IBroker = SellerFactory.ISeller | PersonFactory.IPerson;
|
|
10
10
|
export declare type IProvider = SellerFactory.ISeller | PersonFactory.IPerson;
|
|
11
11
|
export interface IReferenceOrder extends OrderFactory.IOrder {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 商品在庫状況
|
|
3
3
|
*/
|
|
4
|
-
declare enum ItemAvailability {
|
|
4
|
+
export declare enum ItemAvailability {
|
|
5
5
|
Discontinued = "Discontinued",
|
|
6
6
|
InStock = "InStock",
|
|
7
7
|
InStoreOnly = "InStoreOnly",
|
|
@@ -12,4 +12,3 @@ declare enum ItemAvailability {
|
|
|
12
12
|
PreSale = "PreSale",
|
|
13
13
|
SoldOut = "SoldOut"
|
|
14
14
|
}
|
|
15
|
-
export default ItemAvailability;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemAvailability = void 0;
|
|
2
4
|
/**
|
|
3
5
|
* 商品在庫状況
|
|
4
6
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
var ItemAvailability;
|
|
7
8
|
(function (ItemAvailability) {
|
|
8
9
|
ItemAvailability["Discontinued"] = "Discontinued";
|
|
@@ -14,5 +15,4 @@ var ItemAvailability;
|
|
|
14
15
|
ItemAvailability["PreOrder"] = "PreOrder";
|
|
15
16
|
ItemAvailability["PreSale"] = "PreSale";
|
|
16
17
|
ItemAvailability["SoldOut"] = "SoldOut";
|
|
17
|
-
})(ItemAvailability || (ItemAvailability = {}));
|
|
18
|
-
exports.default = ItemAvailability;
|
|
18
|
+
})(ItemAvailability = exports.ItemAvailability || (exports.ItemAvailability = {}));
|
package/lib/factory/offer.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import ActionType from './actionType';
|
|
1
|
+
import { ActionType } from './actionType';
|
|
2
2
|
import { ICategoryCode } from './categoryCode';
|
|
3
|
-
import ItemAvailability from './itemAvailability';
|
|
3
|
+
import { ItemAvailability } from './itemAvailability';
|
|
4
4
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
5
5
|
import * as SeatReservationOfferFactory from './offer/seatReservation';
|
|
6
6
|
import { OfferType } from './offerType';
|
|
7
|
-
import PriceCurrency from './priceCurrency';
|
|
7
|
+
import { PriceCurrency } from './priceCurrency';
|
|
8
8
|
import { IPriceSpecification } from './priceSpecification';
|
|
9
9
|
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
10
|
-
import PriceSpecificationType from './priceSpecificationType';
|
|
10
|
+
import { PriceSpecificationType } from './priceSpecificationType';
|
|
11
11
|
import { ProductType } from './product';
|
|
12
12
|
import { IProject } from './project';
|
|
13
13
|
import { IPropertyValue } from './propertyValue';
|
|
14
14
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
15
15
|
import * as WebAPIFactory from './service/webAPI';
|
|
16
|
-
import SortType from './sortType';
|
|
16
|
+
import { SortType } from './sortType';
|
|
17
17
|
import { IThing } from './thing';
|
|
18
18
|
import { UnitCode } from './unitCode';
|
|
19
19
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import IMultilingualString from './multilingualString';
|
|
1
|
+
import { IMultilingualString } from './multilingualString';
|
|
2
2
|
import { OfferType } from './offerType';
|
|
3
3
|
import { IProject } from './project';
|
|
4
4
|
import { IPropertyValue } from './propertyValue';
|
|
5
5
|
import { IServiceType } from './serviceType';
|
|
6
|
-
import SortType from './sortType';
|
|
6
|
+
import { SortType } from './sortType';
|
|
7
7
|
import { IThing } from './thing';
|
|
8
8
|
export interface IItemOffered {
|
|
9
9
|
typeOf: string;
|
package/lib/factory/order.d.ts
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import { IParticipant } from './action';
|
|
2
2
|
import { IPaymentCard } from './action/interact/confirm/moneyTransfer';
|
|
3
|
-
import ActionType from './actionType';
|
|
4
|
-
import AssetTransactionType from './assetTransactionType';
|
|
3
|
+
import { ActionType } from './actionType';
|
|
4
|
+
import { AssetTransactionType } from './assetTransactionType';
|
|
5
5
|
import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
|
|
6
6
|
import { ICustomer as ICustomerOrganization } from './customer';
|
|
7
|
-
import EventType from './eventType';
|
|
7
|
+
import { EventType } from './eventType';
|
|
8
8
|
import * as MonetaryAmountFactory from './monetaryAmount';
|
|
9
|
+
import { IMultilingualString } from './multilingualString';
|
|
9
10
|
import { IOffer } from './offer';
|
|
10
|
-
import OrderStatus from './orderStatus';
|
|
11
|
+
import { OrderStatus } from './orderStatus';
|
|
11
12
|
import { OrganizationType } from './organizationType';
|
|
12
13
|
import * as PermitFactory from './permit';
|
|
13
14
|
import { IPerson, IProfile } from './person';
|
|
14
|
-
import PersonType from './personType';
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
15
|
+
import { PersonType } from './personType';
|
|
16
|
+
import { PlaceType } from './placeType';
|
|
17
|
+
import { PriceCurrency } from './priceCurrency';
|
|
18
|
+
import { IProduct, ProductType } from './product';
|
|
17
19
|
import { IPropertyValue } from './propertyValue';
|
|
18
20
|
import { IProgramMembershipUsedSearchConditions } from './reservation';
|
|
19
21
|
import * as EventReservationFactory from './reservation/event';
|
|
22
|
+
import { ReservationType } from './reservationType';
|
|
20
23
|
import { ISeller as ISellerOrganization } from './seller';
|
|
21
24
|
import { PaymentServiceType } from './service/paymentService';
|
|
22
|
-
import
|
|
25
|
+
import { IServiceType } from './serviceType';
|
|
26
|
+
import { SortType } from './sortType';
|
|
23
27
|
import { IThing } from './thing';
|
|
24
28
|
export interface IProject {
|
|
25
29
|
typeOf: OrganizationType.Project;
|
|
@@ -183,6 +187,37 @@ export interface ISimpleOrder extends IThing {
|
|
|
183
187
|
*/
|
|
184
188
|
orderDate: Date;
|
|
185
189
|
}
|
|
190
|
+
export interface IReservationFor4OrderedItem {
|
|
191
|
+
location?: {
|
|
192
|
+
branchCode: string;
|
|
193
|
+
name?: IMultilingualString;
|
|
194
|
+
project: IProject;
|
|
195
|
+
typeOf: PlaceType.ScreeningRoom;
|
|
196
|
+
};
|
|
197
|
+
project: IProject;
|
|
198
|
+
typeOf: EventType.ScreeningEvent;
|
|
199
|
+
id: string;
|
|
200
|
+
name?: IMultilingualString;
|
|
201
|
+
startDate?: Date;
|
|
202
|
+
endDate?: Date;
|
|
203
|
+
}
|
|
204
|
+
export interface IEventServiceAsOrderedItem {
|
|
205
|
+
project: IProject;
|
|
206
|
+
typeOf: ProductType.EventService;
|
|
207
|
+
serviceOutput: {
|
|
208
|
+
typeOf: ReservationType.EventReservation;
|
|
209
|
+
reservationFor: IReservationFor4OrderedItem;
|
|
210
|
+
};
|
|
211
|
+
serviceType?: IServiceType;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* 注文アイテム
|
|
215
|
+
* {@link https://schema.org/OrderItem}
|
|
216
|
+
*/
|
|
217
|
+
export interface IOrderedItem {
|
|
218
|
+
typeOf: 'OrderItem';
|
|
219
|
+
orderedItem: IProduct | IEventServiceAsOrderedItem;
|
|
220
|
+
}
|
|
186
221
|
/**
|
|
187
222
|
* 注文インターフェース
|
|
188
223
|
* {@link https://schema.org/Order}
|
|
@@ -214,6 +249,7 @@ export interface IOrder extends ISimpleOrder {
|
|
|
214
249
|
* Was the offer accepted as a gift for someone other than the buyer.
|
|
215
250
|
*/
|
|
216
251
|
isGift?: boolean;
|
|
252
|
+
orderedItem?: IOrderedItem[];
|
|
217
253
|
/**
|
|
218
254
|
* OrderStatus (recommended for confirmation cards/ Search Answers)
|
|
219
255
|
* The current status of the order.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 注文ステータス
|
|
3
3
|
*/
|
|
4
|
-
declare enum OrderStatus {
|
|
4
|
+
export declare enum OrderStatus {
|
|
5
5
|
OrderCancelled = "OrderCancelled",
|
|
6
6
|
OrderDelivered = "OrderDelivered",
|
|
7
7
|
OrderInTransit = "OrderInTransit",
|
|
@@ -11,4 +11,3 @@ declare enum OrderStatus {
|
|
|
11
11
|
OrderProcessing = "OrderProcessing",
|
|
12
12
|
OrderReturned = "OrderReturned"
|
|
13
13
|
}
|
|
14
|
-
export default OrderStatus;
|