import type { Connection, PipelineStage, mongo } from 'mongoose'; import { factory } from '../../factory'; type IScreeningRoomSectionWithoutContainsPlace = Omit; type ICreatingSection = Pick; type IMatchStage = PipelineStage.Match; interface IUpdateOptions { project: { id: string; }; parentOrganization?: { id?: string; }; movieTheaterCode: string; roomCode: string; } /** * セクション編集時レスポンス */ interface IUpdateSectionResult { containedInPlace: { /** * 施設ID */ id: string; }; typeOf: factory.placeType.ScreeningRoom; } type IUpsertingSeatSection = Pick; interface IUpsertOptions { project: { id: string; }; parentOrganization?: { id?: string; }; movieTheaterId: string; roomCode: string; } /** * セクションリポジトリ */ export declare class SectionRepo { private readonly civicStructureModel; private readonly placeModel; constructor(connection: Connection); static CREATE_SECTION_MONGO_CONDITIONS(searchConditions: Omit): IMatchStage[]; createSection(screeningRoomSection: ICreatingSection, options: IUpdateOptions): Promise; /** * セクションの名称と追加特性を編集する */ updateSectionByBranchCode(screeningRoomSection: ICreatingSection, $unset: any, // eslint-disable-line @typescript-eslint/no-explicit-any options: IUpdateOptions): Promise; /** * コードをキーにして冪等追加 */ addSeatSectionsByBranchCodeIfNotExist(params: { $set: IUpsertingSeatSection; }[], options: IUpsertOptions): Promise<{ bulkWriteResult?: mongo.BulkWriteResult; }>; /** * コードをキーにして冪等編集 */ updateSeatSectionsByBranchCode(params: { $set: IUpsertingSeatSection; }[], options: IUpsertOptions): Promise<{ bulkWriteResult?: mongo.BulkWriteResult; }>; migrateSectionIdentifier(screeningRoomSection: { project: { id: string; }; identifier: string; branchCode: string; containedInPlace: { branchCode: string; containedInPlace: { branchCode: string; }; }; }): Promise; /** * 最小限のprojectionでセクション検索を再定義 * 2026-01-08~ */ findSections(params: Omit): Promise[]>; searchScreeningRoomSections(searchConditions: factory.place.screeningRoomSection.ISearchConditions): Promise; /** * ルーム指定のセクション検索として再定義(2025-12-07~) */ findSectionsByRoom(params: { limit: number; page: number; projectId: string; /** * 販売者ID */ sellerId: string; /** * 施設コード */ movieTheaterCode: string; /** * ルームコード */ roomCode: string; }): Promise[]>; deleteSectionByBranchCode(screeningRoomSection: { /** * セクションコード */ branchCode: string; }, options: IUpdateOptions): Promise; } export {};