@chevre/factory 10.4.0 → 10.5.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.
@@ -191,7 +191,9 @@ export type ICreateParams = Pick<IAttributes, 'name' | 'duration' | 'endDate' |
191
191
  /**
192
192
  * 検索条件
193
193
  */
194
- export interface ISearchConditions extends Pick<IBaseSearchConditions<EventType.ScreeningEventSeries>, 'additionalProperty' | 'endFrom' | 'endThrough' | 'eventStatuses' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'name' | 'organizer' | 'page' | 'project' | 'sort' | 'startFrom' | 'startThrough'> {
194
+ export interface ISearchConditions extends Pick<IBaseSearchConditions, 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'organizer' | 'page' | 'project' | 'sort' | 'startFrom' | 'startThrough'> {
195
+ typeOf?: EventType.ScreeningEventSeries;
196
+ name?: string;
195
197
  location?: {
196
198
  branchCode?: {
197
199
  $eq?: string;
@@ -218,12 +220,6 @@ export interface ISearchConditions extends Pick<IBaseSearchConditions<EventType.
218
220
  $in?: string[];
219
221
  };
220
222
  };
221
- soundFormat?: {
222
- typeOf?: {
223
- $eq?: string;
224
- $in?: string[];
225
- };
226
- };
227
223
  workPerformed?: {
228
224
  /**
229
225
  * コンテンツコード
@@ -1,5 +1,6 @@
1
1
  import type { COAFactory } from '@coasystems/factory';
2
2
  import { IEvent as IBaseEvent, ISearchConditions as IBaseSearchConditions, ISortOrder } from '../event';
3
+ import { EventStatusType } from '../eventStatusType';
3
4
  import { IEvent as IEventSeries, IUnacceptedPaymentMethodType } from './eventSeries';
4
5
  import { EventType } from '../eventType';
5
6
  import { OfferType } from '../offerType';
@@ -231,9 +232,7 @@ export interface IOfferSearchConditions {
231
232
  id?: {
232
233
  $in?: string[];
233
234
  };
234
- serviceType?: {
235
- ids?: string[];
236
- };
235
+ serviceType?: never;
237
236
  serviceOutput?: {
238
237
  reservedTicket?: {
239
238
  ticketedSeat?: {
@@ -271,7 +270,12 @@ export interface IOfferSearchConditions {
271
270
  /**
272
271
  * イベント検索条件
273
272
  */
274
- export interface ISearchConditions extends IBaseSearchConditions<EventType.ScreeningEvent> {
273
+ export interface ISearchConditions extends IBaseSearchConditions {
274
+ typeOf?: EventType.ScreeningEvent;
275
+ /**
276
+ * イベントステータス
277
+ */
278
+ eventStatuses?: EventStatusType[];
275
279
  location?: {
276
280
  /**
277
281
  * ルームコード
@@ -42,7 +42,7 @@ export type IEvent<T extends IAttributes<EventType>> = T & {
42
42
  export interface ISortOrder {
43
43
  startDate?: SortType;
44
44
  }
45
- export interface ISearchConditions<T extends EventType> {
45
+ export interface ISearchConditions {
46
46
  limit?: number;
47
47
  page?: number;
48
48
  sort?: ISortOrder;
@@ -61,15 +61,6 @@ export interface ISearchConditions<T extends EventType> {
61
61
  $eq?: string;
62
62
  };
63
63
  };
64
- /**
65
- * イベントタイプ
66
- */
67
- typeOf?: T;
68
- typeOfIn?: EventType[];
69
- /**
70
- * イベント名称
71
- */
72
- name?: string;
73
64
  /**
74
65
  * 開催中 from
75
66
  * ISO 8601 date format
@@ -100,10 +91,6 @@ export interface ISearchConditions<T extends EventType> {
100
91
  * ISO 8601 date format
101
92
  */
102
93
  endThrough?: Date;
103
- /**
104
- * イベントステータス
105
- */
106
- eventStatuses?: EventStatusType[];
107
94
  additionalProperty?: {
108
95
  $elemMatch?: {
109
96
  name?: {
@@ -114,4 +101,6 @@ export interface ISearchConditions<T extends EventType> {
114
101
  };
115
102
  };
116
103
  };
104
+ typeOfIn?: never;
105
+ name?: never;
117
106
  }
@@ -20,10 +20,9 @@ export type ISubReservation4inform = Pick<IEventReservation, 'id' | 'modifiedTim
20
20
  additionalProperty?: never;
21
21
  programMembershipUsed?: never;
22
22
  };
23
- export type IReservationFor4informLegacy = IReservationForLegacy;
24
23
  /**
25
24
  * 確定予約通知のイベント属性
26
- * 2026-09-01~
25
+ * 最小化(2026-09-01~)
27
26
  */
28
27
  export type IReservationFor4inform = Pick<IReservationForLegacy, 'id' | 'typeOf'> & {
29
28
  superEvent?: never;
@@ -35,7 +34,7 @@ export interface IReservationPackage4informConfirmed {
35
34
  bookingTime: Date;
36
35
  project: IProject;
37
36
  provider: IProvider;
38
- reservationFor: IReservationFor4inform | IReservationFor4informLegacy;
37
+ reservationFor: IReservationFor4inform;
39
38
  reservationNumber: string;
40
39
  reservationStatus: ReservationStatusType.ReservationConfirmed;
41
40
  subReservation: ISubReservation4inform[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "10.4.0",
3
+ "version": "10.5.0-alpha.1",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [