@chevre/factory 4.371.0-alpha.3 → 4.371.0-alpha.5

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,9 +1,8 @@
1
- import type * as COA from '@motionpicture/coa-service';
2
1
  import * as ActionFactory from '../../action';
3
- import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeAction, IObjectWithoutDetail } from '../../action/authorize/offer/eventService';
2
+ import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeOfferAction, IObjectWithoutDetail, IPurpose, IResult as IAuthorizeOfferResult } from '../../action/authorize/offer/eventService';
4
3
  import { ActionType } from '../../actionType';
4
+ import { OfferType } from '../../offerType';
5
5
  import { Identifier } from '../../service/webAPI';
6
- import { TransactionType } from '../../transactionType';
7
6
  import * as AcceptActionFactory from '../accept';
8
7
  export interface IAppliesToSurfrock {
9
8
  identifier: string;
@@ -12,48 +11,58 @@ export interface IAppliesToSurfrock {
12
11
  };
13
12
  }
14
13
  export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication;
15
- export interface IObject {
14
+ /**
15
+ * COA会員用フラグ
16
+ */
17
+ export declare enum FlgMember {
16
18
  /**
17
- * 承認アクションID
18
- * 仮予約済の場合に指定
19
+ * 非会員
19
20
  */
20
- id?: string;
21
- object: IObjectWithoutDetail<Identifier.COA>;
21
+ NonMember = "0",
22
+ /**
23
+ * 会員
24
+ */
25
+ Member = "1"
26
+ }
27
+ export interface IObject extends Pick<IObjectWithoutDetail<Identifier.COA>, 'acceptedOffer' | 'event'> {
22
28
  appliesToSurfrock: IAppliesToSurfrock;
23
- flgMember: COA.factory.reserve.FlgMember;
24
- typeOf: IAuthorizeAction<Identifier.COA>['typeOf'];
29
+ flgMember: FlgMember;
30
+ typeOf: OfferType.AggregateOffer;
25
31
  }
32
+ export type IAuthorizeCOAOfferResult = Pick<IAuthorizeOfferResult<Identifier.COA>, 'requestBody' | 'responseBody'>;
26
33
  export interface IResult {
34
+ /**
35
+ * 承認アクションID
36
+ * 仮予約済の場合に指定
37
+ */
38
+ id?: string;
27
39
  object: {
28
40
  acceptedOffer: IAcceptedOfferBeforeAuthorize4COA[];
29
41
  event: {
30
42
  id: string;
31
43
  };
32
44
  };
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'];
45
+ /**
46
+ * 仮予約実行時は存在する
47
+ */
48
+ result?: IAuthorizeCOAOfferResult;
49
+ typeOf: IAuthorizeOfferAction<Identifier.COA>['typeOf'];
44
50
  }
45
- export interface IPurpose {
46
- typeOf: TransactionType.PlaceOrder;
47
- id: string;
51
+ export { IPurpose };
52
+ export interface IPotentialActions {
53
+ /**
54
+ * 承認アクションID
55
+ * 仮予約済の場合に指定
56
+ */
57
+ id?: string;
58
+ typeOf: IAuthorizeOfferAction<Identifier.COA>['typeOf'];
48
59
  }
49
- /**
50
- * COA興行オファー採用アクション属性
51
- */
52
60
  export interface IAttributes extends AcceptActionFactory.IAttributes<IObject, IResult> {
53
61
  typeOf: ActionType.AcceptAction;
54
62
  object: IObject;
55
63
  agent: IAgent;
56
64
  purpose: IPurpose;
65
+ potentialActions: IPotentialActions;
57
66
  }
58
67
  /**
59
68
  * COA興行オファー採用アクション
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlgMember = void 0;
4
+ /**
5
+ * COA会員用フラグ
6
+ */
7
+ var FlgMember;
8
+ (function (FlgMember) {
9
+ /**
10
+ * 非会員
11
+ */
12
+ FlgMember["NonMember"] = "0";
13
+ /**
14
+ * 会員
15
+ */
16
+ FlgMember["Member"] = "1";
17
+ })(FlgMember = exports.FlgMember || (exports.FlgMember = {}));
@@ -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.3",
3
+ "version": "4.371.0-alpha.5",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",