@chevre/factory 4.391.0 → 4.392.0-alpha.1
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/authorize/offer/eventService.d.ts +10 -9
- package/lib/action/interact/confirm/reservation.d.ts +3 -4
- package/lib/action/transfer/return/reserveTransaction.d.ts +4 -6
- package/lib/ownershipInfo.d.ts +1 -13
- package/lib/task/confirmReserveTransaction.d.ts +3 -4
- package/lib/task/returnReserveTransaction.d.ts +1 -2
- package/package.json +1 -1
|
@@ -9,7 +9,6 @@ import * as OrderFactory from '../../../order';
|
|
|
9
9
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
10
10
|
import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
|
|
11
11
|
import { ITicketOffer } from '../../../product';
|
|
12
|
-
import * as WebAPIFactory from '../../../service/webAPI';
|
|
13
12
|
import { TransactionType } from '../../../transactionType';
|
|
14
13
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
15
14
|
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
@@ -17,22 +16,24 @@ export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFact
|
|
|
17
16
|
export declare enum ObjectType {
|
|
18
17
|
SeatReservation = "SeatReservation"
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface IInstrumentAsCOAReserveTransaction {
|
|
21
20
|
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
22
|
-
identifier
|
|
21
|
+
identifier?: never;
|
|
23
22
|
/**
|
|
24
23
|
* 仮予約番号
|
|
25
24
|
* ある時期(2023-09-12頃)以前では空文字のケースがあるので中止
|
|
26
25
|
*/
|
|
27
26
|
transactionNumber: string;
|
|
28
|
-
}
|
|
27
|
+
}
|
|
28
|
+
export interface IInstrumentAsReserveTransaction {
|
|
29
29
|
typeOf: AssetTransactionType.Reserve;
|
|
30
|
-
identifier
|
|
30
|
+
identifier?: never;
|
|
31
31
|
/**
|
|
32
32
|
* 予約取引番号
|
|
33
33
|
*/
|
|
34
34
|
transactionNumber: string;
|
|
35
|
-
}
|
|
35
|
+
}
|
|
36
|
+
export type IInstrumentAsAssetTransaction = IInstrumentAsCOAReserveTransaction | IInstrumentAsReserveTransaction;
|
|
36
37
|
export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
|
|
37
38
|
typeOf: OfferType.Offer;
|
|
38
39
|
id: string;
|
|
@@ -104,15 +105,15 @@ export interface IPurpose {
|
|
|
104
105
|
id: string;
|
|
105
106
|
}
|
|
106
107
|
export type IError = any;
|
|
107
|
-
export interface IAttributes
|
|
108
|
+
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
108
109
|
typeOf: ActionType.AuthorizeAction;
|
|
109
110
|
agent: IAgent;
|
|
110
111
|
recipient: IRecipient;
|
|
111
112
|
object: IObject;
|
|
112
113
|
purpose: IPurpose;
|
|
113
|
-
instrument: IInstrumentAsAssetTransaction
|
|
114
|
+
instrument: IInstrumentAsAssetTransaction;
|
|
114
115
|
}
|
|
115
116
|
/**
|
|
116
117
|
* 興行オファー承認アクション
|
|
117
118
|
*/
|
|
118
|
-
export type IAction
|
|
119
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -3,7 +3,6 @@ import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
|
3
3
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
4
|
import { ISimpleOrder } from '../../../order';
|
|
5
5
|
import { IRecipe, IUpdReserveArgs } from '../../../recipe/confirmCOAReserve';
|
|
6
|
-
import * as WebAPIFactory from '../../../service/webAPI';
|
|
7
6
|
import * as ConfirmActionFactory from '../confirm';
|
|
8
7
|
export { IRecipe as IConfirmCOAReserveRecipe };
|
|
9
8
|
export type IAgent = IParticipantAsProject;
|
|
@@ -21,15 +20,15 @@ export type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'tra
|
|
|
21
20
|
transactionNumber: string;
|
|
22
21
|
typeOf: AssetTransactionType.Reserve;
|
|
23
22
|
};
|
|
24
|
-
export type IObject
|
|
23
|
+
export type IObject = IObject4COA | IObject4Chevre;
|
|
25
24
|
export type IPurpose = ISimpleOrder;
|
|
26
25
|
export interface IResult {
|
|
27
26
|
}
|
|
28
|
-
export interface IAttributes
|
|
27
|
+
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
29
28
|
agent: IAgent;
|
|
30
29
|
purpose: IPurpose;
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
32
|
* 予約取引確定アクション
|
|
34
33
|
*/
|
|
35
|
-
export type IAction
|
|
34
|
+
export type IAction = ConfirmActionFactory.IAction<IAttributes>;
|
|
@@ -2,7 +2,6 @@ import * as ActionFactory from '../../../action';
|
|
|
2
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
3
3
|
import { ISimpleOrder } from '../../../order';
|
|
4
4
|
import { IRecipe, IStateReserveArgs } from '../../../recipe/returnCOAReserve';
|
|
5
|
-
import { Identifier as WebAPIIdentifier, IService } from '../../../service/webAPI';
|
|
6
5
|
import * as ReturnActionFactory from '../return';
|
|
7
6
|
export { IRecipe as IReturnCOAReserveRecipe };
|
|
8
7
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
@@ -14,18 +13,17 @@ export interface IObject4Chevre {
|
|
|
14
13
|
typeOf: AssetTransactionType.Reserve;
|
|
15
14
|
transactionNumber: string;
|
|
16
15
|
}
|
|
17
|
-
export type IObject
|
|
16
|
+
export type IObject = IObject4COA | IObject4Chevre;
|
|
18
17
|
export type IPurpose = ISimpleOrder;
|
|
19
18
|
export interface IResult {
|
|
20
19
|
}
|
|
21
|
-
export
|
|
22
|
-
export interface IAttributes<T extends WebAPIIdentifier> extends Pick<ReturnActionFactory.IAttributes<IObject<T>, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
20
|
+
export interface IAttributes extends Pick<ReturnActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'error' | 'agent'> {
|
|
23
21
|
agent: IAgent;
|
|
24
|
-
instrument
|
|
22
|
+
instrument?: never;
|
|
25
23
|
purpose: IPurpose;
|
|
26
24
|
recipient: IRecipient;
|
|
27
25
|
}
|
|
28
26
|
/**
|
|
29
27
|
* 予約取引返却アクション
|
|
30
28
|
*/
|
|
31
|
-
export type IAction
|
|
29
|
+
export type IAction = ReturnActionFactory.IAction<IAttributes>;
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ import * as PermitFactory from './permit';
|
|
|
5
5
|
import { PersonType } from './personType';
|
|
6
6
|
import * as ProductFactory from './product';
|
|
7
7
|
import { IProject } from './project';
|
|
8
|
-
import { IReservation as IBusReservation } from './reservation/busReservation';
|
|
9
|
-
import { IReservation as IEventReservation } from './reservation/event';
|
|
10
8
|
import { ReservationType } from './reservationType';
|
|
11
9
|
import * as WebAPIFactory from './service/webAPI';
|
|
12
10
|
import { SortType } from './sortType';
|
|
@@ -51,7 +49,6 @@ export interface IEventReservationAsGood {
|
|
|
51
49
|
* 予約
|
|
52
50
|
*/
|
|
53
51
|
export type IReservation = IBusReservationAsGood | IEventReservationAsGood;
|
|
54
|
-
export type IReservationWithDetail = (IEventReservationAsGood & IEventReservation) | (IBusReservationAsGood & IBusReservation);
|
|
55
52
|
export type IPermitIssuedThroughAsFaceToFace = Pick<PermitFactory.IIssuedThroughAsFaceToFace, 'typeOf'>;
|
|
56
53
|
export type IPermitIssuedThroughAsProduct = Pick<PermitFactory.IIssuedThroughAsProduct, 'id' | 'typeOf' | 'serviceType'> | Pick<PermitFactory.IIssuedThroughAsCreditCard, 'id' | 'typeOf' | 'serviceType'>;
|
|
57
54
|
export type IPermitIssuedThrough = IPermitIssuedThroughAsFaceToFace | IPermitIssuedThroughAsProduct;
|
|
@@ -73,10 +70,6 @@ export type InvoiceAsGood = Pick<IInvoice, 'paymentMethodId' | 'typeOf'> & {
|
|
|
73
70
|
* 所有対象物 (Product or Service)
|
|
74
71
|
*/
|
|
75
72
|
export type IGood = IReservation | IPermitAsGood | InvoiceAsGood;
|
|
76
|
-
/**
|
|
77
|
-
* 所有対象物(対象物詳細有)
|
|
78
|
-
*/
|
|
79
|
-
export type IGoodWithDetail = IReservationWithDetail | PermitFactory.IPermit;
|
|
80
73
|
export interface IOwnerAsOrganization {
|
|
81
74
|
typeOf: OrganizationType.Organization;
|
|
82
75
|
id: string;
|
|
@@ -103,7 +96,7 @@ export type OwnershipInfoType = 'OwnershipInfo';
|
|
|
103
96
|
/**
|
|
104
97
|
* 所有権
|
|
105
98
|
*/
|
|
106
|
-
export interface IOwnershipInfo<T extends IGood
|
|
99
|
+
export interface IOwnershipInfo<T extends IGood> {
|
|
107
100
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
108
101
|
/**
|
|
109
102
|
* object type
|
|
@@ -198,11 +191,6 @@ export interface ISearchConditions {
|
|
|
198
191
|
id?: string | {
|
|
199
192
|
$in?: string[];
|
|
200
193
|
};
|
|
201
|
-
memberOf?: {
|
|
202
|
-
membershipNumber?: {
|
|
203
|
-
$in?: string[];
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
194
|
typeOf?: {
|
|
207
195
|
$eq?: string;
|
|
208
196
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { IAttributes as IConfirmReservationActionAttributes, IObject4Chevre, IObject4COA } from '../action/interact/confirm/reservation';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import * as WebAPIFactory from '../service/webAPI';
|
|
4
3
|
import * as TaskFactory from '../task';
|
|
5
4
|
import { TaskName } from '../taskName';
|
|
6
5
|
export type IObject4COAOptimized = Pick<IObject4COA, 'transactionNumber' | 'typeOf'> & {
|
|
7
6
|
optimized: boolean;
|
|
8
7
|
};
|
|
9
|
-
export type IObject
|
|
10
|
-
export type IData = Pick<IConfirmReservationActionAttributes
|
|
11
|
-
object: IObject
|
|
8
|
+
export type IObject = IObject4COAOptimized | IObject4Chevre;
|
|
9
|
+
export type IData = Pick<IConfirmReservationActionAttributes, 'agent' | 'project' | 'purpose' | 'typeOf'> & {
|
|
10
|
+
object: IObject;
|
|
12
11
|
};
|
|
13
12
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
14
13
|
name: TaskName.ConfirmReserveTransaction;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IAttributes as IReturnActionAttributes } from '../action/transfer/return/reserveTransaction';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import * as WebAPIFactory from '../service/webAPI';
|
|
4
3
|
import * as TaskFactory from '../task';
|
|
5
4
|
import { TaskName } from '../taskName';
|
|
6
|
-
export type IData = Pick<IReturnActionAttributes
|
|
5
|
+
export type IData = Pick<IReturnActionAttributes, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
|
|
7
6
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
8
7
|
name: TaskName.ReturnReserveTransaction;
|
|
9
8
|
data: IData;
|