@chevre/factory 4.259.0-alpha.6 → 4.259.0-alpha.9

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.
@@ -11,14 +11,14 @@ import { TransactionType } from '../../../transactionType';
11
11
  import * as AuthorizeActionFactory from '../../authorize';
12
12
  export declare type IAgent = ActionFactory.IParticipantAsSeller;
13
13
  export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
14
- export declare type IService = IProduct;
14
+ export declare type IItemOffered = Pick<IProduct, 'project' | 'typeOf' | 'id' | 'name' | 'serviceOutput' | 'pointAward'>;
15
15
  export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
16
16
  export declare type ISellerMakesOffer = Pick<ISeller, 'project' | 'id' | 'name' | 'typeOf'>;
17
17
  export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'> {
18
18
  /**
19
19
  * オファー対象アイテム
20
20
  */
21
- itemOffered: IService;
21
+ itemOffered: IItemOffered;
22
22
  /**
23
23
  * 販売者
24
24
  */
@@ -32,8 +32,8 @@ export interface IResult {
32
32
  price: number;
33
33
  priceCurrency: PriceCurrency;
34
34
  acceptedOffers: IResultAcceptedOffer;
35
- requestBody?: any;
36
- responseBody: any;
35
+ requestBody: RegisterServiceTransactionFactory.IStartParamsWithoutDetail;
36
+ responseBody: RegisterServiceTransactionFactory.ITransaction;
37
37
  }
38
38
  export interface IPurpose {
39
39
  typeOf: TransactionType.PlaceOrder;
@@ -17,7 +17,7 @@ export declare enum ObjectType {
17
17
  SeatReservation = "SeatReservation"
18
18
  }
19
19
  export declare type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
20
- export declare type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : any;
20
+ export declare type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? ReserveTransactionFactory.IStartParamsWithoutDetail : never;
21
21
  export declare type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? ReserveTransactionFactory.ITransaction : ReserveTransactionFactory.ITransaction;
22
22
  export declare type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
23
23
  /**
@@ -41,7 +41,7 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
41
41
  /**
42
42
  * 外部サービスへのリクエスト
43
43
  */
44
- requestBody?: IRequestBody<T>;
44
+ requestBody: IRequestBody<T>;
45
45
  /**
46
46
  * 外部サービスからのレスポンス
47
47
  */
@@ -72,9 +72,9 @@ export interface IObjectWithoutDetail4COA {
72
72
  id: string;
73
73
  };
74
74
  }
