@chevre/factory 4.258.0 → 4.259.0-alpha.10

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.
Files changed (51) hide show
  1. package/lib/chevre.d.ts +0 -7
  2. package/lib/chevre.js +3 -5
  3. package/lib/factory/account/action/moneyTransfer.d.ts +1 -1
  4. package/lib/factory/action/authorize/offer/product.d.ts +4 -4
  5. package/lib/factory/action/authorize/offer/seatReservation.d.ts +9 -9
  6. package/lib/factory/action/consume/use/reservation.d.ts +2 -1
  7. package/lib/factory/action/interact/confirm/pay.d.ts +1 -2
  8. package/lib/factory/action/trade/pay.d.ts +1 -1
  9. package/lib/factory/action/trade/refund.d.ts +1 -1
  10. package/lib/factory/action/transfer/return/order.d.ts +11 -6
  11. package/lib/factory/assetTransaction/registerService.d.ts +4 -2
  12. package/lib/factory/categoryCode.d.ts +10 -5
  13. package/lib/factory/creativeWork/message/email.d.ts +1 -1
  14. package/lib/factory/creativeWork.d.ts +1 -1
  15. package/lib/factory/event/screeningEvent.d.ts +5 -2
  16. package/lib/factory/event/screeningEventSeries.d.ts +29 -32
  17. package/lib/factory/event.d.ts +4 -7
  18. package/lib/factory/iam.d.ts +7 -2
  19. package/lib/factory/invoice.d.ts +1 -1
  20. package/lib/factory/merchantReturnPolicy.d.ts +9 -1
  21. package/lib/factory/monetaryAmount.d.ts +1 -1
  22. package/lib/factory/offer/merchantReturnPolicy.d.ts +37 -0
  23. package/lib/factory/{serviceType.js → offer/merchantReturnPolicy.js} +0 -0
  24. package/lib/factory/offer.d.ts +26 -11
  25. package/lib/factory/offerCatalog.d.ts +9 -6
  26. package/lib/factory/order.d.ts +22 -8
  27. package/lib/factory/organization.d.ts +1 -1
  28. package/lib/factory/ownershipInfo.d.ts +4 -4
  29. package/lib/factory/paymentMethod.d.ts +2 -2
  30. package/lib/factory/permit.d.ts +3 -4
  31. package/lib/factory/place/movieTheater.d.ts +28 -8
  32. package/lib/factory/place/screeningRoom.d.ts +1 -1
  33. package/lib/factory/place/screeningRoomSection.d.ts +1 -1
  34. package/lib/factory/place/seat.d.ts +1 -1
  35. package/lib/factory/place.d.ts +2 -2
  36. package/lib/factory/priceSpecification/categoryCodeChargeSpecification.d.ts +2 -1
  37. package/lib/factory/priceSpecification.d.ts +9 -1
  38. package/lib/factory/product.d.ts +5 -4
  39. package/lib/factory/programMembership.d.ts +1 -1
  40. package/lib/factory/quantitativeValue.d.ts +1 -1
  41. package/lib/factory/reservation/event.d.ts +1 -0
  42. package/lib/factory/reservation.d.ts +7 -7
  43. package/lib/factory/seller.d.ts +2 -2
  44. package/lib/factory/service/paymentService.d.ts +5 -6
  45. package/lib/factory/taskName.d.ts +0 -6
  46. package/lib/factory/taskName.js +0 -8
  47. package/lib/factory/transaction/returnOrder.d.ts +22 -2
  48. package/package.json +1 -1
  49. package/lib/factory/service.d.ts +0 -4
  50. package/lib/factory/service.js +0 -16
  51. package/lib/factory/serviceType.d.ts +0 -9
@@ -2,7 +2,6 @@ import { ActionType } from './actionType';
2
2
  import { ICategoryCode } from './categoryCode';
3
3
  import { ItemAvailability } from './itemAvailability';
4
4
  import { IMonetaryAmount } from './monetaryAmount';
