@chevre/domain 28.0.0-alpha.26 → 28.0.0-alpha.28

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.
@@ -5,18 +5,19 @@ type IProjection4searchWithUnwoundAcceptedOffers = {
5
5
  [key in keyof factory.order.IOrder]?: 1;
6
6
  } & {};
7
7
  type IMinimizedReservationFor = Pick<factory.acceptedOffer.IAcceptedOffer['itemOffered']['reservationFor'], 'id' | 'typeOf'>;
8
- type IMinimizedItemOffered = Pick<factory.acceptedOffer.IAcceptedOffer['itemOffered'], 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
8
+ type IMinimizedItemOffered = Pick<factory.acceptedOffer.IAcceptedOffer['itemOffered'], 'additionalProperty' | 'additionalTicketText' | 'programMembershipUsed' | 'id' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
9
9
  reservationFor: IMinimizedReservationFor;
10
+ issuedThrough?: factory.acceptedOffer.IAcceptedOffer['itemOffered']['issuedThrough'];
10
11
  };
11
12
  type IMinimizedAcceptedOffer = Pick<factory.acceptedOffer.IAcceptedOffer, 'id' | 'name' | 'offeredThrough' | 'priceSpecification' | 'serialNumber' | 'typeOf'> & {
12
13
  itemOffered: IMinimizedItemOffered;
13
14
  };
14
15
  type IAcceptedOfferAsFindResult = Pick<factory.acceptedOffer.IAcceptedOffer, 'id' | 'offeredThrough' | 'priceSpecification' | 'serialNumber' | 'typeOf'> & {
15
16
  /**
16
- * reservationFor最小化に対応
17
- * 2026-09-01~
17
+ * 常に最小化
18
+ * 2026-10-08~
18
19
  */
19
- itemOffered: factory.acceptedOffer.IAcceptedOffer['itemOffered'] | IMinimizedItemOffered;
20
+ itemOffered: IMinimizedItemOffered;
20
21
  };
21
22
  /**
22
23
  * 注文オファー管理リポジトリ
@@ -36,10 +37,16 @@ export declare class AdminAcceptedOfferRepo extends AcceptedOfferInReserveRepo {
36
37
  /**
37
38
  * reservationForをid属性のみにするオプション
38
39
  * 2026-08-31~
40
+ * always true(2026-10-08~)
41
+ */
42
+ minimizeReservationFor: true;
43
+ /**
44
+ * reservedTicket以外の属性を除外するオプション
45
+ * 2026-10-08~
39
46
  */
40
- minimizeReservationFor: boolean;
47
+ onlyReservedTicket: boolean;
41
48
  }): Promise<(factory.order.IOrder & {
42
- acceptedOffers: [factory.acceptedOffer.IAcceptedOffer | IMinimizedAcceptedOffer];
49
+ acceptedOffers: [IMinimizedAcceptedOffer];
43
50
  _id?: never;
44
51
  })[]>;
45
52
  /**
@@ -57,8 +64,14 @@ export declare class AdminAcceptedOfferRepo extends AcceptedOfferInReserveRepo {
57
64
  /**
58
65
  * reservationForをid属性のみにするオプション
59
66
  * 2026-08-31~
67
+ * always true(2026-10-08~)
68
+ */
69
+ minimizeReservationFor: true;
70
+ /**
71
+ * reservedTicket以外の属性を除外するオプション
72
+ * 2026-10-08~
60
73
  */
61
- minimizeReservationFor: boolean;
74
+ onlyReservedTicket: boolean;
62
75
  }): Promise<IAcceptedOfferAsFindResult[]>;
63
76
  }
64
77
  export {};
@@ -7,14 +7,22 @@ const settings_1 = require("../settings");
7
7
  const acceptedOfferInReserve_1 = require("./acceptedOfferInReserve");
8
8
  const order_2 = require("./order");
9
9
  function minimizeItemOffered(itemOffered, options) {
10
- const { minimizeReservationFor } = options;
10
+ const { minimizeReservationFor, onlyReservedTicket } = options;
11
11
  if (minimizeReservationFor) {
12
12
  const { reservationFor, ...itemOfferedWithoutEvent } = itemOffered;
13
- const { id, typeOf } = reservationFor;
14
- return {
15
- ...itemOfferedWithoutEvent,
16
- reservationFor: { id, typeOf }
17
- };
13
+ if (onlyReservedTicket) {
14
+ const { id, reservationNumber, reservedTicket, typeOf } = itemOfferedWithoutEvent;
15
+ return {
16
+ id, reservationNumber, reservedTicket, typeOf,
17
+ reservationFor: { id: reservationFor.id, typeOf: reservationFor.typeOf }
18
+ };
19
+ }
20
+ else {
21
+ return {
22
+ ...itemOfferedWithoutEvent,
23
+ reservationFor: { id: reservationFor.id, typeOf: reservationFor.typeOf }
24
+ };
25
+ }
18
26
  }
19
27
  else {
20
28
  return itemOffered;
@@ -42,23 +42,18 @@ export declare class AdminEventSeriesRepo {
42
42
  }): Promise<void>;
43
43
  getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, factory.eventSeries.IAttributes & {
44
44
  _id: string;
45
- soundFormat?: never;
46
45
  }, import("./mongoose/virtuals").IVirtuals, {}> & factory.eventSeries.IAttributes & {
47
46
  _id: string;
48
- soundFormat?: never;
49
47
  } & Required<{
50
48
  _id: string;
51
49
  }> & {
52
50
  __v: number;
53
51
  }, import("mongoose").QueryOptions<factory.eventSeries.IAttributes & {
54
52
  _id: string;
55
- soundFormat?: never;
56
53
  }>, (import("mongoose").Document<unknown, Record<string, never>, factory.eventSeries.IAttributes & {
57
54
  _id: string;
58
- soundFormat?: never;
59
55
  }, import("./mongoose/virtuals").IVirtuals, {}> & factory.eventSeries.IAttributes & {
60
56
  _id: string;
61
- soundFormat?: never;
62
57
  } & Required<{
63
58
  _id: string;
64
59
  }> & {
@@ -1,30 +1,32 @@
1
1
  import type { Connection, FilterQuery } from 'mongoose';
2
2
  import { factory } from '../factory';
3
+ import { IDocType } from './mongoose/schemas/paymentServiceChannel';
3
4
  export type ISavingChannel = Pick<factory.serviceChannel.IServiceChannel, 'credentials' | 'project' | 'providesService' | 'serviceUrl' | 'typeOf'> & {
4
5
  id?: never;
5
6
  };
6
- interface IUnset {
7
- $unset?: Record<string, 1>;
8
- }
9
7
  type IServiceChannelWithId = factory.serviceChannel.IServiceChannel & {
10
8
  id: string;
11
9
  };
12
- type IKeyOfProjection = keyof factory.serviceChannel.IServiceChannel;
10
+ type IKeyOfProjection = keyof IDocType;
13
11
  /**
14
- * 決済サービスチャネルリポジトリ
12
+ * 決済サービスチャネル管理リポジトリ
15
13
  */
16
- export declare class PaymentServiceChannelRepo {
14
+ export declare class AdminPaymentServiceChannelRepo {
17
15
  private readonly paymentServiceChannelModel;
18
16
  constructor(connection: Connection);
19
- static CREATE_MONGO_CONDITIONS(params: factory.serviceChannel.ISearchConditions): FilterQuery<factory.serviceChannel.IServiceChannel>[];
20
- save(params: {
17
+ static CREATE_MONGO_CONDITIONS(params: factory.serviceChannel.ISearchConditions): FilterQuery<IDocType>[];
18
+ /**
19
+ * 決済サービスチャネル保管
20
+ * 編集の場合、credentialsのみ変更可能
21
+ */
22
+ savePaymentServiceChannel(params: {
21
23
  id?: string;
22
- attributes: ISavingChannel & IUnset;
24
+ attributes: ISavingChannel;
23
25
  }): Promise<{
24
26
  id: string;
25
27
  }>;
26
- projectFields(conditions: factory.serviceChannel.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<IServiceChannelWithId[]>;
27
- deleteById(params: {
28
+ findPaymentServiceChannels(conditions: factory.serviceChannel.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<IServiceChannelWithId[]>;
29
+ deletePaymentServiceChannelById(params: {
28
30
  id: string;
29
31
  project: {
30
32
  id: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentServiceChannelRepo = void 0;
3
+ exports.AdminPaymentServiceChannelRepo = void 0;
4
4
  const factory_1 = require("../factory");
5
5
  const settings_1 = require("../settings");
6
6
  const paymentServiceChannel_1 = require("./mongoose/schemas/paymentServiceChannel");
@@ -10,12 +10,11 @@ const AVAILABLE_PROJECT_FIELDS = [
10
10
  'credentials',
11
11
  'providesService',
12
12
  'serviceUrl',
13
- 'typeOf'
14
13
  ];
15
14
  /**
16
- * 決済サービスチャネルリポジトリ
15
+ * 決済サービスチャネル管理リポジトリ
17
16
  */
18
- class PaymentServiceChannelRepo {
17
+ class AdminPaymentServiceChannelRepo {
19
18
  paymentServiceChannelModel;
20
19
  constructor(connection) {
21
20
  this.paymentServiceChannelModel = connection.model(paymentServiceChannel_1.modelName, (0, paymentServiceChannel_1.createSchema)());
@@ -44,29 +43,31 @@ class PaymentServiceChannelRepo {
44
43
  }
45
44
  return andConditions;
46
45
  }
47
- async save(params) {
48
- let doc;
46
+ /**
47
+ * 決済サービスチャネル保管
48
+ * 編集の場合、credentialsのみ変更可能
49
+ */
50
+ async savePaymentServiceChannel(params) {
49
51
  let savedId;
50
52
  const savingId = params.id;
51
53
  if (typeof savingId === 'string') {
52
54
  if (savingId === '') {
53
55
  throw new factory_1.factory.errors.ArgumentNull('id');
54
56
  }
55
- const { id, serviceUrl, providesService, project, typeOf, $unset, ...updateFields } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
57
+ const { credentials, project } = params.attributes;
56
58
  const filter = {
57
59
  _id: { $eq: savingId },
58
60
  'project.id': { $eq: project.id }
59
61
  };
60
62
  const update = {
61
- $set: updateFields,
62
- ...($unset !== undefined && $unset !== null) ? { $unset } : undefined
63
+ $set: { credentials },
63
64
  };
64
65
  const options = {
65
66
  upsert: false,
66
67
  new: true,
67
- projection: { _id: 1, id: { $toString: '$_id' } }
68
+ projection: { _id: 0, id: { $toString: '$_id' } }
68
69
  };
69
- doc = await this.paymentServiceChannelModel.findOneAndUpdate(filter, update, options)
70
+ const doc = await this.paymentServiceChannelModel.findOneAndUpdate(filter, update, options)
70
71
  .lean()
71
72
  .exec();
72
73
  if (doc === null) {
@@ -75,8 +76,8 @@ class PaymentServiceChannelRepo {
75
76
  savedId = savingId;
76
77
  }
77
78
  else {
78
- const { $unset, id, ...createParams } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
79
- const result = await this.paymentServiceChannelModel.insertMany(createParams, { rawResult: true });
79
+ const { credentials, project, providesService, serviceUrl, typeOf } = params.attributes;
80
+ const result = await this.paymentServiceChannelModel.insertMany({ credentials, project, providesService, serviceUrl, typeOf }, { rawResult: true });
80
81
  const insertedId = result.insertedIds?.[0]?.toHexString();
81
82
  if (typeof insertedId !== 'string') {
82
83
  throw new factory_1.factory.errors.Internal(`not saved unexpectedly. result:${JSON.stringify(result)}`);
@@ -85,8 +86,8 @@ class PaymentServiceChannelRepo {
85
86
  }
86
87
  return { id: savedId };
87
88
  }
88
- async projectFields(conditions, inclusion) {
89
- const andConditions = PaymentServiceChannelRepo.CREATE_MONGO_CONDITIONS(conditions);
89
+ async findPaymentServiceChannels(conditions, inclusion) {
90
+ const andConditions = AdminPaymentServiceChannelRepo.CREATE_MONGO_CONDITIONS(conditions);
90
91
  let positiveProjectionFields = AVAILABLE_PROJECT_FIELDS;
91
92
  if (Array.isArray(inclusion) && inclusion.length > 0) {
92
93
  positiveProjectionFields = inclusion.filter((key) => AVAILABLE_PROJECT_FIELDS.includes(key));
@@ -109,11 +110,11 @@ class PaymentServiceChannelRepo {
109
110
  .lean()
110
111
  .exec();
111
112
  }
112
- async deleteById(params) {
113
- await this.paymentServiceChannelModel.findOneAndDelete({
113
+ async deletePaymentServiceChannelById(params) {
114
+ await this.paymentServiceChannelModel.deleteOne({
114
115
  _id: { $eq: params.id },
115
116
  'project.id': { $eq: params.project.id }
116
- }, { projection: { _id: 1 } })
117
+ })
117
118
  .exec();
118
119
  }
119
120
  async unsetUnnecessaryFields(params) {
@@ -121,4 +122,4 @@ class PaymentServiceChannelRepo {
121
122
  .exec();
122
123
  }
123
124
  }
124
- exports.PaymentServiceChannelRepo = PaymentServiceChannelRepo;
125
+ exports.AdminPaymentServiceChannelRepo = AdminPaymentServiceChannelRepo;
@@ -3,7 +3,6 @@ import { IVirtuals } from '../virtuals';
3
3
  import { factory } from '../../../factory';
4
4
  type IDocTypeAsEventSeries = factory.eventSeries.IAttributes & {
5
5
  _id: string;
6
- soundFormat?: never;
7
6
  };
8
7
  type IDocType = IDocTypeAsEventSeries;
9
8
  type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
@@ -26,7 +26,7 @@ const schemaDefinition = {
26
26
  startDate: { type: Date, required: true }, // required(2025-10-08~)
27
27
  subEvent: mongoose_1.SchemaTypes.Mixed, // support(2025-12-31~)
28
28
  workPerformed: mongoose_1.SchemaTypes.Mixed,
29
- soundFormat: mongoose_1.SchemaTypes.Mixed, // 廃止予定(2026-10-05~)
29
+ // soundFormat: SchemaTypes.Mixed, // discontinue(2026-10-07~)
30
30
  subtitleLanguage: mongoose_1.SchemaTypes.Mixed,
31
31
  dubLanguage: mongoose_1.SchemaTypes.Mixed,
32
32
  kanaName: String,
@@ -1,7 +1,7 @@
1
1
  import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
2
  import { IVirtuals } from '../virtuals';
3
3
  import { factory } from '../../../factory';
4
- type IDocType = Omit<factory.serviceChannel.IServiceChannel, 'id'>;
4
+ type IDocType = Pick<factory.serviceChannel.IServiceChannel, 'credentials' | 'project' | 'providesService' | 'serviceUrl' | 'typeOf'>;
5
5
  type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
6
6
  type ISchemaDefinition = SchemaDefinition<IDocType>;
7
7
  type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
@@ -29,6 +29,7 @@ import type { AdminCheckMovieTicketActionRepo } from './repo/adminCheckMovieTick
29
29
  import type { AdminAsyncActionRepo } from './repo/adminAsyncAction';
30
30
  import type { AdminEventRepo } from './repo/adminEvent';
31
31
  import type { AdminEventSeriesRepo } from './repo/adminEventSeries';
32
+ import type { AdminPaymentServiceChannelRepo } from './repo/adminPaymentServiceChannel';
32
33
  import type { AdminPendingReservationRepo } from './repo/adminPendingReservation';
33
34
  import type { AdminScheduledTaskRepo } from './repo/adminScheduledTask';
34
35
  import type { AdminTaskRepo } from './repo/adminTask';
@@ -76,7 +77,6 @@ import type { OrderRepo } from './repo/order';
76
77
  import type { OrderInTransactionRepo } from './repo/orderInTransaction';
77
78
  import type { PassportRepo } from './repo/passport';
78
79
  import type { PaymentServiceRepo } from './repo/paymentService';
79
- import type { PaymentServiceChannelRepo } from './repo/paymentServiceChannel';
80
80
  import type { PaymentServiceProviderRepo } from './repo/paymentServiceProvider';
81
81
  import type { PendingReservationRepo } from './repo/pendingReservation';
82
82
  import type { EntranceGateRepo } from './repo/place/entranceGate';
@@ -231,6 +231,10 @@ export type AdminEventSeries = AdminEventSeriesRepo;
231
231
  export declare namespace AdminEventSeries {
232
232
  function createInstance(...params: ConstructorParameters<typeof AdminEventSeriesRepo>): Promise<AdminEventSeriesRepo>;
233
233
  }
234
+ export type AdminPaymentServiceChannel = AdminPaymentServiceChannelRepo;
235
+ export declare namespace AdminPaymentServiceChannel {
236
+ function createInstance(...params: ConstructorParameters<typeof AdminPaymentServiceChannelRepo>): Promise<AdminPaymentServiceChannelRepo>;
237
+ }
234
238
  export type AdminPendingReservation = AdminPendingReservationRepo;
235
239
  export declare namespace AdminPendingReservation {
236
240
  function createInstance(...params: ConstructorParameters<typeof AdminPendingReservationRepo>): Promise<AdminPendingReservationRepo>;
@@ -429,10 +433,6 @@ export type PaymentService = PaymentServiceRepo;
429
433
  export declare namespace PaymentService {
430
434
  function createInstance(...params: ConstructorParameters<typeof PaymentServiceRepo>): Promise<PaymentServiceRepo>;
431
435
  }
432
- export type PaymentServiceChannel = PaymentServiceChannelRepo;
433
- export declare namespace PaymentServiceChannel {
434
- function createInstance(...params: ConstructorParameters<typeof PaymentServiceChannelRepo>): Promise<PaymentServiceChannelRepo>;
435
- }
436
436
  export type PaymentServiceProvider = PaymentServiceProviderRepo;
437
437
  export declare namespace PaymentServiceProvider {
438
438
  function createInstance(...params: ConstructorParameters<typeof PaymentServiceProviderRepo>): Promise<PaymentServiceProviderRepo>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Message = exports.MerchantReturnPolicy = exports.MemberProgram = exports.Member = exports.Issuer = exports.IdentityProvider = exports.Identity = exports.EventSeries = exports.EventSellerMakesOffer = exports.EventOffer = exports.Event = exports.EmailMessage = exports.CustomerType = exports.Customer = exports.Credentials = exports.CreativeWork = exports.ConfirmationNumber = exports.Authorization = exports.CategoryCode = exports.assetTransaction = exports.AssetTransaction = exports.Aggregation = exports.AggregateReservation = exports.AggregateOrder = exports.AggregateOffer = exports.AggregateEvent = exports.AggregateAssetTransaction = exports.AggregateTransaction = exports.AggregateTask = exports.AggregateScheduledTask = exports.AggregateUseAction = exports.AggregateCheckMovieTicketAction = exports.AggregateAction = exports.AdminTransaction = exports.AdminTask = exports.AdminScheduledTask = exports.AdminPendingReservation = exports.AdminEventSeries = exports.AdminEvent = exports.AdminAsyncAction = exports.AdminAssetTransaction = exports.AdminCheckMovieTicketAction = exports.AdminAction = exports.AdminAcceptedOffer = exports.AdminAccountingReport = exports.AdditionalProperty = exports.action = exports.AccountTitle = exports.AccountingReport = exports.AcceptedOffer = void 0;
4
- exports.WebSite = exports.rateLimit = exports.TransactionProcess = exports.TransactionNumber = exports.transaction = exports.Transaction = exports.Ticket = exports.AsyncAction = exports.TaskDelayed = exports.Task = exports.ScheduledTask = exports.StockHolder = exports.setting = exports.Setting = exports.ServiceAvailableHour = exports.SellerReturnPolicy = exports.SellerPaymentAccepted = exports.SellerMakesOffer = exports.Seller = exports.Schedule = exports.Role = exports.ReserveInterface = exports.Reservation = exports.ProjectMakesOffer = exports.Project = exports.ProductHasOfferCatalog = exports.Product = exports.PriceSpecification = exports.PotentialAction = exports.place = exports.Person = exports.PendingReservation = exports.PaymentServiceProvider = exports.PaymentServiceChannel = exports.PaymentService = exports.Passport = exports.OrderNumber = exports.OrderInTransaction = exports.Order = exports.Offer = exports.OfferItemCondition = exports.OfferCatalogItem = exports.OfferCatalog = exports.NoteAboutOrder = exports.Note = exports.MovieTicketType = void 0;
3
+ exports.MerchantReturnPolicy = exports.MemberProgram = exports.Member = exports.Issuer = exports.IdentityProvider = exports.Identity = exports.EventSeries = exports.EventSellerMakesOffer = exports.EventOffer = exports.Event = exports.EmailMessage = exports.CustomerType = exports.Customer = exports.Credentials = exports.CreativeWork = exports.ConfirmationNumber = exports.Authorization = exports.CategoryCode = exports.assetTransaction = exports.AssetTransaction = exports.Aggregation = exports.AggregateReservation = exports.AggregateOrder = exports.AggregateOffer = exports.AggregateEvent = exports.AggregateAssetTransaction = exports.AggregateTransaction = exports.AggregateTask = exports.AggregateScheduledTask = exports.AggregateUseAction = exports.AggregateCheckMovieTicketAction = exports.AggregateAction = exports.AdminTransaction = exports.AdminTask = exports.AdminScheduledTask = exports.AdminPendingReservation = exports.AdminPaymentServiceChannel = exports.AdminEventSeries = exports.AdminEvent = exports.AdminAsyncAction = exports.AdminAssetTransaction = exports.AdminCheckMovieTicketAction = exports.AdminAction = exports.AdminAcceptedOffer = exports.AdminAccountingReport = exports.AdditionalProperty = exports.action = exports.AccountTitle = exports.AccountingReport = exports.AcceptedOffer = void 0;
4
+ exports.WebSite = exports.rateLimit = exports.TransactionProcess = exports.TransactionNumber = exports.transaction = exports.Transaction = exports.Ticket = exports.AsyncAction = exports.TaskDelayed = exports.Task = exports.ScheduledTask = exports.StockHolder = exports.setting = exports.Setting = exports.ServiceAvailableHour = exports.SellerReturnPolicy = exports.SellerPaymentAccepted = exports.SellerMakesOffer = exports.Seller = exports.Schedule = exports.Role = exports.ReserveInterface = exports.Reservation = exports.ProjectMakesOffer = exports.Project = exports.ProductHasOfferCatalog = exports.Product = exports.PriceSpecification = exports.PotentialAction = exports.place = exports.Person = exports.PendingReservation = exports.PaymentServiceProvider = exports.PaymentService = exports.Passport = exports.OrderNumber = exports.OrderInTransaction = exports.Order = exports.Offer = exports.OfferItemCondition = exports.OfferCatalogItem = exports.OfferCatalog = exports.NoteAboutOrder = exports.Note = exports.MovieTicketType = exports.Message = void 0;
5
5
  var AcceptedOffer;
6
6
  (function (AcceptedOffer) {
7
7
  let repo;
@@ -302,6 +302,17 @@ var AdminEventSeries;
302
302
  }
303
303
  AdminEventSeries.createInstance = createInstance;
304
304
  })(AdminEventSeries || (exports.AdminEventSeries = AdminEventSeries = {}));
305
+ var AdminPaymentServiceChannel;
306
+ (function (AdminPaymentServiceChannel) {
307
+ let repo;
308
+ async function createInstance(...params) {
309
+ if (repo === undefined) {
310
+ repo = (await import('./repo/adminPaymentServiceChannel.js')).AdminPaymentServiceChannelRepo;
311
+ }
312
+ return new repo(...params);
313
+ }
314
+ AdminPaymentServiceChannel.createInstance = createInstance;
315
+ })(AdminPaymentServiceChannel || (exports.AdminPaymentServiceChannel = AdminPaymentServiceChannel = {}));
305
316
  var AdminPendingReservation;
306
317
  (function (AdminPendingReservation) {
307
318
  let repo;
@@ -844,17 +855,6 @@ var PaymentService;
844
855
  }
845
856
  PaymentService.createInstance = createInstance;
846
857
  })(PaymentService || (exports.PaymentService = PaymentService = {}));
847
- var PaymentServiceChannel;
848
- (function (PaymentServiceChannel) {
849
- let repo;
850
- async function createInstance(...params) {
851
- if (repo === undefined) {
852
- repo = (await import('./repo/paymentServiceChannel.js')).PaymentServiceChannelRepo;
853
- }
854
- return new repo(...params);
855
- }
856
- PaymentServiceChannel.createInstance = createInstance;
857
- })(PaymentServiceChannel || (exports.PaymentServiceChannel = PaymentServiceChannel = {}));
858
858
  var PaymentServiceProvider;
859
859
  (function (PaymentServiceProvider) {
860
860
  let repo;
@@ -350,13 +350,6 @@ function createReservation(params) {
350
350
  workPerformed,
351
351
  ...(typeof event.superEvent.duration === 'string') ? { duration: event.superEvent.duration } : undefined,
352
352
  ...(event.superEvent.headline !== undefined) ? { headline: event.superEvent.headline } : undefined
353
- // videoFormatをデータとしても廃止(万が一に備えてUSE_DEPRECATED_VIDEO_FORMATで再設定可能)(2026-02-03~)
354
- // ...(USE_DEPRECATED_VIDEO_FORMAT)
355
- // ? {
356
- // // 現時点で型廃止済だがデータとしては互換性維持(2026-01-15~)
357
- // videoFormat: (<any>event.superEvent).videoFormat
358
- // }
359
- // : undefined
360
353
  };
361
354
  const reservationFor = {
362
355
  typeOf: event.typeOf,
@@ -115,7 +115,6 @@ function searchTicketOffersByItemOffered(params) {
115
115
  function searchEventTicketOffersByEvent(params) {
116
116
  return async (repos) => {
117
117
  const event = params.event;
118
- let soundFormatTypes = [];
119
118
  let videoFormatTypes = [];
120
119
  if (event.typeOf === factory_1.factory.eventType.ScreeningEvent) {
121
120
  const superEvents = await repos.eventSeries.findEventSeries({
@@ -127,7 +126,6 @@ function searchEventTicketOffersByEvent(params) {
127
126
  if (superEvent === undefined) {
128
127
  throw new factory_1.factory.errors.NotFound(factory_1.factory.eventType.ScreeningEventSeries);
129
128
  }
130
- soundFormatTypes = []; // 現時点で音響方式区分は存在しない(2026-10-05~)
131
129
  videoFormatTypes = (Array.isArray(superEvent.subEvent?.videoFormat)) ? superEvent.subEvent.videoFormat : [];
132
130
  }
133
131
  const unacceptedPaymentMethod = getUnacceptedPaymentMethodByEvent({ event });
@@ -151,7 +149,7 @@ function searchEventTicketOffersByEvent(params) {
151
149
  })(repos);
152
150
  const { soundFormatChargeSpecs, videoFormatChargeSpecs, movieTicketTypeChargeSpecs } = await (0, searchPriceSpecs4event_1.searchPriceSpecs4event)({
153
151
  project: { id: event.project.id },
154
- soundFormatTypes,
152
+ soundFormatTypes: [], // 現時点で音響方式区分は存在しない(2026-10-05~),
155
153
  videoFormatTypes,
156
154
  availableOffers
157
155
  })(repos);
@@ -101,7 +101,6 @@ function searchTicketOffersByItemOffered(params) {
101
101
  function searchEventTicketOffersByEvent(params) {
102
102
  return async (repos) => {
103
103
  const event = params.event;
104
- let soundFormatTypes = [];
105
104
  let videoFormatTypes = [];
106
105
  if (event.typeOf === factory_1.factory.eventType.ScreeningEvent) {
107
106
  const superEvents = await repos.eventSeries.findEventSeries({
@@ -113,7 +112,6 @@ function searchEventTicketOffersByEvent(params) {
113
112
  if (superEvent === undefined) {
114
113
  throw new factory_1.factory.errors.NotFound(factory_1.factory.eventType.ScreeningEventSeries);
115
114
  }
116
- soundFormatTypes = []; // 現時点で音響方式区分は存在しない(2026-10-05~)
117
115
  videoFormatTypes = (Array.isArray(superEvent.subEvent?.videoFormat)) ? superEvent.subEvent.videoFormat : [];
118
116
  }
119
117
  const unacceptedPaymentMethod = getUnacceptedPaymentMethodByEvent({ event });
@@ -138,7 +136,7 @@ function searchEventTicketOffersByEvent(params) {
138
136
  })(repos);
139
137
  const { soundFormatChargeSpecs, videoFormatChargeSpecs, movieTicketTypeChargeSpecs } = await (0, searchPriceSpecs4event_1.searchPriceSpecs4event)({
140
138
  project: { id: event.project.id },
141
- soundFormatTypes,
139
+ soundFormatTypes: [], // 現時点で音響方式区分は存在しない(2026-10-05~)
142
140
  videoFormatTypes,
143
141
  availableOffers
144
142
  })(repos);
@@ -104,13 +104,6 @@ function responseBody2acceptedOffers4result(params) {
104
104
  workPerformed: workPerformed,
105
105
  duration: event.superEvent.duration,
106
106
  coaInfo: event.superEvent.coaInfo
107
- // videoFormatをデータとしても廃止(万が一に備えてUSE_DEPRECATED_VIDEO_FORMATで再設定可能)(2026-02-03~)
108
- // ...(USE_DEPRECATED_VIDEO_FORMAT)
109
- // ? {
110
- // // 現時点で型廃止済だがデータとしては互換性維持(2026-01-15~)
111
- // videoFormat: (<any>event.superEvent).videoFormat
112
- // }
113
- // : undefined
114
107
  };
115
108
  const reservationFor = {
116
109
  typeOf: event.typeOf,
@@ -175,11 +175,7 @@ function createInformTasks(params, setting) {
175
175
  return {
176
176
  project, organizer, typeOf, name, location, id, workPerformed, kanaName, eventStatus,
177
177
  endDate, startDate,
178
- videoFormat: (Array.isArray(subEvent?.videoFormat))
179
- ? subEvent.videoFormat.map((codeValue) => ({ typeOf: codeValue, name: codeValue }))
180
- : [],
181
- // ...(endDate !== undefined) ? { endDate } : undefined,
182
- // ...(startDate !== undefined) ? { startDate } : undefined,
178
+ videoFormat: (Array.isArray(subEvent?.videoFormat)) ? subEvent.videoFormat : [], // videoFormat通知をstring[]に変更(2026-10-07~)
183
179
  ...(Array.isArray(additionalProperty)) ? { additionalProperty } : undefined,
184
180
  ...(subtitleLanguage !== undefined) ? {} : undefined,
185
181
  ...(dubLanguage !== undefined) ? { dubLanguage } : undefined,
@@ -196,8 +192,6 @@ function createInformTasks(params, setting) {
196
192
  informEvents?.forEach((informEvent) => {
197
193
  const informUrl = String(informEvent.recipient?.url);
198
194
  events4inform.forEach((event4inform) => {
199
- // _idは不要であり、存在すると予期せぬ影響を及ぼす可能性がある
200
- delete event4inform._id; // eslint-disable-line @typescript-eslint/no-explicit-any
201
195
  const informActionAttributes = {
202
196
  object: event4inform,
203
197
  recipient: {
package/package.json CHANGED
@@ -88,5 +88,5 @@
88
88
  "postversion": "git push origin --tags",
89
89
  "prepublishOnly": "npm run clean && npm run build"
90
90
  },
91
- "version": "28.0.0-alpha.26"
91
+ "version": "28.0.0-alpha.28"
92
92
  }