@chevre/factory 4.259.0-alpha.8 → 4.260.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.
Files changed (65) 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/account.d.ts +1 -1
  5. package/lib/factory/accountTitle.d.ts +1 -1
  6. package/lib/factory/action/authorize/offer/product.d.ts +7 -3
  7. package/lib/factory/action/authorize/offer/seatReservation.d.ts +16 -5
  8. package/lib/factory/action/interact/confirm/registerService.d.ts +1 -1
  9. package/lib/factory/action/interact/confirm/reservation.d.ts +1 -1
  10. package/lib/factory/action/trade/pay.d.ts +1 -0
  11. package/lib/factory/action/trade/refund.d.ts +1 -0
  12. package/lib/factory/action.d.ts +2 -2
  13. package/lib/factory/assetTransaction/pay.d.ts +1 -1
  14. package/lib/factory/assetTransaction/refund.d.ts +1 -1
  15. package/lib/factory/assetTransaction/registerService.d.ts +4 -2
  16. package/lib/factory/authorization.d.ts +1 -1
  17. package/lib/factory/categoryCode.d.ts +6 -4
  18. package/lib/factory/creativeWork/message/email.d.ts +2 -2
  19. package/lib/factory/creativeWork/movie.d.ts +1 -1
  20. package/lib/factory/creativeWork.d.ts +1 -1
  21. package/lib/factory/customer.d.ts +1 -1
  22. package/lib/factory/event/screeningEvent.d.ts +10 -6
  23. package/lib/factory/event/screeningEventSeries.d.ts +3 -3
  24. package/lib/factory/event.d.ts +3 -3
  25. package/lib/factory/merchantReturnPolicy.d.ts +1 -1
  26. package/lib/factory/monetaryAmount.d.ts +1 -1
  27. package/lib/factory/offer.d.ts +7 -24
  28. package/lib/factory/offerCatalog.d.ts +9 -6
  29. package/lib/factory/order.d.ts +5 -5
  30. package/lib/factory/organization.d.ts +1 -1
  31. package/lib/factory/ownershipInfo.d.ts +3 -3
  32. package/lib/factory/paymentMethod.d.ts +2 -2
  33. package/lib/factory/permit.d.ts +4 -3
  34. package/lib/factory/place.d.ts +2 -2
  35. package/lib/factory/priceSpecification/categoryCodeChargeSpecification.d.ts +2 -1
  36. package/lib/factory/priceSpecification/movieTicketTypeChargeSpecification.d.ts +0 -3
  37. package/lib/factory/priceSpecification/unitPriceSpecification.d.ts +2 -2
  38. package/lib/factory/priceSpecification.d.ts +1 -1
  39. package/lib/factory/product.d.ts +5 -4
  40. package/lib/factory/programMembership.d.ts +1 -1
  41. package/lib/factory/quantitativeValue.d.ts +1 -1
  42. package/lib/factory/report/accountingReport.d.ts +14 -8
  43. package/lib/factory/reservation/event.d.ts +1 -1
  44. package/lib/factory/reservation.d.ts +4 -5
  45. package/lib/factory/seller.d.ts +2 -2
  46. package/lib/factory/service/paymentService.d.ts +9 -7
  47. package/lib/factory/task/importEventCapacitiesFromCOA.d.ts +1 -1
  48. package/lib/factory/task/importEventsFromCOA.d.ts +1 -1
  49. package/lib/factory/task/importOffersFromCOA.d.ts +1 -1
  50. package/lib/factory/task/orderProgramMembership.d.ts +1 -1
  51. package/lib/factory/task/placeOrder.d.ts +1 -1
  52. package/lib/factory/task/sendOrder.d.ts +1 -1
  53. package/lib/factory/task/voidMoneyTransferTransaction.d.ts +1 -1
  54. package/lib/factory/task/voidPayTransaction.d.ts +1 -1
  55. package/lib/factory/task/voidRegisterServiceTransaction.d.ts +1 -1
  56. package/lib/factory/task/voidReserveTransaction.d.ts +1 -1
  57. package/lib/factory/task.d.ts +1 -1
  58. package/lib/factory/transaction/moneyTransfer.d.ts +1 -1
  59. package/lib/factory/transaction/placeOrder.d.ts +1 -1
  60. package/lib/factory/transaction/returnOrder.d.ts +1 -1
  61. package/package.json +1 -1
  62. package/lib/factory/service.d.ts +0 -4
  63. package/lib/factory/service.js +0 -16
  64. package/lib/factory/serviceType.d.ts +0 -9
  65. package/lib/factory/serviceType.js +0 -2
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
  */