5
- import * as SeatReservationOfferFactory from './offer/seatReservation';
6
5
  import { OfferType } from './offerType';
7
6
  import { PriceCurrency } from './priceCurrency';
8
7
  import { IPriceSpecification } from './priceSpecification';
@@ -19,20 +18,21 @@ import * as WebAPIFactory from './service/webAPI';
19
18
  import { SortType } from './sortType';
20
19
  import { IThing } from './thing';
21
20
  import { UnitCode } from './unitCode';
21
+ import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './offer/merchantReturnPolicy';
22
+ import * as SeatReservationOfferFactory from './offer/seatReservation';
22
23
  /**
23
24
  * オファーカテゴリーインターフェース
24
25
  */
25
26
  export interface ICategory {
26
- project: IProject;
27
+ project: Pick<IProject, 'id' | 'typeOf'>;
27
28
  id?: string;
28
29
  codeValue?: string;
29
- name?: any;
30
30
  }
31
31
  /**
32
32
  * アドオンインターフェース
33
33
  */
34
34
  export declare type IAddOn = IOffer;
35
- export declare type IEligibleCategoryCode = ICategoryCode;
35
+ export declare type IEligibleCategoryCode = Pick<ICategoryCode, 'project' | 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'>;
36
36
  export declare type IEligibleMonetaryAmount = IMonetaryAmount;
37
37
  /**
38
38
  * 適用サブ予約条件インターフェース
@@ -52,7 +52,7 @@ export interface IEligibleSubReservation {
52
52
  /**
53
53
  * 販売者インターフェース
54
54
  */
55
- export interface ISeller extends IThing {
55
+ export interface ISeller {
56
56
  typeOf?: string;
57
57
  id?: string;
58
58
  }
@@ -65,6 +65,14 @@ export interface IValidRateLimit {
65
65
  scope: string;
66
66
  unitInSeconds: number;
67
67
  }
68
+ export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
69
+ id: string;
70
+ identifier: string;
71
+ })[];
72
+ export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
73
+ export interface IAvailableAtOrFrom {
74
+ id: string;
75
+ }
68
76
  /**
69
77
  * offer interface
70
78
  * An offer to transfer some rights to an item or to provide a service
@@ -72,8 +80,8 @@ export interface IValidRateLimit {
72
80
  * to stream a TV show over the internet, to repair a motorcycle, or to loan a book.
73
81
  * {@link https://schema.org/Offer}
74
82
  */
