@chevre/factory 6.0.0-alpha.0 → 6.0.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.
@@ -21,7 +21,7 @@ export interface IInstrumentAsCOAReserveTransaction {
21
21
  identifier?: never;
22
22
  /**
23
23
  * 仮予約番号
24
- * ある時期(2023-09-12頃)以前では空文字のケースがあるので中止
24
+ * ある時期(2023-09-12頃)以前では空文字のケースがあるので注意
25
25
  */
26
26
  transactionNumber: string;
27
27
  }
@@ -50,7 +50,7 @@ export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace |
50
50
  * 興行オファー承認結果としての集計オファー
51
51
  */
52
52
  export interface IResultAsAggregateOffer {
53
- typeOf?: OfferType.AggregateOffer;
53
+ typeOf: OfferType.AggregateOffer;
54
54
  /**
55
55
  * オファーIDごとの集計
56
56
  */
@@ -83,13 +83,14 @@ export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs
83
83
  transactionNumber: string;
84
84
  typeOf: AssetTransactionType.COAReserveTransaction;
85
85
  };
86
- export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'> & {};
86
+ export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'>;
87
87
  /**
88
88
  * 興行オファー承認アクション対象
89
89
  */
90
90
  export interface IObject {
91
91
  typeOf: ObjectType;
92
92
  event?: IEventInObject;
93
+ itemOffered?: never;
93
94
  /**
94
95
  * recipe有(仮予約時)のCOA興行オファー採用アクションID(2024-06-11~)
95
96
  */
@@ -3,7 +3,7 @@ import { ActionType } from '../../../actionType';
3
3
  import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
4
4
  import { AssetTransactionType } from '../../../assetTransactionType';
5
5
  import { IOffer } from '../../../offer';
6
- import * as OrderFactory from '../../../order';
6
+ import { OfferType } from '../../../offerType';
7
7
  import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
8
8
  import { PriceCurrency } from '../../../priceCurrency';
9
9
  import { IMembershipProduct, IPaymentCardProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
@@ -37,14 +37,30 @@ export interface IAcceptedOffer extends Pick<IOffer, 'typeOf' | 'id' | 'identifi
37
37
  seller: ISellerMakesOffer;
38
38
  priceSpecification?: ITicketPriceSpecification;
39
39
  }
40
+ /**
41
+ * 承認アクションオブジェクト(最適化されたAcceptedOffer)
42
+ */
43
+ export interface IObjectAsAcceptedOffer {
44
+ typeOf: OfferType.AggregateOffer;
45
+ /**
46
+ * オファー対象アイテム
47
+ */
48
+ itemOffered: Pick<IItemOffered, 'id' | 'typeOf'>;
49
+ event?: never;
50
+ id?: never;
51
+ pendingTransaction?: never;
52
+ }
40
53
  export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
41
- export type IObject = IAcceptedOffer[];
42
- export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IPermit>[];
54
+ export type IObject = IObjectAsAcceptedOffer;
43
55
  export interface IResult {
56
+ typeOf: OfferType.AggregateOffer;
44
57
  price: number;
45
58
  priceCurrency: PriceCurrency;
46
- requestBody: RegisterServiceTransactionFactory.IStartParamsWithoutDetail;
47
- responseBody: RegisterServiceTransactionFactory.ITransaction;
59
+ requestBody?: never;
60
+ responseBody?: never;
61
+ offers?: never;
62
+ itemOffered?: never;
63
+ amount?: never;
48
64
  }
49
65
  export interface IPurpose {
50
66
  typeOf: TransactionType.PlaceOrder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "6.0.0-alpha.0",
3
+ "version": "6.0.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",