75
- export declare type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOffer4chevre : any;
76
- export declare type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : any;
77
- export declare type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : any;
75
+ export declare type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOffer4chevre : never;
76
+ export declare type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : never;
77
+ export declare type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
78
78
  export interface IPendingTransaction {
79
79
  typeOf: AssetTransactionType.Reserve;
80
80
  transactionNumber: string;
@@ -4,7 +4,8 @@ import { IReservation } from '../../../reservation/event';
4
4
  import * as UseActionFactory from '../use';
5
5
  export declare type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
6
6
  export declare type IObject = IReservation[];
7
- export declare type IResult = any;
7
+ export interface IResult {
8
+ }
8
9
  export interface ILocation {
9
10
  typeOf: PlaceType.Place;
10
11
  /**
@@ -6,8 +6,7 @@ export declare type IPurpose = ISimpleOrder;
6
6
  export interface IPayAssetTransaction {
7
7
  typeOf: AssetTransactionType.Pay;
8
8
  /**
9
- * 決済方法
10
- * 廃止(2022-05-17~)
9
+ * 決済取引番号
11
10
  */
12
11
  transactionNumber: string;
13
12
  }
@@ -96,7 +96,7 @@ export interface IPaymentService {
96
96
  serviceOutput?: IPaymentServiceOutput;
97
97
  }
98
98
  export declare type IObject = IPaymentService[];
99
- export declare type IInformPayment = IInformActionAttributes<any, any>;
99
+ export declare type IInformPayment = IInformActionAttributes<{}, undefined>;
100
100
  export interface IPotentialActions {
101
101
  informPayment?: IInformPayment[];
102
102
  }
@@ -9,7 +9,7 @@ export declare type IPaymentService = IPaymentServiceOnPay & {
9
9
  };
10
10
  export declare type IObject = IPaymentService[];
11
11
  export declare type IResult = any;
12
- export declare type IInformPayment = IInformActionAttributes<any, any>;
12
+ export declare type IInformPayment = IInformActionAttributes<{}, undefined>;
13
13
  export interface IPotentialActions {
14
14
  informPayment?: IInformPayment[];
15
15
  }
@@ -4,7 +4,8 @@ import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { OfferType } from '../offerType';
7
- import { IProduct, IServiceOutput } from '../product';
7
+ import { IPermit } from '../permit';
8
+ import { IProduct } from '../product';
8
9
  export import IAgent = AssetTransactionFactory.IAgent;
9
10
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
10
11
  /**
@@ -51,6 +52,7 @@ export interface IAcceptedPointAward {
51
52
  };
52
53
  };
53
54
  }
55
+ export declare type IServiceOutput = IPermit;
54
56
  export interface IAcceptedItemOffered {
55
57
  id?: string;
56
58
  pointAward?: IAcceptedPointAward;
@@ -61,7 +63,7 @@ export interface IAcceptedOfferWithoutDetail {
61
63
  id: string;
62
64
  itemOffered: IAcceptedItemOffered;
63
65
  }
64
- export interface IItemOffered extends IProduct {
66
+ export interface IItemOffered extends Pick<IProduct, 'id' | 'pointAward' | 'project' | 'serviceOutput' | 'typeOf'> {
65
67
  serviceOutput: IServiceOutput;
66
68
  }
67
69
  export interface IAcceptedOffer {
@@ -1,5 +1,6 @@
1
1
  import { IProject } from './project';
2
2
  import { IPropertyValue } from './propertyValue';
3
+ import { SortType } from './sortType';
3
4
  import { IThing } from './thing';
4
5
  export declare enum CategorySetIdentifier {
5
6
  /**
@@ -77,7 +78,9 @@ export interface ICategoryCode extends IThing {
77
78
  export interface ISearchConditions {
78
79
  limit?: number;
79
80
  page?: number;
80
- sort?: any;
81
+ sort?: {
82
+ codeValue?: SortType;
83
+ };
81
84
  project?: {
82
85
  id?: {
83
86
  $eq?: string;
@@ -32,7 +32,7 @@ export interface ISoundFormat {
32
32
  */
33
33
  export declare type IWorkPerformed = Pick<IMovie, 'project' | 'typeOf' | 'id' | 'identifier' | 'name' | 'duration' | 'contentRating'>;
34
34
  export interface IOrganizer {
35
- typeOf: OrganizationType;
35
+ typeOf: OrganizationType.Corporation;
36
36
  identifier: string;
37
37
  name: IMultilingualString;
38
38
  }
@@ -66,7 +66,27 @@ export interface ICOAInfo {
66
66
  */
67
67
  dateMvtkBegin: string;
68
68
  }
69
- export interface IEventSeriesAttributes extends EventFactory.IAttributes<EventType.ScreeningEventSeries> {
69
+ export interface ILocation {
70
+ project: IProject;
71
+ typeOf: PlaceType.MovieTheater;
72
+ /**
73
+ * 施設ID
74
+ */
75
+ id: string;
76
+ /**
77
+ * コード
78
+ */
79
+ branchCode: string;
80
+ /**
81
+ * 名称
82
+ */
83
+ name?: IMultilingualString;
84
+ /**
85
+ * カナ名称
86
+ */
87
+ kanaName?: string;
88
+ }
89
+ export interface IAttributes extends Omit<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'alternateName' | 'doorTime' | 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity'> {
70
90
  /**
71
91
  * 字幕利用可能言語
72
92
  */
@@ -88,47 +108,25 @@ export interface IEventSeriesAttributes extends EventFactory.IAttributes<EventTy
88
108
  */
89
109
  workPerformed: IWorkPerformed;
90
110
  /**
91
- * 上映場所
111
+ * 施設
92
112
  */
93
- location: {
94
- project: IProject;
95
- typeOf: PlaceType.MovieTheater;
96
- /**
97
- * 場所ID
98
- */
99
- id: string;
100
- /**
101
- * 施設コード
102
- */
103
- branchCode: string;
104
- /**
105
- * 場所名称
106
- */
107
- name?: IMultilingualString;
108
- /**
109
- * 場所名称(カナ)
110
- */
111
- kanaName?: string;
112
- alternateName?: IMultilingualString;
113
- description?: IMultilingualString;
114
- address?: IMultilingualString;
115
- };
113
+ location: ILocation;
116
114
  organizer?: IOrganizer;
117
115
  /**
118
- * 名称(カナ)
116
+ * カナ名称
119
117
  */
120
118
  kanaName: string;
121
119
  /**
122
- * イベント名称
120
+ * 名称
123
121
  */
124
122
  name: IMultilingualString;
125
123
  /**
126
- * 公演終了予定日
124
+ * 終了日時
127
125
  * ISO 8601 date format
128
126
  */
129
127
  endDate?: Date;
130
128
  /**
131
- * 公演開始予定日
129
+ * 開始日時
132
130
  * ISO 8601 date format
133
131
  */
134
132
  startDate?: Date;
@@ -142,7 +140,6 @@ export interface IEventSeriesAttributes extends EventFactory.IAttributes<EventTy
142
140
  */
143
141
  coaInfo?: ICOAInfo;
144
142
  }
145
- export declare type IAttributes = Omit<IEventSeriesAttributes, 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity'>;
146
143
  /**
147
144
  * 施設コンテンツ
148
145
  */
@@ -170,7 +167,7 @@ export interface ISearchConditions extends EventFactory.ISearchConditions<EventT
170
167
  };
