@chevre/factory 4.375.0-alpha.18 → 4.375.0-alpha.19

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,6 +1,7 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeOfferAction, IObjectWithoutDetail, IPurpose } from '../../action/authorize/offer/eventService';
3
3
  import { ActionType } from '../../actionType';
4
+ import { AssetTransactionType } from '../../assetTransactionType';
4
5
  import { OfferType } from '../../offerType';
5
6
  import { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult } from '../../recipe/acceptCOAOffer';
6
7
  import { Identifier } from '../../service/webAPI';
@@ -62,7 +63,7 @@ export interface IPotentialActions {
62
63
  typeOf: IAuthorizeOfferAction<Identifier.COA>['typeOf'];
63
64
  }
64
65
  export interface IInstrument {
65
- typeOf: 'COAReserveTransaction';
66
+ typeOf: AssetTransactionType.COAReserveTransaction;
66
67
  }
67
68
  export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
68
69
  agent: IAgent;
@@ -20,10 +20,11 @@ export declare enum ObjectType {
20
20
  SeatReservation = "SeatReservation"
21
21
  }
22
22
  export type IInstrumentAsAssetTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? {
23
- typeOf: 'COAReserveTransaction';
23
+ typeOf: AssetTransactionType.COAReserveTransaction;
24
24
  identifier: T;
25
25
  /**
26
26
  * 仮予約番号
27
+ * ある時期(2023-09-12頃)以前では空文字のケースがあるので中止
27
28
  */
28
29
  transactionNumber: string;
29
30
  } : T extends WebAPIFactory.Identifier.Chevre ? {
@@ -138,13 +139,13 @@ export type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T
138
139
  export type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
139
140
  export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs, 'theaterCode' | 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'tmpReserveNum'> & {
140
141
  transactionNumber: string;
141
- typeOf: 'COAReserveTransaction';
142
+ typeOf: AssetTransactionType.COAReserveTransaction;
142
143
  };
143
144
  export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'> & {};
144
145
  /**
145
146
  * 興行オファー承認アクション対象
146
147
  */
147
- export type IObject = {
148
+ export interface IObject {
148
149
  typeOf: ObjectType;
149
150
  event?: IEventInObject;
150
151
  /**
@@ -156,11 +157,7 @@ export type IObject = {
156
157
  * discontinue on Chevre(2024-06-22~)
157
158
  */
158
159
  pendingTransaction?: ICOAPendingTransaction;
159
- /**
160
- * result.acceptedOffers廃止に際して使用有無を保管
161
- */
162
- useResultAcceptedOffers?: boolean;
163
- } & Pick<IObjectWithoutDetail<WebAPIFactory.Identifier.Chevre>, 'broker'>;
160
+ }
164
161
  export interface IPurpose {
165
162
  typeOf: TransactionType.PlaceOrder;
166
163
  id: string;
@@ -12,7 +12,7 @@ export type IObject4COA = IUpdReserveArgs & {
12
12
  * 取引番号は必須
13
13
  */
14
14
  transactionNumber: string;
15
- typeOf: 'COAReserveTransaction';
15
+ typeOf: AssetTransactionType.COAReserveTransaction;
16
16
  };
17
17
  export type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'potentialActions'> & {
18
18
  /**
@@ -8,7 +8,7 @@ export { IRecipe as IReturnCOAReserveRecipe };
8
8
  export type IAgent = ActionFactory.IParticipantAsProject;
9
9
  export type IRecipient = ActionFactory.IParticipantAsSeller;
10
10
  export type IObject4COA = IStateReserveArgs & {
11
- typeOf: 'COAReserveTransaction';
11
+ typeOf: AssetTransactionType.COAReserveTransaction;
12
12
  };
13
13
  export interface IObject4Chevre {
14
14
  typeOf: AssetTransactionType.Reserve;
@@ -26,5 +26,9 @@ export declare enum AssetTransactionType {
26
26
  * サービス登録
27
27
  * Service: MembershipService,PaymentCard...
28
28
  */
29
- RegisterService = "RegisterService"
29
+ RegisterService = "RegisterService",
30
+ /**
31
+ * 資産取引docは存在しない
32
+ */
33
+ COAReserveTransaction = "COAReserveTransaction"
30
34
  }
@@ -31,4 +31,8 @@ var AssetTransactionType;
31
31
  * Service: MembershipService,PaymentCard...
32
32
  */
33
33
  AssetTransactionType["RegisterService"] = "RegisterService";
34
+ /**
35
+ * 資産取引docは存在しない
36
+ */
37
+ AssetTransactionType["COAReserveTransaction"] = "COAReserveTransaction";
34
38
  })(AssetTransactionType = exports.AssetTransactionType || (exports.AssetTransactionType = {}));
@@ -21,7 +21,7 @@ export interface IObjectAsPayTransaction {
21
21
  };
22
22
  }
23
23
  export interface IObjectAsReserveTransaction {
24
- typeOf: AssetTransactionType.Reserve | 'COAReserveTransaction';
24
+ typeOf: AssetTransactionType.Reserve | AssetTransactionType.COAReserveTransaction;
25
25
  transactionNumber: string;
26
26
  status: TransactionStatusType.Confirmed;
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.375.0-alpha.18",
3
+ "version": "4.375.0-alpha.19",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",