@chevre/factory 4.389.0-alpha.2 → 4.389.0-alpha.20
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.
- package/lib/action/check/paymentMethod/movieTicket.d.ts +1 -1
- package/lib/action/trade/pay.d.ts +1 -1
- package/lib/action/trade/refund.d.ts +1 -1
- package/lib/event/anyEvent.d.ts +9 -9
- package/lib/event/screeningEvent.d.ts +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lib/notification/reservation.d.ts +17 -1
- package/lib/offer.d.ts +1 -1
- package/lib/ownershipInfo.d.ts +1 -1
- package/lib/product.d.ts +1 -1
- package/lib/project.d.ts +6 -1
- package/lib/schedule.d.ts +59 -0
- package/lib/schedule.js +27 -0
- package/lib/service/webAPI.d.ts +25 -1
- package/lib/task/aggregateOnSystem.d.ts +1 -1
- package/lib/task/createEvent.d.ts +23 -4
- package/lib/unitPriceOffer.d.ts +4 -0
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ export interface IPaymentService extends Pick<PayActionFactory.IPaymentService,
|
|
|
29
29
|
typeOf: string;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export type IObject = IPaymentService
|
|
32
|
+
export type IObject = [IPaymentService];
|
|
33
33
|
export interface IResult {
|
|
34
34
|
}
|
|
35
35
|
export type IError = any;
|
|
@@ -91,7 +91,7 @@ export interface IPaymentService {
|
|
|
91
91
|
*/
|
|
92
92
|
serviceOutput?: IPaymentServiceOutput;
|
|
93
93
|
}
|
|
94
|
-
export type IObject = IPaymentService
|
|
94
|
+
export type IObject = [IPaymentService];
|
|
95
95
|
export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'>;
|
|
96
96
|
export interface IPotentialActions {
|
|
97
97
|
add2report: boolean;
|
|
@@ -12,7 +12,7 @@ export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
|
|
|
12
12
|
refundFee?: number;
|
|
13
13
|
paymentMethod: Pick<IPaymentMethod, 'accountId' | 'name' | 'paymentMethodId' | 'typeOf' | 'additionalProperty'>;
|
|
14
14
|
};
|
|
15
|
-
export type IObject = IPaymentService
|
|
15
|
+
export type IObject = [IPaymentService];
|
|
16
16
|
export interface IAlterTranResultAsError {
|
|
17
17
|
name: string;
|
|
18
18
|
message: string;
|
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -28,13 +28,16 @@ export interface IOfferWithAggregateReservation {
|
|
|
28
28
|
typeOf: OfferType.Offer;
|
|
29
29
|
id: string;
|
|
30
30
|
identifier: string;
|
|
31
|
-
aggregateReservation?: Pick<IAggregateReservation, 'typeOf' | '
|
|
31
|
+
aggregateReservation?: Pick<IAggregateReservation, 'typeOf' | 'reservationCount'> & {
|
|
32
|
+
attendeeCount?: never;
|
|
33
|
+
checkInCount?: never;
|
|
34
|
+
};
|
|
32
35
|
category?: OfferFactory.ICategory;
|
|
33
36
|
maximumAttendeeCapacity?: number;
|
|
34
37
|
remainingAttendeeCapacity?: number;
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
37
|
-
* オファー集計
|
|
40
|
+
* オファー集計(オファーカテゴリーごと)
|
|
38
41
|
*/
|
|
39
42
|
export interface IAggregateOffer {
|
|
40
43
|
typeOf: OfferType.AggregateOffer;
|
|
@@ -42,6 +45,9 @@ export interface IAggregateOffer {
|
|
|
42
45
|
offerCount?: number;
|
|
43
46
|
offers?: IOfferWithAggregateReservation[];
|
|
44
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* 入場ゲートにおけるオファー集計(オファーカテゴリーごと)
|
|
50
|
+
*/
|
|
45
51
|
export interface IAggregateOfferOfPlace {
|
|
46
52
|
typeOf: OfferType.AggregateOffer;
|
|
47
53
|
offers?: {
|
|
@@ -109,7 +115,7 @@ export interface IItemOffered {
|
|
|
109
115
|
typeOf: ProductType.Transportation;
|
|
110
116
|
availableChannel: ReservationFactory.IServiceChannel;
|
|
111
117
|
}
|
|
112
|
-
export type IOfferedThrough = IWebAPIService<WebAPIIdentifier.Chevre>;
|
|
118
|
+
export type IOfferedThrough = Pick<IWebAPIService<WebAPIIdentifier.Chevre>, 'identifier' | 'typeOf'>;
|
|
113
119
|
export interface ISellerMakesOffer extends Pick<OfferFactory.IOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> {
|
|
114
120
|
availabilityEnds: Date;
|
|
115
121
|
availabilityStarts: Date;
|
|
@@ -206,16 +212,10 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Eve
|
|
|
206
212
|
* 参加数
|
|
207
213
|
*/
|
|
208
214
|
attendeeCount?: Number;
|
|
209
|
-
/**
|
|
210
|
-
* 入場ゲート集計
|
|
211
|
-
*/
|
|
212
215
|
/**
|
|
213
216
|
* 予約集計
|
|
214
217
|
*/
|
|
215
218
|
aggregateReservation?: IAggregateReservation;
|
|
216
|
-
/**
|
|
217
|
-
* オファー集計
|
|
218
|
-
*/
|
|
219
219
|
organizer: IOrganizer;
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
@@ -65,7 +65,7 @@ export interface IOffer {
|
|
|
65
65
|
}
|
|
66
66
|
export type ISeller4COA = Pick<ISeller, 'id' | 'makesOffer' | 'typeOf'>;
|
|
67
67
|
export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
|
|
68
|
-
offeredThrough: IWebAPIService<WebAPIIdentifier.COA>;
|
|
68
|
+
offeredThrough: Pick<IWebAPIService<WebAPIIdentifier.COA>, 'identifier' | 'typeOf'>;
|
|
69
69
|
seller: ISeller4COA;
|
|
70
70
|
itemOffered: {
|
|
71
71
|
serviceOutput: Pick<IServiceOutput, 'reservedTicket'>;
|
package/lib/index.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ import * as EventReservationFactory from './reservation/event';
|
|
|
120
120
|
import * as ReservationPackageFactory from './reservation/reservationPackage';
|
|
121
121
|
import { ReservationStatusType } from './reservationStatusType';
|
|
122
122
|
import { ReservationType } from './reservationType';
|
|
123
|
+
import * as ScheduleFactory from './schedule';
|
|
123
124
|
import * as SellerFactory from './seller';
|
|
124
125
|
import * as PaymentServiceFactory from './service/paymentService';
|
|
125
126
|
import * as WebAPIServiceFactory from './service/webAPI';
|
|
@@ -440,6 +441,7 @@ export declare namespace reservation {
|
|
|
440
441
|
}
|
|
441
442
|
export import reservationStatusType = ReservationStatusType;
|
|
442
443
|
export import reservationType = ReservationType;
|
|
444
|
+
export import schedule = ScheduleFactory;
|
|
443
445
|
export import seller = SellerFactory;
|
|
444
446
|
export declare namespace task {
|
|
445
447
|
type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IData : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IData : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.IData : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
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.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = 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.aggregateOffer = exports.aggregation = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.schedule = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -109,6 +109,7 @@ var BusReservationFactory = require("./reservation/busReservation");
|
|
|
109
109
|
var EventReservationFactory = require("./reservation/event");
|
|
110
110
|
var reservationStatusType_1 = require("./reservationStatusType");
|
|
111
111
|
var reservationType_1 = require("./reservationType");
|
|
112
|
+
var ScheduleFactory = require("./schedule");
|
|
112
113
|
var SellerFactory = require("./seller");
|
|
113
114
|
var PaymentServiceFactory = require("./service/paymentService");
|
|
114
115
|
var WebAPIServiceFactory = require("./service/webAPI");
|
|
@@ -400,6 +401,7 @@ var reservation;
|
|
|
400
401
|
})(reservation = exports.reservation || (exports.reservation = {}));
|
|
401
402
|
exports.reservationStatusType = reservationStatusType_1.ReservationStatusType;
|
|
402
403
|
exports.reservationType = reservationType_1.ReservationType;
|
|
404
|
+
exports.schedule = ScheduleFactory;
|
|
403
405
|
exports.seller = SellerFactory;
|
|
404
406
|
var task;
|
|
405
407
|
(function (task) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ActionType } from '../actionType';
|
|
1
2
|
import { IProvider, ITicket, IUnderName } from '../reservation';
|
|
2
3
|
import { IIssuedThrough, IReservation as IEventReservation, IReservationFor } from '../reservation/event';
|
|
3
4
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
@@ -81,6 +82,21 @@ export interface IReservation4informUsed {
|
|
|
81
82
|
reservationStatus?: never;
|
|
82
83
|
checkedIn?: never;
|
|
83
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* 予約使用アクション通知
|
|
87
|
+
*/
|
|
88
|
+
export interface IUseAction {
|
|
89
|
+
object: Pick<IReservation4informUsed, 'id' | 'modifiedTime' | 'reservedTicket' | 'typeOf'>;
|
|
90
|
+
typeOf: ActionType.UseAction;
|
|
91
|
+
project: IProject;
|
|
92
|
+
id: string;
|
|
93
|
+
location?: {
|
|
94
|
+
/**
|
|
95
|
+
* 入場ゲートコード
|
|
96
|
+
*/
|
|
97
|
+
identifier: string;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
84
100
|
/**
|
|
85
101
|
* 予約作成通知
|
|
86
102
|
*/
|
|
@@ -105,5 +121,5 @@ export interface IReservationPackage4informPendingCanceled {
|
|
|
105
121
|
reservationStatus: ReservationStatusType.ReservationCancelled;
|
|
106
122
|
typeOf: ReservationType.ReservationPackage;
|
|
107
123
|
}
|
|
108
|
-
export type IReservation4inform = IReservationPackage4informConfirmed | IReservation4informCanceled[] | IReservation4informCheckedIn[] | IReservationPackage4informCheckedIn[] | IReservation4informUsed | IReservationPackage4informPending | IReservationPackage4informPendingCanceled;
|
|
124
|
+
export type IReservation4inform = IReservationPackage4informConfirmed | IReservation4informCanceled[] | IReservation4informCheckedIn[] | IReservationPackage4informCheckedIn[] | IReservation4informUsed | IUseAction | IReservationPackage4informPending | IReservationPackage4informPendingCanceled;
|
|
109
125
|
export {};
|
package/lib/offer.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface ISeller {
|
|
|
49
49
|
typeOf?: OrganizationType.Corporation;
|
|
50
50
|
id?: string;
|
|
51
51
|
}
|
|
52
|
-
export type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier>;
|
|
52
|
+
export type IOfferedThrough = Pick<WebAPIFactory.IService<WebAPIFactory.Identifier>, 'identifier' | 'typeOf'>;
|
|
53
53
|
/**
|
|
54
54
|
* レート制限
|
|
55
55
|
* どのスコープで何秒に1席までか
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { IReservation as IEventReservation } from './reservation/event';
|
|
|
9
9
|
import { ReservationType } from './reservationType';
|
|
10
10
|
import * as WebAPIFactory from './service/webAPI';
|
|
11
11
|
import { SortType } from './sortType';
|
|
12
|
-
export type IBookingService = WebAPIFactory.IService<WebAPIFactory.Identifier>;
|
|
12
|
+
export type IBookingService = Pick<WebAPIFactory.IService<WebAPIFactory.Identifier>, 'identifier' | 'typeOf'>;
|
|
13
13
|
export interface IBusReservationAsGood {
|
|
14
14
|
typeOf: ReservationType.BusReservation;
|
|
15
15
|
/**
|
package/lib/product.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export type ICreateParams = Pick<IProduct, 'typeOf' | 'productID' | 'name' | 'de
|
|
|
135
135
|
* 興行に複数設定の場合はArray
|
|
136
136
|
* 最大数: 2
|
|
137
137
|
*/
|
|
138
|
-
hasOfferCatalog?: IHasOfferCatalogOnCreate
|
|
138
|
+
hasOfferCatalog?: IHasOfferCatalogOnCreate[];
|
|
139
139
|
/**
|
|
140
140
|
* サービスタイプ
|
|
141
141
|
* 興行->興行区分
|
package/lib/project.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export interface ISendEmailMessageSettings {
|
|
|
26
26
|
* プロジェクト設定
|
|
27
27
|
*/
|
|
28
28
|
export interface ISettings {
|
|
29
|
-
importEventsInWeeks?: number;
|
|
30
29
|
sendEmailMessage?: ISendEmailMessageSettings;
|
|
31
30
|
sendgridApiKey?: string;
|
|
32
31
|
useMyCreditCards?: boolean;
|
|
@@ -34,6 +33,12 @@ export interface ISettings {
|
|
|
34
33
|
* 受け入れるトークン発行者
|
|
35
34
|
*/
|
|
36
35
|
tokenIssuers?: string[];
|
|
36
|
+
useAggregateReservation?: {
|
|
37
|
+
/**
|
|
38
|
+
* aggregateReservationsを利用する施設コンテンツID
|
|
39
|
+
*/
|
|
40
|
+
eventSeriesIds?: string[];
|
|
41
|
+
};
|
|
37
42
|
useAggregateEntranceGate?: boolean;
|
|
38
43
|
useAggregateOffer?: boolean;
|
|
39
44
|
useOfferRateLimit?: boolean;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { IAvailableAtOrFrom } from './offer';
|
|
2
|
+
import { OrganizationType } from './organizationType';
|
|
3
|
+
export interface ISchedule {
|
|
4
|
+
/**
|
|
5
|
+
* The duration of the item (movie, audio recording, event, etc.) in ISO 8601 duration format.
|
|
6
|
+
*/
|
|
7
|
+
duration: string;
|
|
8
|
+
/**
|
|
9
|
+
* Indicates the timezone for which the time(s) indicated in the Schedule are given.
|
|
10
|
+
* Asia/Tokyo
|
|
11
|
+
*/
|
|
12
|
+
scheduleTimezone: string;
|
|
13
|
+
/**
|
|
14
|
+
* HH:mm:ss
|
|
15
|
+
*/
|
|
16
|
+
startTime: string;
|
|
17
|
+
/**
|
|
18
|
+
* HH:mm:ss
|
|
19
|
+
*/
|
|
20
|
+
endTime: string;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the frequency at which Events will occur according to a schedule Schedule.
|
|
23
|
+
*/
|
|
24
|
+
repeatFrequency: string;
|
|
25
|
+
typeOf: 'Schedule';
|
|
26
|
+
}
|
|
27
|
+
export interface IEventWithSchedule {
|
|
28
|
+
project: {
|
|
29
|
+
id: string;
|
|
30
|
+
typeOf: OrganizationType.Project;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* スケジュールID
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
offers?: {
|
|
37
|
+
itemOffered?: {
|
|
38
|
+
/**
|
|
39
|
+
* 興行ID
|
|
40
|
+
*/
|
|
41
|
+
id?: string;
|
|
42
|
+
};
|
|
43
|
+
seller?: {
|
|
44
|
+
/**
|
|
45
|
+
* 販売アプリケーション設定
|
|
46
|
+
*/
|
|
47
|
+
makesOffer?: {
|
|
48
|
+
availableAtOrFrom: IAvailableAtOrFrom;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
superEvent?: {
|
|
53
|
+
/**
|
|
54
|
+
* 施設コンテンツID
|
|
55
|
+
*/
|
|
56
|
+
id?: string;
|
|
57
|
+
};
|
|
58
|
+
eventSchedule: ISchedule;
|
|
59
|
+
}
|
package/lib/schedule.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// export interface ISchedule4ttts extends Pick<IEventWithSchedule, 'id' | 'offers' | 'project' | 'superEvent'> {
|
|
4
|
+
// eventSchedule?: never;
|
|
5
|
+
// duration: number;
|
|
6
|
+
// noPerformanceTimes: string[];
|
|
7
|
+
// /**
|
|
8
|
+
// * 作成対象時間: 9,10,11など
|
|
9
|
+
// */
|
|
10
|
+
// hours: string[];
|
|
11
|
+
// /**
|
|
12
|
+
// * ['00', '15', '30', '45']
|
|
13
|
+
// */
|
|
14
|
+
// minutes: string[];
|
|
15
|
+
// /**
|
|
16
|
+
// * ['1', '2', '3', '4']
|
|
17
|
+
// */
|
|
18
|
+
// tours: string[];
|
|
19
|
+
// /**
|
|
20
|
+
// * 作成開始が今日から何日後か
|
|
21
|
+
// */
|
|
22
|
+
// // start: number;
|
|
23
|
+
// /**
|
|
24
|
+
// * 何日分作成するか
|
|
25
|
+
// */
|
|
26
|
+
// days: number;
|
|
27
|
+
// }
|
package/lib/service/webAPI.d.ts
CHANGED
|
@@ -1,11 +1,35 @@
|
|
|
1
|
+
import { IProject } from '../project';
|
|
1
2
|
export declare enum Identifier {
|
|
2
3
|
COA = "COA",
|
|
3
4
|
Chevre = "Chevre"
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
|
-
* WebAPI
|
|
7
|
+
* WebAPI
|
|
7
8
|
*/
|
|
8
9
|
export interface IService<T extends Identifier> {
|
|
9
10
|
typeOf: 'WebAPI';
|
|
10
11
|
identifier: T;
|
|
11
12
|
}
|
|
13
|
+
export interface ICredentials {
|
|
14
|
+
endpoint: string;
|
|
15
|
+
refreshToken: string;
|
|
16
|
+
useFetch: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* リモートリポジトリへの認証情報保管期間
|
|
19
|
+
*/
|
|
20
|
+
expireInSeconds?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface IAvailableChannel {
|
|
23
|
+
typeOf: 'ServiceChannel';
|
|
24
|
+
credentials?: ICredentials;
|
|
25
|
+
importEventsInWeeks?: number;
|
|
26
|
+
excludeMovieTheaters?: string[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 外部サービス設定を含むWebAPI
|
|
30
|
+
*/
|
|
31
|
+
export interface IServiceWithChannel extends Pick<IService<Identifier>, 'typeOf'> {
|
|
32
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
33
|
+
id?: string;
|
|
34
|
+
availableChannel?: IAvailableChannel;
|
|
35
|
+
}
|
|
@@ -2,7 +2,7 @@ import { IAggregation } from '../aggregation';
|
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
type IObjectAsAggregation = Pick<IAggregation, '
|
|
5
|
+
type IObjectAsAggregation = Pick<IAggregation, 'aggregateDate' | 'project' | 'typeOf'> & {
|
|
6
6
|
aggregateDurationUnit: 'days' | 'hours';
|
|
7
7
|
};
|
|
8
8
|
export interface IData {
|
|
@@ -1,26 +1,45 @@
|
|
|
1
1
|
import { IAttributes as IActionAttributes } from '../action';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
|
+
import { CreativeWorkType } from '../creativeWorkType';
|
|
3
4
|
import { IAttributes as IScreeningEventAttributes } from '../event/screeningEvent';
|
|
4
5
|
import { IAttributes as IScreeningEventSeriesAttributes } from '../event/screeningEventSeries';
|
|
5
6
|
import { IExtendId } from '../autoGenerated';
|
|
6
7
|
import * as TaskFactory from '../task';
|
|
7
8
|
import { TaskName } from '../taskName';
|
|
8
|
-
export type IActionObject = IScreeningEventAttributes[] | IScreeningEventSeriesAttributes[];
|
|
9
9
|
export interface IActionInstrument {
|
|
10
|
-
|
|
10
|
+
typeOf?: CreativeWorkType.WebApplication;
|
|
11
|
+
id?: string;
|
|
12
|
+
createScreeningEventSeriesIfNotExistByWorkPerformed: true;
|
|
11
13
|
/**
|
|
12
14
|
* 全施設に施設コンテンツを作成するかどうか
|
|
13
15
|
*/
|
|
14
16
|
createScreeningEventSeriesOnAllLocation?: boolean;
|
|
15
17
|
}
|
|
16
|
-
export
|
|
18
|
+
export interface IEventBySchedule {
|
|
19
|
+
/**
|
|
20
|
+
* スケジュールを作成し始める日(Asia/Tokyoでこの日から作成される)
|
|
21
|
+
*/
|
|
22
|
+
startDate?: Date;
|
|
23
|
+
eventSchedule: {
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
typeOf: IScreeningEventAttributes['typeOf'];
|
|
27
|
+
}
|
|
28
|
+
export type ICreateEventSeriesAction = Pick<IActionAttributes<ActionType.CreateAction, IScreeningEventSeriesAttributes[], undefined>, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
|
|
17
29
|
instrument: IActionInstrument;
|
|
18
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* スケジュールによるイベント作成アクション
|
|
33
|
+
*/
|
|
34
|
+
export type ICreateEventByScheduleAction = Pick<IActionAttributes<ActionType.CreateAction, IEventBySchedule, undefined>, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
|
|
35
|
+
instrument?: never;
|
|
36
|
+
};
|
|
37
|
+
export type IData = ICreateEventSeriesAction | ICreateEventByScheduleAction;
|
|
19
38
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
20
39
|
name: TaskName.CreateEvent;
|
|
21
40
|
data: IData;
|
|
22
41
|
}
|
|
23
42
|
/**
|
|
24
|
-
*
|
|
43
|
+
* イベント or 施設コンテンツ作成タスク
|
|
25
44
|
*/
|
|
26
45
|
export type ITask = IExtendId<IAttributes>;
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -52,6 +52,10 @@ export interface ISettings {
|
|
|
52
52
|
* 区分加算料金を適用しない
|
|
53
53
|
*/
|
|
54
54
|
ignoreCategoryCodeChargeSpec?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 予約集計対象かどうか(2024-11-09~)
|
|
57
|
+
*/
|
|
58
|
+
includedInAggregateReservation?: boolean;
|
|
55
59
|
}
|
|
56
60
|
export interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Sec>, 'typeOf' | 'minValue' | 'unitCode' | 'description'> {
|
|
57
61
|
}
|