@chevre/factory 4.367.0-alpha.9 → 4.367.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.
@@ -6,6 +6,7 @@ import { IExtendId } from '../autoGenerated';
6
6
  import { IClientUser } from '../clientUser';
7
7
  import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
8
8
  import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
9
+ import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
9
10
  export import IAgent = AssetTransactionFactory.IAgent;
10
11
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
11
12
  /**
@@ -22,11 +23,11 @@ export interface IObjectWithoutDetail {
22
23
  clientUser?: IClientUser;
23
24
  reservation?: {
24
25
  /**
25
- * 予約IDをキーに取消
26
+ * 予約IDで取消
26
27
  */
27
28
  id?: string;
28
29
  /**
29
- * 予約番号をキーに取消
30
+ * 予約番号で取消
30
31
  */
31
32
  reservationNumber?: string;
32
33
  };
@@ -45,10 +46,14 @@ export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedTh
45
46
  /**
46
47
  * 取引対象物
47
48
  */
48
- export interface IObject {
49
+ export interface IObject extends Pick<IReservationPackage, 'reservationNumber' | 'typeOf'> {
49
50
  clientUser?: IClientUser;
50
51
  transaction?: IReserveTransactionAsObject;
51
52
  reservations?: IBusReservationAsObject[] | IEventReservationAsObject[];
53
+ /**
54
+ * 予約番号
55
+ */
56
+ reservationNumber: string;
52
57
  }
53
58
  /**
54
59
  * 取引確定パラメータ
@@ -65,5 +70,12 @@ export type ITransaction = IExtendId<IAttributes>;
65
70
  */
66
71
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
67
72
  }
73
+ export interface IObjectSearchConditions {
74
+ reservationNumber?: {
75
+ $eq?: string;
76
+ $in?: string[];
77
+ };
78
+ }
68
79
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.CancelReservation> {
80
+ object?: IObjectSearchConditions;
69
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.367.0-alpha.9",
3
+ "version": "4.367.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",