@chevre/factory 4.364.0-alpha.2 → 4.364.0-alpha.3

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.
@@ -9,7 +9,6 @@ import { IServiceType as IProductServiceType, ProductType } from '../product';
9
9
  import * as ReservationFactory from '../reservation';
10
10
  import { ReservationType } from '../reservationType';
11
11
  import * as WebAPIFactory from '../service/webAPI';
12
- import { IThing } from '../thing';
13
12
  import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
14
13
  /**
15
14
  * 予約集計
@@ -25,11 +24,11 @@ export interface IAggregateReservation {
25
24
  /**
26
25
  * 予約集計つきオファー
27
26
  */
28
- export interface IOfferWithAggregateReservation extends Pick<IThing, 'name'> {
27
+ export interface IOfferWithAggregateReservation {
29
28
  typeOf: OfferType.Offer;
30
- id?: string;
31
- identifier?: string;
32
- aggregateReservation?: IAggregateReservation;
29
+ id: string;
30
+ identifier: string;
31
+ aggregateReservation?: Pick<IAggregateReservation, 'typeOf' | 'attendeeCount' | 'checkInCount' | 'reservationCount'>;
33
32
  category?: OfferFactory.ICategory;
34
33
  maximumAttendeeCapacity?: number;
35
34
  remainingAttendeeCapacity?: number;
@@ -39,28 +38,31 @@ export interface IOfferWithAggregateReservation extends Pick<IThing, 'name'> {
39
38
  */
40
39
  export interface IAggregateOffer {
41
40
  typeOf: OfferType.AggregateOffer;
41
+ aggregateDate: Date;
42
42
  offerCount?: number;
43
43
  offers?: IOfferWithAggregateReservation[];
44
44
  }
45
+ export interface IAggregateOfferOfPlace {
46
+ typeOf: OfferType.AggregateOffer;
47
+ offers?: {
48
+ typeOf: OfferType.Offer;
49
+ id: string;
50
+ identifier?: string;
51
+ category?: OfferFactory.ICategory;
52
+ aggregateReservation?: Pick<IAggregateReservation, 'typeOf' | 'useActionCount'>;
53
+ }[];
54
+ }
45
55
  export interface IPlaceWithAggregateOffer {
46
56
  typeOf: PlaceType;
47
57
  identifier?: string;
48
- aggregateOffer?: {
49
- typeOf: OfferType.AggregateOffer;
50
- offers?: {
51
- typeOf: OfferType.Offer;
52
- id?: string;
53
- identifier?: string;
54
- category?: OfferFactory.ICategory;
55
- aggregateReservation?: IAggregateReservation;
56
- }[];
57
- };
58
+ aggregateOffer?: IAggregateOfferOfPlace;
58
59
  }
59
60
  /**
60
61
  * 入場ゲート集計
61
62
  */
62
63
  export interface IAggregateEntranceGate {
63
64
  typeOf: PlaceType.AggregatePlace;
65
+ aggregateDate: Date;
64
66
  places: IPlaceWithAggregateOffer[];
65
67
  }
66
68
  /**
@@ -12,6 +12,7 @@ import * as AnyEventFactory from './anyEvent';
12
12
  export import IAggregateReservation = AnyEventFactory.IAggregateReservation;
13
13
  export import IOfferWithAggregateReservation = AnyEventFactory.IOfferWithAggregateReservation;
14
14
  export import IAggregateOffer = AnyEventFactory.IAggregateOffer;
15
+ export import IAggregateOfferOfPlace = AnyEventFactory.IAggregateOfferOfPlace;
15
16
  export import IPlaceWithAggregateOffer = AnyEventFactory.IPlaceWithAggregateOffer;
16
17
  export import IAggregateEntranceGate = AnyEventFactory.IAggregateEntranceGate;
17
18
  export interface IServiceOutput {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.364.0-alpha.2",
3
+ "version": "4.364.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",