75
- export interface IOffer extends IThing {
76
- project: IProject;
83
+ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternateName' | 'color' | 'identifier'> {
84
+ project: Pick<IProject, 'id' | 'typeOf'>;
77
85
  typeOf: OfferType;
78
86
  id?: string;
79
87
  /**
@@ -100,7 +108,7 @@ export interface IOffer extends IThing {
100
108
  /**
101
109
  * The place(s) from which the offer can be obtained (e.g. store locations).
102
110
  */
103
- availableAtOrFrom?: any;
111
+ availableAtOrFrom?: IAvailableAtOrFrom[];
104
112
  /**
105
113
  * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
106
114
  */
@@ -137,12 +145,11 @@ export interface IOffer extends IThing {
137
145
  /**
138
146
  * オファーが有効となる地域
139
147
  */
140
- eligibleRegion?: any;
148
+ hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
141
149
  /**
142
150
  * The item being offered.
143
151
  */
144
152
  itemOffered?: any;
145
- offeredBy?: any;
146
153
  /**
147
154
  * オファー供給サービス
148
155
  */
@@ -228,7 +235,10 @@ export interface IItemOffered {
228
235
  /**
229
236
  * 単価オファーインターフェース
230
237
  */
231
- export interface IUnitPriceOffer extends IOffer {
238
+ export interface IUnitPriceOffer extends Omit<IOffer, 'seller'> {
239
+ /**
240
+ * コード
241
+ */
232
242
  identifier: string;
233
243
  /**
234
244
  * 単価仕様
@@ -336,6 +346,11 @@ export interface ISearchConditions {
336
346
  $eq?: string;
337
347
  };
338
348
  };
349
+ hasMerchantReturnPolicy?: {
350
+ id?: {
351
+ $eq?: string;
352
+ };
353
+ };
339
354
  id?: {
340
355
  $eq?: string;
341
356
  $in?: string[];
@@ -1,10 +1,13 @@
1
1
  import { IMultilingualString } from './multilingualString';
2
2
  import { OfferType } from './offerType';
3
+ import { IServiceType as IProductServiceType } from './product';
3
4
  import { IProject } from './project';
4
5
  import { IPropertyValue } from './propertyValue';
5
- import { IServiceType } from './serviceType';
6
6
  import { SortType } from './sortType';
7
7
  import { IThing } from './thing';
8
+ export declare type IServiceType = IProductServiceType & {
9
+ id?: string;
10
+ };
8
11
  export interface IItemOffered {
9
12
  typeOf: string;
10
13
  serviceType?: IServiceType;
@@ -14,10 +17,10 @@ export interface IItemListElement {
14
17
  id: string;
15
18
  }
16
19
  /**
17
- * オファーカタログインターフェース
20
+ * オファーカタログ
18
21
  */
19
- export interface IOfferCatalog extends IThing {
20
- project: IProject;
22
+ export interface IOfferCatalog extends Pick<IThing, 'name' | 'description' | 'alternateName'> {
23
+ project: Pick<IProject, 'id' | 'typeOf'>;
21
24
  typeOf: 'OfferCatalog';
22
25
  id?: string;
23
26
  identifier: string;
@@ -27,13 +30,13 @@ export interface IOfferCatalog extends IThing {
27
30
  additionalProperty?: IPropertyValue<string>[];
28
31
  }
29
32
  /**
30
- * ソート条件インターフェース
33
+ * ソート条件
31
34
  */
32
35
  export interface ISortOrder {
33
36
  identifier?: SortType;
34
37
  }
35
38
  /**
36
- * オファーカタログ検索条件インターフェース
39
+ * オファーカタログ検索条件
37
40
  */
38
41
  export interface ISearchConditions {
39
42
  limit?: number;
@@ -16,12 +16,11 @@ import { IPerson, IProfile } from './person';
16
16
  import { PersonType } from './personType';
17
17
  import { PlaceType } from './placeType';
18
18
  import { PriceCurrency } from './priceCurrency';
19
- import { IProduct, ProductType } from './product';
19
+ import { IProduct, IServiceType, 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
- import { IServiceType } from './serviceType';
25
24
  import { SortType } from './sortType';
26
25
  import { IThing } from './thing';
27
26
  export interface IProject {
@@ -83,8 +82,22 @@ export interface IDiscount {
83
82
  */
84
83
  discountCurrency: string;
85
84
  }
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'>;
85
+ export declare type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'project' | 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
86
+ export declare type ISuperEvent = Omit<EventReservationFactory.IOptimizedSuperEvent, 'workPerformed'> & {
87
+ workPerformed: IWorkPerformed;
88
+ };
89
+ export declare type IReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
90
+ superEvent: ISuperEvent;
91
+ };
92
+ export declare type IReservedTicketType = Pick<ITicketType, 'additionalProperty' | 'description' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'project' | 'typeOf'>;
93
+ export declare type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'dateIssued' | 'ticketNumber' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
94
+ ticketType: ITicketType;
95
+ };
96
+ export declare type IReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'bookingTime' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'project' | 'reservationNumber' | 'typeOf'> & {
97
+ reservationFor: IReservationFor;
98
+ reservedTicket: IReservedTicket;
99
+ };
100
+ export declare type IPermit = Pick<PermitFactory.IPermit, 'amount' | 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
88
101
  export interface IMoneyTransferPendingTransaction {
89
102
  typeOf: AssetTransactionType.MoneyTransfer;
90
103
  /**
@@ -115,7 +128,7 @@ export interface IMoneyTransfer {
115
128
  * 注文アイテム
116
129
  */
117
130
  export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
118
- export declare type IOfferOptimized4acceptedOffer = Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'>;
131
+ export declare type IOfferOptimized4acceptedOffer = Pick<IOffer, 'project' | 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'priceCurrency' | 'priceSpecification'>;
119
132
  /**
120
133
  * 受け入れオファー
121
134
  */
@@ -167,7 +180,7 @@ export declare type IBroker = IPerson;
167
180
  */
168
181
  export declare type IReturner = IParticipant;
169
182
  export declare type IIdentifier = IPropertyValue<string>[];
170
- export interface ISimpleOrder extends IThing {
183
+ export interface ISimpleOrder extends Pick<IThing, 'name'> {
171
184
  project: IProject;
172
185
  /**
173
186
  * object type
@@ -225,13 +238,14 @@ export interface IEventServiceAsOrderedItem {
225
238
  };
226
239
  serviceType?: IServiceType;
227
240
  }
241
+ export declare type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
228
242
  /**
229
243
  * 注文アイテム
230
244
  * {@link https://schema.org/OrderItem}
231
245
  */
232
246
  export interface IOrderedItem {
233
247
  typeOf: 'OrderItem';
234
- orderedItem: IProduct | IEventServiceAsOrderedItem;
248
+ orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem;
235
249
  }
236
250
  /**
237
251
  * 注文
@@ -7,7 +7,7 @@ export declare type IParentOrganization = IOrganization;
7
7
  /**
8
8
  * 組織インターフェース
9
9
  */
10
- export interface IOrganization extends IThing {
10
+ export interface IOrganization extends Pick<IThing, 'name' | 'url'> {
11
11
  typeOf: string;
12
12
  id?: string;
13
13
  email?: string;
@@ -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~)
@@ -3,8 +3,8 @@ import { IThing } from './thing';
3
3
  /**
4
4
  * payment method interface
5
5
  */
6
- export interface IPaymentMethod extends IThing {
7
- project: IProject;
6
+ export interface IPaymentMethod extends Pick<IThing, 'name'> {
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
8
  typeOf: string;
9
9
  identifier: string;
10
10
  }
@@ -8,11 +8,12 @@ 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}
14
15
  */
15
- export interface IPermit extends IThing {
16
+ export interface IPermit extends Pick<IThing, 'name'> {
16
17
  project: IProject;
17
18
  typeOf: PermitType;
18
19
  identifier?: string;
@@ -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
  */
@@ -1,15 +1,16 @@
1
1
  import { IMultilingualString } from '../multilingualString';
2
2
  import * as OfferFactory from '../offer';
3
- import { IOrganization } from '../organization';
4
3
  import * as PlaceFactory from '../place';
5
4
  import { PlaceType } from '../placeType';
6
5
  import { IQuantitativeValue } from '../quantitativeValue';
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
  /**
10
11
  * 施設に対するオファーインターフェース
11
12
  */
12
- export interface IOffer extends OfferFactory.IOffer {
13
+ export interface IOffer extends Pick<OfferFactory.IOffer, 'priceCurrency' | 'project' | 'typeOf' | 'eligibleQuantity'> {
13
14
  /**
14
15
  * イベント開始前の販売猶予期間
15
16
  */
@@ -26,11 +27,28 @@ export declare type POSType = 'POS';
26
27
  */
27
28
  export interface IPOS {
28
29
  typeOf: POSType;
30
+ /**
31
+ * コード
32
+ */
29
33
  id: string;
34
+ /**
35
+ * 名称
36
+ */
30
37
  name: string;
31
38
  }
32
- export declare type IEntranceGate = PlaceFactory.IPlace;
33
- export declare type IParentOrganization = IOrganization;
39
+ /**
40
+ * 入場ゲート
41
+ */
42
+ export declare type IEntranceGate = Pick<PlaceFactory.IPlace, 'typeOf' | 'identifier' | 'name'> & {
43
+ typeOf: PlaceType.Place;
44
+ identifier: string;
45
+ };
46
+ /**
47
+ * 親組織
48
+ */
49
+ export declare type IParentOrganization = Pick<ISeller, 'typeOf' | 'id'> & {
50
+ id: string;
51
+ };
34
52
  /**
35
53
  * place interface without screening room
36
54
  */
@@ -40,9 +58,9 @@ export interface IPlaceWithoutScreeningRoom extends PlaceFactory.IPlace {
40
58
  /**
41
59
  * ルーム数
42
60
  */
43
- screenCount: number;
61
+ screenCount?: number;
44
62
  /**
45
- * 枝番号
63
+ * 施設コード
46
64
  */
47
65
  branchCode: string;
48
66
  /**
@@ -58,7 +76,7 @@ export interface IPlaceWithoutScreeningRoom extends PlaceFactory.IPlace {
58
76
  */
59
77
  name: IMultilingualString;
60
78
  /**
61
- * 名称(カナ)
79
+ * カナ名称
62
80
  */
63
81
  kanaName: string;
64
82
  /**
@@ -86,7 +104,9 @@ export declare type IPlace = IPlaceWithoutScreeningRoom & {
86
104
  /**
87
105
  * ソート条件インターフェース
88
106
  */
89
- export declare type ISortOrder = any;
107
+ export interface ISortOrder {
108
+ branchCode?: SortType;
109
+ }
90
110
  export interface ISearchConditions {
91
111
  limit?: number;
92
112
  page?: number;
@@ -5,7 +5,7 @@ import { IPlace as IScreeningRoomSection } from './screeningRoomSection';
5
5
  /**
6
6
  * ルームインターフェース
7
7
  */
8
- export interface IPlace extends PlaceFactory.IPlace {
8
+ export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' | 'branchCode' | 'name' | 'address' | 'containedInPlace' | 'containsPlace' | 'additionalProperty' | 'openSeatingAllowed' | 'maximumAttendeeCapacity'> {
9
9
  typeOf: PlaceType.ScreeningRoom;
10
10
  /**
11
11
  * セクションリスト
@@ -4,7 +4,7 @@ import { IPlace as ISeat, IPlaceWithOffer as ISeatWithOffer } from './seat';
4
4
  /**
5
5
  * セクションインターフェース
6
6
  */
7
- export interface IPlace extends PlaceFactory.IPlace {
7
+ export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' | 'branchCode' | 'name' | 'containedInPlace' | 'containsPlace' | 'additionalProperty'> {
8
8
  typeOf: PlaceType.ScreeningRoomSection;
9
9
  /**
10
10
  * 座席リスト
@@ -27,7 +27,7 @@ export declare type ISeatingType = string | string[];
27
27
  /**
28
28
  * 座席インターフェース
29
29
  */
30
- export interface IPlace extends PlaceFactory.IPlace {
30
+ export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' | 'branchCode' | 'containedInPlace' | 'additionalProperty' | 'name'> {
31
31
  typeOf: PlaceType.Seat;
32
32
  /**
33
33
  * 枝番号
@@ -6,7 +6,7 @@ import { IThing } from './thing';
6
6
  /**
7
7
  * 場所インターフェース
8
8
  */
9
- export interface IPlace extends IThing {
9
+ export interface IPlace extends Pick<IThing, 'identifier' | 'name'> {
10
10
  project: IProject;
11
11
  typeOf: PlaceType;
12
12
  id?: string;
@@ -15,7 +15,7 @@ export interface IPlace extends IThing {
15
15
  containedInPlace?: IPlace;
16
16
  containsPlace?: IPlace[];
17
17
  maximumAttendeeCapacity?: number;
18
- openingHoursSpecification?: any;
18
+ name?: IMultilingualString;
19
19
  openSeatingAllowed?: boolean;
20
20
  smokingAllowed?: boolean;
21
21
  telephone?: string;
@@ -1,6 +1,7 @@
1
1
  import { ICategoryCode } from '../categoryCode';
2
2
  import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
3
3
  import { PriceSpecificationType } from '../priceSpecificationType';
4
+ export declare type IAppliesToCategoryCode = Pick<ICategoryCode, 'project' | 'typeOf' | 'codeValue' | 'inCodeSet'>;
4
5
  /**
5
6
  * 区分加算料金
6
7
  */
@@ -10,5 +11,5 @@ export declare type IPriceSpecification = BaseSpecification<PriceSpecificationTy
10
11
  * 適用カテゴリーコード
11
12
  * AND適用条件
12
13
  */
13
- appliesToCategoryCode: ICategoryCode[];
14
+ appliesToCategoryCode: IAppliesToCategoryCode[];
14
15
  };
@@ -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[];
@@ -1,11 +1,11 @@
1
1
  import { ActionType } from './actionType';
2
+ import { ICategoryCode } from './categoryCode';
2
3
  import { IMonetaryAmount } from './monetaryAmount';
3
4
  import { IOffer } from './offer';
4
5
  import { IPermit } from './permit';
5
6
  import { IProject } from './project';
6
7
  import { IPropertyValue } from './propertyValue';
7
8
  import { IQuantitativeValue } from './quantitativeValue';
8
- import { IServiceType } from './serviceType';
9
9
  import { SortType } from './sortType';
10
10
  import { IThing } from './thing';
11
11
  /**
@@ -83,12 +83,13 @@ export interface IAvailableChannel {
83
83
  serviceUrl?: string;
84
84
  credentials?: ICredentials;
85
85
  }
86
+ export declare type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'project' | 'typeOf'>;
86
87
  /**
87
88
  * プロダクトインターフェース
88
89
  * {@link https://schema.org/Product}
89
90
  */
90
- export interface IProduct extends IThing {
91
- project: IProject;
91
+ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
92
+ project: Pick<IProject, 'id' | 'typeOf'>;
92
93
  typeOf: ProductType;
93
94
  id?: string;
94
95
  availableChannel?: IAvailableChannel;
@@ -104,7 +105,7 @@ export interface IProduct extends IThing {
104
105
  /**
105
106
  * The product identifier, such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".
106
107
  */
107
- productID?: string;
108
+ productID: string;
108
109
  /**
109
110
  * The tangible thing generated by the service, e.g. a passport, permit, etc.
110
111
  */
@@ -7,7 +7,7 @@ export declare enum ProgramMembershipType {
7
7
  * (e.g. "StarAliance"), traveler clubs (e.g. "AAA"), purchase clubs ("Safeway Club"), etc.
8
8
  * {@link https://schema.org/ProgramMembership}
9
9
  */
10
- export interface IProgramMembership extends IThing {
10
+ export interface IProgramMembership extends Pick<IThing, 'name'> {
11
11
  typeOf: ProgramMembershipType;
12
12
  /**
13
13
  * A unique identifier for the membership.
@@ -8,7 +8,7 @@ export declare enum StringValue {
8
8
  * A point value or interval for product characteristics and other purposes.
9
9
  * {@link https://schema.org/QuantitativeValue}
10
10
  */
11
- export interface IQuantitativeValue<T extends UnitCode> extends IThing {
11
+ export interface IQuantitativeValue<T extends UnitCode> extends Pick<IThing, 'name'> {
12
12
  /**
13
13
  * The upper value of some characteristic or property.
14
14
  */
@@ -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;
@@ -11,12 +11,11 @@ import { PlaceType } from './placeType';
11
11
  import { PriceCurrency } from './priceCurrency';
12
12
  import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
13
13
  import { PriceSpecificationType } from './priceSpecificationType';
14
- import { ProductType } from './product';
14
+ import { IServiceType, ProductType } from './product';
15
15
  import { IProject } from './project';
16
16
  import { IPropertyValue } from './propertyValue';
17
17
  import { ReservationStatusType } from './reservationStatusType';
18
18
  import { ReservationType } from './reservationType';
19
- import { IServiceType } from './serviceType';
20
19
  import { SortType } from './sortType';
21
20
  import { IThing } from './thing';
22
21
  export declare type TicketType = 'Ticket';
@@ -167,6 +166,10 @@ export interface IBroker {
167
166
  name?: string;
168
167
  }
169
168
  export declare type IProgramMembershipUsed = IPermit;
169
+ export interface IIssuedThrough {
170
+ typeOf: ProductType.EventService;
171
+ serviceType?: IServiceType;
172
+ }
170
173
  /**
171
174
  * 予約
172
175
  * Describes a reservation for travel, dining or an event. Some reservations require tickets.
@@ -175,7 +178,7 @@ export declare type IProgramMembershipUsed = IPermit;
175
178
  * For offers of tickets, restaurant reservations, flights, or rental cars, use Offer.
176
179
  * {@link https://schema.org/Reservation}
177
180
  */
178
- export interface IReservation<T extends IPriceSpecification> extends IThing {
181
+ export interface IReservation<T extends IPriceSpecification> extends Pick<IThing, 'identifier' | 'name'> {
179
182
  project: IProject;
180
183
  /**
181
184
  * type of object
@@ -211,10 +214,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
211
214
  /**
212
215
  * Web page where reservation can be confirmed.
213
216
  */
214
- issuedThrough?: {
215
- typeOf: ProductType.EventService;
216
- serviceType?: IServiceType;
217
- };
217
+ issuedThrough?: IIssuedThrough;
218
218
  /**
219
219
  * Time the reservation was last modified.
220
220
  */
@@ -5,7 +5,7 @@ import { OrganizationType } from './organizationType';
5
5
  import { IProject } from './project';
6
6
  import { IPropertyValue } from './propertyValue';
7
7
  import { SortType } from './sortType';
8
- export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'returnFees'>;
8
+ export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee'>;
9
9
  export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
10
10
  /**
11
11
  * 利用可能決済インターフェース
@@ -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;
@@ -1,8 +1,7 @@
1
1
  import { IOrganization } from '../organization';
2
- import { IAvailableChannel } from '../product';
2
+ import { IAvailableChannel, IServiceType } from '../product';
3
3
  import { IProject } from '../project';
4
4
  import { IPropertyValue } from '../propertyValue';
5
- import { IServiceType } from '../serviceType';
6
5
  import { IThing } from '../thing';
7
6
  export declare enum PaymentServiceType {
8
7
  CreditCard = "CreditCard",
@@ -37,7 +36,7 @@ export interface IProviderCredentials {
37
36
  */
38
37
  stCd?: string;
39
38
  }
40
- export interface IProvider extends IOrganization {
39
+ export interface IProvider extends Pick<IOrganization, 'id' | 'name' | 'typeOf'> {
41
40
  /**
42
41
  * 販売者の決済サービス利用時資格情報
43
42
  */
@@ -47,12 +46,12 @@ export interface IProvider extends IOrganization {
47
46
  * 決済サービスインターフェース
48
47
  * {@link https://schema.org/Service}
49
48
  */
50
- export interface IService extends IThing {
51
- project: IProject;
49
+ export interface IService extends Pick<IThing, 'name' | 'description'> {
50
+ project: Pick<IProject, 'id' | 'typeOf'>;
52
51
  typeOf: PaymentServiceType;
53
52
  id?: string;
54
53
  availableChannel?: IAvailableChannel;
55
- productID?: string;
54
+ productID: string;
56
55
  /**
57
56
  * 決済サービス提供者(決済サービスを利用する販売者)
58
57
  */