@chevre/factory 4.371.0-alpha.2 → 4.371.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,9 @@
1
1
  import type * as COA from '@motionpicture/coa-service';
2
+ import { actionType } from '../..';
2
3
  import * as ActionFactory from '../../action';
3
- import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeAction, IObjectWithoutDetail } from '../../action/authorize/offer/eventService';
4
+ import { IAcceptedOfferBeforeAuthorize4COA, IObjectWithoutDetail } from '../../action/authorize/offer/eventService';
4
5
  import { ActionType } from '../../actionType';
6
+ import { OfferType } from '../../offerType';
5
7
  import { Identifier } from '../../service/webAPI';
6
8
  import { TransactionType } from '../../transactionType';
7
9
  import * as AcceptActionFactory from '../accept';
@@ -12,16 +14,10 @@ export interface IAppliesToSurfrock {
12
14
  };
13
15
  }
14
16
  export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication;
15
- export interface IObject {
16
- /**
17
- * 承認アクションID
18
- * 仮予約済の場合に指定
19
- */
20
- id?: string;
21
- object: IObjectWithoutDetail<Identifier.COA>;
17
+ export interface IObject extends Pick<IObjectWithoutDetail<Identifier.COA>, 'acceptedOffer' | 'event'> {
22
18
  appliesToSurfrock: IAppliesToSurfrock;
23
19
  flgMember: COA.factory.reserve.FlgMember;
24
- typeOf: IAuthorizeAction<Identifier.COA>['typeOf'];
20
+ typeOf: OfferType.AggregateOffer;
25
21
  }
26
22
  export interface IResult {
27
23
  object: {
@@ -40,20 +36,26 @@ export interface IResult {
40
36
  */
41
37
  responseBody?: COA.factory.reserve.IUpdTmpReserveSeatResult;
42
38
  };
43
- typeOf: IAuthorizeAction<Identifier.COA>['typeOf'];
39
+ typeOf: actionType.AuthorizeAction;
44
40
  }
45
41
  export interface IPurpose {
46
42
  typeOf: TransactionType.PlaceOrder;
47
43
  id: string;
48
44
  }
49
- /**
50
- * COA興行オファー採用アクション属性
51
- */
45
+ export interface IPotentialActions {
46
+ /**
47
+ * 承認アクションID
48
+ * 仮予約済の場合に指定
49
+ */
50
+ id?: string;
51
+ typeOf: actionType.AuthorizeAction;
52
+ }
52
53
  export interface IAttributes extends AcceptActionFactory.IAttributes<IObject, IResult> {
53
54
  typeOf: ActionType.AcceptAction;
54
55
  object: IObject;
55
56
  agent: IAgent;
56
57
  purpose: IPurpose;
58
+ potentialActions: IPotentialActions;
57
59
  }
58
60
  /**
59
61
  * COA興行オファー採用アクション
@@ -8,6 +8,9 @@ import * as PayActionFactory from '../../trade/pay';
8
8
  export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
9
9
  export type IPurchaseNumberAuthIn = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
10
10
  export type IPurchaseNumberAuthResult = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
11
+ export type IPurchaseNumberInfo = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberInfo;
12
+ export type IMkknInfo = surfrockFactory.service.auth.purchaseNumberAuth.INvalidTicket;
13
+ export type IYkknInfo = surfrockFactory.service.auth.purchaseNumberAuth.IValidTicket;
11
14
  /**
12
15
  * 認証対象の決済カード
13
16
  */
@@ -1,33 +1,8 @@
1
- import type * as COA from '@motionpicture/coa-service';
2
- import { IObjectWithoutDetail } from '../action/authorize/offer/eventService';
1
+ import { IAttributes as IAcceptCOAOfferActionAttributes } from '../action/accept/coaOffer';
3
2
  import { IExtendId } from '../autoGenerated';
4
- import { CreativeWorkType } from '../creativeWorkType';
5
- import { PersonType } from '../personType';
6
- import { Identifier } from '../service/webAPI';
7
3
  import * as TaskFactory from '../task';
8
4
  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
- }
5
+ export type IData = IAcceptCOAOfferActionAttributes;
31
6
  export interface IAttributes extends TaskFactory.IAttributes {
32
7
  name: TaskName.AcceptCOAOffer;
33
8
  data: IData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.371.0-alpha.2",
3
+ "version": "4.371.0-alpha.4",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",