@chevre/factory 4.259.0-alpha.1 → 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 +1 -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 +16 -35
  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
package/lib/chevre.d.ts CHANGED
@@ -106,10 +106,8 @@ import * as ReservationPackageFactory from './factory/reservation/reservationPac
106
106
  import { ReservationStatusType } from './factory/reservationStatusType';
107
107
  import { ReservationType } from './factory/reservationType';
108
108
  import * as SellerFactory from './factory/seller';
109
- import * as ServiceFactory from './factory/service';
110
109
  import * as PaymentServiceFactory from './factory/service/paymentService';
111
110
  import * as WebAPIServiceFactory from './factory/service/webAPI';
112
- import * as ServiceTypeFactory from './factory/serviceType';
113
111
  import { SortType } from './factory/sortType';
114
112
  import * as ThingFactory from './factory/thing';
115
113
  import { UnitCode } from './factory/unitCode';
@@ -407,14 +405,9 @@ export declare namespace task {
407
405
  export import cancelAccountMoneyTransfer = CancelAccountMoneyTransferTaskFactory;
408
406
  }
409
407
  export declare namespace service {
410
- export import IHasOfferCatalog = ServiceFactory.IHasOfferCatalog;
411
- export import IPointAward = ServiceFactory.IPointAward;
412
- export import IService = ServiceFactory.IProduct;
413
- export import IServiceOutput = ServiceFactory.IServiceOutput;
414
408
  export import paymentService = PaymentServiceFactory;
415
409
  export import webAPI = WebAPIServiceFactory;
416
410
  }
417
- export import serviceType = ServiceTypeFactory;
418
411
  export import sortType = SortType;
419
412
  export import taskName = TaskName;
420
413
  export import taskStatus = TaskStatus;
package/lib/chevre.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = void 0;
4
+ exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -31,8 +31,6 @@ var PayActionFactory = require("./factory/action/trade/pay");
31
31
  var RefundActionFactory = require("./factory/action/trade/refund");
32
32
  var GivePointAwardActionFactory = require("./factory/action/transfer/give/pointAward");
33
33
  var MoneyTransferActionFactory = require("./factory/action/transfer/moneyTransfer");
34
- // import * as PrintActionFactory from './factory/action/transfer/print';
35
- // import * as PrintTicketActionFactory from './factory/action/transfer/print/ticket';
36
34
  var ReturnMoneyTransferActionFactory = require("./factory/action/transfer/return/moneyTransfer");
37
35
  var ReturnOrderActionFactory = require("./factory/action/transfer/return/order");
38
36
  var ReturnPaymentMethodActionFactory = require("./factory/action/transfer/return/paymentMethod");
@@ -99,7 +97,7 @@ var reservationType_1 = require("./factory/reservationType");
99
97
  var SellerFactory = require("./factory/seller");
100
98
  var PaymentServiceFactory = require("./factory/service/paymentService");
101
99
  var WebAPIServiceFactory = require("./factory/service/webAPI");
102
- var ServiceTypeFactory = require("./factory/serviceType");
100
+ // import * as ServiceTypeFactory from './factory/serviceType';
103
101
  var sortType_1 = require("./factory/sortType");
104
102
  var ThingFactory = require("./factory/thing");
105
103
  var unitCode_1 = require("./factory/unitCode");
@@ -390,7 +388,7 @@ var service;
390
388
  service.paymentService = PaymentServiceFactory;
391
389
  service.webAPI = WebAPIServiceFactory;
392
390
  })(service = exports.service || (exports.service = {}));
393
- exports.serviceType = ServiceTypeFactory;
391
+ // export import serviceType = ServiceTypeFactory;
394
392
  exports.sortType = sortType_1.SortType;
395
393
  exports.taskName = taskName_1.TaskName;
396
394
  exports.taskStatus = taskStatus_1.TaskStatus;
@@ -10,7 +10,7 @@ export declare type IRecipient = ActionFactory.IParticipant;
10
10
  /**
11
11
  * 口座以外の匿名場所インターフェース
12
12
  */
