@chevre/factory 6.0.0-alpha.0 → 6.0.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/account/transactionType.js +1 -1
- package/lib/account.js +2 -2
- package/lib/accountType.js +1 -1
- package/lib/action/accept/coaOffer.js +1 -1
- package/lib/action/authorize/offer/any.d.ts +76 -0
- package/lib/action/authorize/offer/any.js +8 -0
- package/lib/action/authorize/offer/eventService.d.ts +7 -72
- package/lib/action/authorize/offer/eventService.js +2 -4
- package/lib/action/authorize/offer/product.d.ts +26 -21
- package/lib/action/authorize/offer/product.js +3 -0
- package/lib/action/authorize/paymentMethod/any.js +2 -2
- package/lib/action/transfer/give/pointAward.js +1 -1
- package/lib/action/update/delete.js +1 -1
- package/lib/actionStatusType.js +1 -1
- package/lib/actionType.js +1 -1
- package/lib/aggregation.js +1 -1
- package/lib/assetTransactionType.js +1 -1
- package/lib/categoryCode.js +1 -1
- package/lib/certificationStatusEnumeration.js +1 -1
- package/lib/creativeWork/message/email.js +1 -1
- package/lib/creativeWork/noteDigitalDocument.js +2 -2
- package/lib/creativeWorkType.js +1 -1
- package/lib/encodingFormat.js +10 -10
- package/lib/error/alreadyInUse.js +1 -3
- package/lib/error/argument.js +1 -3
- package/lib/error/argumentNull.js +1 -3
- package/lib/error/chevre.js +1 -3
- package/lib/error/forbidden.js +1 -3
- package/lib/error/gatewayTimeout.js +1 -3
- package/lib/error/internal.js +1 -3
- package/lib/error/notFound.js +1 -3
- package/lib/error/notImplemented.js +1 -3
- package/lib/error/rateLimitExceeded.js +1 -3
- package/lib/error/serviceUnavailable.js +1 -3
- package/lib/error/unauthorized.js +1 -3
- package/lib/error/unknown.js +1 -3
- package/lib/errorCode.js +1 -1
- package/lib/event/anyEvent.d.ts +2 -2
- package/lib/eventStatusType.js +1 -1
- package/lib/eventType.js +1 -1
- package/lib/index.d.ts +4 -8
- package/lib/index.js +30 -58
- package/lib/itemAvailability.js +1 -1
- package/lib/merchantReturnPolicy.js +3 -3
- package/lib/movieTicketType.js +1 -1
- package/lib/offerItemCondition.js +1 -1
- package/lib/offerType.js +1 -1
- package/lib/order.js +1 -1
- package/lib/orderStatus.js +1 -1
- package/lib/organizationType.js +1 -1
- package/lib/paymentStatusType.js +1 -1
- package/lib/permit.js +1 -1
- package/lib/personType.js +1 -1
- package/lib/place/seat.d.ts +1 -3
- package/lib/placeType.js +1 -1
- package/lib/priceCurrency.js +1 -1
- package/lib/priceSpecificationType.js +1 -1
- package/lib/product.js +1 -1
- package/lib/programMembership.js +1 -1
- package/lib/propertyValue.js +1 -1
- package/lib/quantitativeValue.js +1 -1
- package/lib/recipe.js +2 -2
- package/lib/reservationStatusType.js +1 -1
- package/lib/reservationType.js +1 -1
- package/lib/role/organizationRole.js +1 -1
- package/lib/role.js +1 -1
- package/lib/service/paymentService.js +1 -1
- package/lib/service/webAPI.js +1 -1
- package/lib/sortType.js +1 -1
- package/lib/taskName.js +1 -1
- package/lib/taskStatus.js +1 -1
- package/lib/transaction/returnOrder.js +1 -1
- package/lib/transactionStatusType.js +1 -1
- package/lib/transactionType.js +1 -1
- package/lib/tripType.js +1 -1
- package/lib/unitCode.js +1 -1
- package/package.json +15 -18
- package/example/customReturnPolicyRequest.json +0 -125
- package/example/customReturnPolicyResponse.json +0 -17
- package/example/informPayAction.json +0 -126
- package/example/informPersonAction.json +0 -517
- package/example/informRefundAction.json +0 -16
- package/example/testErrorInstance.js +0 -9
|
@@ -18,4 +18,4 @@ var AccountTransactionType;
|
|
|
18
18
|
* 転送取引
|
|
19
19
|
*/
|
|
20
20
|
AccountTransactionType["Transfer"] = "Transfer";
|
|
21
|
-
})(AccountTransactionType
|
|
21
|
+
})(AccountTransactionType || (exports.AccountTransactionType = AccountTransactionType = {}));
|
package/lib/account.js
CHANGED
|
@@ -22,11 +22,11 @@ var WithdrawTransactionFactory = require("./account/transaction/withdraw");
|
|
|
22
22
|
var action;
|
|
23
23
|
(function (action) {
|
|
24
24
|
action.moneyTransfer = MoneyTransferActionFactory;
|
|
25
|
-
})(action
|
|
25
|
+
})(action || (exports.action = action = {}));
|
|
26
26
|
var transaction;
|
|
27
27
|
(function (transaction) {
|
|
28
28
|
transaction.withdraw = WithdrawTransactionFactory;
|
|
29
29
|
transaction.deposit = DepositTransactionFactory;
|
|
30
30
|
transaction.transfer = TransferTransactionFactory;
|
|
31
|
-
})(transaction
|
|
31
|
+
})(transaction || (exports.transaction = transaction = {}));
|
|
32
32
|
exports.transactionType = transactionType_1.AccountTransactionType;
|
package/lib/accountType.js
CHANGED
|
@@ -16,4 +16,4 @@ var AccountType;
|
|
|
16
16
|
AccountType["Savings"] = "Savings";
|
|
17
17
|
AccountType["Transaction"] = "Transaction";
|
|
18
18
|
AccountType["Transactional"] = "Transactional";
|
|
19
|
-
})(AccountType
|
|
19
|
+
})(AccountType || (exports.AccountType = AccountType = {}));
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
|
|
3
|
+
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
|
+
import { OfferType } from '../../../offerType';
|
|
5
|
+
import { PriceCurrency } from '../../../priceCurrency';
|
|
6
|
+
import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
|
|
7
|
+
import { ITicketOffer } from '../../../product';
|
|
8
|
+
import { TransactionType } from '../../../transactionType';
|
|
9
|
+
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
10
|
+
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
11
|
+
export declare enum ObjectType {
|
|
12
|
+
SeatReservation = "SeatReservation",
|
|
13
|
+
AggregateOffer = "AggregateOffer"
|
|
14
|
+
}
|
|
15
|
+
export interface IInstrumentAsCOAReserveTransaction {
|
|
16
|
+
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
17
|
+
identifier?: never;
|
|
18
|
+
/**
|
|
19
|
+
* 仮予約番号
|
|
20
|
+
* ある時期(2023-09-12頃)以前では空文字のケースがあるので注意
|
|
21
|
+
*/
|
|
22
|
+
transactionNumber: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IInstrumentAsReserveTransaction {
|
|
25
|
+
typeOf: AssetTransactionType.Reserve;
|
|
26
|
+
identifier?: never;
|
|
27
|
+
/**
|
|
28
|
+
* 予約取引番号
|
|
29
|
+
*/
|
|
30
|
+
transactionNumber: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IInstrumentAsRegisterService {
|
|
33
|
+
typeOf: AssetTransactionType.RegisterService;
|
|
34
|
+
transactionNumber: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IPurpose {
|
|
37
|
+
typeOf: TransactionType.PlaceOrder;
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
export type IError = any;
|
|
41
|
+
export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
|
|
42
|
+
typeOf: OfferType.Offer;
|
|
43
|
+
id: string;
|
|
44
|
+
includesObject: {
|
|
45
|
+
amountOfThisGood: number;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* 取引確定時の検証に必要な情報のみ保管する
|
|
49
|
+
*/
|
|
50
|
+
priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity' | 'eligibleTransactionVolume'>;
|
|
51
|
+
}
|
|
52
|
+
export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
|
|
53
|
+
/**
|
|
54
|
+
* オファー承認結果としての集計オファー
|
|
55
|
+
*/
|
|
56
|
+
export interface IResultAsAggregateOffer {
|
|
57
|
+
typeOf: OfferType.AggregateOffer;
|
|
58
|
+
/**
|
|
59
|
+
* オファーIDごとの集計
|
|
60
|
+
*/
|
|
61
|
+
offers?: IAcceptedOfferInResult[];
|
|
62
|
+
itemOffered?: {
|
|
63
|
+
serviceOutput: {
|
|
64
|
+
/**
|
|
65
|
+
* programMembershipUsed required(2024-08-15~)
|
|
66
|
+
*/
|
|
67
|
+
programMembershipUsed: IAggregateProgramMembershipUsed;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 決済金額
|
|
72
|
+
* オファー未指定の場合、金額非確定なので、この属性は存在しない
|
|
73
|
+
*/
|
|
74
|
+
price?: number;
|
|
75
|
+
priceCurrency: PriceCurrency;
|
|
76
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectType = void 0;
|
|
4
|
+
var ObjectType;
|
|
5
|
+
(function (ObjectType) {
|
|
6
|
+
ObjectType["SeatReservation"] = "SeatReservation";
|
|
7
|
+
ObjectType["AggregateOffer"] = "AggregateOffer";
|
|
8
|
+
})(ObjectType || (exports.ObjectType = ObjectType = {}));
|
|
@@ -1,76 +1,15 @@
|
|
|
1
1
|
import type * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
3
|
import { ActionType } from '../../../actionType';
|
|
4
|
-
import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail
|
|
4
|
+
import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail } from '../../../assetTransaction/reserve';
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
6
|
import { IEvent } from '../../../event/screeningEvent';
|
|
7
|
-
import { OfferType } from '../../../offerType';
|
|
8
7
|
import * as OrderFactory from '../../../order';
|
|
9
|
-
import { PriceCurrency } from '../../../priceCurrency';
|
|
10
|
-
import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
|
|
11
|
-
import { ITicketOffer } from '../../../product';
|
|
12
|
-
import { TransactionType } from '../../../transactionType';
|
|
13
8
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
export declare enum ObjectType {
|
|
17
|
-
SeatReservation = "SeatReservation"
|
|
18
|
-
}
|
|
19
|
-
export interface IInstrumentAsCOAReserveTransaction {
|
|
20
|
-
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
21
|
-
identifier?: never;
|
|
22
|
-
/**
|
|
23
|
-
* 仮予約番号
|
|
24
|
-
* ある時期(2023-09-12頃)以前では空文字のケースがあるので中止
|
|
25
|
-
*/
|
|
26
|
-
transactionNumber: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IInstrumentAsReserveTransaction {
|
|
29
|
-
typeOf: AssetTransactionType.Reserve;
|
|
30
|
-
identifier?: never;
|
|
31
|
-
/**
|
|
32
|
-
* 予約取引番号
|
|
33
|
-
*/
|
|
34
|
-
transactionNumber: string;
|
|
35
|
-
}
|
|
9
|
+
import { IAcceptedOfferInResult, IAgent, IAggregateProgramMembershipUsed, IError, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IPurpose, IRecipient, IResultAsAggregateOffer, ObjectType } from './any';
|
|
10
|
+
export { IAcceptedOfferInResult, IAgent, IAggregateProgramMembershipUsed, IRecipient, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IError, IPurpose, ObjectType, IResultAsAggregateOffer };
|
|
36
11
|
export type IInstrumentAsAssetTransaction = IInstrumentAsCOAReserveTransaction | IInstrumentAsReserveTransaction;
|
|
37
|
-
export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
|
|
38
|
-
typeOf: OfferType.Offer;
|
|
39
|
-
id: string;
|
|
40
|
-
includesObject: {
|
|
41
|
-
amountOfThisGood: number;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* 取引確定時の検証に必要な情報のみ保管する
|
|
45
|
-
*/
|
|
46
|
-
priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity' | 'eligibleTransactionVolume'>;
|
|
47
|
-
}
|
|
48
|
-
export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
|
|
49
|
-
/**
|
|
50
|
-
* 興行オファー承認結果としての集計オファー
|
|
51
|
-
*/
|
|
52
|
-
export interface IResultAsAggregateOffer {
|
|
53
|
-
typeOf?: OfferType.AggregateOffer;
|
|
54
|
-
/**
|
|
55
|
-
* オファーIDごとの集計
|
|
56
|
-
*/
|
|
57
|
-
offers?: IAcceptedOfferInResult[];
|
|
58
|
-
itemOffered?: {
|
|
59
|
-
serviceOutput: {
|
|
60
|
-
/**
|
|
61
|
-
* programMembershipUsed required(2024-08-15~)
|
|
62
|
-
*/
|
|
63
|
-
programMembershipUsed: IAggregateProgramMembershipUsed;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
12
|
export interface IResult extends IResultAsAggregateOffer {
|
|
68
|
-
/**
|
|
69
|
-
* 決済金額
|
|
70
|
-
* オファー未指定の場合、金額非確定なので、この属性は存在しない
|
|
71
|
-
*/
|
|
72
|
-
price?: number;
|
|
73
|
-
priceCurrency: PriceCurrency;
|
|
74
13
|
/**
|
|
75
14
|
* オファーに対して必要な通貨金額
|
|
76
15
|
* currencyを通貨区分として扱う
|
|
@@ -83,13 +22,14 @@ export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs
|
|
|
83
22
|
transactionNumber: string;
|
|
84
23
|
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
85
24
|
};
|
|
86
|
-
export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'
|
|
25
|
+
export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'>;
|
|
87
26
|
/**
|
|
88
27
|
* 興行オファー承認アクション対象
|
|
89
28
|
*/
|
|
90
29
|
export interface IObject {
|
|
91
|
-
typeOf: ObjectType;
|
|
30
|
+
typeOf: ObjectType.SeatReservation;
|
|
92
31
|
event?: IEventInObject;
|
|
32
|
+
itemOffered?: never;
|
|
93
33
|
/**
|
|
94
34
|
* recipe有(仮予約時)のCOA興行オファー採用アクションID(2024-06-11~)
|
|
95
35
|
*/
|
|
@@ -100,18 +40,13 @@ export interface IObject {
|
|
|
100
40
|
*/
|
|
101
41
|
pendingTransaction?: ICOAPendingTransaction;
|
|
102
42
|
}
|
|
103
|
-
export interface IPurpose {
|
|
104
|
-
typeOf: TransactionType.PlaceOrder;
|
|
105
|
-
id: string;
|
|
106
|
-
}
|
|
107
|
-
export type IError = any;
|
|
108
43
|
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
109
44
|
typeOf: ActionType.AuthorizeAction;
|
|
110
45
|
agent: IAgent;
|
|
46
|
+
instrument: IInstrumentAsAssetTransaction;
|
|
111
47
|
recipient: IRecipient;
|
|
112
48
|
object: IObject;
|
|
113
49
|
purpose: IPurpose;
|
|
114
|
-
instrument: IInstrumentAsAssetTransaction;
|
|
115
50
|
}
|
|
116
51
|
/**
|
|
117
52
|
* 興行オファー承認アクション
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ObjectType = void 0;
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
ObjectType["SeatReservation"] = "SeatReservation";
|
|
7
|
-
})(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
|
|
4
|
+
var any_1 = require("./any");
|
|
5
|
+
Object.defineProperty(exports, "ObjectType", { enumerable: true, get: function () { return any_1.ObjectType; } });
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import { ActionType } from '../../../actionType';
|
|
3
3
|
import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
|
|
4
|
-
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
4
|
import { IOffer } from '../../../offer';
|
|
6
|
-
import * as OrderFactory from '../../../order';
|
|
7
5
|
import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
|
|
8
|
-
import { PriceCurrency } from '../../../priceCurrency';
|
|
9
6
|
import { IMembershipProduct, IPaymentCardProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
|
|
10
7
|
import { ISeller } from '../../../seller';
|
|
11
|
-
import { TransactionType } from '../../../transactionType';
|
|
12
8
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
13
9
|
import { IPointAward } from '../../transfer/moneyTransfer';
|
|
14
|
-
|
|
15
|
-
export
|
|
10
|
+
import { IAgent, IError, IInstrumentAsRegisterService, IPurpose, IRecipient, IResultAsAggregateOffer, ObjectType } from './any';
|
|
11
|
+
export { IAgent, IRecipient, IInstrumentAsRegisterService, IError, IPurpose, ObjectType, IResultAsAggregateOffer };
|
|
16
12
|
export type IPermitIssuedByProduct = Omit<IPermit, 'issuedThrough'> & {
|
|
17
13
|
issuedThrough?: IIssuedThroughAsProduct;
|
|
18
14
|
};
|
|
@@ -37,24 +33,33 @@ export interface IAcceptedOffer extends Pick<IOffer, 'typeOf' | 'id' | 'identifi
|
|
|
37
33
|
seller: ISellerMakesOffer;
|
|
38
34
|
priceSpecification?: ITicketPriceSpecification;
|
|
39
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* 承認アクションオブジェクト(最適化されたAcceptedOffer)
|
|
38
|
+
*/
|
|
39
|
+
export interface IObjectAsAcceptedOffer {
|
|
40
|
+
typeOf: ObjectType.AggregateOffer;
|
|
41
|
+
/**
|
|
42
|
+
* オファー対象アイテム
|
|
43
|
+
*/
|
|
44
|
+
itemOffered: Pick<IItemOffered, 'id' | 'typeOf'>;
|
|
45
|
+
event?: never;
|
|
46
|
+
id?: never;
|
|
47
|
+
pendingTransaction?: never;
|
|
48
|
+
}
|
|
40
49
|
export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
|
|
41
|
-
export type IObject =
|
|
42
|
-
export
|
|
43
|
-
|
|
50
|
+
export type IObject = IObjectAsAcceptedOffer;
|
|
51
|
+
export interface IResult extends IResultAsAggregateOffer {
|
|
52
|
+
/**
|
|
53
|
+
* オファー未指定は現時点でありえないので金額は必ず確定
|
|
54
|
+
*/
|
|
44
55
|
price: number;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
typeOf: TransactionType.PlaceOrder;
|
|
51
|
-
id: string;
|
|
52
|
-
}
|
|
53
|
-
export type IError = any;
|
|
54
|
-
export interface IInstrument {
|
|
55
|
-
typeOf: AssetTransactionType.RegisterService;
|
|
56
|
-
transactionNumber: string;
|
|
56
|
+
requestBody?: never;
|
|
57
|
+
responseBody?: never;
|
|
58
|
+
offers?: never;
|
|
59
|
+
itemOffered?: never;
|
|
60
|
+
amount?: never;
|
|
57
61
|
}
|
|
62
|
+
export type IInstrument = IInstrumentAsRegisterService;
|
|
58
63
|
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
59
64
|
typeOf: ActionType.AuthorizeAction;
|
|
60
65
|
agent: IAgent;
|
|
@@ -4,9 +4,9 @@ exports.ServiceIdentifier = exports.ResultType = void 0;
|
|
|
4
4
|
var ResultType;
|
|
5
5
|
(function (ResultType) {
|
|
6
6
|
ResultType["Payment"] = "Payment";
|
|
7
|
-
})(ResultType
|
|
7
|
+
})(ResultType || (exports.ResultType = ResultType = {}));
|
|
8
8
|
var ServiceIdentifier;
|
|
9
9
|
(function (ServiceIdentifier) {
|
|
10
10
|
// 現時点で決済取引はChevreのみ対応
|
|
11
11
|
ServiceIdentifier["Chevre"] = "Chevre";
|
|
12
|
-
})(ServiceIdentifier
|
|
12
|
+
})(ServiceIdentifier || (exports.ServiceIdentifier = ServiceIdentifier = {}));
|
|
@@ -8,4 +8,4 @@ var ObjectAsTransactionSpecifyingMethod;
|
|
|
8
8
|
(function (ObjectAsTransactionSpecifyingMethod) {
|
|
9
9
|
ObjectAsTransactionSpecifyingMethod["Id"] = "Id";
|
|
10
10
|
ObjectAsTransactionSpecifyingMethod["AgentId"] = "AgentId";
|
|
11
|
-
})(ObjectAsTransactionSpecifyingMethod
|
|
11
|
+
})(ObjectAsTransactionSpecifyingMethod || (exports.ObjectAsTransactionSpecifyingMethod = ObjectAsTransactionSpecifyingMethod = {}));
|
package/lib/actionStatusType.js
CHANGED
|
@@ -11,4 +11,4 @@ var ActionStatusType;
|
|
|
11
11
|
ActionStatusType["FailedActionStatus"] = "FailedActionStatus";
|
|
12
12
|
ActionStatusType["PotentialActionStatus"] = "PotentialActionStatus";
|
|
13
13
|
ActionStatusType["CanceledActionStatus"] = "CanceledActionStatus";
|
|
14
|
-
})(ActionStatusType
|
|
14
|
+
})(ActionStatusType || (exports.ActionStatusType = ActionStatusType = {}));
|
package/lib/actionType.js
CHANGED
|
@@ -28,4 +28,4 @@ var ActionType;
|
|
|
28
28
|
ActionType["UnRegisterAction"] = "UnRegisterAction";
|
|
29
29
|
ActionType["UpdateAction"] = "UpdateAction";
|
|
30
30
|
ActionType["UseAction"] = "UseAction";
|
|
31
|
-
})(ActionType
|
|
31
|
+
})(ActionType || (exports.ActionType = ActionType = {}));
|
package/lib/aggregation.js
CHANGED
|
@@ -18,4 +18,4 @@ var AggregationType;
|
|
|
18
18
|
AggregationType["AggregateReserveAction"] = "AggregateReserveAction";
|
|
19
19
|
AggregationType["AggregateTask"] = "AggregateTask";
|
|
20
20
|
AggregationType["AggregateUseAction"] = "AggregateUseAction";
|
|
21
|
-
})(AggregationType
|
|
21
|
+
})(AggregationType || (exports.AggregationType = AggregationType = {}));
|
|
@@ -35,4 +35,4 @@ var AssetTransactionType;
|
|
|
35
35
|
* 資産取引docは存在しない
|
|
36
36
|
*/
|
|
37
37
|
AssetTransactionType["COAReserveTransaction"] = "COAReserveTransaction";
|
|
38
|
-
})(AssetTransactionType
|
|
38
|
+
})(AssetTransactionType || (exports.AssetTransactionType = AssetTransactionType = {}));
|
package/lib/categoryCode.js
CHANGED
|
@@ -47,4 +47,4 @@ var CategorySetIdentifier;
|
|
|
47
47
|
* 上映方式タイプ
|
|
48
48
|
*/
|
|
49
49
|
CategorySetIdentifier["VideoFormatType"] = "VideoFormatType";
|
|
50
|
-
})(CategorySetIdentifier
|
|
50
|
+
})(CategorySetIdentifier || (exports.CategorySetIdentifier = CategorySetIdentifier = {}));
|
|
@@ -5,4 +5,4 @@ var CertificationStatusEnumeration;
|
|
|
5
5
|
(function (CertificationStatusEnumeration) {
|
|
6
6
|
CertificationStatusEnumeration["CertificationActive"] = "CertificationActive";
|
|
7
7
|
CertificationStatusEnumeration["CertificationInactive"] = "CertificationInactive";
|
|
8
|
-
})(CertificationStatusEnumeration
|
|
8
|
+
})(CertificationStatusEnumeration || (exports.CertificationStatusEnumeration = CertificationStatusEnumeration = {}));
|
|
@@ -7,4 +7,4 @@ var AboutIdentifier;
|
|
|
7
7
|
AboutIdentifier["OnOrderRefunded"] = "OnOrderRefunded";
|
|
8
8
|
AboutIdentifier["OnOrderReturned"] = "OnOrderReturned";
|
|
9
9
|
AboutIdentifier["OnEventStatusChanged"] = "OnEventStatusChanged";
|
|
10
|
-
})(AboutIdentifier
|
|
10
|
+
})(AboutIdentifier || (exports.AboutIdentifier = AboutIdentifier = {}));
|
|
@@ -5,8 +5,8 @@ var DigitalDocumentPermissionType;
|
|
|
5
5
|
(function (DigitalDocumentPermissionType) {
|
|
6
6
|
DigitalDocumentPermissionType["ReadPermission"] = "ReadPermission";
|
|
7
7
|
DigitalDocumentPermissionType["WritePermission"] = "WritePermission";
|
|
8
|
-
})(DigitalDocumentPermissionType
|
|
8
|
+
})(DigitalDocumentPermissionType || (exports.DigitalDocumentPermissionType = DigitalDocumentPermissionType = {}));
|
|
9
9
|
var PermissionGranteeAudienceType;
|
|
10
10
|
(function (PermissionGranteeAudienceType) {
|
|
11
11
|
PermissionGranteeAudienceType["Public"] = "public";
|
|
12
|
-
})(PermissionGranteeAudienceType
|
|
12
|
+
})(PermissionGranteeAudienceType || (exports.PermissionGranteeAudienceType = PermissionGranteeAudienceType = {}));
|
package/lib/creativeWorkType.js
CHANGED
|
@@ -14,4 +14,4 @@ var CreativeWorkType;
|
|
|
14
14
|
CreativeWorkType["SoftwareApplication"] = "SoftwareApplication";
|
|
15
15
|
CreativeWorkType["WebApplication"] = "WebApplication";
|
|
16
16
|
CreativeWorkType["WebSite"] = "WebSite";
|
|
17
|
-
})(CreativeWorkType
|
|
17
|
+
})(CreativeWorkType || (exports.CreativeWorkType = CreativeWorkType = {}));
|
package/lib/encodingFormat.js
CHANGED
|
@@ -10,32 +10,32 @@ var Application;
|
|
|
10
10
|
(function (Application) {
|
|
11
11
|
Application["pdf"] = "application/pdf";
|
|
12
12
|
Application["json"] = "application/json";
|
|
13
|
-
})(Application
|
|
13
|
+
})(Application || (exports.Application = Application = {}));
|
|
14
14
|
var Audio;
|
|
15
15
|
(function (Audio) {
|
|
16
|
-
})(Audio
|
|
16
|
+
})(Audio || (exports.Audio = Audio = {}));
|
|
17
17
|
var Font;
|
|
18
18
|
(function (Font) {
|
|
19
|
-
})(Font
|
|
19
|
+
})(Font || (exports.Font = Font = {}));
|
|
20
20
|
var Example;
|
|
21
21
|
(function (Example) {
|
|
22
|
-
})(Example
|
|
22
|
+
})(Example || (exports.Example = Example = {}));
|
|
23
23
|
var Image;
|
|
24
24
|
(function (Image) {
|
|
25
|
-
})(Image
|
|
25
|
+
})(Image || (exports.Image = Image = {}));
|
|
26
26
|
var Message;
|
|
27
27
|
(function (Message) {
|
|
28
|
-
})(Message
|
|
28
|
+
})(Message || (exports.Message = Message = {}));
|
|
29
29
|
var Model;
|
|
30
30
|
(function (Model) {
|
|
31
|
-
})(Model
|
|
31
|
+
})(Model || (exports.Model = Model = {}));
|
|
32
32
|
var Multipart;
|
|
33
33
|
(function (Multipart) {
|
|
34
|
-
})(Multipart
|
|
34
|
+
})(Multipart || (exports.Multipart = Multipart = {}));
|
|
35
35
|
var Text;
|
|
36
36
|
(function (Text) {
|
|
37
37
|
Text["csv"] = "text/csv";
|
|
38
|
-
})(Text
|
|
38
|
+
})(Text || (exports.Text = Text = {}));
|
|
39
39
|
var Video;
|
|
40
40
|
(function (Video) {
|
|
41
|
-
})(Video
|
|
41
|
+
})(Video || (exports.Video = Video = {}));
|
|
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.AlreadyInUseError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
var errorCode_1 = require("../errorCode");
|
|
22
21
|
var chevre_1 = require("./chevre");
|
|
23
22
|
/**
|
|
@@ -31,7 +30,6 @@ var AlreadyInUseError = /** @class */ (function (_super) {
|
|
|
31
30
|
if (message === undefined || message.length === 0) {
|
|
32
31
|
actualMessage = "The specified '".concat(entityName, "' value is already in use for: ").concat(fieldNames.join(', '), ".");
|
|
33
32
|
}
|
|
34
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
33
|
/* istanbul ignore next */
|
|
36
34
|
_this = _super.call(this, errorCode_1.ErrorCode.AlreadyInUse, actualMessage) || this;
|
|
37
35
|
_this.entityName = entityName;
|
package/lib/error/argument.js
CHANGED
|
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.ArgumentError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
var errorCode_1 = require("../errorCode");
|
|
22
21
|
var chevre_1 = require("./chevre");
|
|
23
22
|
/**
|
|
@@ -31,7 +30,6 @@ var ArgumentError = /** @class */ (function (_super) {
|
|
|
31
30
|
if (message === undefined || message.length === 0) {
|
|
32
31
|
actualMessage = "Invalid or missing argument supplied: ".concat(argumentName, ".");
|
|
33
32
|
}
|
|
34
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
33
|
/* istanbul ignore next */
|
|
36
34
|
_this = _super.call(this, errorCode_1.ErrorCode.Argument, actualMessage) || this;
|
|
37
35
|
_this.argumentName = argumentName;
|
|
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.ArgumentNullError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
var errorCode_1 = require("../errorCode");
|
|
22
21
|
var chevre_1 = require("./chevre");
|
|
23
22
|
/**
|
|
@@ -31,7 +30,6 @@ var ArgumentNullError = /** @class */ (function (_super) {
|
|
|
31
30
|
if (message === undefined || message.length === 0) {
|
|
32
31
|
actualMessage = "Missing argument: ".concat(argumentName, ".");
|
|
33
32
|
}
|
|
34
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
33
|
/* istanbul ignore next */
|
|
36
34
|
_this = _super.call(this, errorCode_1.ErrorCode.ArgumentNull, actualMessage) || this;
|
|
37
35
|
_this.argumentName = argumentName;
|
package/lib/error/chevre.js
CHANGED
|
@@ -16,14 +16,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.ChevreError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
/**
|
|
22
21
|
* ChevreError
|
|
23
22
|
*/
|
|
24
23
|
var ChevreError = /** @class */ (function (_super) {
|
|
25
24
|
__extends(ChevreError, _super);
|
|
26
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
27
25
|
/* istanbul ignore next */
|
|
28
26
|
function ChevreError(code, message) {
|
|
29
27
|
var _this = _super.call(this, message) || this;
|
package/lib/error/forbidden.js
CHANGED
|
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.ForbiddenError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
var errorCode_1 = require("../errorCode");
|
|
22
21
|
var chevre_1 = require("./chevre");
|
|
23
22
|
/**
|
|
@@ -31,7 +30,6 @@ var ForbiddenError = /** @class */ (function (_super) {
|
|
|
31
30
|
if (message === undefined || message.length === 0) {
|
|
32
31
|
actualMessage = 'Forbidden.';
|
|
33
32
|
}
|
|
34
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
33
|
/* istanbul ignore next */
|
|
36
34
|
_this = _super.call(this, errorCode_1.ErrorCode.Forbidden, actualMessage) || this;
|
|
37
35
|
setPrototypeOf(_this, ForbiddenError.prototype);
|
|
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.GatewayTimeoutError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
var errorCode_1 = require("../errorCode");
|
|
22
21
|
var chevre_1 = require("./chevre");
|
|
23
22
|
/**
|
|
@@ -31,7 +30,6 @@ var GatewayTimeoutError = /** @class */ (function (_super) {
|
|
|
31
30
|
if (message === undefined || message.length === 0) {
|
|
32
31
|
actualMessage = 'Gateway Timeout';
|
|
33
32
|
}
|
|
34
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
33
|
/* istanbul ignore next */
|
|
36
34
|
_this = _super.call(this, errorCode_1.ErrorCode.GatewayTimeout, actualMessage) || this;
|
|
37
35
|
setPrototypeOf(_this, GatewayTimeoutError.prototype);
|
package/lib/error/internal.js
CHANGED
|
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.InternalError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
var errorCode_1 = require("../errorCode");
|
|
22
21
|
var chevre_1 = require("./chevre");
|
|
23
22
|
/**
|
|
@@ -31,7 +30,6 @@ var InternalError = /** @class */ (function (_super) {
|
|
|
31
30
|
if (message === undefined || message.length === 0) {
|
|
32
31
|
actualMessage = 'Internal server error.';
|
|
33
32
|
}
|
|
34
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
33
|
/* istanbul ignore next */
|
|
36
34
|
_this = _super.call(this, errorCode_1.ErrorCode.Internal, actualMessage) || this;
|
|
37
35
|
setPrototypeOf(_this, InternalError.prototype);
|
package/lib/error/notFound.js
CHANGED
|
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.NotFoundError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
var errorCode_1 = require("../errorCode");
|
|
22
21
|
var chevre_1 = require("./chevre");
|
|
23
22
|
/**
|
|
@@ -31,7 +30,6 @@ var NotFoundError = /** @class */ (function (_super) {
|
|
|
31
30
|
if (message === undefined || message.length === 0) {
|
|
32
31
|
actualMessage = "Not Found: ".concat(entityName, ".");
|
|
33
32
|
}
|
|
34
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
33
|
/* istanbul ignore next */
|
|
36
34
|
_this = _super.call(this, errorCode_1.ErrorCode.NotFound, actualMessage) || this;
|
|
37
35
|
_this.entityName = entityName;
|
|
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.NotImplementedError = void 0;
|
|
19
|
-
//
|
|
20
|
-
var setPrototypeOf = require("setprototypeof");
|
|
19
|
+
var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
21
20
|
var errorCode_1 = require("../errorCode");
|
|
22
21
|
var chevre_1 = require("./chevre");
|
|
23
22
|
/**
|
|
@@ -31,7 +30,6 @@ var NotImplementedError = /** @class */ (function (_super) {
|
|
|
31
30
|
if (message === undefined || message.length === 0) {
|
|
32
31
|
actualMessage = 'Method is not yet implemented.';
|
|
33
32
|
}
|
|
34
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
35
33
|
/* istanbul ignore next */
|
|
36
34
|
_this = _super.call(this, errorCode_1.ErrorCode.NotImplemented, actualMessage) || this;
|
|
37
35
|
setPrototypeOf(_this, NotImplementedError.prototype);
|