@chevre/factory 4.371.0-alpha.1 → 4.371.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/action/accept/coaOffer.d.ts +61 -0
- package/lib/action/accept/coaOffer.js +2 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +4 -0
- package/lib/task/acceptCOAOffer.d.ts +38 -0
- package/lib/task/acceptCOAOffer.js +2 -0
- package/lib/taskName.d.ts +1 -0
- package/lib/taskName.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import * as ActionFactory from '../../action';
|
|
3
|
+
import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeAction, IObjectWithoutDetail } from '../../action/authorize/offer/eventService';
|
|
4
|
+
import { ActionType } from '../../actionType';
|
|
5
|
+
import { Identifier } from '../../service/webAPI';
|
|
6
|
+
import { TransactionType } from '../../transactionType';
|
|
7
|
+
import * as AcceptActionFactory from '../accept';
|
|
8
|
+
export interface IAppliesToSurfrock {
|
|
9
|
+
identifier: string;
|
|
10
|
+
serviceOutput: {
|
|
11
|
+
typeOf: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication;
|
|
15
|
+
export interface IObject {
|
|
16
|
+
/**
|
|
17
|
+
* 承認アクションID
|
|
18
|
+
* 仮予約済の場合に指定
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
object: IObjectWithoutDetail<Identifier.COA>;
|
|
22
|
+
appliesToSurfrock: IAppliesToSurfrock;
|
|
23
|
+
flgMember: COA.factory.reserve.FlgMember;
|
|
24
|
+
typeOf: IAuthorizeAction<Identifier.COA>['typeOf'];
|
|
25
|
+
}
|
|
26
|
+
export interface IResult {
|
|
27
|
+
object: {
|
|
28
|
+
acceptedOffer: IAcceptedOfferBeforeAuthorize4COA[];
|
|
29
|
+
event: {
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
result: {
|
|
34
|
+
/**
|
|
35
|
+
* 仮予約実行時は存在する
|
|
36
|
+
*/
|
|
37
|
+
requestBody?: COA.factory.reserve.IUpdTmpReserveSeatArgs;
|
|
38
|
+
/**
|
|
39
|
+
* 仮予約実行時は存在する
|
|
40
|
+
*/
|
|
41
|
+
responseBody?: COA.factory.reserve.IUpdTmpReserveSeatResult;
|
|
42
|
+
};
|
|
43
|
+
typeOf: IAuthorizeAction<Identifier.COA>['typeOf'];
|
|
44
|
+
}
|
|
45
|
+
export interface IPurpose {
|
|
46
|
+
typeOf: TransactionType.PlaceOrder;
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* COA興行オファー採用アクション属性
|
|
51
|
+
*/
|
|
52
|
+
export interface IAttributes extends AcceptActionFactory.IAttributes<IObject, IResult> {
|
|
53
|
+
typeOf: ActionType.AcceptAction;
|
|
54
|
+
object: IObject;
|
|
55
|
+
agent: IAgent;
|
|
56
|
+
purpose: IPurpose;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* COA興行オファー採用アクション
|
|
60
|
+
*/
|
|
61
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
package/lib/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export import cognito = cognito;
|
|
|
7
7
|
export import waiter = waiter;
|
|
8
8
|
import * as AccountFactory from './account';
|
|
9
9
|
import * as ActionFactory from './action';
|
|
10
|
+
import * as AcceptCOAOfferActionFactory from './action/accept/coaOffer';
|
|
10
11
|
import * as AcceptPayActionFactory from './action/accept/pay';
|
|
11
12
|
import * as AuthorizeActionFactory from './action/authorize';
|
|
12
13
|
import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
|
|
@@ -125,6 +126,7 @@ import { TripType } from './tripType';
|
|
|
125
126
|
import { UnitCode } from './unitCode';
|
|
126
127
|
import * as UnitPriceOfferFactory from './unitPriceOffer';
|
|
127
128
|
import * as TaskFactory from './task';
|
|
129
|
+
import * as AcceptCOAOfferTaskFactory from './task/acceptCOAOffer';
|
|
128
130
|
import * as AccountMoneyTransferTaskFactory from './task/accountMoneyTransfer';
|
|
129
131
|
import * as AggregateOffersTaskFactory from './task/aggregateOffers';
|
|
130
132
|
import * as AggregateScreeningEventTaskFactory from './task/aggregateScreeningEvent';
|
|
@@ -212,6 +214,7 @@ export declare namespace action {
|
|
|
212
214
|
export import ISortOrder = ActionFactory.ISortOrder;
|
|
213
215
|
export import ISearchConditions = ActionFactory.ISearchConditions;
|
|
214
216
|
namespace accept {
|
|
217
|
+
export import coaOffer = AcceptCOAOfferActionFactory;
|
|
215
218
|
export import pay = AcceptPayActionFactory;
|
|
216
219
|
}
|
|
217
220
|
namespace authorize {
|
|
@@ -425,6 +428,7 @@ export declare namespace task {
|
|
|
425
428
|
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateEvent ? CreateEventTaskFactory.ITask : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.ITask : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
|
|
426
429
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
427
430
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
431
|
+
export import acceptCOAOffer = AcceptCOAOfferTaskFactory;
|
|
428
432
|
export import aggregateOffers = AggregateOffersTaskFactory;
|
|
429
433
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
430
434
|
export import aggregateUseActionsOnEvent = AggregateUseActionsOnEventTaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var cognito = require("./cognito");
|
|
|
10
10
|
exports.cognito = cognito;
|
|
11
11
|
exports.waiter = waiter;
|
|
12
12
|
var AccountFactory = require("./account");
|
|
13
|
+
var AcceptCOAOfferActionFactory = require("./action/accept/coaOffer");
|
|
13
14
|
var AcceptPayActionFactory = require("./action/accept/pay");
|
|
14
15
|
var AuthorizeEventServiceOfferActionFactory = require("./action/authorize/offer/eventService");
|
|
15
16
|
var AuthorizeMoneyTransferOfferActionFactory = require("./action/authorize/offer/moneyTransfer");
|
|
@@ -113,6 +114,7 @@ var BusTripFactory = require("./trip/busTrip");
|
|
|
113
114
|
var tripType_1 = require("./tripType");
|
|
114
115
|
var unitCode_1 = require("./unitCode");
|
|
115
116
|
var UnitPriceOfferFactory = require("./unitPriceOffer");
|
|
117
|
+
var AcceptCOAOfferTaskFactory = require("./task/acceptCOAOffer");
|
|
116
118
|
var AccountMoneyTransferTaskFactory = require("./task/accountMoneyTransfer");
|
|
117
119
|
var AggregateOffersTaskFactory = require("./task/aggregateOffers");
|
|
118
120
|
var AggregateScreeningEventTaskFactory = require("./task/aggregateScreeningEvent");
|
|
@@ -171,6 +173,7 @@ var action;
|
|
|
171
173
|
// export import accept = AcceptActionFactory;
|
|
172
174
|
var accept;
|
|
173
175
|
(function (accept) {
|
|
176
|
+
accept.coaOffer = AcceptCOAOfferActionFactory;
|
|
174
177
|
accept.pay = AcceptPayActionFactory;
|
|
175
178
|
})(accept = action.accept || (action.accept = {}));
|
|
176
179
|
var authorize;
|
|
@@ -378,6 +381,7 @@ exports.reservationType = reservationType_1.ReservationType;
|
|
|
378
381
|
exports.seller = SellerFactory;
|
|
379
382
|
var task;
|
|
380
383
|
(function (task) {
|
|
384
|
+
task.acceptCOAOffer = AcceptCOAOfferTaskFactory;
|
|
381
385
|
task.aggregateOffers = AggregateOffersTaskFactory;
|
|
382
386
|
task.aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
383
387
|
task.aggregateUseActionsOnEvent = AggregateUseActionsOnEventTaskFactory;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import { IObjectWithoutDetail } from '../action/authorize/offer/eventService';
|
|
3
|
+
import { IExtendId } from '../autoGenerated';
|
|
4
|
+
import { CreativeWorkType } from '../creativeWorkType';
|
|
5
|
+
import { PersonType } from '../personType';
|
|
6
|
+
import { Identifier } from '../service/webAPI';
|
|
7
|
+
import * as TaskFactory from '../task';
|
|
8
|
+
import { TaskName } from '../taskName';
|
|
9
|
+
export interface IAppliesToSurfrock {
|
|
10
|
+
identifier: string;
|
|
11
|
+
serviceOutput: {
|
|
12
|
+
typeOf: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface IData {
|
|
16
|
+
/**
|
|
17
|
+
* 承認アクションID
|
|
18
|
+
* 仮予約済の場合に指定
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
object: IObjectWithoutDetail<Identifier.COA>;
|
|
22
|
+
agent: {
|
|
23
|
+
typeOf: PersonType.Person | CreativeWorkType.WebApplication;
|
|
24
|
+
};
|
|
25
|
+
purpose: {
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
28
|
+
appliesToSurfrock: IAppliesToSurfrock;
|
|
29
|
+
flgMember: COA.factory.reserve.FlgMember;
|
|
30
|
+
}
|
|
31
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
32
|
+
name: TaskName.AcceptCOAOffer;
|
|
33
|
+
data: IData;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* COA興行オファー採用タスク
|
|
37
|
+
*/
|
|
38
|
+
export type ITask = IExtendId<IAttributes>;
|
package/lib/taskName.d.ts
CHANGED
package/lib/taskName.js
CHANGED