@chevre/factory 6.1.0 → 6.2.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.
@@ -105,7 +105,7 @@ export interface IEventReservatonAsItemOfferedServiceOutput {
105
105
  * /^[0-9a-zA-Z]{8,16}$/
106
106
  */
107
107
  identifier?: string;
108
- issuedBy?: ReservationFactory.IUnderName;
108
+ issuedBy?: Pick<ReservationFactory.ITicketIssuedBy, 'name' | 'typeOf'>;
109
109
  typeOf: ReservationFactory.TicketType;
110
110
  /**
111
111
  * 座席指定
@@ -310,7 +310,17 @@ export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additio
310
310
  };
311
311
  export type IObjectSubReservation = IEventReservationAsSubReservation;
312
312
  export type IIssuedThrough = IEventReservationIssuedThrough;
313
- export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'underName' | 'typeOf'> {
313
+ /**
314
+ * 予約取引に保管される予約者情報
315
+ */
316
+ export type IUnderName = Pick<ReservationFactory.IUnderName, 'email' | 'givenName' | 'familyName' | 'id' | 'identifier' | 'name' | 'telephone' | 'typeOf'> & {
317
+ address?: string;
318
+ age?: string;
319
+ gender?: string;
320
+ url?: string;
321
+ };
322
+ export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'typeOf'> {
323
+ underName?: IUnderName;
314
324
  acceptedOffer?: IAcceptedOffer4object[];
315
325
  issuedThrough?: IIssuedThrough;
316
326
  reservationFor?: IReservationFor;
@@ -1,5 +1,4 @@
1
1
  import { CreativeWorkType } from './creativeWorkType';
2
- import { IMultilingualString } from './multilingualString';
3
2
  import { OrganizationType } from './organizationType';
4
3
  import { PersonType } from './personType';
5
4
  import * as SeatFactory from './place/seat';
@@ -23,22 +22,22 @@ export type IUnderNameType = CreativeWorkType.WebApplication | PersonType.Person
23
22
  */
24
23
  export interface IUnderName {
25
24
  typeOf: IUnderNameType;
25
+ id?: string;
26
26
  name: string;
27
- additionalName?: string;
28
- address?: string;
29
- age?: string;
30
- description?: string | IMultilingualString;
31
- email?: string;
32
27
  familyName?: string;
33
- gender?: string;
34
28
  givenName?: string;
35
- id?: string;
29
+ email?: string;
30
+ telephone?: string;
36
31
  /**
37
32
  * システム利用識別子のみ継承
38
33
  */
39
34
  identifier?: IPropertyValue<string>[];
40
- telephone?: string;
41
- url?: string;
35
+ additionalName?: never;
36
+ address?: never;
37
+ age?: never;
38
+ description?: never;
39
+ gender?: never;
40
+ url?: never;
42
41
  }
43
42
  /**
44
43
  * seat interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "6.1.0",
3
+ "version": "6.2.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",