@chevre/factory 4.374.0-alpha.0 → 4.374.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.
@@ -1,4 +1,5 @@
1
1
  import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
+ import { factory as surfrockFactory } from '@surfrock/sdk';
2
3
  import * as AccountFactory from '../../account';
3
4
  import * as ActionFactory from '../../action';
4
5
  import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
@@ -9,8 +10,11 @@ import { IPaymentServiceOutput } from '../../invoice';
9
10
  import { ITotalPaymentDue, OrderType } from '../../order';
10
11
  import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
11
12
  import { IPropertyValue } from '../../propertyValue';
13
+ import { IRecipe as IPayCreditCardRecipe } from '../../recipe/payCreditCard';
14
+ import { IRecipe as IPayMovieTicketRecipe } from '../../recipe/payMovieTicket';
12
15
  import { PaymentServiceType } from '../../service/paymentService';
13
16
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
17
+ export { IPayCreditCardRecipe, IPayMovieTicketRecipe };
14
18
  export import IAgent = ActionFactory.IParticipantAsProject;
15
19
  export import IRecipient = ActionFactory.IParticipantAsSeller;
16
20
  export interface IOrderAsPayPurpose {
@@ -96,9 +100,11 @@ export interface IPotentialActions {
96
100
  add2report: boolean;
97
101
  informPayment?: IInformPayment[];
98
102
  }
103
+ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
104
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
99
105
  export interface IInstrument {
100
106
  typeOf: string;
101
- seatInfoSyncIn?: any;
107
+ seatInfoSyncIn?: ISeatInfoSyncIn;
102
108
  }
103
109
  /**
104
110
  * 決済結果
@@ -108,7 +114,7 @@ export interface IResult {
108
114
  * クレジットカード売上結果
109
115
  */
110
116
  creditCardSales?: ICreditCardSales[];
111
- seatInfoSyncResult?: any;
117
+ seatInfoSyncResult?: ISeatInfoSyncResult;
112
118
  }