171
168
  workPerformed?: {
172
169
  /**
173
- * イベントで上演されるコンテンツコードリスト
170
+ * コンテンツコード
174
171
  */
175
172
  identifiers?: string[];
176
173
  };
@@ -21,7 +21,7 @@ export interface IAttributes<T extends EventType> {
21
21
  /**
22
22
  * イベント識別子
23
23
  */
24
- identifier?: any;
24
+ identifier?: string;
25
25
  /**
26
26
  * イベント名称
27
27
  */
@@ -95,9 +95,6 @@ export declare type IEvent<T extends IAttributes<EventType>> = T & {
95
95
  * ソート条件インターフェース
96
96
  */
97
97
  export interface ISortOrder {
98
- name?: string;
99
- doorTime?: SortType;
100
- endDate?: SortType;
101
98
  startDate?: SortType;
102
99
  }
103
100
  export interface ISearchConditions<T extends EventType> {
@@ -1,6 +1,7 @@
1
1
  import { CreativeWorkType } from './creativeWorkType';
2
2
  import { OrganizationType } from './organizationType';
3
3
  import { PersonType } from './personType';
4
+ import { SortType } from './sortType';
4
5
  export declare enum RoleType {
5
6
  OrganizationRole = "OrganizationRole"
6
7
  }
@@ -19,7 +20,9 @@ export interface IRole {
19
20
  export interface IRoleSearchConditions {
20
21
  limit?: number;
21
22
  page?: number;
22
- sort?: any;
23
+ sort?: {
24
+ roleName?: SortType;
25
+ };
23
26
  roleName?: {
24
27
  $eq?: string;
25
28
  $in?: string[];
@@ -49,7 +52,9 @@ export interface IMember {
49
52
  export interface ISearchConditions {
50
53
  limit?: number;
51
54
  page?: number;
52
- sort?: any;
55
+ sort?: {
56
+ 'member.id'?: SortType;
57
+ };
53
58
  id?: {
54
59
  $eq?: string;
55
60
  };
@@ -7,7 +7,7 @@ import { PaymentServiceType } from './service/paymentService';
7
7
  export declare type IBroker = SellerFactory.ISeller | PersonFactory.IPerson;
8
8
  export declare type IProvider = SellerFactory.ISeller | PersonFactory.IPerson;
9
9
  export interface IReferenceOrder extends OrderFactory.IOrder {
10
- acceptedOffers: OrderFactory.IAcceptedOffer<any>[];
10
+ acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
11
11
  }
12
12
  export interface IMovieTicketAsPaymentServiceOutput {
13
13
  /**
@@ -27,7 +27,6 @@ export interface ICategory {
27
27
  project: Pick<IProject, 'id' | 'typeOf'>;
28
28
  id?: string;
29
29
  codeValue?: string;
30
- name?: any;
31
30
  }
32
31
  /**
33
32
  * アドオンインターフェース
@@ -71,6 +70,9 @@ export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy,
71
70
  identifier: string;
72
71
  })[];
73
72
  export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
73
+ export interface IAvailableAtOrFrom {
74
+ id: string;
75
+ }
74
76
  /**
75
77
  * offer interface
76
78
  * An offer to transfer some rights to an item or to provide a service
@@ -106,7 +108,7 @@ export interface IOffer extends IThing {
106
108
  /**
107
109
  * The place(s) from which the offer can be obtained (e.g. store locations).
108
110
  */
109
- availableAtOrFrom?: any;
111
+ availableAtOrFrom?: IAvailableAtOrFrom[];
110
112
  /**
111
113
  * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
112
114
  */
@@ -149,7 +151,6 @@ export interface IOffer extends IThing {
149
151
  * The item being offered.
150
152
  */
151
153
  itemOffered?: any;
152
- offeredBy?: any;
153
154
  /**
154
155
  * オファー供給サービス
155
156
  */
@@ -18,7 +18,7 @@ import { PlaceType } from './placeType';
18
18
  import { PriceCurrency } from './priceCurrency';
19
19
  import { IProduct, ProductType } from './product';
20
20
  import { IPropertyValue } from './propertyValue';
21
- import { IProgramMembershipUsedSearchConditions } from './reservation';
21
+ import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
22
22
  import * as EventReservationFactory from './reservation/event';
23
23
  import { ReservationType } from './reservationType';
24
24
  import { IServiceType } from './serviceType';
@@ -83,8 +83,22 @@ export interface IDiscount {
83
83
  */
84
84
  discountCurrency: string;
85
85
  }
86
- export declare type IReservation = Omit<EventReservationFactory.IReservation, 'attended' | 'broker' | 'checkedIn' | 'modifiedTime' | 'previousReservationStatus' | 'price' | 'priceCurrency' | 'reservationStatus' | 'subReservation' | 'underName'>;
87
- export declare type IPermit = Omit<PermitFactory.IPermit, 'accessCode' | 'additionalProperty' | 'depositAmount' | 'paymentAmount' | 'paymentAccount' | 'issuedBy'>;
86
+ export declare type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'project' | 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
87
+ export declare type ISuperEvent = Omit<EventReservationFactory.IOptimizedSuperEvent, 'workPerformed'> & {
88
+ workPerformed: IWorkPerformed;
89
+ };
90
+ export declare type IReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
91
+ superEvent: ISuperEvent;
92
+ };
93
+ export declare type IReservedTicketType = Pick<ITicketType, 'additionalProperty' | 'description' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'project' | 'typeOf'>;
94
+ export declare type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'dateIssued' | 'ticketNumber' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
95
+ ticketType: ITicketType;
96
+ };
97
+ export declare type IReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'bookingTime' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'project' | 'reservationNumber' | 'typeOf'> & {
98
+ reservationFor: IReservationFor;
99
+ reservedTicket: IReservedTicket;
100
+ };
101
+ export declare type IPermit = Pick<PermitFactory.IPermit, 'amount' | 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
88
102
  export interface IMoneyTransferPendingTransaction {
89
103
  typeOf: AssetTransactionType.MoneyTransfer;
90
104
  /**
@@ -115,7 +129,7 @@ export interface IMoneyTransfer {
115
129
  * 注文アイテム
116
130
  */
117
131
  export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
118
- export declare type IOfferOptimized4acceptedOffer = Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'>;
132
+ export declare type IOfferOptimized4acceptedOffer = Pick<IOffer, 'project' | 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'priceCurrency' | 'priceSpecification'>;
119
133
  /**
120
134
  * 受け入れオファー
121
135
  */
@@ -225,13 +239,14 @@ export interface IEventServiceAsOrderedItem {
225
239
  };
226
240
  serviceType?: IServiceType;
227
241
  }
242
+ export declare type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
228
243
  /**
229
244
  * 注文アイテム
230
245
  * {@link https://schema.org/OrderItem}
231
246
  */
232
247
  export interface IOrderedItem {
233
248
  typeOf: 'OrderItem';
234
- orderedItem: IProduct | IEventServiceAsOrderedItem;
249
+ orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem;
235
250
  }
236
251
  /**
237
252
  * 注文
@@ -32,7 +32,7 @@ export interface IReservation {
32
32
  bookingService?: IBookingService;
33
33
  }
34
34
  export declare type IReservationWithDetail = IReservation & IEventReservation;
35
- export declare type IPermit = PermitFactory.IPermit;
35
+ export declare type IPermit = Pick<PermitFactory.IPermit, 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
36
36
  /**
37
37
  * 所有対象物 (Product or Service)
38
38
  */
@@ -40,7 +40,7 @@ export declare type IGood = IReservation | IPermit;
40
40
  /**
41
41
  * 所有対象物(対象物詳細有)
42
42
  */
43
- export declare type IGoodWithDetail = IReservationWithDetail | IPermit;
43
+ export declare type IGoodWithDetail = IReservationWithDetail | PermitFactory.IPermit;
44
44
  /**
45
45
  * 所有者
46
46
  */
@@ -74,7 +74,7 @@ export declare type OwnershipInfoType = 'OwnershipInfo';
74
74
  * 所有権
75
75
  */
76
76
  export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
77
- project: IProject;
77
+ project: Pick<IProject, 'id' | 'typeOf'>;
78
78
  /**
79
79
  * object type
80
80
  */
@@ -86,7 +86,7 @@ export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
86
86
  /**
87
87
  * 識別子
88
88
  */
89
- identifier?: any;
89
+ identifier?: string;
90
90
  /**
91
91
  * owned by whom
92
92
  * Array対応(2022-07-25~)
@@ -8,6 +8,7 @@ import { IThing } from './thing';
8
8
  export declare enum PermitType {
9
9
  Permit = "Permit"
10
10
  }
11
+ export declare type IIssuedThrough = Pick<IProduct, 'id' | 'project' | 'serviceType' | 'typeOf'>;
11
12
  /**
12
13
  * A permit issued by an organization, e.g. a parking pass.
13
14
  * {@link https://schema.org/Permit}
@@ -30,11 +31,10 @@ export interface IPermit extends IThing {
30
31
  /**
31
32
  * The service through with the permit was granted.
32
33
  */
33
- issuedThrough?: IProduct;
34
+ issuedThrough?: IIssuedThrough;
34
35
  /**
35
36
  * The target audience for this permit.
36
37
  */
37
- permitAudience?: any;
38
38
  /**
39
39
  * The duration of validity of a permit or similar thing.
40
40
  */
@@ -46,7 +46,6 @@ export interface IPermit extends IThing {
46
46
  /**
47
47
  * The geographic area where a permit or similar thing is valid.
48
48
  */
49
- validIn?: any;
50
49
  /**
51
50
  * The date when the item is no longer valid.
52
51
  */
@@ -4,6 +4,7 @@ import * as PlaceFactory from '../place';
4
4
  import { PlaceType } from '../placeType';
5
5
  import { IQuantitativeValue } from '../quantitativeValue';
6
6
  import { ISeller } from '../seller';
7
+ import { SortType } from '../sortType';
7
8
  import { UnitCode } from '../unitCode';
8
9
  import { IPlace as IScreeningRoom } from './screeningRoom';
9
10
  /**
@@ -75,7 +76,7 @@ export interface IPlaceWithoutScreeningRoom extends PlaceFactory.IPlace {
75
76
  */
76
77
  name: IMultilingualString;
77
78
  /**
78
- * 名称(カナ)
79
+ * カナ名称
79
80
  */
80
81
  kanaName: string;
81
82
  /**
@@ -103,7 +104,9 @@ export declare type IPlace = IPlaceWithoutScreeningRoom & {
103
104
  /**
104
105
  * ソート条件インターフェース
105
106
  */
106
- export declare type ISortOrder = any;
107
+ export interface ISortOrder {
108
+ branchCode?: SortType;
109
+ }
107
110
  export interface ISearchConditions {
108
111
  limit?: number;
109
112
  page?: number;
@@ -16,7 +16,6 @@ export interface IPlace extends IThing {
16
16
  containsPlace?: IPlace[];
17
17
  maximumAttendeeCapacity?: number;
18
18
  name?: IMultilingualString;
19
- openingHoursSpecification?: any;
20
19
  openSeatingAllowed?: boolean;
21
20
  smokingAllowed?: boolean;
22
21
  telephone?: string;
@@ -77,7 +77,15 @@ export interface ISearchConditions<T extends PriceSpecificationType> {
77
77
  ids?: string[];
78
78
  typeOf?: T;
79
79
  appliesToCategoryCode?: {
80
- $elemMatch?: any;
80
+ $elemMatch?: {
81
+ codeValue?: {
82
+ $eq?: string;
83
+ $in?: string[];
84
+ };
85
+ 'inCodeSet.identifier'?: {
86
+ $eq?: string;
87
+ };
88
+ };
81
89
  codeValue?: {
82
90
  $eq?: string;
83
91
  $in?: string[];
@@ -87,8 +87,8 @@ export interface IAvailableChannel {
87
87
  * プロダクトインターフェース
88
88
  * {@link https://schema.org/Product}
89
89
  */
90
- export interface IProduct extends IThing {
91
- project: IProject;
90
+ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
91
+ project: Pick<IProject, 'id' | 'typeOf'>;
92
92
  typeOf: ProductType;
93
93
  id?: string;
94
94
  availableChannel?: IAvailableChannel;
@@ -104,7 +104,7 @@ export interface IProduct extends IThing {
104
104
  /**
105
105
  * The product identifier, such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".
106
106
  */
107
- productID?: string;
107
+ productID: string;
108
108
  /**
109
109
  * The tangible thing generated by the service, e.g. a passport, permit, etc.
110
110
  */
@@ -50,6 +50,7 @@ export interface ISubReservation {
50
50
  */
51
51
  export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
52
52
  id: string;
53
+ issuedThrough: ReservationFactory.IIssuedThrough;
53
54
  reservationFor: IReservationFor;
54
55
  reservationNumber: string;
55
56
  reservationStatus: ReservationStatusType;
@@ -167,6 +167,10 @@ export interface IBroker {
167
167
  name?: string;
168
168
  }
169
169
  export declare type IProgramMembershipUsed = IPermit;
170
+ export interface IIssuedThrough {
171
+ typeOf: ProductType.EventService;
172
+ serviceType?: IServiceType;
173
+ }
170
174
  /**
171
175
  * 予約
172
176
  * Describes a reservation for travel, dining or an event. Some reservations require tickets.
@@ -211,10 +215,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
211
215
  /**
212
216
  * Web page where reservation can be confirmed.
213
217
  */
214
- issuedThrough?: {
215
- typeOf: ProductType.EventService;
216
- serviceType?: IServiceType;
217
- };
218
+ issuedThrough?: IIssuedThrough;
218
219
  /**
219
220
  * Time the reservation was last modified.
220
221
  */
@@ -45,7 +45,7 @@ export interface ISortOrder {
45
45
  export interface ISearchConditions {
46
46
  limit?: number;
47
47
  page?: number;
48
- sort?: any;
48
+ sort?: ISortOrder;
49
49
  project?: {
50
50
  id?: {
51
51
  $eq?: string;
@@ -47,12 +47,12 @@ export interface IProvider extends IOrganization {
47
47
  * 決済サービスインターフェース
48
48
  * {@link https://schema.org/Service}
49
49
  */
50
- export interface IService extends IThing {
51
- project: IProject;
50
+ export interface IService extends Pick<IThing, 'name' | 'description'> {
51
+ project: Pick<IProject, 'id' | 'typeOf'>;
52
52
  typeOf: PaymentServiceType;
53
53
  id?: string;
54
54
  availableChannel?: IAvailableChannel;
55
- productID?: string;
55
+ productID: string;
56
56
  /**
57
57
  * 決済サービス提供者(決済サービスを利用する販売者)
58
58
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.259.0-alpha.6",
3
+ "version": "4.259.0-alpha.9",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",