@chevre/factory 4.259.0-alpha.0 → 4.259.0-alpha.11

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 (74) 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 +9 -5
  7. package/lib/factory/action/authorize/offer/seatReservation.d.ts +9 -9
  8. package/lib/factory/action/consume/use/reservation.d.ts +2 -1
  9. package/lib/factory/action/interact/confirm/pay.d.ts +1 -2
  10. package/lib/factory/action/interact/confirm/registerService.d.ts +1 -1
  11. package/lib/factory/action/interact/confirm/reservation.d.ts +1 -1
  12. package/lib/factory/action/trade/pay.d.ts +1 -1
  13. package/lib/factory/action/trade/refund.d.ts +1 -1
  14. package/lib/factory/action/transfer/return/order.d.ts +11 -6
  15. package/lib/factory/action.d.ts +2 -2
  16. package/lib/factory/assetTransaction/pay.d.ts +1 -1
  17. package/lib/factory/assetTransaction/registerService.d.ts +4 -2
  18. package/lib/factory/authorization.d.ts +1 -1
  19. package/lib/factory/categoryCode.d.ts +10 -5
  20. package/lib/factory/creativeWork/message/email.d.ts +2 -2
  21. package/lib/factory/creativeWork/movie.d.ts +1 -1
  22. package/lib/factory/creativeWork.d.ts +1 -1
  23. package/lib/factory/customer.d.ts +1 -1
  24. package/lib/factory/event/screeningEvent.d.ts +9 -5
  25. package/lib/factory/event/screeningEventSeries.d.ts +30 -33
  26. package/lib/factory/event.d.ts +4 -7
  27. package/lib/factory/iam.d.ts +7 -2
  28. package/lib/factory/invoice.d.ts +1 -1
  29. package/lib/factory/merchantReturnPolicy.d.ts +1 -1
  30. package/lib/factory/monetaryAmount.d.ts +1 -1
  31. package/lib/factory/offer/merchantReturnPolicy.d.ts +37 -0
  32. package/lib/factory/{serviceType.js → offer/merchantReturnPolicy.js} +0 -0
  33. package/lib/factory/offer.d.ts +21 -35
  34. package/lib/factory/offerCatalog.d.ts +9 -6
  35. package/lib/factory/order.d.ts +22 -8
  36. package/lib/factory/organization.d.ts +1 -1
  37. package/lib/factory/ownershipInfo.d.ts +4 -4
  38. package/lib/factory/paymentMethod.d.ts +2 -2
  39. package/lib/factory/permit.d.ts +4 -5
  40. package/lib/factory/place/movieTheater.d.ts +28 -8
  41. package/lib/factory/place/screeningRoom.d.ts +1 -1
  42. package/lib/factory/place/screeningRoomSection.d.ts +1 -1
  43. package/lib/factory/place/seat.d.ts +1 -1
  44. package/lib/factory/place.d.ts +3 -3
  45. package/lib/factory/priceSpecification/categoryCodeChargeSpecification.d.ts +2 -1
  46. package/lib/factory/priceSpecification.d.ts +10 -2
  47. package/lib/factory/product.d.ts +5 -4
  48. package/lib/factory/programMembership.d.ts +1 -1
  49. package/lib/factory/quantitativeValue.d.ts +1 -1
  50. package/lib/factory/report/accountingReport.d.ts +14 -8
  51. package/lib/factory/reservation/event.d.ts +2 -1
  52. package/lib/factory/reservation.d.ts +9 -9
  53. package/lib/factory/seller.d.ts +3 -3
  54. package/lib/factory/service/paymentService.d.ts +9 -7
  55. package/lib/factory/task/importEventCapacitiesFromCOA.d.ts +1 -1
  56. package/lib/factory/task/importEventsFromCOA.d.ts +1 -1
  57. package/lib/factory/task/importOffersFromCOA.d.ts +1 -1
  58. package/lib/factory/task/orderProgramMembership.d.ts +1 -1
  59. package/lib/factory/task/placeOrder.d.ts +1 -1
  60. package/lib/factory/task/sendOrder.d.ts +1 -1
  61. package/lib/factory/task/voidMoneyTransferTransaction.d.ts +1 -1
  62. package/lib/factory/task/voidPayTransaction.d.ts +1 -1
  63. package/lib/factory/task/voidRegisterServiceTransaction.d.ts +1 -1
  64. package/lib/factory/task/voidReserveTransaction.d.ts +1 -1
  65. package/lib/factory/task.d.ts +1 -1
  66. package/lib/factory/taskName.d.ts +0 -6
  67. package/lib/factory/taskName.js +0 -8
  68. package/lib/factory/transaction/moneyTransfer.d.ts +1 -1
  69. package/lib/factory/transaction/placeOrder.d.ts +1 -1
  70. package/lib/factory/transaction/returnOrder.d.ts +22 -2
  71. package/package.json +1 -1
  72. package/lib/factory/service.d.ts +0 -4
  73. package/lib/factory/service.js +0 -16
  74. 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
  */
@@ -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
  */
@@ -32,8 +36,8 @@ export interface IResult {
32
36
  price: number;
33
37
  priceCurrency: PriceCurrency;
34
38
  acceptedOffers: IResultAcceptedOffer;
35
- requestBody?: any;
36
- responseBody: any;
39
+ requestBody: RegisterServiceTransactionFactory.IStartParamsWithoutDetail;
40
+ responseBody: RegisterServiceTransactionFactory.ITransaction;
37
41
  }
38
42
  export interface IPurpose {
39
43
  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
  }
@@ -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
  };
@@ -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
  */
@@ -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;
@@ -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,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,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
  */
@@ -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[];
@@ -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: Pick<IProject, 'id' | 'typeOf'>;
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
  };