13
- export interface IAnonymousLocation extends IThing {
13
+ export interface IAnonymousLocation extends Pick<IThing, 'identifier' | 'name'> {
14
14
  /**
15
15
  * ロケーションタイプ
16
16
  */
@@ -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,14 +72,14 @@ 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;
81
81
  }
82
- export declare type IEvent = Omit<ScreeningEventFactory.IEvent, 'offers' | 'project' | 'additionalProperty' | 'aggregateEntranceGate' | 'aggregateReservation' | 'aggregateOffer' | 'workPerformed' | 'checkInCount' | 'attendeeCount' | 'eventStatus' | 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'alternateName' | 'alternativeHeadline' | 'description' | 'duration' | 'headline' | 'name' | 'location' | 'doorTime' | 'endDate' | 'startDate' | 'coaInfo'> & {
82
+ export declare type IEvent = Pick<ScreeningEventFactory.IEvent, 'id' | 'typeOf'> & {
83
83
  offers: {
84
84
  offeredThrough: ScreeningEventFactory.IOfferedThrough;
85
85
  };
@@ -104,9 +104,6 @@ export interface IPurpose {
104
104
  * authorize action error interface
105
105
  */
106
106
  export declare type IError = any;
107
- /**
108
- * 座席予約承認アクション
109
- */
110
107
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult<T>> {
111
108
  typeOf: ActionType.AuthorizeAction;
112
109
  agent: IAgent;
@@ -115,4 +112,7 @@ export interface IAttributes<T extends WebAPIFactory.Identifier> extends Authori
115
112
  purpose: IPurpose;
116
113
  instrument: IInstrument<T>;
117
114
  }
115
+ /**
116
+ * イベントオファー承認アクション
117
+ */
118
118
  export declare type IAction<T extends WebAPIFactory.Identifier> = ActionFactory.IAction<IAttributes<T>>;
@@ -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
  }
@@ -1,8 +1,6 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import * as OrderFactory from '../../../order';
3
- import * as WebAPIFactory from '../../../service/webAPI';
4
- import { IAttributes as IRefundActionAttributes } from '../../transfer/return/paymentMethod';
5
- import { IAttributes as IReturnReserveTransactionActionAttributes } from '../../transfer/return/reserveTransaction';
3
+ import { IAttributes as IReturnPaymentMethodActionAttributes } from '../../transfer/return/paymentMethod';
6
4
  import * as ReturnActionFactory from '../return';
7
5
  import { IAttributes as ISendEmailMessageActionAttributes } from '../send/message/email';
8
6
  import * as ReturnMoneyTransferActionFactory from './moneyTransfer';
@@ -22,16 +20,23 @@ export declare type IResult = any;
22
20
  export interface IPotentialActions {
23
21
  /**
24
22
  * 設定追加(2022-06-08~)
23
+ * 廃止(2022-08-10~)
25
24
  */
26
- useConfirmRefund: boolean;
27
25
  /**
28
26
  * 予約取引返却アクション
27
+ * 廃止(2022-08-10~)
29
28
  */
30
- cancelReservation?: IReturnReserveTransactionActionAttributes<WebAPIFactory.Identifier>[];
31
29
  /**
32
30
  * 返金アクション
31
+ * 廃止(2022-08-10~)
32
+ * @deprecated Use returnPaymentMethod
33
33
  */
34
- refund: IRefundActionAttributes[];
34
+ refund: IReturnPaymentMethodActionAttributes[];
35
+ /**
36
+ * 決済返却アクション
37
+ * refundから移行(2022-08-10~)
38
+ */
39
+ returnPaymentMethod: IReturnPaymentMethodActionAttributes[];
35
40
  /**
36
41
  * 入金返却アクション
37
42
  */
@@ -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,7 @@
1
+ import { IMultilingualString } from './multilingualString';
1
2
  import { IProject } from './project';
2
3
  import { IPropertyValue } from './propertyValue';
4
+ import { SortType } from './sortType';
3
5
  import { IThing } from './thing';
4
6
  export declare enum CategorySetIdentifier {
5
7
  /**
@@ -50,20 +52,21 @@ export declare enum CategorySetIdentifier {
50
52
  /**
51
53
  * {@link https://schema.org/CategoryCodeSet}
52
54
  */
53
- export interface ICategoryCodeSet extends IThing {
55
+ export interface ICategoryCodeSet {
54
56
  typeOf: 'CategoryCodeSet';
55
57
  identifier: CategorySetIdentifier;
56
58
  }
57
59
  /**
58
60
  * {@link https://schema.org/CategoryCode}
59
61
  */
60
- export interface ICategoryCode extends IThing {
61
- project: IProject;
62
+ export interface ICategoryCode extends Pick<IThing, 'color' | 'image' | 'name'> {
63
+ additionalProperty?: IPropertyValue<string>[];
64
+ project: Pick<IProject, 'id' | 'typeOf'>;
62
65
  id?: string;
63
66
  typeOf: 'CategoryCode';
64
67
  codeValue: string;
65
68
  inCodeSet: ICategoryCodeSet;
66
- additionalProperty?: IPropertyValue<string>[];
69
+ name: IMultilingualString;
67
70
  paymentMethod?: {
68
71
  /**
69
72
  * 決済カード区分の場合、対応決済方法区分
@@ -77,7 +80,9 @@ export interface ICategoryCode extends IThing {
77
80
  export interface ISearchConditions {
78
81
  limit?: number;
79
82
  page?: number;
80
- sort?: any;
83
+ sort?: {
84
+ codeValue?: SortType;
85
+ };
81
86
  project?: {
82
87
  id?: {
83
88
  $eq?: string;
@@ -13,7 +13,7 @@ export declare enum AboutIdentifier {
13
13
  OnOrderReturned = "OnOrderReturned",
14
14
  OnEventStatusChanged = "OnEventStatusChanged"
15
15
  }
16
- export interface IAbout extends IThing {
16
+ export interface IAbout extends Pick<IThing, 'name'> {
17
17
  typeOf: 'Thing';
18
18
  identifier: AboutIdentifier;
19
19
  name: string;
@@ -10,7 +10,7 @@ export declare type IContentRating = COA.factory.master.IKubunNameResult | strin
10
10
  * 作品インターフェース
11
11
  * {@link https://schema.org/CreativeWork}
12
12
  */
13
- export interface ICreativeWork extends IThing {
13
+ export interface ICreativeWork extends Pick<IThing, 'name' | 'identifier'> {
14
14
  typeOf: CreativeWorkType;
15
15
  id?: string;
16
16
  alternativeHeadline?: string;
@@ -8,12 +8,12 @@ import { OfferType } from '../offerType';
8
8
  import { OrganizationType } from '../organizationType';
9
9
  import { PlaceType } from '../placeType';
10
10
  import { PriceCurrency } from '../priceCurrency';
11
+ import { IServiceType as IProductServiceType } from '../product';
11
12
  import { IProject } from '../project';
12
13
  import { IQuantitativeValue } from '../quantitativeValue';
13
14
  import * as ReservationFactory from '../reservation';
14
15
  import { ReservationType } from '../reservationType';
15
16
  import * as WebAPIFactory from '../service/webAPI';
16
- import { IServiceType } from '../serviceType';
17
17
  import { IThing } from '../thing';
18
18
  import { UnitCode } from '../unitCode';
19
19
  /**
@@ -30,7 +30,7 @@ export interface IAggregateReservation {
30
30
  /**
31
31
  * 予約集計つきオファー
32
32
  */
33
- export interface IOfferWithAggregateReservation extends IThing {
33
+ export interface IOfferWithAggregateReservation extends Pick<IThing, 'name'> {
34
34
  typeOf: OfferType.Offer;
35
35
  id?: string;
36
36
  identifier?: string;
@@ -81,6 +81,9 @@ export interface IServiceOutput {
81
81
  };
82
82
  };
83
83
  }
84
+ export declare type IServiceType = IProductServiceType & {
85
+ id?: string;
86
+ };
84
87
  /**
85
88
  * イベントのサービス
86
89
  */
@@ -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
  };
@@ -13,7 +13,7 @@ export interface IHasOfferCatalog {
13
13
  identifier?: string;
14
14
  }
15
15
  export interface IAttributes<T extends EventType> {
16
- project: IProject;
16
+ project: Pick<IProject, 'id' | 'typeOf'>;
17
17
  /**
18
18
  * イベントタイプ
19
19
  */
@@ -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
  */
@@ -86,18 +86,15 @@ export interface IAttributes<T extends EventType> {
86
86
  additionalProperty?: IPropertyValue<string>[];
87
87
  }
88
88
  /**
89
- * イベントインターフェース
89
+ * イベント
90
90
  */
91
91
  export declare type IEvent<T extends IAttributes<EventType>> = T & {
92
92
  id: string;
93
93
  };
94
94
  /**
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
  /**
@@ -41,7 +41,7 @@ export declare enum MerchantReturnEnumeration {
41
41
  */
42
42
  MerchantReturnUnspecified = "MerchantReturnUnspecified"
43
43
  }
44
- export interface IMerchantReturnPolicy extends IThing {
44
+ export interface IMerchantReturnPolicy extends Pick<IThing, 'name'> {
45
45
  typeOf: 'MerchantReturnPolicy';
46
46
  /**
47
47
  * The type of return fees if the product is returned due to customer remorse.
@@ -3,7 +3,7 @@ import { IThing } from './thing';
3
3
  * 金額インターフェース
4
4
  * {@link https://schema.org/MonetaryAmount}
5
5
  */
6
- export interface IMonetaryAmount extends IThing {
6
+ export interface IMonetaryAmount extends Pick<IThing, 'name'> {
7
7
  typeOf: 'MonetaryAmount';
8
8
  /**
9
9
  * The currency in which the monetary amount is expressed.
@@ -0,0 +1,37 @@
1
+ import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
2
+ import { IMultilingualString } from '../multilingualString';
3
+ import { IProject } from '../project';
4
+ import { IPropertyValue } from '../propertyValue';
5
+ import { SortType } from '../sortType';
6
+ export declare type IOfferMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'customerRemorseReturnFees' | 'customerRemorseReturnFeesMovieTicket'> & {
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
+ additionalProperty?: IPropertyValue<string>[];
9
+ id?: string;
10
+ identifier: string;
11
+ name?: IMultilingualString;
12
+ };
13
+ export interface IOfferMerchantReturnPolicySortOrder {
14
+ identifier?: SortType;
15
+ }
16
+ export interface IOfferMerchantReturnPolicySearchConditions {
17
+ limit?: number;
18
+ page?: number;
19
+ sort?: IOfferMerchantReturnPolicySortOrder;
20
+ project?: {
21
+ id?: {
22
+ $eq?: string;
23
+ };
24
+ };
25
+ id?: {
26
+ $eq?: string;
27
+ $in?: string[];
28
+ };
29
+ identifier?: {
30
+ $eq?: string;
31
+ $in?: string[];
32
+ $regex?: string;
33
+ };
34
+ name?: {
35
+ $regex?: string;
36
+ };
37
+ }