@chevre/factory 9.3.0 → 9.5.0-alpha.0

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.
@@ -29,23 +29,28 @@ export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'>;
29
29
  export interface IObject {
30
30
  typeOf: ObjectType.SeatReservation;
31
31
  event?: IEventInObject;
32
- itemOffered?: never;
32
+ id?: never;
33
+ pendingTransaction?: never;
34
+ }
35
+ export interface IObject4COA {
36
+ typeOf: ObjectType.SeatReservation;
37
+ event?: IEventInObject;
33
38
  /**
34
39
  * recipe有(仮予約時)のCOA興行オファー採用アクションID(2024-06-11~)
35
40
  */
36
- id?: string;
41
+ id: string;
37
42
  /**
38
43
  * COA進行中取引(仮予約削除時に利用)
39
44
  * discontinue on Chevre(2024-06-22~)
40
45
  */
41
- pendingTransaction?: ICOAPendingTransaction;
46
+ pendingTransaction: ICOAPendingTransaction;
42
47
  }
43
- export interface IAttributes extends IBaseAttributes<IObject, IResult> {
48
+ export interface IAttributes extends IBaseAttributes<IObject | IObject4COA, IResult> {
44
49
  typeOf: ActionType.AuthorizeAction;
45
50
  agent: IAgent;
46
51
  instrument: IInstrumentAsAssetTransaction;
47
52
  recipient: IRecipient;
48
- object: IObject;
53
+ object: IObject | IObject4COA;
49
54
  purpose: IPurpose;
50
55
  }
51
56
  /**
@@ -14,7 +14,6 @@ import { IProduct } from '../../product';
14
14
  import { ISeller } from '../../seller';
15
15
  import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
16
16
  import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../../transaction/returnOrder';
17
- import { TransactionType } from '../../transactionType';
18
17
  export type IAgent = IParticipant;
19
18
  export type IRecipient = IParticipant;
20
19
  export type IObjectAsPerson = Pick<IPerson, 'id' | 'typeOf'> & {
@@ -41,28 +40,23 @@ export type IObjectAsEventSeries = Pick<IEventSeries, 'id' | 'typeOf'>;
41
40
  * 取引オブジェクト特定方法
42
41
  */
43
42
  export declare enum ObjectAsTransactionSpecifyingMethod {
44
- Id = "Id",
45
- AgentId = "AgentId"
43
+ Id = "Id"
46
44
  }
47
- export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
45
+ export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'id' | 'typeOf'> & {
48
46
  object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
49
47
  specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
48
+ startDate?: never;
49
+ endDate?: never;
50
+ project?: never;
50
51
  };
51
- export type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
52
+ export type IObjectAsReturnOrder = Pick<IReturnOrder, 'id' | 'typeOf'> & {
52
53
  object: Pick<IReturnOrderObject, 'order'>;
53
54
  specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
55
+ startDate?: never;
56
+ endDate?: never;
57
+ project?: never;
54
58
  };
55
- export interface IObjectAsTransactionByAgentId {
56
- specifyingMethod: ObjectAsTransactionSpecifyingMethod.AgentId;
57
- project: {
58
- id: string;
59
- };
60
- typeOf: TransactionType;
61
- agent: {
62
- id: string;
63
- };
64
- }
65
- export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPerson | IObjectAsOwnershipInfo | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
59
+ export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPerson | IObjectAsOwnershipInfo | IObjectAsPlaceOrder | IObjectAsReturnOrder;
66
60
  export interface IResultAsPerson {
67
61
  existingPeople?: any;
68
62
  }
@@ -7,5 +7,5 @@ exports.ObjectAsTransactionSpecifyingMethod = void 0;
7
7
  var ObjectAsTransactionSpecifyingMethod;
8
8
  (function (ObjectAsTransactionSpecifyingMethod) {
9
9
  ObjectAsTransactionSpecifyingMethod["Id"] = "Id";
10
- ObjectAsTransactionSpecifyingMethod["AgentId"] = "AgentId";
10
+ // AgentId = 'AgentId' // discontinue(2026-07-01~)
11
11
  })(ObjectAsTransactionSpecifyingMethod || (exports.ObjectAsTransactionSpecifyingMethod = ObjectAsTransactionSpecifyingMethod = {}));
@@ -1,9 +1,9 @@
1
- import { IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId } from '../action/update/delete';
1
+ import { IObjectAsPlaceOrder, IObjectAsReturnOrder } from '../action/update/delete';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { ITaskAttributes } from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export { IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId };
6
- export type IObject = IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
5
+ export { IObjectAsPlaceOrder, IObjectAsReturnOrder, };
6
+ export type IObject = IObjectAsPlaceOrder | IObjectAsReturnOrder;
7
7
  export interface IData {
8
8
  object: IObject;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "9.3.0",
3
+ "version": "9.5.0-alpha.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [