@chevre/factory 4.389.0-alpha.1 → 4.389.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.
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) {
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 | IHasOfferCatalogOnCreate[];
138
+ hasOfferCatalog?: IHasOfferCatalogOnCreate[];
139
139
  /**
140
140
  * サービスタイプ
141
141
  * 興行->興行区分
package/lib/project.d.ts CHANGED
@@ -34,6 +34,12 @@ export interface ISettings {
34
34
  * 受け入れるトークン発行者
35
35
  */
36
36
  tokenIssuers?: string[];
37
+ useAggregateReservation?: {
38
+ /**
39
+ * aggregateReservationsを利用する施設コンテンツID
40
+ */
41
+ eventSeriesIds?: string[];
42
+ };
37
43
  useAggregateEntranceGate?: boolean;
38
44
  useAggregateOffer?: boolean;
39
45
  useOfferRateLimit?: boolean;
@@ -0,0 +1,53 @@
1
+ import { IAvailableAtOrFrom } from './offer';
2
+ import { OrganizationType } from './organizationType';
3
+ export interface ISchedule4ttts {
4
+ project: {
5
+ id: string;
6
+ typeOf: OrganizationType.Project;
7
+ };
8
+ id?: string;
9
+ offers?: {
10
+ itemOffered?: {
11
+ /**
12
+ * 興行ID
13
+ */
14
+ id?: string;
15
+ };
16
+ seller?: {
17
+ /**
18
+ * 販売アプリケーション設定
19
+ */
20
+ makesOffer?: {
21
+ availableAtOrFrom: IAvailableAtOrFrom;
22
+ }[];
23
+ };
24
+ };
25
+ film: string;
26
+ theater: string;
27
+ /**
28
+ * 興行プロダクトID
29
+ * @deprecated use offers.itemOffered.id
30
+ */
31
+ duration: number;
32
+ noPerformanceTimes: string[];
33
+ /**
34
+ * 作成対象時間: 9,10,11など
35
+ */
36
+ hours: string[];
37
+ /**
38
+ * ['00', '15', '30', '45']
39
+ */
40
+ minutes: string[];
41
+ /**
42
+ * ['1', '2', '3', '4']
43
+ */
44
+ tours: string[];
45
+ /**
46
+ * 作成開始が今日から何日後か
47
+ */
48
+ start: number;
49
+ /**
50
+ * 何日分作成するか
51
+ */
52
+ days: number;
53
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,9 @@ 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, 'aggregateDuration' | 'aggregateStart' | 'project' | 'typeOf'>;
5
+ type IObjectAsAggregation = Pick<IAggregation, 'aggregateDate' | 'project' | 'typeOf'> & {
6
+ aggregateDurationUnit: 'days' | 'hours';
7
+ };
6
8
  export interface IData {
7
9
  object: IObjectAsAggregation;
8
10
  }
@@ -1,26 +1,41 @@
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
- createScreeningEventSeriesIfNotExistByWorkPerformed: boolean;
10
+ typeOf?: CreativeWorkType.WebApplication;
11
+ id?: string;
12
+ createScreeningEventSeriesIfNotExistByWorkPerformed: true;
11
13
  /**
12
14
  * 全施設に施設コンテンツを作成するかどうか
13
15
  */
14
16
  createScreeningEventSeriesOnAllLocation?: boolean;
15
17
  }
16
- export type IData = IActionAttributes<ActionType.CreateAction, IActionObject, any> & {
18
+ export interface IEventBySchedule {
19
+ eventSchedule: {
20
+ id: string;
21
+ };
22
+ typeOf: IScreeningEventAttributes['typeOf'];
23
+ }
24
+ export type ICreateEventSeriesAction = Pick<IActionAttributes<ActionType.CreateAction, IScreeningEventSeriesAttributes[], undefined>, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
17
25
  instrument: IActionInstrument;
18
26
  };
27
+ /**
28
+ * スケジュールによるイベント作成アクション
29
+ */
30
+ export type ICreateEventByScheduleAction = Pick<IActionAttributes<ActionType.CreateAction, IEventBySchedule, undefined>, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
31
+ instrument?: never;
32
+ };
33
+ export type IData = ICreateEventSeriesAction | ICreateEventByScheduleAction;
19
34
  export interface IAttributes extends TaskFactory.IAttributes {
20
35
  name: TaskName.CreateEvent;
21
36
  data: IData;
22
37
  }
23
38
  /**
24
- * イベント作成タスク
39
+ * イベント or 施設コンテンツ作成タスク
25
40
  */
26
41
  export type ITask = IExtendId<IAttributes>;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.389.0-alpha.1",
3
+ "version": "4.389.0-alpha.10",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",