@chevre/domain 23.1.0 → 23.2.0-alpha.1

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.
@@ -0,0 +1,60 @@
1
+ /**
2
+ * マスターデータ同期サービス
3
+ */
4
+ import type * as COA from '@motionpicture/coa-service';
5
+ import type { ActionRepo } from '../repo/action';
6
+ import type { CategoryCodeRepo } from '../repo/categoryCode';
7
+ import type { CreativeWorkRepo } from '../repo/creativeWork';
8
+ import type { EventRepo } from '../repo/event';
9
+ import type { EventSeriesRepo } from '../repo/eventSeries';
10
+ import type { MovieTheaterRepo } from '../repo/place/movieTheater';
11
+ import type { ScreeningRoomRepo } from '../repo/place/screeningRoom';
12
+ import type { SellerRepo } from '../repo/seller';
13
+ import * as factory from '../factory';
14
+ interface IImportFromCOAParams {
15
+ project: {
16
+ id: string;
17
+ typeOf: factory.organizationType.Project;
18
+ };
19
+ /**
20
+ * 施設コード
21
+ */
22
+ locationBranchCode: string;
23
+ importFrom: Date;
24
+ importThrough: Date;
25
+ /**
26
+ * 施設を保管するかどうか
27
+ */
28
+ saveMovieTheater: boolean;
29
+ /**
30
+ * 施設コンテンツを保管するかどうか
31
+ */
32
+ saveScreeningEventSeries: boolean;
33
+ saveScreeningEventSeriesPeriodInMonth: number;
34
+ }
35
+ /**
36
+ * イベントをインポートする
37
+ */
38
+ declare function importFromCOA(params: IImportFromCOAParams): (repos: {
39
+ action: ActionRepo;
40
+ categoryCode: CategoryCodeRepo;
41
+ creativeWork: CreativeWorkRepo;
42
+ event: EventRepo;
43
+ eventSeries: EventSeriesRepo;
44
+ movieTheater: MovieTheaterRepo;
45
+ screeningRoom: ScreeningRoomRepo;
46
+ seller: SellerRepo;
47
+ masterService: COA.service.Master;
48
+ }) => Promise<void>;
49
+ /**
50
+ * COA情報からイベントIDを作成する
51
+ */
52
+ declare function createScreeningEventIdFromCOA(params: {
53
+ theaterCode: string;
54
+ titleCode: string;
55
+ titleBranchNum: string;
56
+ dateJouei: string;
57
+ screenCode: string;
58
+ timeBegin: string;
59
+ }): string;
60
+ export { importFromCOA, createScreeningEventIdFromCOA };