@chevre/factory 4.374.0-alpha.13 → 4.374.0-alpha.14
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/transfer/return/reserveTransaction.d.ts +7 -5
- package/lib/assetTransaction/refund.d.ts +2 -1
- package/lib/recipe/returnCOAReserve.d.ts +28 -0
- package/lib/recipe/returnCOAReserve.js +2 -0
- package/lib/recipe.d.ts +4 -2
- package/lib/recipe.js +2 -0
- package/lib/task/refund.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type * as COA from '@motionpicture/coa-service';
|
|
2
1
|
import * as ActionFactory from '../../../action';
|
|
3
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
3
|
import { ISimpleOrder } from '../../../order';
|
|
4
|
+
import { IRecipe, IStateReserveArgs } from '../../../recipe/returnCOAReserve';
|
|
5
5
|
import { Identifier as WebAPIIdentifier, IService } from '../../../service/webAPI';
|
|
6
6
|
import * as ReturnActionFactory from '../return';
|
|
7
|
+
export { IRecipe as IReturnCOAReserveRecipe };
|
|
7
8
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
8
9
|
export type IRecipient = ActionFactory.IParticipantAsSeller;
|
|
9
|
-
export type IObject4COA =
|
|
10
|
+
export type IObject4COA = IStateReserveArgs & {
|
|
10
11
|
typeOf: 'COAReserveTransaction';
|
|
11
12
|
};
|
|
12
13
|
export interface IObject4Chevre {
|
|
@@ -15,9 +16,10 @@ export interface IObject4Chevre {
|
|
|
15
16
|
}
|
|
16
17
|
export type IObject<T extends WebAPIIdentifier> = T extends WebAPIIdentifier.COA ? IObject4COA : IObject4Chevre;
|
|
17
18
|
export type IPurpose = ISimpleOrder;
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
export
|
|
19
|
+
export interface IResult {
|
|
20
|
+
}
|
|
21
|
+
export type IInstrument<T extends WebAPIIdentifier> = Pick<IService<T>, 'identifier' | 'typeOf'>;
|
|
22
|
+
export interface IAttributes<T extends WebAPIIdentifier> extends Pick<ReturnActionFactory.IAttributes<IObject<T>, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
21
23
|
agent: IAgent;
|
|
22
24
|
instrument: IInstrument<T>;
|
|
23
25
|
purpose: IPurpose;
|
|
@@ -43,11 +43,12 @@ export interface IConfirmParams {
|
|
|
43
43
|
}
|
|
44
44
|
export type IResult = any;
|
|
45
45
|
export type IError = any;
|
|
46
|
+
export type IPotentialRefundActionAttributes = Pick<IRefundActionAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
|
|
46
47
|
export interface IPotentialActions {
|
|
47
48
|
/**
|
|
48
49
|
* 返金アクション
|
|
49
50
|
*/
|
|
50
|
-
refund:
|
|
51
|
+
refund: IPotentialRefundActionAttributes[];
|
|
51
52
|
}
|
|
52
53
|
export type ITransaction = IExtendId<IAttributes>;
|
|
53
54
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import * as RecipeFactory from '../recipe';
|
|
3
|
+
export type IStateReserveArgs = COA.factory.reserve.IStateReserveArgs;
|
|
4
|
+
export type IStateReserveResult = COA.factory.reserve.IStateReserveResult;
|
|
5
|
+
export type IDelReserveArgs = COA.factory.reserve.IDelReserveArgs;
|
|
6
|
+
export interface IDirectionStateReserve extends RecipeFactory.IHowToDirection {
|
|
7
|
+
beforeMedia?: IStateReserveArgs;
|
|
8
|
+
afterMedia?: IStateReserveResult;
|
|
9
|
+
}
|
|
10
|
+
export interface IDirectionDelReserve extends RecipeFactory.IHowToDirection {
|
|
11
|
+
beforeMedia?: IDelReserveArgs;
|
|
12
|
+
afterMedia?: never;
|
|
13
|
+
}
|
|
14
|
+
export interface IStepStateReserve extends RecipeFactory.IHowToStep {
|
|
15
|
+
identifier: RecipeFactory.StepIdentifier.stateReserve;
|
|
16
|
+
itemListElement: [IDirectionStateReserve];
|
|
17
|
+
}
|
|
18
|
+
export interface IStepDelReserve extends RecipeFactory.IHowToStep {
|
|
19
|
+
identifier: RecipeFactory.StepIdentifier.delReserve;
|
|
20
|
+
itemListElement: [IDirectionDelReserve];
|
|
21
|
+
}
|
|
22
|
+
export interface IHowToSection extends RecipeFactory.IHowToSection {
|
|
23
|
+
itemListElement: [IStepStateReserve, IStepDelReserve];
|
|
24
|
+
}
|
|
25
|
+
export interface IRecipe extends RecipeFactory.IRecipe {
|
|
26
|
+
recipeCategory: RecipeFactory.RecipeCategory.returnCOAReserve;
|
|
27
|
+
step: IHowToSection[];
|
|
28
|
+
}
|
package/lib/recipe.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export declare enum RecipeCategory {
|
|
|
7
7
|
refundCreditCard = "refundCreditCard",
|
|
8
8
|
refundMovieTicket = "refundMovieTicket",
|
|
9
9
|
acceptCOAOffer = "acceptCOAOffer",
|
|
10
|
-
confirmCOAReserve = "confirmCOAReserve"
|
|
10
|
+
confirmCOAReserve = "confirmCOAReserve",
|
|
11
|
+
returnCOAReserve = "returnCOAReserve"
|
|
11
12
|
}
|
|
12
13
|
export declare enum StepIdentifier {
|
|
13
14
|
entryTran = "entryTran",
|
|
@@ -19,7 +20,8 @@ export declare enum StepIdentifier {
|
|
|
19
20
|
purchaseNumberAuth = "purchaseNumberAuth",
|
|
20
21
|
updTmpReserveSeat = "updTmpReserveSeat",
|
|
21
22
|
updReserve = "updReserve",
|
|
22
|
-
stateReserve = "stateReserve"
|
|
23
|
+
stateReserve = "stateReserve",
|
|
24
|
+
delReserve = "delReserve"
|
|
23
25
|
}
|
|
24
26
|
export interface IHowToDirection {
|
|
25
27
|
typeOf: 'HowToDirection';
|
package/lib/recipe.js
CHANGED
|
@@ -11,6 +11,7 @@ var RecipeCategory;
|
|
|
11
11
|
RecipeCategory["refundMovieTicket"] = "refundMovieTicket";
|
|
12
12
|
RecipeCategory["acceptCOAOffer"] = "acceptCOAOffer";
|
|
13
13
|
RecipeCategory["confirmCOAReserve"] = "confirmCOAReserve";
|
|
14
|
+
RecipeCategory["returnCOAReserve"] = "returnCOAReserve";
|
|
14
15
|
})(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
|
|
15
16
|
var StepIdentifier;
|
|
16
17
|
(function (StepIdentifier) {
|
|
@@ -24,4 +25,5 @@ var StepIdentifier;
|
|
|
24
25
|
StepIdentifier["updTmpReserveSeat"] = "updTmpReserveSeat";
|
|
25
26
|
StepIdentifier["updReserve"] = "updReserve";
|
|
26
27
|
StepIdentifier["stateReserve"] = "stateReserve";
|
|
28
|
+
StepIdentifier["delReserve"] = "delReserve";
|
|
27
29
|
})(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
|
package/lib/task/refund.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IAttributes as IRefundActionAttributes } from '../action/trade/refund';
|
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IRefundActionAttributes
|
|
5
|
+
export type IData = Pick<IRefundActionAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
|
|
6
6
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
7
|
name: TaskName.Refund;
|
|
8
8
|
data: IData;
|