113
119
  export interface ILocation {
114
120
  typeOf: CreativeWorkType.WebApplication;
@@ -0,0 +1,31 @@
1
+ import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
+ import * as RecipeFactory from '../recipe';
3
+ export type IOptionalSiteArgs = GMOFactory.credit.IOptionalSiteArgs;
4
+ export type ISearchTradeArgs = GMOFactory.credit.ISearchTradeArgs & IOptionalSiteArgs;
5
+ export type ISearchTradeResult = GMOFactory.credit.ISearchTradeResult;
6
+ export type IAlterTranArgs = GMOFactory.credit.IAlterTranArgs & IOptionalSiteArgs;
7
+ export type IAlterTranResult = GMOFactory.credit.IAlterTranResult;
8
+ export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
9
+ beforeMedia: ISearchTradeArgs;
10
+ afterMedia: ISearchTradeResult;
11
+ }
12
+ export interface IDirectionAlterTran extends RecipeFactory.IHowToDirection {
13
+ beforeMedia?: IAlterTranArgs;
14
+ afterMedia: IAlterTranResult;
15
+ }
16
+ export interface IStepSearchTrade extends RecipeFactory.IHowToStep {
17
+ identifier: RecipeFactory.StepIdentifier.searchTrade;
18
+ itemListElement: [IDirectionSearchTrade];
19
+ }
20
+ export interface IStepAlterTran extends RecipeFactory.IHowToStep {
21
+ identifier: RecipeFactory.StepIdentifier.alterTran;
22
+ itemListElement: [IDirectionAlterTran];
23
+ }
24
+ export interface IHowToSection {
25
+ typeOf: 'HowToSection';
26
+ itemListElement: [IStepSearchTrade, IStepAlterTran];
27
+ }
28
+ export interface IRecipe extends RecipeFactory.IRecipe {
29
+ recipeCategory: RecipeFactory.RecipeCategory.payCreditCard;
30
+ step: IHowToSection[];
31
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { factory as surfrockFactory } from '@surfrock/sdk';
2
+ import * as RecipeFactory from '../recipe';
3
+ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
4
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
5
+ export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
6
+ beforeMedia: ISeatInfoSyncIn;
7
+ afterMedia: ISeatInfoSyncResult;
8
+ }
9
+ export interface IStepSeatInfoSync extends RecipeFactory.IHowToStep {
10
+ identifier: RecipeFactory.StepIdentifier.seatInfoSync;
11
+ itemListElement: [IDirectionSeatInfoSync];
12
+ }
13
+ export interface IHowToSection {
14
+ typeOf: 'HowToSection';
15
+ itemListElement: [IStepSeatInfoSync];
16
+ }
17
+ export interface IRecipe extends RecipeFactory.IRecipe {
18
+ recipeCategory: RecipeFactory.RecipeCategory.payMovieTicket;
19
+ step: IHowToSection[];
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,10 +16,9 @@ export interface IStepExecTran extends RecipeFactory.IHowToStep {
16
16
  identifier: RecipeFactory.StepIdentifier.execTran;
17
17
  itemListElement: [IDirectionExecTran];
18
18
  }
19
- export type IHowToStep = IStepEntryTran | IStepExecTran;
20
19
  export interface IHowToSection {
21
20
  typeOf: 'HowToSection';
22
- itemListElement: IHowToStep[];
21
+ itemListElement: [IStepEntryTran, IStepExecTran];
23
22
  }
24
23
  export interface IRecipe extends RecipeFactory.IRecipe {
25
24
  recipeCategory: RecipeFactory.RecipeCategory.publishPaymentUrl;
package/lib/recipe.d.ts CHANGED
@@ -1,16 +1,21 @@
1
1
  import { ActionType } from './actionType';
2
2
  import { OrganizationType } from './organizationType';
3
3
  export declare enum RecipeCategory {
4
+ payCreditCard = "payCreditCard",
5
+ payMovieTicket = "payMovieTicket",
4
6
  publishPaymentUrl = "publishPaymentUrl"
5
7
  }
6
8
  export declare enum StepIdentifier {
7
9
  entryTran = "entryTran",
8
- execTran = "execTran"
10
+ execTran = "execTran",
11
+ searchTrade = "searchTrade",
12
+ alterTran = "alterTran",
13
+ seatInfoSync = "seatInfoSync"
9
14
  }
10
15
  export interface IHowToDirection {
11
16
  typeOf: 'HowToDirection';
12
- beforeMedia: any;
13
- afterMedia: any;
17
+ beforeMedia?: any;
18
+ afterMedia?: any;
14
19
  }
15
20
  export interface IHowToStep {
16
21
  typeOf: 'HowToStep';
package/lib/recipe.js CHANGED
@@ -3,10 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StepIdentifier = exports.RecipeCategory = void 0;
4
4
  var RecipeCategory;
5
5
  (function (RecipeCategory) {
6
+ RecipeCategory["payCreditCard"] = "payCreditCard";
7
+ RecipeCategory["payMovieTicket"] = "payMovieTicket";
6
8
  RecipeCategory["publishPaymentUrl"] = "publishPaymentUrl";
7
9
  })(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
8
10
  var StepIdentifier;
9
11
  (function (StepIdentifier) {
10
12
  StepIdentifier["entryTran"] = "entryTran";
11
13
  StepIdentifier["execTran"] = "execTran";
14
+ StepIdentifier["searchTrade"] = "searchTrade";
15
+ StepIdentifier["alterTran"] = "alterTran";
16
+ StepIdentifier["seatInfoSync"] = "seatInfoSync";
12
17
  })(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
package/lib/task/pay.d.ts CHANGED
@@ -4,7 +4,7 @@ import { IExtendId } from '../autoGenerated';
4
4
  import * as TaskFactory from '../task';
5
5
  import { TaskName } from '../taskName';
6
6
  export { IOptimizedPayAction4order };
7
- export type IPayActionData = IPayActionAttributes;
7
+ export type IPayActionData = Pick<IPayActionAttributes, 'agent' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
8
8
  export type IData = IPayActionData | IOptimizedPayAction4order;
9
9
  export interface IAttributes extends TaskFactory.IAttributes {
10
10
  name: TaskName.Pay;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.374.0-alpha.0",
3
+ "version": "4.374.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",