@@ -52,7 +52,7 @@ export interface IPendingTransaction {
52
52
  * 口座
53
53
  */
54
54
  export interface IAccount {
55
- project: IProject;
55
+ project: Pick<IProject, 'id' | 'typeOf'>;
56
56
  /**
57
57
  * 口座種別
58
58
  */
@@ -12,7 +12,7 @@ export interface IDefinedTerm {
12
12
  * {@link https://pending.schema.org/CategoryCode}
13
13
  */
14
14
  export interface IAccountTitle {
15
- project: IProject;
15
+ project: Pick<IProject, 'id' | 'typeOf'>;
16
16
  typeOf: 'AccountTitle';
17
17
  /**
18
18
  * A short textual code that uniquely identifies the value.
@@ -11,14 +11,18 @@ 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
- export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'> {
17
+ export interface IAcceptedOffer extends Pick<IOffer, 'project' | 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'priceSpecification' | 'seller'> {
18
+ /**
19
+ * オファーコード
20
+ */
21
+ identifier?: string;
18
22
  /**
19
23
  * オファー対象アイテム
20
24
  */
21
- itemOffered: IService;
25
+ itemOffered: IItemOffered;
22
26
  /**
23
27
  * 販売者
24
28
  */
@@ -64,7 +64,18 @@ export declare type IAcceptedOffer4chevre = Pick<ScreeningEventFactory.ITicketOf
64
64
  };
65
65
  export declare type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
66
66
  export declare type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
67
- export declare type IAcceptedOffer4COA = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail & OfferFactory.seatReservation.IOfferWithDetails;
67
+ /**
68
+ * COAイベント受入オファー
69
+ */
70
+ export declare type IAcceptedOffer4COA = Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<OfferFactory.IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'seller' | 'additionalProperty' | 'eligibleMonetaryAmount'> & {
71
+ itemOffered: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
72
+ ticketInfo: OfferFactory.seatReservation.ICOATicketInfoWithDetails;
73
+ /**
74
+ * COAイベントでは、priceSpecificationで価格を表現しきれないので、numberとしてのpriceが必要
75
+ */
76
+ price: number;
77
+ priceSpecification?: OfferFactory.ITicketPriceSpecification;
78
+ };
68
79
  export declare type IAcceptedOfferWithoutDetail4COA = OfferFactory.seatReservation.ICOAOffer;
69
80
  export interface IObjectWithoutDetail4COA {
70
81
  acceptedOffer: IAcceptedOfferWithoutDetail4COA[];
@@ -79,7 +90,7 @@ export interface IPendingTransaction {
79
90
  typeOf: AssetTransactionType.Reserve;
80
91
  transactionNumber: string;
81
92
  }
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'> & {
93
+ export declare type IEvent = Pick<ScreeningEventFactory.IEvent, 'id' | 'typeOf'> & {
83
94
  offers: {
84
95
  offeredThrough: ScreeningEventFactory.IOfferedThrough;
85
96
  };
@@ -104,9 +115,6 @@ export interface IPurpose {
104
115
  * authorize action error interface
105
116
  */
106
117
  export declare type IError = any;
107
- /**
108
- * 座席予約承認アクション
109
- */
110
118
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult<T>> {
111
119
  typeOf: ActionType.AuthorizeAction;
112
120
  agent: IAgent;
@@ -115,4 +123,7 @@ export interface IAttributes<T extends WebAPIFactory.Identifier> extends Authori
115
123
  purpose: IPurpose;
116
124
  instrument: IInstrument<T>;
117
125
  }
126
+ /**
127
+ * イベントオファー承認アクション
128
+ */
118
129
  export declare type IAction<T extends WebAPIFactory.Identifier> = ActionFactory.IAction<IAttributes<T>>;
@@ -3,7 +3,7 @@ import { AssetTransactionType } from '../../../assetTransactionType';
3
3
  import { ISimpleOrder } from '../../../order';
4
4
  import * as OrderProgramMembershipFactory from '../../../task/orderProgramMembership';
5
5
  import * as ConfirmActionFactory from '../confirm';
6
- export declare type IObject = Omit<RegisterServiceFactory.IConfirmParams, 'id'> & {
6
+ export declare type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNumber' | 'endDate'> & {
7
7
  transactionNumber?: string;
8
8
  typeOf: AssetTransactionType.RegisterService;
9
9
  object?: {
@@ -8,7 +8,7 @@ export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
8
8
  transactionNumber: string;
9
9
  typeOf: 'COAReserveTransaction';
10
10
  };
11
- export declare type IObject4Chevre = Omit<ReserveTransactionFactory.IConfirmParams, 'id'> & {
11
+ export declare type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'object' | 'potentialActions'> & {
12
12
  transactionNumber: string;
13
13
  typeOf: AssetTransactionType.Reserve;
14
14
  };
@@ -98,6 +98,7 @@ export interface IPaymentService {
98
98
  export declare type IObject = IPaymentService[];
99
99
  export declare type IInformPayment = IInformActionAttributes<{}, undefined>;
100
100
  export interface IPotentialActions {
101
+ add2report: boolean;
101
102
  informPayment?: IInformPayment[];
102
103
  }
103
104
  export interface IInstrument {
@@ -11,6 +11,7 @@ export declare type IObject = IPaymentService[];
11
11
  export declare type IResult = any;
12
12
  export declare type IInformPayment = IInformActionAttributes<{}, undefined>;
13
13
  export interface IPotentialActions {
14
+ add2report: boolean;
14
15
  informPayment?: IInformPayment[];
15
16
  }
16
17
  export declare type IPurpose = IPayPurpose;
@@ -13,7 +13,7 @@ export interface IParticipantAsWebApplication {
13
13
  name?: string;
14
14
  url?: string;
15
15
  }
16
- export declare type IParticipantAsPerson = Omit<IPersonAttributes, 'identifier' | 'memberOf'> & {
16
+ export declare type IParticipantAsPerson = Pick<IPersonAttributes, 'id' | 'typeOf'> & {
17
17
  name?: string;
18
18
  url?: string;
19
19
  };
@@ -54,7 +54,7 @@ export declare type IAdditionalProperty = IPropertyValue<string>[];
54
54
  */
55
55
  export interface IAttributes<T extends ActionType, TObject, TResult> {
56
56
  identifier?: string;
57
- project: IProject;
57
+ project: Pick<IProject, 'id' | 'typeOf'>;
58
58
  /**
59
59
  * A property-value pair representing an additional characteristics of the entitity,
60
60
  * e.g. a product feature or another characteristic for which there is no matching property in schema.org.
@@ -95,7 +95,7 @@ export interface IObject {
95
95
  payAction?: any;
96
96
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
97
97
  }
98
- export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId'>;
98
+ export declare type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'>;
99
99
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
100
100
  recipient: IRecipient;
101
101
  purpose?: IPayPurpose;
@@ -23,7 +23,7 @@ export interface IObject {
23
23
  paymentMethod: IPaymentMethod;
24
24
  refundFee?: number;
25
25
  }
26
- export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId' | 'onPaymentStatusChanged'>;
26
+ export declare type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod' | 'refundFee'>;
27
27
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
28
28
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
29
29
  }
@@ -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 {
@@ -4,7 +4,7 @@ import { SortType } from './sortType';
4
4
  * 承認インターフェース
5
5
  */
6
6
  export interface IAuthorization {
7
- project: IProject;
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
8
  typeOf: 'Authorization';
9
9
  code: string;
10
10
  object: any;
@@ -1,3 +1,4 @@
1
+ import { IMultilingualString } from './multilingualString';
1
2
  import { IProject } from './project';
2
3
  import { IPropertyValue } from './propertyValue';
3
4
  import { SortType } from './sortType';
@@ -51,20 +52,21 @@ export declare enum CategorySetIdentifier {
51
52
  /**
52
53
  * {@link https://schema.org/CategoryCodeSet}
53
54
  */
54
- export interface ICategoryCodeSet extends IThing {
55
+ export interface ICategoryCodeSet {
55
56
  typeOf: 'CategoryCodeSet';
56
57
  identifier: CategorySetIdentifier;
57
58
  }
58
59
  /**
59
60
  * {@link https://schema.org/CategoryCode}
60
61
  */
61
- export interface ICategoryCode extends IThing {
62
- project: IProject;
62
+ export interface ICategoryCode extends Pick<IThing, 'color' | 'image' | 'name'> {
63
+ additionalProperty?: IPropertyValue<string>[];
64
+ project: Pick<IProject, 'id' | 'typeOf'>;
63
65
  id?: string;
64
66
  typeOf: 'CategoryCode';
65
67
  codeValue: string;
66
68
  inCodeSet: ICategoryCodeSet;
67
- additionalProperty?: IPropertyValue<string>[];
69
+ name: IMultilingualString;
68
70
  paymentMethod?: {
69
71
  /**
70
72
  * 決済カード区分の場合、対応決済方法区分
@@ -13,13 +13,13 @@ 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;
20
20
  }
21
21
  export interface IAttributes {
22
- project?: IProject;
22
+ project?: Pick<IProject, 'id' | 'typeOf'>;
23
23
  typeOf: CreativeWorkType.EmailMessage;
24
24
  sender: IParticipant;
25
25
  toRecipient: IParticipant;
@@ -20,7 +20,7 @@ export interface IDistributor {
20
20
  * {@link https://schema.org/Movie}
21
21
  */
22
22
  export interface ICreativeWork extends CreativeWorkFactory.ICreativeWork {
23
- project: IProject;
23
+ project: Pick<IProject, 'id' | 'typeOf'>;
24
24
  identifier: string;
25
25
  /**
26
26
  * The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
@@ -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;
@@ -16,7 +16,7 @@ export interface IContactPoint {
16
16
  * 顧客
17
17
  */
18
18
  export interface ICustomer extends IOrganization {
19
- project: IProject;
19
+ project: Pick<IProject, 'id' | 'typeOf'>;
20
20
  /**
21
21
  * 顧客コード
22
22
  */
@@ -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
  */
@@ -104,7 +107,7 @@ export interface ISeller {
104
107
  * イベントに対するオファー
105
108
  */
106
109
  export interface IOffer {
107
- project: IProject;
110
+ project: Pick<IProject, 'id' | 'typeOf'>;
108
111
  typeOf: OfferType.Offer;
109
112
  priceCurrency: PriceCurrency.JPY;
110
113
  /**
@@ -132,6 +135,7 @@ export interface IOffer {
132
135
  unacceptedPaymentMethod?: string[];
133
136
  seller: ISeller;
134
137
  }
138
+ export declare type IOffer4COA = Pick<IOffer, 'project' | 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
135
139
  export import ITicketPriceComponent = OfferFactory.ITicketPriceComponent;
136
140
  export import ITicketPriceSpecification = OfferFactory.ITicketPriceSpecification;
137
141
  /**
@@ -212,7 +216,7 @@ export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
212
216
  };
213
217
  export declare type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
214
218
  export interface ILocation {
215
- project: IProject;
219
+ project: Pick<IProject, 'id' | 'typeOf'>;
216
220
  /**
217
221
  * 場所タイプ
218
222
  */
@@ -234,7 +238,7 @@ export interface ILocation {
234
238
  */
235
239
  maximumAttendeeCapacity?: number;
236
240
  }
237
- export declare type ISuperEvent = Omit<ScreeningEventSeriesFactory.IEvent, 'eventStatus' | 'offers'>;
241
+ export declare type ISuperEvent = Omit<ScreeningEventSeriesFactory.IEvent, 'eventStatus' | 'offers' | 'organizer'>;
238
242
  export declare type IName = IMultilingualString;
239
243
  /**
240
244
  * イベント属性
@@ -275,7 +279,7 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
275
279
  /**
276
280
  * 販売情報
277
281
  */
278
- offers?: IOffer;
282
+ offers?: IOffer | IOffer4COA;
279
283
  /**
280
284
  * 発券数
281
285
  */
@@ -13,7 +13,7 @@ import { IProject } from '../project';
13
13
  * 施設コンテンツに対するオファー
14
14
  */
15
15
  export interface IOffer {
16
- project: IProject;
16
+ project: Pick<IProject, 'id' | 'typeOf'>;
17
17
  typeOf: OfferType.Offer;
18
18
  priceCurrency: PriceCurrency.JPY;
19
19
  unacceptedPaymentMethod?: string[];
@@ -67,7 +67,7 @@ export interface ICOAInfo {
67
67
  dateMvtkBegin: string;
68
68
  }
69
69
  export interface ILocation {
70
- project: IProject;
70
+ project: Pick<IProject, 'id' | 'typeOf'>;
71
71
  typeOf: PlaceType.MovieTheater;
72
72
  /**
73
73
  * 施設ID
@@ -86,7 +86,7 @@ export interface ILocation {
86
86
  */
87
87
  kanaName?: string;
88
88
  }
89
- export interface IAttributes extends Omit<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'alternateName' | 'doorTime' | 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity'> {
89
+ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'project' | 'typeOf' | 'identifier' | 'name' | 'alternativeHeadline' | 'description' | 'duration' | 'endDate' | 'eventStatus' | 'headline' | 'location' | 'offers' | 'startDate' | 'workPerformed' | 'additionalProperty'> {
90
90
  /**
91
91
  * 字幕利用可能言語
92
92
  */
@@ -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
  */
@@ -86,13 +86,13 @@ 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
98
  startDate?: SortType;
@@ -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' | 'url'> {
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.
@@ -32,7 +32,7 @@ export interface ICategory {
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
  }
@@ -80,7 +80,7 @@ export interface IAvailableAtOrFrom {
80
80
  * to stream a TV show over the internet, to repair a motorcycle, or to loan a book.
81
81
  * {@link https://schema.org/Offer}
82
82
  */
83
- export interface IOffer extends IThing {
83
+ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternateName' | 'color' | 'identifier'> {
84
84
  project: Pick<IProject, 'id' | 'typeOf'>;
85
85
  typeOf: OfferType;
86
86
  id?: string;
@@ -145,7 +145,6 @@ export interface IOffer extends IThing {
145
145
  /**
146
146
  * オファーが有効となる地域
147
147
  */
148
- eligibleRegion?: any;
149
148
  hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
150
149
  /**
151
150
  * The item being offered.
@@ -236,7 +235,10 @@ export interface IItemOffered {
236
235
  /**
237
236
  * 単価オファーインターフェース
238
237
  */
239
- export interface IUnitPriceOffer extends IOffer {
238
+ export interface IUnitPriceOffer extends Omit<IOffer, 'seller'> {
239
+ /**
240
+ * コード
241
+ */
240
242
  identifier: string;
241
243
  /**
242
244
  * 単価仕様
@@ -385,23 +387,4 @@ export declare namespace seatReservation {
385
387
  export import ICOATicketInfo = SeatReservationOfferFactory.ICOATicketInfo;
386
388
  export import ICOATicketInfoWithDetails = SeatReservationOfferFactory.ICOATicketInfoWithDetails;
387
389
  export import ICOAOffer = SeatReservationOfferFactory.IOffer;
388
- /**
389
- * 座席予約供給情報(詳細つき)インターフェース
390
- */
391
- interface IOfferWithDetails extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
392
- /**
393
- * seat section
394
- */
395
- seatSection: string;
396
- /**
397
- * seat number
398
- */
399
- seatNumber: string;
400
- /**
401
- * ticket info
402
- */
403
- ticketInfo: ICOATicketInfoWithDetails;
404
- price: number;
405
- priceSpecification?: ITicketPriceSpecification;
406
- }
407
390
  }
@@ -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;